/**
 * Futuristic Threat Dashboard - Ultra-Compact Next-Gen Design
 * Glassmorphic, animated, 3D-enhanced interface - Space-optimized
 * CSP Compliant - No inline styles
 */

:root {
    --cyber-cyan: #00f3ff;
    --cyber-magenta: #ff00e5;
    --cyber-green: #00ff88;
    --cyber-gold: #ffd700;
    --cyber-purple: #8b5cf6;

    --glass-bg: rgba(15, 20, 35, 0.6);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-hover: rgba(255, 255, 255, 0.12);

    --shadow-glow: 0 0 30px rgba(0, 243, 255, 0.3);
    --shadow-neon: 0 0 20px rgba(255, 0, 229, 0.4);
    --shadow-deep: 0 8px 24px rgba(0, 0, 0, 0.5);
}

/* ========== ANIMATED CYBER BACKGROUND ========== */
body {
    background: radial-gradient(ellipse at top, #0f1419 0%, #0a0e1a 50%, #050810 100%);
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background-image:
        radial-gradient(circle at 25% 25%, rgba(0, 243, 255, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 75% 75%, rgba(255, 0, 229, 0.06) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(0, 255, 136, 0.04) 0%, transparent 50%);
    animation: cosmicDrift 45s ease-in-out infinite;
    z-index: 0;
    pointer-events: none;
}

@keyframes cosmicDrift {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(-8%, -8%) rotate(120deg); }
    66% { transform: translate(8%, -8%) rotate(240deg); }
}

/* ========== DASHBOARD CONTAINER ========== */
.dashboard-container {
    position: relative;
    z-index: 1;
    max-width: 1920px;
    margin: 0 auto;
    padding: 6px;
}

/* ========== HEADER - ULTRA COMPACT ========== */
.dashboard-header {
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 10px 15px;
    margin-bottom: 8px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-deep);
}

.dashboard-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg,
        var(--cyber-cyan) 0%,
        var(--cyber-magenta) 50%,
        var(--cyber-green) 100%);
    animation: headerPulse 3s ease-in-out infinite;
}

@keyframes headerPulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

.header-content {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.header-title h1 {
    font-size: 1.3rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--cyber-cyan), var(--cyber-magenta), var(--cyber-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(0, 243, 255, 0.5);
    letter-spacing: 0.5px;
    margin: 0;
    line-height: 1.3;
}

.header-subtitle {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 2px;
}

/* Header Stats - Removed, all stats moved to card below */

/* ========== CONTROLS BAR - SLEEK ========== */
.controls-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    padding: 8px 12px;
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.filter-select {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.filter-select:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--cyber-cyan);
}

.refresh-button {
    background: linear-gradient(135deg, var(--cyber-cyan), var(--cyber-magenta));
    border: none;
    color: white;
    padding: 6px 15px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.refresh-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

/* ========== DASHBOARD GRID - OPTIMIZED ========== */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
    margin-bottom: 8px;
}

/* ========== CARDS - GLASSMORPHIC 3D ========== */
.threat-card {
    background: var(--glass-bg);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 8px 10px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.threat-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg,
        transparent 30%,
        rgba(0, 243, 255, 0.1) 50%,
        transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
    border-radius: 8px;
}

.threat-card:hover {
    transform: translateY(-3px) rotateX(1deg);
    border-color: rgba(0, 243, 255, 0.3);
    box-shadow: var(--shadow-glow), var(--shadow-deep);
}

.threat-card:hover::before {
    opacity: 1;
    animation: borderSweep 2s linear infinite;
}

@keyframes borderSweep {
    0% { transform: translateX(-100%) rotate(0deg); }
    100% { transform: translateX(100%) rotate(360deg); }
}

/* System Statistics Card - Horizontal Layout */
.stats-card-section {
    margin-bottom: 8px;
}

.threat-card.stats-compact-card {
    padding: 8px 12px;
    background: linear-gradient(135deg,
        rgba(0, 243, 255, 0.06) 0%,
        rgba(112, 0, 255, 0.04) 100%);
}

.threat-card.stats-compact-card .card-header {
    margin-bottom: 6px;
    padding-bottom: 5px;
}

.threat-card.stats-compact-card .card-title {
    font-size: 0.75rem;
}

.stats-grid.stats-horizontal {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 6px;
}

