CYBER_OPS / static /css /style.css
rajesh9698's picture
Upload folder using huggingface_hub
c8f640d verified
Raw History Blame Contribute Delete
14.5 kB
/* CyberShield AI Platform Stylesheet */
/* --- ROOT VARIABLES (Design System) --- */
:root {
--cyber-dark-bg: #090d16;
--cyber-card-bg: rgba(15, 23, 42, 0.65);
--cyber-card-bg-solid: #0f172a;
--cyber-input-bg: #070a10;
/* Neon Accents */
--clr-cyan: #38bdf8;
--clr-blue: #3b82f6;
--clr-green: #10b981;
--clr-yellow: #f59e0b;
--clr-red: #ef4444;
--clr-slate-700: #334155;
--clr-slate-800: #1e293b;
--clr-slate-400: #94a3b8;
--clr-slate-200: #e2e8f0;
}
/* --- BASE STYLES --- */
body {
font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
background-color: var(--cyber-dark-bg);
color: var(--clr-slate-200);
overflow-x: hidden;
min-height: 100vh;
display: flex;
flex-direction: column;
}
/* Custom Scrollbars */
::-webkit-scrollbar {
width: 8px;
height: 8px;
}
::-webkit-scrollbar-track {
background: var(--cyber-dark-bg);
}
::-webkit-scrollbar-thumb {
background: var(--clr-slate-800);
border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
background: var(--clr-slate-700);
}
/* --- TYPOGRAPHY --- */
.font-space {
font-family: 'Space Grotesk', monospace;
}
.fs-8 {
font-size: 0.85rem !important;
}
.fs-9 {
font-size: 0.75rem !important;
}
.badge {
font-weight: 500;
}
.truncate-text {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
/* --- NEON BACKGROUND ACCENTS --- */
.cyber-glow-bg {
position: fixed;
top: 0;
left: 0;
width: 100vw;
height: 100vh;
background:
radial-gradient(circle at 10% 20%, rgba(59, 130, 246, 0.08) 0%, transparent 40%),
radial-gradient(circle at 85% 70%, rgba(56, 189, 248, 0.06) 0%, transparent 45%);
pointer-events: none;
z-index: -1;
}
/* --- CYBER CARDS --- */
.cyber-card {
background: var(--cyber-card-bg);
border: 1px solid var(--clr-slate-800);
border-radius: 16px;
backdrop-filter: blur(16px);
-webkit-backdrop-filter: blur(16px);
transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
position: relative;
overflow: hidden;
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}
.cyber-card:hover {
transform: translateY(-5px) scale(1.01);
border-color: var(--clr-slate-600);
box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 10px 10px -5px rgba(0, 0, 0, 0.3);
}
/* Border highlights for metric status */
.border-left-cyber-blue { border-left: 4px solid var(--clr-blue) !important; }
.border-left-cyber-cyan { border-left: 4px solid var(--clr-cyan) !important; }
.border-left-cyber-green { border-left: 4px solid var(--clr-green) !important; }
.border-left-cyber-yellow { border-left: 4px solid var(--clr-yellow) !important; }
.border-left-cyber-red { border-left: 4px solid var(--clr-red) !important; }
/* --- WIDGET & METRIC ELEMENT CARDS --- */
.metric-card h3 {
font-size: 2rem;
letter-spacing: -0.5px;
}
.metric-icon-wrap {
width: 38px;
height: 38px;
border-radius: 8px;
display: flex;
align-items: center;
justify-content: center;
font-size: 1.1rem;
}
.bg-cyber-blue-10 { background: rgba(59, 130, 246, 0.1); }
.bg-cyber-cyan-10 { background: rgba(56, 189, 248, 0.1); }
.bg-cyber-green-10 { background: rgba(16, 185, 129, 0.1); }
.bg-cyber-yellow-10 { background: rgba(245, 158, 11, 0.1); }
.bg-cyber-red-10 { background: rgba(239, 68, 68, 0.1); }
.text-cyber-blue { color: var(--clr-blue) !important; }
.text-cyber-cyan { color: var(--clr-cyan) !important; }
.text-cyber-green { color: var(--clr-green) !important; }
.text-cyber-yellow { color: var(--clr-yellow) !important; }
.text-cyber-red { color: var(--clr-red) !important; }
/* --- THEMED LABELS / FORM CONTROL --- */
.bg-cyber-slate { background-color: var(--clr-slate-800) !important; }
.border-cyber-slate { border-color: var(--clr-slate-800) !important; }
.bg-cyber-input { background-color: var(--cyber-input-bg) !important; }
.form-control:focus {
background-color: var(--cyber-input-bg);
border-color: var(--clr-cyan);
box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.2);
color: #fff;
}
.form-control::placeholder {
color: #475569;
}
.input-group-text {
border-right: none;
}
.form-control {
border-left: none;
}
/* --- TIMELINE LOG FOR RECENT SCANS --- */
.recent-scans-timeline {
display: flex;
flex-direction: column;
gap: 15px;
}
.scan-timeline-item {
border-bottom: 1px solid rgba(30, 41, 59, 0.5);
padding-bottom: 12px;
}
.scan-timeline-item:last-child {
border-bottom: none;
padding-bottom: 0;
}
.hover-text-cyber-yellow:hover {
color: var(--clr-yellow) !important;
}
/* --- CUSTOM BUTTONS --- */
.btn-cyber-cyan {
background-color: var(--clr-cyan);
color: var(--cyber-dark-bg);
border: 1px solid var(--clr-cyan);
transition: all 0.2s ease;
}
.btn-cyber-cyan:hover, .btn-cyber-cyan:focus {
background-color: #0284c7;
border-color: #0284c7;
color: #fff;
box-shadow: 0 0 15px rgba(56, 189, 248, 0.4);
}
.btn-cyber-blue {
background-color: var(--clr-blue);
color: #fff;
border: 1px solid var(--clr-blue);
transition: all 0.2s ease;
}
.btn-cyber-blue:hover {
background-color: #2563eb;
border-color: #2563eb;
box-shadow: 0 0 15px rgba(59, 130, 246, 0.4);
}
.btn-cyber-yellow {
background-color: var(--clr-yellow);
color: #000;
border: 1px solid var(--clr-yellow);
transition: all 0.2s ease;
}
.btn-cyber-yellow:hover {
background-color: #d97706;
border-color: #d97706;
color: #fff;
box-shadow: 0 0 15px rgba(245, 158, 11, 0.4);
}
.btn-outline-cyber-cyan {
color: var(--clr-cyan);
background: transparent;
border: 1px solid var(--clr-cyan);
transition: all 0.2s ease;
}
.btn-outline-cyber-cyan:hover {
background: rgba(56, 189, 248, 0.1);
color: var(--clr-cyan);
box-shadow: 0 0 10px rgba(56, 189, 248, 0.2);
}
.btn-outline-cyber-blue {
color: var(--clr-blue);
background: transparent;
border: 1px solid var(--clr-blue);
transition: all 0.2s ease;
}
.btn-outline-cyber-blue:hover {
background: rgba(59, 130, 246, 0.1);
color: var(--clr-blue);
}
.btn-outline-cyber-yellow {
color: var(--clr-yellow);
background: transparent;
border: 1px solid var(--clr-yellow);
transition: all 0.2s ease;
}
.btn-outline-cyber-yellow:hover {
background: rgba(245, 158, 11, 0.1);
color: var(--clr-yellow);
}
.btn-outline-cyber-red {
color: var(--clr-red);
background: transparent;
border: 1px solid var(--clr-red);
transition: all 0.2s ease;
}
.btn-outline-cyber-red:hover {
background: rgba(239, 68, 68, 0.1);
color: var(--clr-red);
box-shadow: 0 0 10px rgba(239, 68, 68, 0.2);
}
.btn-outline-cyber-slate {
color: var(--clr-slate-400);
background: transparent;
border: 1px solid var(--clr-slate-800);
transition: all 0.2s ease;
}
.btn-outline-cyber-slate:hover {
background: var(--clr-slate-800);
color: #fff;
}
/* Custom Table/Icon buttons */
.btn-icon {
width: 28px;
height: 28px;
border-radius: 6px;
display: inline-flex;
align-items: center;
justify-content: center;
font-size: 0.8rem;
padding: 0;
}
/* --- CYBER BULLET & HEADER BANNER --- */
.cyber-banner {
background: linear-gradient(135deg, rgba(15, 23, 42, 0.9) 0%, rgba(30, 41, 59, 0.8) 100%);
border: 1px solid var(--clr-slate-800);
border-radius: 12px;
box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.4);
}
.shield-logo-wrap {
font-size: 1.5rem;
filter: drop-shadow(0 0 8px rgba(56, 189, 248, 0.4));
}
.logo-glow {
animation: glow-pulse 3s infinite ease-in-out;
}
/* --- THEMED CYBER TABLES --- */
.table-cyber {
--bs-table-bg: transparent;
--bs-table-color: var(--clr-slate-200);
border-collapse: separate;
border-spacing: 0 8px;
}
.table-cyber tr {
background-color: rgba(15, 23, 42, 0.3);
border-radius: 6px;
}
.table-cyber th {
border: none;
padding: 10px 15px;
text-transform: uppercase;
}
.table-cyber td {
padding: 12px 15px;
border-top: 1px solid var(--clr-slate-800);
border-bottom: 1px solid var(--clr-slate-800);
background-color: rgba(15, 23, 42, 0.3);
}
.table-cyber td:first-child {
border-left: 1px solid var(--clr-slate-800);
border-top-left-radius: 8px;
border-bottom-left-radius: 8px;
}
.table-cyber td:last-child {
border-right: 1px solid var(--clr-slate-800);
border-top-right-radius: 8px;
border-bottom-right-radius: 8px;
}
.table-cyber tr:hover td {
background-color: rgba(30, 41, 59, 0.4);
border-color: var(--clr-slate-700);
}
.domain-dot {
width: 6px;
height: 6px;
border-radius: 50%;
}
.shadow-cyan {
box-shadow: 0 0 8px var(--clr-cyan);
}
/* --- RADIAL SCORE INDEX DISPLAY --- */
.radial-score-container {
width: 140px;
height: 140px;
border-radius: 50%;
border: 5px solid var(--clr-slate-800);
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
background: rgba(7, 10, 16, 0.6);
box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.6);
}
.radial-score-container.border-cyber-green { border-color: var(--clr-green); box-shadow: 0 0 15px rgba(16, 185, 129, 0.2); }
.radial-score-container.border-cyber-blue { border-color: var(--clr-blue); box-shadow: 0 0 15px rgba(59, 130, 246, 0.2); }
.radial-score-container.border-cyber-yellow { border-color: var(--clr-yellow); box-shadow: 0 0 15px rgba(245, 158, 11, 0.2); }
.radial-score-container.border-cyber-red { border-color: var(--clr-red); box-shadow: 0 0 15px rgba(239, 68, 68, 0.2); }
.score-value {
font-size: 3rem;
font-weight: 700;
line-height: 1;
}
/* --- AUTH UI --- */
.auth-icon-wrap {
width: 60px;
height: 60px;
border-radius: 50%;
background: rgba(56, 189, 248, 0.08);
border: 1px solid rgba(56, 189, 248, 0.2);
display: flex;
align-items: center;
justify-content: center;
box-shadow: 0 0 15px rgba(56, 189, 248, 0.1);
}
/* --- UTILITY / DIAGNOSTIC BLOCKS --- */
.info-block {
background: var(--cyber-input-bg);
border: 1px solid var(--clr-slate-800);
padding: 10px 15px;
border-radius: 8px;
}
.bg-cyber-dark-alt {
background-color: #06090e;
}
.pre-scrollable::-webkit-scrollbar-thumb {
background: var(--clr-slate-800);
}
/* --- SIDEBAR ACTIVE/NAV ELEMENTS --- */
.nav-link {
color: var(--clr-slate-400);
font-weight: 500;
transition: all 0.2s ease;
}
.nav-link:hover {
color: var(--clr-cyan);
}
.active-cyber {
color: var(--clr-cyan) !important;
text-shadow: 0 0 10px rgba(56, 189, 248, 0.4);
}
.user-badge {
background-color: var(--clr-slate-800);
padding: 4px 12px;
border-radius: 30px;
font-size: 0.8rem;
border: 1px solid rgba(255, 255, 255, 0.05);
}
/* --- ALERTS --- */
.alert-cyber-success {
background-color: rgba(16, 185, 129, 0.08);
border: 1px solid rgba(16, 185, 129, 0.2) !important;
color: #d1fae5;
}
.alert-cyber-warning {
background-color: rgba(245, 158, 11, 0.08);
border: 1px solid rgba(245, 158, 11, 0.2) !important;
color: #fef3c7;
}
.alert-cyber-danger {
background-color: rgba(239, 68, 68, 0.08);
border: 1px solid rgba(239, 68, 68, 0.2) !important;
color: #fee2e2;
}
.alert-cyber-info {
background-color: rgba(59, 130, 246, 0.08);
border: 1px solid rgba(59, 130, 246, 0.2) !important;
color: #dbeafe;
}
/* --- ANIMATIONS --- */
.animate-fade-in {
animation: fadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.animate-slide-up {
animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.animate-slide-up-stagger-1 {
animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.1s forwards;
opacity: 0;
}
.animate-slide-up-stagger-2 {
animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
opacity: 0;
}
.animate-slide-up-stagger-3 {
animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
opacity: 0;
}
.animate-slide-up-stagger-4 {
animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards;
opacity: 0;
}
.pulse-indicator {
width: 8px;
height: 8px;
background-color: var(--clr-green);
border-radius: 50%;
box-shadow: 0 0 8px var(--clr-green);
animation: pulse 1.5s infinite alternate;
}
.pulse-slow {
animation: pulse 2s infinite alternate;
}
.float-animation {
animation: floating 3s ease-in-out infinite;
}
.scan-line-container {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
pointer-events: none;
overflow: hidden;
z-index: 10;
}
.scan-line {
width: 100%;
height: 2px;
background: linear-gradient(to right, transparent, var(--clr-cyan), transparent);
position: absolute;
top: 0;
left: 0;
animation: scan-vertical 3s linear infinite;
opacity: 0.5;
box-shadow: 0 0 10px var(--clr-cyan), 0 0 20px var(--clr-cyan);
}
@keyframes fadeIn {
from { opacity: 0; }
to { opacity: 1; }
}
@keyframes slideUp {
from { opacity: 0; transform: translateY(20px); }
to { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
0% { transform: scale(0.95); opacity: 0.7; box-shadow: 0 0 5px var(--clr-green); }
100% { transform: scale(1.15); opacity: 1; box-shadow: 0 0 15px var(--clr-green); }
}
@keyframes glow-pulse {
0%, 100% { filter: drop-shadow(0 0 5px rgba(56, 189, 248, 0.4)); transform: scale(1); }
50% { filter: drop-shadow(0 0 15px rgba(56, 189, 248, 0.8)); transform: scale(1.05); }
}
@keyframes floating {
0% { transform: translateY(0px); }
50% { transform: translateY(-8px); }
100% { transform: translateY(0px); }
}
@keyframes scan-vertical {
0% { top: -10%; }
100% { top: 110%; }
}
/* Glassmorphism enhancement for buttons */
.btn {
position: relative;
overflow: hidden;
}
.btn::after {
content: '';
position: absolute;
top: -50%;
left: -50%;
width: 200%;
height: 200%;
background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0) 100%);
transform: rotate(45deg);
transition: all 0.3s ease;
opacity: 0;
}
.btn:hover::after {
animation: shine 1.5s ease-out infinite;
opacity: 1;
}
@keyframes shine {
0% { left: -100%; top: -100%; }
100% { left: 100%; top: 100%; }
}