/* =======================================================
   SOC VISUAL ANALYTICS DASHBOARD
   Dark SOC Theme - Portfolio Edition
   ======================================================= */

/* ---------- RESET ---------- */

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

html{
    scroll-behavior:smooth;
}

body{
    font-family:Inter,Segoe UI,Arial,sans-serif;
    background:#0b1220;
    color:#e5e7eb;
    line-height:1.6;
    overflow-x:hidden;
}

/* ---------- SCROLLBAR ---------- */

::-webkit-scrollbar{
    width:10px;
}

::-webkit-scrollbar-track{
    background:#111827;
}

::-webkit-scrollbar-thumb{
    background:#374151;
    border-radius:20px;
}

/* ---------- SECTION SPACING ---------- */

section{
    max-width:1400px;
    margin:auto;
    padding:40px 20px;
}

/* ---------- GLASS CARD ---------- */

.overview-card,
.chart-card,
.incident-card,
.final-card,
.advanced-card,
.metric-card,
.kpi-card,
.status-box{
    background:rgba(17,24,39,.75);
    backdrop-filter:blur(18px);
    -webkit-backdrop-filter:blur(18px);

    border:1px solid rgba(255,255,255,.08);

    border-radius:20px;

    box-shadow:
    0 10px 30px rgba(0,0,0,.35);
}

/* ---------- HEADER ---------- */

.dashboard-header{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    gap:25px;
    flex-wrap:wrap;
    margin-bottom:30px;
}

.dashboard-badge{
    display:inline-block;
    padding:8px 16px;
    border-radius:50px;

    font-size:12px;
    letter-spacing:1px;
    font-weight:700;

    background:rgba(59,130,246,.15);
    color:#60a5fa;
}

.header-content h1{
    font-size:3rem;
    margin-top:15px;
    margin-bottom:15px;
}

.header-content p{
    color:#9ca3af;
    max-width:700px;
}

.status-box{
    min-width:260px;
    padding:25px;
}

.status-item{
    margin-bottom:15px;
}

.status-item span{
    display:block;
    font-size:13px;
    color:#9ca3af;
    margin-bottom:5px;
}

.status-green{
    color:#22c55e;
}

/* ---------- OVERVIEW ---------- */

.overview-card{
    padding:30px;
    margin-bottom:30px;
}

.overview-card h2{
    margin-bottom:15px;
}

.overview-card p{
    color:#cbd5e1;
    margin-bottom:15px;
}

/* ---------- KPI CARDS ---------- */

.kpi-grid{
    display:grid;
    grid-template-columns:
    repeat(auto-fit,minmax(220px,1fr));
    gap:20px;
}

.kpi-card{
    padding:25px;
    transition:.3s;
}

.kpi-card:hover{
    transform:translateY(-4px);
}

.kpi-card span{
    display:block;
    color:#94a3b8;
    margin-bottom:10px;
}

.kpi-card h3{
    font-size:2rem;
}

.kpi-card.critical h3{
    color:#ef4444;
}

/* ---------- CHART SECTIONS ---------- */

.analytics-section,
.threat-analytics-section{
    display:grid;
    grid-template-columns:
    repeat(auto-fit,minmax(450px,1fr));
    gap:25px;
    margin-top:40px;
}

.chart-card{
    padding:25px;
}

.card-header{
    margin-bottom:20px;
}

.card-header h2{
    margin-bottom:8px;
}

.card-header p{
    color:#9ca3af;
}

.chart-card canvas{
    width:100% !important;
    height:350px !important;
}

/* ---------- INCIDENT TABLE ---------- */

.incident-card{
    padding:25px;
    margin-bottom:25px;
}

.table-responsive{
    overflow-x:auto;
}

.incident-table{
    width:100%;
    border-collapse:collapse;
}

.incident-table th{
    color:#60a5fa;
    font-weight:600;
}

.incident-table th,
.incident-table td{
    padding:15px;
    border-bottom:1px solid rgba(255,255,255,.08);
}