.stat-box.stat-clickable {
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
}

.stat-box.stat-clickable:hover {
    transform: translateY(-3px) scale(1.03);
    border-color: var(--cyber-cyan);
    box-shadow: 0 0 25px rgba(0, 243, 255, 0.4);
}

.stat-box.stat-clickable:active {
    transform: translateY(-1px) scale(1.01);
}

.stat-box.stat-clickable.terminal-active .stat-label {
    font-family: 'Courier New', 'Monaco', 'Consolas', monospace;
    color: var(--cyber-green);
    text-shadow: 0 0 8px rgba(0, 255, 136, 0.8);
    animation: terminalBlink 1s ease-in-out;
}

.stat-box.stat-clickable.terminal-active::before {
    content: '>';
    position: absolute;
    left: 3px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--cyber-green);
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    animation: terminalCursor 1s step-end infinite;
}

@keyframes terminalBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

@keyframes terminalCursor {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0.3; }
}

/* ========== CARD HEADERS - MINIMAL ========== */
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
    padding-bottom: 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.card-title {
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 5px;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-icon {
    font-size: 0.9rem;
    filter: drop-shadow(0 0 6px rgba(0, 243, 255, 0.6));
}

.card-badge {
    padding: 2px 6px;
    border-radius: 8px;
    font-size: 0.55rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.badge-critical {
    background: rgba(220, 38, 38, 0.2);
    color: #ff4444;
    border: 1px solid #ff4444;
    box-shadow: 0 0 12px rgba(220, 38, 38, 0.4);
}

.badge-medium {
    background: rgba(245, 158, 11, 0.2);
    color: #ffaa00;
    border: 1px solid #ffaa00;
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.4);
}

.badge-info {
    background: rgba(59, 130, 246, 0.2);
    color: var(--cyber-cyan);
    border: 1px solid var(--cyber-cyan);
    box-shadow: 0 0 12px rgba(59, 130, 246, 0.4);
}

.badge-high {
    background: rgba(234, 88, 12, 0.2);
    color: #ff6600;
    border: 1px solid #ff6600;
}

/* ========== STATS GRID - ULTRA COMPACT ========== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
}

/* Honeypot Card - Immersive Analytical Presentation */
.honeypot-card {
    padding: 8px 10px !important;
}

.honeypot-card .card-header {
    margin-bottom: 5px !important;
}

/* Honeypot Overview - Enhanced Analytics Bar */
.honeypot-overview {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    padding: 6px 10px;
    background: linear-gradient(135deg,
        rgba(139, 92, 246, 0.12) 0%,
        rgba(112, 0, 255, 0.08) 100%);
    border-radius: 6px;
    margin-bottom: 8px;
    border: 1px solid rgba(139, 92, 246, 0.25);
}

.honeypot-stat-inline {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.honeypot-stat-inline .stat-value {
    font-size: 0.95rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--cyber-purple), var(--cyber-magenta));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
}

.honeypot-stat-inline .stat-label {
    font-size: 0.5rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    line-height: 1.1;
}

/* Honeypot Analytics Summary */
.honeypot-analytics-summary {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 6px;
    padding: 5px 8px;
    background: rgba(0, 243, 255, 0.05);
    border: 1px solid rgba(0, 243, 255, 0.15);
    border-radius: 6px;
    margin-bottom: 8px;
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.7);
}

.honeypot-summary-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.honeypot-summary-label {
    color: rgba(255, 255, 255, 0.5);
}

.honeypot-summary-value {
    font-weight: 700;
    color: var(--cyber-cyan);
}

/* Honeypot Controls */
.honeypot-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
    padding: 3px 5px;
}

.honeypot-view-toggle {
    display: flex;
    gap: 5px;
}

