.complaint-badge {
    background: #e8f5e9;
    color: #2e7d32;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 600;
    display: inline-block;
}

.complaint-timeline {
    position: relative;
    padding-left: 24px;
}

.complaint-timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 4px;
    bottom: 4px;
    width: 2px;
    background: #c8e6c9;
}

.timeline-item {
    position: relative;
    padding-bottom: 16px;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -24px;
    top: 4px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #2e7d32;
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px #c8e6c9;
}

.timeline-content {
    background: #f8faf8;
    border-radius: 8px;
    padding: 10px 14px;
    border: 1px solid #e8f5e9;
}

.badge-success { background: #d1fae5; color: #059669; }
.badge-pending { background: #fef3c7; color: #d97706; }
.badge-admin { background: #dbeafe; color: #2563eb; }
.badge-danger { background: #fee2e2; color: #dc2626; }
.badge-secondary { background: #f1f5f9; color: #64748b; }

.admin-chart-box {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    margin-bottom: 16px;
}

.live-counter {
    font-size: 2rem;
    font-weight: 800;
    font-family: 'Poppins', sans-serif;
}

/* ---- Sticky complaint FAB (left side) ---- */
.complaint-sticky-btn {
    position: fixed;
    left: 20px;
    bottom: 28px;
    z-index: 9998;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0 20px 0 0;
    min-height: 54px;
    border-radius: 999px;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.01em;
    background: linear-gradient(135deg, #ef5350 0%, #c62828 100%);
    box-shadow: 0 6px 24px rgba(198, 40, 40, 0.4);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    animation: complaintFabIn 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.complaint-sticky-btn:hover {
    color: #fff;
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 12px 32px rgba(198, 40, 40, 0.5);
}

.complaint-sticky-btn:active {
    transform: scale(0.97);
}

.complaint-sticky-icon {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.4);
}

.complaint-sticky-text {
    padding-right: 6px;
    white-space: nowrap;
}

@keyframes complaintFabIn {
    from {
        opacity: 0;
        transform: translateX(-24px) scale(0.85);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@media (max-width: 991.98px) {
    body.pwa-mobile .complaint-sticky-btn {
        bottom: calc(var(--pwa-bottom-nav-h, 64px) + env(safe-area-inset-bottom, 0px) + 16px);
        left: 14px;
    }
}

@media (max-width: 480px) {
    .complaint-sticky-btn {
        left: 12px;
        bottom: 22px;
        min-height: 50px;
        padding-right: 16px;
        font-size: 0.85rem;
    }

    .complaint-sticky-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
}

@media (max-width: 360px) {
    .complaint-sticky-text {
        display: none;
    }

    .complaint-sticky-btn {
        padding: 0;
        width: 54px;
        height: 54px;
        justify-content: center;
        border-radius: 50%;
    }

    .complaint-sticky-icon {
        width: 100%;
        height: 100%;
        border: none;
        background: transparent;
    }
}
