/* Citizen Portal Styles */

.user-sidebar {
    background: linear-gradient(180deg, #0c4a6e 0%, #075985 50%, #0369a1 100%);
}

.user-sidebar .sidebar-brand i { color: #7dd3fc; }

.citizen-welcome {
    background: linear-gradient(135deg, #0369a1 0%, #0284c7 50%, #0ea5e9 100%);
    color: #fff;
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
}

.citizen-welcome::after {
    content: '';
    position: absolute;
    right: -20px;
    top: -20px;
    width: 200px;
    height: 200px;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
}

.citizen-welcome h2 {
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.citizen-welcome p {
    opacity: 0.9;
    margin-bottom: 1.25rem;
}

.quick-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.quick-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.25);
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.2s;
}

.quick-action-btn:hover {
    background: rgba(255,255,255,0.25);
    color: #fff;
}

.stat-card.clickable {
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.stat-card.clickable:hover {
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
}

.detail-item {
    background: #f8fafc;
    border-radius: 10px;
    padding: 1rem;
    border: 1px solid #e2e8f0;
}

.detail-item .label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    margin-bottom: 0.25rem;
}

.detail-item .value {
    font-weight: 600;
    color: #0f172a;
}

.complaint-progress {
    padding: 1.5rem 0;
}

.progress-track {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.progress-step {
    flex: 1;
    text-align: center;
    position: relative;
}

.step-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #94a3b8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
    transition: all 0.3s;
}

.progress-step.done .step-icon {
    background: #0284c7;
    color: #fff;
}

.progress-step.active .step-icon {
    background: #0369a1;
    color: #fff;
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.25);
}

.step-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #94a3b8;
}

.progress-step.done .step-label,
.progress-step.active .step-label {
    color: #0369a1;
}

.progress-line {
    flex: 1;
    height: 3px;
    background: #e2e8f0;
    margin-top: 22px;
    min-width: 20px;
}

.progress-line.done {
    background: #0284c7;
}

.progress-rejected {
    text-align: center;
    color: #dc2626;
    font-weight: 600;
    font-size: 1.125rem;
    padding: 1rem;
    background: #fef2f2;
    border-radius: 10px;
}

.complaint-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.25rem;
    height: 100%;
    transition: box-shadow 0.2s, transform 0.2s;
}

.complaint-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
    transform: translateY(-2px);
}

.complaint-card .card-id {
    font-size: 0.8125rem;
    color: #64748b;
    font-weight: 600;
}

.complaint-card .card-title {
    font-weight: 600;
    color: #0f172a;
    margin: 0.5rem 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.complaint-card .card-meta {
    font-size: 0.8125rem;
    color: #64748b;
}

.complaint-card .card-actions {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #f1f5f9;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.profile-header-card {
    background: linear-gradient(135deg, #0369a1, #0ea5e9);
    color: #fff;
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    margin-bottom: 1.5rem;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    border: 3px solid rgba(255,255,255,0.4);
}

.profile-stat-mini {
    text-align: center;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}

.profile-stat-mini h4 {
    margin: 0;
    font-weight: 700;
    color: #0369a1;
}

.profile-stat-mini p {
    margin: 0;
    font-size: 0.8125rem;
    color: #64748b;
}

.form-section {
    background: #f8fafc;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid #e2e8f0;
}

.form-section-title {
    font-weight: 600;
    color: #0369a1;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.image-preview-box {
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    background: #fff;
    min-height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.image-preview-box img {
    max-height: 200px;
    border-radius: 8px;
}

.image-preview-box.has-image {
    border-style: solid;
    border-color: #0284c7;
}

.star-rating {
    font-size: 1.75rem;
    color: #cbd5e1;
    cursor: default;
}

.star-rating.interactive {
    cursor: pointer;
}

.star-rating.interactive i:hover,
.star-rating i.fill {
    color: #fbbf24;
}

.alert-pending-feedback {
    background: #fffbeb;
    border: 1px solid #fcd34d;
    border-radius: 12px;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.alert-pending-feedback i {
    font-size: 1.5rem;
    color: #d97706;
}

.view-toggle .btn.active {
    background: #0369a1;
    border-color: #0369a1;
    color: #fff;
}

.info-card-sidebar {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 12px;
    padding: 1.25rem;
}

.info-card-sidebar h6 {
    color: #0369a1;
    font-weight: 600;
}

.empty-state {
    text-align: center;
    padding: 3rem 2rem;
}

.empty-state i {
    font-size: 4rem;
    color: #cbd5e1;
    margin-bottom: 1rem;
}

.empty-state h5 {
    color: #475569;
}

@media (max-width: 767.98px) {
    .progress-track {
        flex-direction: column;
        gap: 0.5rem;
    }
    .progress-line { display: none; }
    .progress-step {
        display: flex;
        align-items: center;
        gap: 1rem;
        text-align: left;
    }
    .step-icon { margin-bottom: 0; flex-shrink: 0; }
}