.honeypot-toggle-btn {
    padding: 3px 8px;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 4px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.55rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.honeypot-toggle-btn:hover {
    background: rgba(139, 92, 246, 0.2);
    border-color: var(--cyber-purple);
    color: white;
}

.honeypot-toggle-btn.active {
    background: linear-gradient(135deg, var(--cyber-purple), var(--cyber-magenta));
    border-color: var(--cyber-purple);
    color: white;
    font-weight: 700;
}

.honeypot-endpoint-count {
    font-size: 0.55rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Honeypot Endpoints - Immersive Analytical Cards */
.honeypot-endpoints-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 5px;
    margin-top: 0;
    max-height: 600px;
    overflow-y: auto;
    padding-right: 3px;
}

.honeypot-endpoints-grid.collapsed {
    max-height: 320px;
}

.honeypot-endpoint-card {
    background: linear-gradient(135deg,
        rgba(139, 92, 246, 0.1) 0%,
        rgba(112, 0, 255, 0.08) 100%);
    border: 1px solid rgba(139, 92, 246, 0.25);
    border-radius: 6px;
    padding: 6px 10px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.honeypot-endpoint-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--cyber-purple), var(--cyber-magenta));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.honeypot-endpoint-card:hover {
    transform: translateY(-2px);
    border-color: var(--cyber-purple);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
}

.honeypot-endpoint-card:hover::before {
    opacity: 1;
}

.honeypot-endpoint-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.honeypot-endpoint-path {
    font-family: 'Courier New', monospace;
    font-size: 0.7rem;
    color: var(--cyber-cyan);
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

.honeypot-trigger-count {
    font-size: 0.9rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ff4444, #ff6600);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.honeypot-endpoint-details {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    margin-top: 4px;
}

.honeypot-detail-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    background: rgba(0, 0, 0, 0.2);
    padding: 3px 5px;
    border-radius: 4px;
}

.honeypot-detail-label {
    font-size: 0.48rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    line-height: 1;
}

.honeypot-detail-value {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 700;
    line-height: 1;
}

/* Visual Distribution Bar */
.honeypot-distribution-bar {
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    margin-top: 4px;
    overflow: hidden;
}

.honeypot-distribution-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--cyber-purple), var(--cyber-magenta));
    transition: width 0.3s ease;
    box-shadow: 0 0 6px rgba(139, 92, 246, 0.6);
}

/* Attack Pattern Indicator */
.honeypot-pattern-indicator {
    font-size: 0.5rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 3px;
    font-style: italic;
}

.honeypot-threat-indicator {
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.threat-critical-honey {
    background: rgba(220, 38, 38, 0.2);
    color: #ff4444;
    border: 1px solid #ff4444;
}

.threat-high-honey {
    background: rgba(234, 88, 12, 0.2);
    color: #ff6600;
    border: 1px solid #ff6600;
}

.threat-medium-honey {
    background: rgba(245, 158, 11, 0.2);
    color: #ffaa00;
    border: 1px solid #ffaa00;
}

.threat-low-honey {
    background: rgba(34, 197, 94, 0.2);
    color: var(--cyber-green);
    border: 1px solid var(--cyber-green);
}

.stat-box {
    background: linear-gradient(135deg,
        rgba(0, 243, 255, 0.08) 0%,
        rgba(112, 0, 255, 0.06) 100%);
    border: 1px solid rgba(0, 243, 255, 0.2);
    border-radius: 6px;
    padding: 6px 8px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.stat-box::after {
    content: '';
    position: absolute;
    top: -100%;
    left: -100%;
    width: 300%;
    height: 300%;
    background: linear-gradient(45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.08) 50%,
        transparent 70%);
    transform: rotate(45deg);
    animation: shimmerSlow 4s infinite;
}

@keyframes shimmerSlow {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.stat-box:hover {
    transform: translateY(-2px) scale(1.01);
    border-color: var(--cyber-cyan);
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.3);
}

.stat-value {
    font-size: 1.2rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--cyber-cyan), var(--cyber-magenta));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    line-height: 1;
    margin-bottom: 3px;
    position: relative;
    z-index: 1;
}

