/* =====================================================
   DASHBOARD.CSS
   DocShield AI – Premium Enterprise Dashboard Styling
   Top 1% Hackathon Winning Admin Panel Design
===================================================== */


/* =====================================================
   DASHBOARD LAYOUT
===================================================== */

.dashboard-layout {
    display: flex;
    min-height: 100vh;
    background: transparent;
}


/* =====================================================
   MAIN CONTENT AREA
===================================================== */

.dashboard-main {
    flex: 1;
    padding: 32px;
    margin-left: 280px;
    transition: all 0.35s ease;
}

.dashboard-content {
    width: 100%;
}


/* =====================================================
   TOP DASHBOARD BAR
===================================================== */

.dashboard-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 32px;
    padding: 22px 28px;
    border-radius: 24px;
    background: rgba(255,255,255,0.04);
    backdrop-filter: blur(18px);
    border: 1px solid rgba(255,255,255,0.06);
}

.dashboard-title h1 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 6px;
}

.dashboard-title p {
    font-size: 14px;
    opacity: 0.75;
}

.dashboard-actions {
    display: flex;
    gap: 14px;
    align-items: center;
}


/* =====================================================
   METRIC CARDS GRID
===================================================== */

.metrics-grid,
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}


/* =====================================================
   LARGE ANALYTICS GRID
===================================================== */

.analytics-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
    margin-bottom: 32px;
}

.analytics-panel {
    padding: 28px;
    border-radius: 24px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
}

.analytics-panel h2 {
    font-size: 22px;
    margin-bottom: 20px;
}


/* =====================================================
   FRAUD METER PANEL
===================================================== */

.fraud-meter-panel {
    padding: 30px;
    border-radius: 24px;
    text-align: center;
    background:
        linear-gradient(
            135deg,
            rgba(255,255,255,0.04),
            rgba(255,255,255,0.02)
        );
    border: 1px solid rgba(255,255,255,0.06);
}

.fraud-meter-panel h2 {
    font-size: 22px;
    margin-bottom: 18px;
}

#fraudMeter,
#fraudMeterValue {
    font-size: 54px;
    font-weight: 800;
    margin: 20px 0;
}

#severityLevel {
    font-size: 16px;
    font-weight: 700;
}


/* =====================================================
   UPLOAD CENTER DASHBOARD
===================================================== */

.upload-dashboard-box {
    padding: 34px;
    border-radius: 26px;
    margin-bottom: 32px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
}

.upload-dashboard-box h2 {
    font-size: 24px;
    margin-bottom: 20px;
}

.upload-progress-wrapper {
    margin-top: 20px;
}

.upload-progress-track {
    width: 100%;
    height: 14px;
    border-radius: 999px;
    background: rgba(255,255,255,0.05);
    overflow: hidden;
}

#uploadProgress {
    width: 0;
    height: 100%;
    border-radius: 999px;
    background:
        linear-gradient(
            90deg,
            rgba(0,255,255,0.95),
            rgba(0,140,255,0.90)
        );
}


/* =====================================================
   DETECTION FEED PANEL
===================================================== */

.detection-feed,
.live-feed,
.queue-feed {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-height: 500px;
    overflow-y: auto;
}

.detection-event,
.audit-event,
.queue-event,
.upload-event,
.access-log-item {
    padding: 18px 20px;
    border-radius: 18px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.event-dot,
.audit-dot,
.queue-dot,
.upload-dot,
.log-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #00f0ff;
    box-shadow: 0 0 12px rgba(0,255,255,0.4);
}

.detection-event p,
.audit-event p,
.queue-event p {
    font-size: 14px;
    line-height: 1.6;
}

.detection-event small,
.audit-event small,
.queue-event small {
    font-size: 12px;
    opacity: 0.65;
}


/* =====================================================
   REVIEW DECISION PANEL
===================================================== */

.reviewer-panel-box {
    padding: 30px;
    border-radius: 24px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
}

.review-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 20px;
}

.decision-btn {
    padding: 14px 24px;
    border: none;
    border-radius: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s ease;
}

.decision-btn.pass {
    background: rgba(45,255,181,0.10);
}

.decision-btn.review {
    background: rgba(255,179,71,0.10);
}

.decision-btn.risk {
    background: rgba(255,90,90,0.10);
}

.decision-btn.reject {
    background: rgba(255,50,50,0.15);
}


/* =====================================================
   SIDEBAR STYLE
===================================================== */

.main-sidebar {
    width: 280px;
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    padding: 30px 24px;
    z-index: 100;
    overflow-y: auto;
}

.sidebar-logo h2 {
    font-size: 28px;
    font-weight: 800;
}

.sidebar-logo p {
    font-size: 13px;
    opacity: 0.7;
    margin-top: 6px;
}

.sidebar-menu {
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sidebar-menu a {
    padding: 14px 16px;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s ease;
}

.sidebar-footer {
    margin-top: 40px;
}

.system-status {
    padding: 20px;
    border-radius: 18px;
    background: rgba(255,255,255,0.03);
    margin-bottom: 18px;
}


/* =====================================================
   RESPONSIVE SUPPORT
===================================================== */

@media (max-width: 992px) {
    .dashboard-main {
        margin-left: 0;
        padding: 20px;
    }

    .main-sidebar {
        left: -100%;
        transition: 0.35s ease;
    }

    .main-sidebar.active {
        left: 0;
    }

    .analytics-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-topbar {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 768px) {
    .metrics-grid,
    .cards {
        grid-template-columns: 1fr;
    }

    .dashboard-title h1 {
        font-size: 26px;
    }

    #fraudMeter,
    #fraudMeterValue {
        font-size: 40px;
    }
}