/* =========================================
   COMPLAINT DASHBOARD STYLES
   complaint.css — Pothik Project
   ========================================= */


/* ---- DASHBOARD STATS SECTION ---- */

.dashboard-stats {
    position: relative;
    z-index: 1;
    padding: 36px 32px 12px;
    max-width: 960px;
    margin: 0 auto;
    animation: fadeUp 0.6s ease;
}

.stats-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ---- Hero total card ---- */

.stats-hero {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 28px 32px;
    background: linear-gradient(135deg, rgba(244, 166, 35, 0.12), rgba(45, 198, 83, 0.08));
    border: 1px solid rgba(244, 166, 35, 0.25);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(244, 166, 35, 0.1);
    animation: fadeUp 0.5s ease both;
}

.stats-hero-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: rgba(244, 166, 35, 0.15);
    border: 1px solid rgba(244, 166, 35, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    flex-shrink: 0;
}

.stats-hero-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.stats-hero-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stats-hero-value {
    font-family: 'Outfit', sans-serif;
    font-size: 36px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--traffic-amber), var(--traffic-green));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.1;
}

/* ---- Category grid ---- */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 20px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    transition: 0.3s ease;
    position: relative;
    overflow: hidden;
    animation: fadeUp 0.5s ease both;
}

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

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
}

.stat-card:hover.stat-card-bus { border-color: rgba(244, 166, 35, 0.35); box-shadow: 0 8px 28px rgba(244, 166, 35, 0.12); }
.stat-card:hover.stat-card-train { border-color: rgba(230, 57, 70, 0.35); box-shadow: 0 8px 28px rgba(230, 57, 70, 0.12); }
.stat-card:hover.stat-card-metro { border-color: rgba(108, 99, 255, 0.35); box-shadow: 0 8px 28px rgba(108, 99, 255, 0.12); }
.stat-card:hover.stat-card-cng { border-color: rgba(45, 198, 83, 0.35); box-shadow: 0 8px 28px rgba(45, 198, 83, 0.12); }
.stat-card:hover.stat-card-others { border-color: rgba(100, 116, 139, 0.35); box-shadow: 0 8px 28px rgba(100, 116, 139, 0.12); }

.stat-card-icon {
    font-size: 28px;
    line-height: 1;
}

.stat-card-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.stat-card-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-card-value {
    font-family: 'Outfit', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
}

/* Percentage + bar */

.stat-card-pct {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.stat-card-pct > span {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-secondary);
}

.stat-bar {
    width: 100%;
    height: 5px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    overflow: hidden;
}

.stat-bar-fill {
    height: 100%;
    border-radius: 10px;
    transition: width 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.stat-bar-bus { background: var(--traffic-amber); }
.stat-bar-train { background: var(--traffic-red); }
.stat-bar-metro { background: #6C63FF; }
.stat-bar-cng { background: var(--traffic-green); }
.stat-bar-others { background: var(--text-muted); }


/* ---- Status row ---- */

.stats-status-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.status-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    transition: 0.25s ease;
    animation: fadeUp 0.5s ease 0.3s both;
}

.status-card:hover {
    transform: translateY(-3px);
}

.status-card-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    flex-shrink: 0;
}

.status-card-active .status-card-dot {
    background: var(--traffic-green);
    box-shadow: 0 0 12px var(--traffic-green);
    animation: dotPulse 2s ease-in-out infinite;
}

.status-card-spam .status-card-dot {
    background: var(--traffic-red);
    box-shadow: 0 0 12px var(--traffic-red);
    animation: dotPulse 2s ease-in-out infinite 0.5s;
}

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

.status-card-active:hover {
    border-color: rgba(45, 198, 83, 0.3);
    box-shadow: 0 8px 28px rgba(45, 198, 83, 0.1);
}

.status-card-spam:hover {
    border-color: rgba(230, 57, 70, 0.3);
    box-shadow: 0 8px 28px rgba(230, 57, 70, 0.1);
}

.status-card-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.status-card-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.status-card-value {
    font-family: 'Outfit', sans-serif;
    font-size: 26px;
    font-weight: 700;
    color: var(--text-primary);
}

.status-card-active .status-card-value {
    color: #7be58d;
}

.status-card-spam .status-card-value {
    color: #ff8d98;
}


/* ---- Responsive ---- */

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }

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

    .dashboard-stats {
        padding: 24px 16px 8px;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-hero {
        align-items: flex-start;
        padding: 20px;
    }

    .stats-hero-value {
        font-size: 28px;
    }

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

    .complaint-card {
        padding: 18px 16px;
    }

    .complaint-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .complaint-actions {
        justify-content: stretch;
    }

    .complaint-actions .action-buttons {
        width: 100%;
        flex-direction: column;
    }

    .complaint-actions .btn-action {
        width: 100%;
    }
}


/* ---- END DASHBOARD STATS ---- */


.complaint-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 35px;
}

.complaint-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 18px;
    padding: 24px;
    box-shadow: var(--shadow-md);
    transition: 0.25s ease;
}

.complaint-card:hover {
    transform: translateY(-3px);
    border-color: var(--border-glow);
    box-shadow: var(--shadow-amber);
}

.complaint-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.category-badge {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: rgba(244, 166, 35, 0.15);
    color: var(--traffic-amber);
    border: 1px solid rgba(244, 166, 35, 0.3);
}

.complaint-date {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.complaint-meta {
    display: flex;
    gap: 30px;
    margin-bottom: 15px;
    color: var(--text-secondary);
    flex-wrap: wrap;
}

.complaint-meta strong {
    color: var(--traffic-amber);
}

.complaint-description {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 1rem;
}

/* ADMIN ACTION AREA */

.complaint-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid var(--border-subtle);
}

.action-buttons {
    display: flex;
    gap: 10px;
}

.btn-action {
    border: none;
    padding: 9px 17px;
    border-radius: 8px;
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s ease;
}

.btn-spam {
    background: rgba(230, 57, 70, 0.15);
    color: #ff8d98;
    border: 1px solid rgba(230, 57, 70, 0.35);
}

.btn-spam:hover {
    background: rgba(230, 57, 70, 0.25);
    transform: translateY(-2px);
}

.btn-active {
    background: rgba(45, 198, 83, 0.15);
    color: #7be58d;
    border: 1px solid rgba(45, 198, 83, 0.35);
}

.btn-active:hover {
    background: rgba(45, 198, 83, 0.25);
    transform: translateY(-2px);
}

.status-badge {
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.status-active {
    background: rgba(45, 198, 83, 0.12);
    color: #7be58d;
}

.status-spam {
    background: rgba(230, 57, 70, 0.12);
    color: #ff8d98;
}

.empty-state {
    text-align: center;
    padding: 60px 40px;
    background: var(--bg-glass);
    border: 1px dashed var(--border-glow);
    border-radius: 18px;
    color: var(--text-muted);
}

.empty-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}
