/* ========================================
   BLACKBOX FORENSICS - SECURITY DASHBOARD STYLES
   Mission control inspired design
   ======================================== */

/* Dashboard Container */
.security-dashboard {
    background: linear-gradient(135deg, rgba(26, 32, 44, 0.9), rgba(45, 55, 72, 0.8));
    border: 1px solid rgba(66, 153, 225, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.security-dashboard::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #4299e1, transparent);
    animation: scan-line 3s linear infinite;
}

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

/* Metric Cards */
.metric-card {
    background: linear-gradient(135deg, rgba(26, 32, 44, 0.8), rgba(45, 55, 72, 0.6));
    border: 1px solid rgba(66, 153, 225, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.metric-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(66, 153, 225, 0.1), transparent);
    transition: left 0.5s;
}

.metric-card:hover::before {
    left: 100%;
}

.metric-card:hover {
    border-color: rgba(66, 153, 225, 0.5);
    /* transform: translateY(-5px) scale(1.02); */
    box-shadow: 0 15px 35px rgba(66, 153, 225, 0.2);
}

/* Metric Icons */
.metric-icon {
    font-size: 2rem;
    opacity: 0.8;
}

.metric-icon i {
    filter: drop-shadow(0 0 10px currentColor);
}

/* Metric Values */
.metric-value {
    font-size: 2.5rem;
    font-weight: bold;
    color: #e2e8f0;
    text-shadow: 0 0 20px rgba(66, 153, 225, 0.5);
    font-family: 'Courier New', monospace;
    letter-spacing: -1px;
}

.metric-label {
    font-size: 0.875rem;
    color: #a0aec0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.metric-trend {
    font-size: 0.75rem;
    margin-top: 0.5rem;
}

/* Activity Feed */
.activity-feed {
    background: linear-gradient(135deg, rgba(26, 32, 44, 0.9), rgba(45, 55, 72, 0.7));
    border: 1px solid rgba(66, 153, 225, 0.2);
    max-height: 300px;
    overflow-y: auto;
}

.activity-log {
    max-height: 200px;
    overflow-y: auto;
}

.activity-log::-webkit-scrollbar {
    width: 4px;
}

.activity-log::-webkit-scrollbar-track {
    background: rgba(45, 55, 72, 0.5);
    border-radius: 2px;
}

.activity-log::-webkit-scrollbar-thumb {
    background: rgba(66, 153, 225, 0.5);
    border-radius: 2px;
}

.activity-log::-webkit-scrollbar-thumb:hover {
    background: rgba(66, 153, 225, 0.7);
}

.activity-item {
    padding: 0.75rem;
    border-radius: 0.5rem;
    margin-bottom: 0.5rem;
    background: rgba(45, 55, 72, 0.3);
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
}

.activity-item:hover {
    background: rgba(66, 153, 225, 0.1);
    border-left-color: #4299e1;
    /* transform: translateX(5px); - REMOVED */
}

.activity-icon {
    width: 30px;
    text-align: center;
}

.activity-text {
    line-height: 1.4;
}

.activity-time {
    opacity: 0.7;
    font-family: 'Courier New', monospace;
}

/* Status Indicators */
.status-indicators {
    background: linear-gradient(135deg, rgba(26, 32, 44, 0.8), rgba(45, 55, 72, 0.6));
    border: 1px solid rgba(66, 153, 225, 0.2);
}

.status-item {
    padding: 0.5rem 0;
    transition: all 0.3s ease;
}

/* .status-item:hover {
    transform: translateX(5px);
} */

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
    box-shadow: 0 0 10px currentColor;
}

@keyframes pulse-dot {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.1);
    }
}

/* Real-time Pulse Effect */
.fa-pulse {
    animation: pulse-icon 1.5s ease-in-out infinite;
}

@keyframes pulse-icon {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.05);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .metric-value {
        font-size: 2rem;
    }
    
    .metric-icon {
        font-size: 1.5rem;
    }
    
    .security-dashboard {
        margin: 1rem;
    }
    
    .activity-feed {
        max-height: 250px;
    }
    
    .activity-log {
        max-height: 150px;
    }
}

/* Loading States */
.metric-card.loading {
    background: linear-gradient(90deg, 
        rgba(45, 55, 72, 0.6) 25%, 
        rgba(66, 153, 225, 0.1) 50%, 
        rgba(45, 55, 72, 0.6) 75%
    );
    background-size: 200% 100%;
    animation: loading-shimmer 1.5s infinite;
}

@keyframes loading-shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Enhanced Glassmorphism for Dashboard */
.security-dashboard.glass {
    background: rgba(26, 32, 44, 0.7);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Cyber Grid Background Effect */
.security-dashboard::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(66, 153, 225, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(66, 153, 225, 0.03) 1px, transparent 1px);
    background-size: 20px 20px;
    pointer-events: none;
    z-index: -1;
}

/* Accessibility Enhancements */
@media (prefers-reduced-motion: reduce) {
    .metric-card,
    .activity-item,
    .status-dot,
    .security-dashboard::before {
        animation: none;
        transition: none;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .security-dashboard {
        background: #000;
        border: 2px solid #fff;
    }
    
    .metric-card {
        background: #111;
        border: 1px solid #fff;
    }
    
    .metric-value {
        color: #fff;
        text-shadow: none;
    }
}

/* Print Styles */
@media print {
    .security-dashboard {
        background: #fff !important;
        color: #000 !important;
        box-shadow: none !important;
    }
    
    .metric-card {
        background: #f5f5f5 !important;
        border: 1px solid #ccc !important;
    }
    
    .activity-feed {
        display: none;
    }
}
