/* Dashboard Specific Styles */

.dashboard-header {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.9), rgba(0, 50, 0, 0.8)), url('ai_dashboard_background.png');
    background-size: cover;
    background-position: center;
    padding: 120px 0 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.dashboard-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
}

.dashboard-title {
    position: relative;
    z-index: 2;
}

.dashboard-title h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #00ff00, #00cc00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(0, 255, 0, 0.5);
}

.dashboard-title p {
    font-size: 1.3rem;
    color: #cccccc;
    margin-bottom: 2rem;
}

.dashboard-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #00ff00;
    box-shadow: 0 0 10px #00ff00;
    animation: pulse 2s infinite;
}

.status-indicator.active {
    background: #00ff00;
    box-shadow: 0 0 15px #00ff00;
}

.status-text {
    color: #00ff00;
    font-weight: bold;
    font-size: 1.1rem;
}

.last-update {
    color: #888;
    font-size: 0.9rem;
}

/* Dashboard Grid */
.dashboard-grid {
    padding: 40px 0;
    background: #000;
}

.dashboard-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.dashboard-card {
    background: linear-gradient(145deg, rgba(0, 20, 0, 0.8), rgba(0, 40, 0, 0.6));
    border: 1px solid #00ff00;
    border-radius: 15px;
    padding: 0;
    box-shadow: 0 10px 30px rgba(0, 255, 0, 0.1);
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
}

.dashboard-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #00ff00, #00cc00, #00ff00);
    animation: glow-border 3s ease-in-out infinite;
}

.dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 255, 0, 0.2);
    border-color: #00cc00;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid rgba(0, 255, 0, 0.2);
    background: rgba(0, 0, 0, 0.3);
}

.card-header h3 {
    color: #00ff00;
    font-size: 1.3rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-header i {
    font-size: 1.2rem;
}

.card-controls {
    display: flex;
    gap: 10px;
}

.refresh-btn, .clear-logs-btn {
    background: rgba(0, 255, 0, 0.1);
    border: 1px solid #00ff00;
    color: #00ff00;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.refresh-btn:hover, .clear-logs-btn:hover {
    background: rgba(0, 255, 0, 0.2);
    transform: scale(1.05);
}

.card-content {
    padding: 25px;
}

/* Threat Overview */
.threat-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.threat-stat {
    text-align: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    border: 1px solid rgba(0, 255, 0, 0.2);
}

.stat-value {
    font-size: 2.5rem;
    font-weight: bold;
    color: #00ff00;
    margin-bottom: 10px;
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
}

.stat-label {
    color: #cccccc;
    font-size: 0.9rem;
}

/* Network Activity Chart */
.network-activity canvas {
    width: 100%;
    height: 200px;
}

/* Anomaly Detection */
.anomaly-status {
    display: flex;
    align-items: center;
    gap: 10px;
}

.anomaly-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #00ff00;
    animation: pulse 1.5s infinite;
}

.anomaly-indicator.warning {
    background: #ffaa00;
    box-shadow: 0 0 10px #ffaa00;
}

.anomaly-indicator.critical {
    background: #ff0000;
    box-shadow: 0 0 10px #ff0000;
}

.anomaly-chart-container {
    height: 200px;
    margin-bottom: 20px;
}

.anomaly-alerts {
    max-height: 150px;
    overflow-y: auto;
}

.anomaly-alert {
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 5px;
    border-left: 4px solid;
    background: rgba(0, 0, 0, 0.3);
}

.anomaly-alert.info {
    border-left-color: #00ff00;
}

.anomaly-alert.warning {
    border-left-color: #ffaa00;
}

.anomaly-alert.critical {
    border-left-color: #ff0000;
}

.alert-time {
    color: #888;
    font-size: 0.8rem;
}

.alert-message {
    color: #fff;
    margin-top: 5px;
}

/* Threat Intelligence */
.intelligence-feed {
    max-height: 300px;
    overflow-y: auto;
}

.intelligence-item {
    padding: 15px;
    margin-bottom: 15px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    border-left: 3px solid #00ff00;
}

.intel-source {
    color: #00ff00;
    font-weight: bold;
    font-size: 0.9rem;
}

.intel-content {
    color: #fff;
    margin-top: 8px;
    line-height: 1.4;
}

.intel-timestamp {
    color: #888;
    font-size: 0.8rem;
    margin-top: 8px;
}