.incident-table tr:hover{
    background:rgba(255,255,255,.03);
}

/* ---------- METRIC GRID ---------- */

.incident-metrics-grid{
    display:grid;
    grid-template-columns:
    repeat(auto-fit,minmax(220px,1fr));
    gap:20px;
    margin-bottom:25px;
}

.metric-card{
    padding:25px;
    text-align:center;
}

.metric-card span{
    display:block;
    color:#9ca3af;
    margin-bottom:10px;
}

.metric-card h3{
    font-size:2rem;
}

/* ---------- PERFORMANCE ---------- */

.performance-grid{
    display:grid;
    grid-template-columns:
    repeat(auto-fit,minmax(250px,1fr));
    gap:20px;
}

.performance-item{
    background:#111827;
    padding:20px;
    border-radius:15px;
}

.performance-item span{
    display:block;
    color:#94a3b8;
    margin-bottom:8px;
}

.performance-item strong{
    font-size:1.4rem;
}

/* ---------- FEEDS ---------- */

.incident-feed,
.notification-feed{
    display:flex;
    flex-direction:column;
    gap:15px;
}

.feed-item,
.notification-item{
    background:#111827;
    padding:18px;
    border-radius:14px;
}

.feed-item span{
    color:#94a3b8;
    font-size:13px;
}

/* ---------- RECOMMENDATIONS ---------- */

.recommendation-list{
    padding-left:20px;
}

.recommendation-list li{
    margin-bottom:12px;
}

/* ---------- PROJECT DETAILS ---------- */

.project-details-grid{
    display:grid;
    grid-template-columns:
    repeat(auto-fit,minmax(250px,1fr));
    gap:20px;
}

.project-details-grid span{
    display:block;
    color:#94a3b8;
    margin-bottom:8px;
}

/* ---------- SEARCH ---------- */

.soc-search{
    width:100%;
    padding:16px;
    border-radius:14px;

    border:1px solid rgba(255,255,255,.1);

    background:#111827;
    color:#fff;
}

/* ---------- SHIFT / ASSET ---------- */

.shift-grid,
.asset-grid,
.risk-grid{
    display:grid;
    grid-template-columns:
    repeat(auto-fit,minmax(220px,1fr));
    gap:20px;
}

.shift-item,
.asset-item{
    background:#111827;
    padding:20px;
    border-radius:15px;
}

.shift-item span,
.asset-item span{
    display:block;
    color:#94a3b8;
    margin-bottom:10px;
}

/* ---------- RISK CARDS ---------- */

.risk-card{
    padding:20px;
    border-radius:15px;
    text-align:center;
}

.critical-risk{
    background:rgba(239,68,68,.15);
}

.high-risk{
    background:rgba(245,158,11,.15);
}

.medium-risk{
    background:rgba(59,130,246,.15);
}

.low-risk{
    background:rgba(34,197,94,.15);
}

.risk-card h3{
    font-size:2rem;
}

/* ---------- FOOTER ---------- */

.dashboard-footer{
    text-align:center;
    padding:50px 20px;
    border-top:1px solid rgba(255,255,255,.08);
}

.dashboard-footer p{
    color:#9ca3af;
    margin-top:10px;
}

/* ---------- RESPONSIVE ---------- */

@media(max-width:992px){

    .header-content h1{
        font-size:2.4rem;
    }

}

@media(max-width:768px){

    section{
        padding:25px 15px;
    }

    .header-content h1{
        font-size:2rem;
    }

    .analytics-section,
    .threat-analytics-section{
        grid-template-columns:1fr;
    }

    .chart-card canvas{
        height:280px !important;
    }

    .status-box{
        width:100%;
    }

    .incident-table{
        min-width:700px;
    }

}

@media(max-width:480px){

    .header-content h1{
        font-size:1.7rem;
    }

    .kpi-card h3{
        font-size:1.6rem;
    }

    .metric-card h3{
        font-size:1.6rem;
    }

}
