@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
    --primary: #00FF41;
    --secondary: #0D0D0D;
    --background: #000000;
    --surface: #0D0D0D;
    --text: #E0E0E0;
    --text-muted: #6B7280;
    --border: #1F2937;
    --critical: #FF0055;
    --high: #FF6B00;
    --medium: #FFD600;
    --low: #00D9FF;
    --info: #00FF41;
    --success: #00FF41;
    --warning: #FFD600;
    --danger: #FF0055;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--background);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

/* Animated background grid */
.grid-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(var(--border) 1px, transparent 1px),
        linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.3;
    z-index: 0;
    pointer-events: none;
}

/* Glow effects */
.glow-primary {
    text-shadow: 0 0 20px rgba(0, 255, 65, 0.5);
}

.glow-critical {
    text-shadow: 0 0 20px rgba(255, 0, 85, 0.5);
}

.box-glow-primary {
    box-shadow: 0 0 30px rgba(0, 255, 65, 0.2);
}

.box-glow-critical {
    box-shadow: 0 0 30px rgba(255, 0, 85, 0.2);
}

/* Cyber border animation */
@keyframes borderPulse {
    0%, 100% { border-color: var(--primary); }
    50% { border-color: rgba(0, 255, 65, 0.3); }
}

.cyber-border {
    border: 2px solid var(--primary);
    position: relative;
}

.cyber-border::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--primary), transparent, var(--primary));
    opacity: 0;
    transition: opacity 300ms;
    z-index: -1;
}

.cyber-border:hover::before {
    opacity: 0.3;
}

/* Data pulse animation */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.pulse {
    animation: pulse 2s ease-in-out infinite;
}

/* Scan line effect */
@keyframes scanline {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
}

.scanline::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    animation: scanline 3s linear infinite;
}

/* Matrix rain effect (subtle) */
@keyframes matrix-fall {
    0% { transform: translateY(-100%); opacity: 1; }
    100% { transform: translateY(100vh); opacity: 0; }
}

/* Card styles */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.5rem;
    transition: all 200ms ease;
}

.card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.card.clickable {
    cursor: pointer;
}

/* Button styles */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 200ms ease;
    font-family: 'Space Grotesk', sans-serif;
}

.btn-primary {
    background: var(--primary);
    color: var(--background);
}

.btn-primary:hover {
    background: #00CC34;
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.4);
}

.btn-secondary {
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-danger {
    background: var(--critical);
    color: white;
}

.btn-danger:hover {
    background: #CC0044;
    box-shadow: 0 0 20px rgba(255, 0, 85, 0.4);
}

/* Badge styles */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    font-family: 'Space Grotesk', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-critical {
    background: rgba(255, 0, 85, 0.2);
    color: var(--critical);
    border: 1px solid var(--critical);
}

.badge-high {
    background: rgba(255, 107, 0, 0.2);
    color: var(--high);
    border: 1px solid var(--high);
}

.badge-medium {
    background: rgba(255, 214, 0, 0.2);
    color: var(--medium);
    border: 1px solid var(--medium);
}

.badge-low {
    background: rgba(0, 217, 255, 0.2);
    color: var(--low);
    border: 1px solid var(--low);
}

.badge-info {
    background: rgba(0, 255, 65, 0.2);
    color: var(--info);
    border: 1px solid var(--info);
}

/* Progress bars */
.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--surface);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: var(--primary);
    transition: width 300ms ease;
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Table styles */
table {
    width: 100%;
    border-collapse: collapse;
}

th {
    text-align: left;
    padding: 1rem;
    border-bottom: 2px solid var(--border);
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
}

td {
    padding: 1rem;
    border-bottom: 1px solid var(--border);
}

tr:hover {
    background: rgba(0, 255, 65, 0.05);
}

/* Responsive utilities */
@media (max-width: 768px) {
    .hide-mobile {
        display: none !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus states for accessibility */
*:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

button:focus-visible,
a:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--background);
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}