/* Live Logs */
.log-controls {
    display: flex;
    gap: 10px;
    align-items: center;
}

.log-controls select {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid #00ff00;
    color: #00ff00;
    padding: 5px 10px;
    border-radius: 5px;
}

.logs-container {
    height: 300px;
    overflow-y: auto;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 8px;
    padding: 15px;
    font-family: 'Courier New', monospace;
}

.log-entry {
    margin-bottom: 8px;
    padding: 5px;
    border-radius: 3px;
    font-size: 0.9rem;
    line-height: 1.3;
}

.log-entry.info {
    color: #00ff00;
}

.log-entry.warning {
    color: #ffaa00;
    background: rgba(255, 170, 0, 0.1);
}

.log-entry.critical {
    color: #ff0000;
    background: rgba(255, 0, 0, 0.1);
}

.log-timestamp {
    color: #888;
    margin-right: 10px;
}

/* Geographic Threat Map */
.threat-map-container {
    height: 300px;
    position: relative;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 500"><rect width="1000" height="500" fill="%23001100"/><path d="M100,100 Q200,50 300,100 T500,100 Q600,80 700,100 T900,100" stroke="%2300ff00" stroke-width="2" fill="none" opacity="0.3"/></svg>') center/cover;
    border-radius: 10px;
    overflow: hidden;
}

.world-map {
    width: 100%;
    height: 100%;
    position: relative;
    background: linear-gradient(45deg, rgba(0, 20, 0, 0.8), rgba(0, 40, 0, 0.6));
}

.threat-marker {
    position: absolute;
    width: 12px;
    height: 12px;
    background: #ff0000;
    border-radius: 50%;
    box-shadow: 0 0 15px #ff0000;
    animation: threat-pulse 2s infinite;
    cursor: pointer;
}

.threat-marker::after {
    content: attr(data-threats);
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.7rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.threat-marker:hover::after {
    opacity: 1;
}

/* System Performance */
.performance-metrics {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.metric {
    display: flex;
    align-items: center;
    gap: 15px;
}

.metric-label {
    color: #00ff00;
    font-weight: bold;
    min-width: 120px;
}

.metric-bar {
    flex: 1;
    height: 20px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(0, 255, 0, 0.3);
}

.metric-fill {
    height: 100%;
    background: linear-gradient(90deg, #00ff00, #00cc00);
    border-radius: 10px;
    transition: width 0.5s ease;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
}

.metric-value {
    color: #00ff00;
    font-weight: bold;
    min-width: 80px;
    text-align: right;
}

/* AI Analysis */
.ai-insights {
    max-height: 250px;
    overflow-y: auto;
}

.ai-insight {
    padding: 15px;
    margin-bottom: 15px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    border-left: 3px solid #00ff00;
}

.insight-title {
    color: #00ff00;
    font-weight: bold;
    margin-bottom: 8px;
}

.insight-content {
    color: #fff;
    line-height: 1.4;
}

.insight-confidence {
    color: #888;
    font-size: 0.8rem;
    margin-top: 8px;
}

/* Animations */
@keyframes glow-border {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

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

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Responsive Design */
@media (max-width: 768px) {
    .dashboard-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .dashboard-title h1 {
        font-size: 2.5rem;
    }
    
    .threat-stats {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .metric {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .metric-label {
        min-width: auto;
    }
    
    .card-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
}

/* Scrollbar Styling */
.logs-container::-webkit-scrollbar,
.anomaly-alerts::-webkit-scrollbar,
.intelligence-feed::-webkit-scrollbar,
.ai-insights::-webkit-scrollbar {
    width: 8px;
}

.logs-container::-webkit-scrollbar-track,
.anomaly-alerts::-webkit-scrollbar-track,
.intelligence-feed::-webkit-scrollbar-track,
.ai-insights::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
}

.logs-container::-webkit-scrollbar-thumb,
.anomaly-alerts::-webkit-scrollbar-thumb,
.intelligence-feed::-webkit-scrollbar-thumb,
.ai-insights::-webkit-scrollbar-thumb {
    background: #00ff00;
    border-radius: 4px;
}

.logs-container::-webkit-scrollbar-thumb:hover,
.anomaly-alerts::-webkit-scrollbar-thumb:hover,
.intelligence-feed::-webkit-scrollbar-thumb:hover,
.ai-insights::-webkit-scrollbar-thumb:hover {
    background: #00cc00;
}