.stat-value.text-critical {
    background: linear-gradient(135deg, #ff4444, #ff0000);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-value.text-high {
    background: linear-gradient(135deg, #ff6600, #ff8844);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-value.text-medium {
    background: linear-gradient(135deg, #ffaa00, #ffcc66);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    font-size: 0.55rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: rgba(255, 255, 255, 0.6);
    position: relative;
    z-index: 1;
    line-height: 1.1;
}

/* ========== THREAT ITEMS - 3D ENHANCED ========== */
.threat-list {
    max-height: 350px;
    overflow-y: auto;
    padding-right: 3px;
}

.threat-item {
    background: linear-gradient(135deg,
        rgba(30, 35, 60, 0.8) 0%,
        rgba(20, 25, 45, 0.8) 100%);
    border-left: 2px solid var(--cyber-green);
    border-radius: 6px;
    padding: 5px 8px;
    margin-bottom: 5px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    font-size: 0.75rem;
}

.threat-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 100%;
    background: currentColor;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.threat-item:hover {
    transform: translateX(6px) rotateY(1deg);
    box-shadow: -3px 3px 15px rgba(0, 0, 0, 0.3),
                0 0 15px rgba(0, 243, 255, 0.15);
    border-left-width: 3px;
}

.threat-item:hover::before {
    opacity: 1;
}

.threat-item-critical {
    border-left-color: #ff4444;
    background: linear-gradient(135deg,
        rgba(220, 38, 38, 0.12) 0%,
        rgba(150, 20, 20, 0.08) 100%);
}

.threat-item-critical:hover {
    box-shadow: -3px 3px 15px rgba(0, 0, 0, 0.3),
                0 0 20px rgba(255, 68, 68, 0.3);
}

.threat-item-high {
    border-left-color: #ff6600;
    background: linear-gradient(135deg,
        rgba(234, 88, 12, 0.1) 0%,
        rgba(180, 60, 0, 0.06) 100%);
}

.threat-item-medium {
    border-left-color: #ffaa00;
    background: linear-gradient(135deg,
        rgba(245, 158, 11, 0.08) 0%,
        rgba(200, 120, 0, 0.05) 100%);
}

/* ========== TIMELINE - SLEEK ========== */
.timeline-container {
    position: relative;
    padding: 10px;
    background: rgba(15, 20, 35, 0.4);
    border-radius: 8px;
    margin-bottom: 8px;
}

#timeline-chart {
    width: 100% !important;
    height: 200px !important;
}

.time-range-selector {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: white;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.7rem;
    transition: all 0.3s ease;
}

.time-range-selector:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--cyber-cyan);
}

/* ========== DASHBOARD ROW - 2 COLUMNS ========== */
.dashboard-row {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 6px;
    margin-bottom: 8px;
}

/* ========== TABLES - COMPACT ========== */
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.7rem;
}

.data-table thead {
    background: rgba(0, 243, 255, 0.08);
    border-bottom: 2px solid rgba(0, 243, 255, 0.3);
}

.data-table th {
    padding: 5px 6px;
    text-align: left;
    font-weight: 700;
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.data-table td {
    padding: 5px 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: white;
}

.data-table tbody tr {
    transition: all 0.2s ease;
}

.data-table tbody tr:hover {
    background: rgba(0, 243, 255, 0.08);
    transform: translateX(2px);
}

/* ========== STATUS INDICATORS ========== */
.system-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.status-operational {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid var(--cyber-green);
    color: var(--cyber-green);
    box-shadow: 0 0 12px rgba(0, 255, 136, 0.3);
}

.status-pulse {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: currentColor;
    animation: statusPulse 2s ease-in-out infinite;
}

@keyframes statusPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(1.3); }
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1200px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-row {
        grid-template-columns: 1fr;
    }

    .stats-grid.stats-horizontal {
        grid-template-columns: repeat(4, 1fr);
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .honeypot-endpoints-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }

    .honeypot-overview {
        flex-wrap: wrap;
        gap: 10px;
    }
}

@media (max-width: 768px) {
    .dashboard-container {
        padding: 5px;
    }

    .stats-grid.stats-horizontal {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .honeypot-endpoints-grid {
        grid-template-columns: 1fr;
    }

    .honeypot-overview {
        flex-direction: column;
        gap: 6px;
        align-items: flex-start;
    }

    .honeypot-endpoint-path {
        max-width: 150px;
    }
}

/* ========== SCROLLBAR STYLING ========== */
::-webkit-scrollbar {
    width: 5px;
    height: 5px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--cyber-cyan), var(--cyber-magenta));
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--cyber-magenta), var(--cyber-green));
}

/* ========== UTILITY ANIMATIONS ========== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.threat-card {
    animation: fadeInUp 0.4s ease-out backwards;
}

.threat-card:nth-child(1) { animation-delay: 0.05s; }
.threat-card:nth-child(2) { animation-delay: 0.1s; }
.threat-card:nth-child(3) { animation-delay: 0.15s; }
.threat-card:nth-child(4) { animation-delay: 0.2s; }
.threat-card:nth-child(5) { animation-delay: 0.25s; }
