/* Status Page Styles */
:root {
    --saffron: #FF9933;
    --saffron-dark: #E68A00;
    --white: #FFFFFF;
    --gray: #6c757d;
    --gray-dark: #343a40;
    --light-gray: #f8f9fa;
    --border-color: #e9ecef;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.status-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
}

/* Complaint List */
.complaints-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.complaint-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 1.25rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border-left: 4px solid var(--saffron);
}

.complaint-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.complaint-card.selected {
    border-left-color: var(--saffron-dark);
    background-color: #fff9f0;
}

.complaint-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
    gap: 1rem;
}

.complaint-header h3 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--gray-dark);
    flex: 1;
}

.complaint-status {
    font-size: 0.8rem;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.complaint-status i {
    font-size: 0.9rem;
}

.complaint-status.received {
    background-color: #e3f2fd;
    color: #1976d2;
}

.complaint-status.in-progress {
    background-color: #fff3e0;
    color: #f57c00;
}

.complaint-status.resolved {
    background-color: #e8f5e9;
    color: #388e3c;
}

.complaint-body {
    color: var(--gray);
    font-size: 0.95rem;
    line-height: 1.5;
}

.complaint-body p {
    margin: 0 0 0.75rem 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-clamp: 2;
    max-height: 3em; /* Fallback for non-WebKit browsers */
}

.complaint-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--gray);
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid #f0f0f0;
}

.complaint-date {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.complaint-date i {
    font-size: 0.9rem;
}

.complaint-id {
    font-family: monospace;
    color: var(--gray);
    font-size: 0.8rem;
}

/* Status Timeline */
.status-timeline {
    margin: 2rem 0;
    position: relative;
    padding-left: 2rem;
}

.status-timeline::before {
    content: '';
    position: absolute;
    left: 0.5rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e0e0e0;
}

.timeline-item {
    position: relative;
    padding-bottom: 2rem;
    opacity: 0.5;
}

.timeline-item.active {
    opacity: 1;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -2rem;
    top: 0.25rem;
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    background: #e0e0e0;
    z-index: 1;
}

.timeline-item.active::before {
    background: var(--saffron);
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px var(--saffron);
}

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

.timeline-icon {
    position: absolute;
    left: -2.5rem;
    top: 0;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray);
    z-index: 2;
}

.timeline-item.active .timeline-icon {
    background: var(--saffron);
    color: white;
}

.timeline-content {
    padding: 0.5rem 0 0 0.5rem;
}

.timeline-content h4 {
    margin: 0 0 0.25rem 0;
    font-size: 1rem;
}

.timeline-content p {
    margin: 0 0 0.25rem 0;
    color: var(--gray);
    font-size: 0.9rem;
}

.timeline-date {
    font-size: 0.8rem;
    color: var(--gray);
}

/* Status Details */
.status-details {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-top: 1.5rem;
}

.status-details h4 {
    margin-top: 0;
    color: var(--gray-dark);
    border-bottom: 1px solid #eee;
    padding-bottom: 0.75rem;
    margin-bottom: 1.25rem;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.detail-item {
    display: flex;
    flex-direction: column;
}

.detail-label {
    font-size: 0.85rem;
    color: var(--gray);
    margin-bottom: 0.25rem;
}

.detail-value {
    font-weight: 500;
    color: var(--gray-dark);
}

/* Updates Section */
.status-updates h4 {
    margin-top: 0;
    color: var(--gray-dark);
    border-bottom: 1px solid #eee;
    padding-bottom: 0.75rem;
    margin-bottom: 1.25rem;
}

.update-item {
    padding: 1rem 0;
    border-bottom: 1px solid #f5f5f5;
}

.update-item:last-child {
    border-bottom: none;
}

.update-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.update-status {
    font-size: 0.8rem;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-weight: 500;
    text-transform: capitalize;
}

.update-status.received {
    background-color: #e3f2fd;
    color: #1976d2;
}

.update-status.in-progress {
    background-color: #fff3e0;
    color: #f57c00;
}

.update-status.resolved {
    background-color: #e8f5e9;
    color: #388e3c;
}

.update-date {
    font-size: 0.8rem;
    color: var(--gray);
}

.update-message {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--gray-dark);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--gray);
}

.empty-state i {
    color: var(--saffron);
    margin-bottom: 1rem;
    font-size: 3rem;
}

.empty-state h3 {
    color: var(--gray-dark);
    margin-bottom: 0.5rem;
}

.empty-state p {
    margin-bottom: 1.5rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

/* Image Gallery Styles */
.complaint-images {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.complaint-images h4 {
    margin-bottom: 1rem;
    color: var(--gray-dark);
    font-size: 1.1rem;
}

.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1rem;
    margin-top: 0.5rem;
}

.gallery-item {
    position: relative;
    padding-top: 75%; /* 4:3 aspect ratio */
    border-radius: 6px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.2s ease;
}

.gallery-item:hover {
    transform: translateY(-3px);
}

.gallery-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
}

/* Update Images */
.update-images {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

.update-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: transform 0.2s ease;
}

.update-image:hover {
    transform: scale(1.05);
}

/* Image Modal */
.image-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 1rem;
}

.image-modal .modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    background: transparent;
    border-radius: 8px;
    overflow: hidden;
}

.image-modal img {
    max-width: 100%;
    max-height: 80vh;
    display: block;
    margin: 0 auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    color: white;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    background: rgba(0, 0, 0, 0.5);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.close-modal:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: rotate(90deg);
}

/* Responsive Styles */
@media (max-width: 992px) {
    .status-container {
        grid-template-columns: 1fr;
    }
    
    .complaints-list {
        order: 2;
    }
}

@media (max-width: 576px) {
    .details-grid {
        grid-template-columns: 1fr;
    }
    
    .complaint-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .status-container {
        padding: 1rem;
    }
    
    .status-details {
        padding: 1rem;
    }
    
    .timeline-content h4 {
        font-size: 0.95rem;
    }
    
    .timeline-content p {
        font-size: 0.85rem;
    }
}
