/* Status Check Page Styles */

/* Grid Layout Fix */
.flat-row.services-details .row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}

.flat-row.services-details .col-lg-3,
.flat-row.services-details .col-md-4 {
    position: relative;
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    flex: 0 0 25%;
    max-width: 25%;
}

.flat-row.services-details .col-lg-9,
.flat-row.services-details .col-md-8 {
    position: relative;
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    flex: 0 0 75%;
    max-width: 75%;
}

@media (max-width: 991px) {
    .flat-row.services-details .col-lg-3,
    .flat-row.services-details .col-lg-9 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .flat-row.services-details .col-lg-3 {
        order: 2;
        margin-top: 30px;
    }
    
    .flat-row.services-details .col-lg-9 {
        order: 1;
    }
}

@media (max-width: 767px) {
    .flat-row.services-details .col-md-4,
    .flat-row.services-details .col-md-8 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .flat-row.services-details .col-md-4 {
        order: 2;
        margin-top: 30px;
    }
    
    .flat-row.services-details .col-md-8 {
        order: 1;
    }
}

.status-check-container {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
    margin-bottom: 30px;
}

.search-form-section {
    margin-bottom: 40px;
    padding: 35px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    border: 1px solid #dee2e6;
}

.form-header {
    margin-bottom: 25px;
}

.search-icon {
    font-size: 3.2em;
    color: #007bff;
    margin-bottom: 18px;
    opacity: 0.9;
}

.form-header h3 {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 8px;
}

.status-search-form .form-control {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 14px 18px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: #fff;
}

.status-search-form .form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
    background: #fff;
}

.btn-search {
    padding: 14px 45px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    background: linear-gradient(45deg, #007bff, #0056b3);
    border: none;
    color: white;
}

.btn-search:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,123,255,0.3);
    background: linear-gradient(45deg, #0056b3, #004085);
}

/* Timeline Styles */
.timeline-section {
    background: #f8f9fa;
    padding: 30px;
    margin: 25px 0;
    border-radius: 12px;
    border: 1px solid #dee2e6;
}

.timeline-section h4 {
    color: #2c3e50;
    margin-bottom: 25px;
    font-weight: 600;
}

.timeline {
    position: relative;
    padding-left: 35px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 18px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, #007bff, #0056b3);
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    margin-bottom: 35px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: -26px;
    top: 8px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: white;
    font-weight: 600;
    border: 3px solid #fff;
    box-shadow: 0 3px 8px rgba(0,0,0,0.15);
}

.timeline-content {
    background: white;
    padding: 22px 25px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border-left: 4px solid #007bff;
    position: relative;
}

.timeline-content h5 {
    margin: 0 0 8px 0;
    color: #2c3e50;
    font-weight: 600;
    font-size: 16px;
}

.timeline-date {
    color: #6c757d;
    font-size: 13px;
    margin: 8px 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.timeline-note {
    color: #495057;
    font-style: italic;
    margin: 12px 0 8px 0;
    font-size: 14px;
    line-height: 1.5;
}

.timeline-officer {
    color: #007bff;
    font-size: 13px;
    margin: 8px 0 0 0;
    font-weight: 500;
}

/* Status Badge */
.status-badge {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 25px;
    color: white;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.5px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.15);
}

/* Info Cards */
.complaint-info {
    padding: 30px;
    background: #f8f9fa;
    border-radius: 12px;
    margin: 25px 0;
    border: 1px solid #dee2e6;
}

.info-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    margin-bottom: 25px;
    border: 1px solid #e9ecef;
}

.info-card:last-child {
    margin-bottom: 0;
}

.info-card h5 {
    color: #2c3e50;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e9ecef;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.info-table td {
    padding: 12px 0;
    border-bottom: 1px solid #f1f3f4;
    vertical-align: top;
}

.info-table td:first-child {
    font-weight: 600;
    color: #495057;
    width: 40%;
    padding-right: 15px;
}

.priority-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.priority-rendah { background: #28a745; color: white; }
.priority-sedang { background: #ffc107; color: #212529; }
.priority-tinggi { background: #fd7e14; color: white; }
.priority-urgent { background: #dc3545; color: white; }

/* Description Section */
.description-section {
    padding: 30px;
    background: white;
    border-radius: 12px;
    margin: 25px 0;
    border: 1px solid #dee2e6;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.description-section h5 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.description-content {
    background: #f8f9fa;
    padding: 22px 25px;
    border-radius: 10px;
    border-left: 4px solid #007bff;
    line-height: 1.6;
    font-size: 15px;
}

.solution-section {
    margin-top: 25px;
    padding: 22px 25px;
    background: #e8f5e8;
    border-radius: 10px;
    border-left: 4px solid #28a745;
}

.solution-section h5 {
    color: #155724;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.solution-content {
    color: #155724;
    line-height: 1.6;
}

/* Response Section */
.response-section {
    padding: 30px;
    background: #f8f9fa;
    border-radius: 12px;
    margin: 25px 0;
    border: 1px solid #dee2e6;
}

.response-section h4 {
    color: #2c3e50;
    margin-bottom: 25px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.response-item {
    background: white;
    margin-bottom: 20px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    border: 1px solid #e9ecef;
}

.response-item:last-child {
    margin-bottom: 0;
}

.response-item.admin {
    border-left: 4px solid #007bff;
}

.response-item.pelanggan {
    border-left: 4px solid #28a745;
}

.response-header {
    background: #f8f9fa;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e9ecef;
}

.response-header strong {
    color: #2c3e50;
    font-weight: 600;
}

.response-content {
    padding: 20px;
    line-height: 1.6;
    color: #495057;
}

.response-date {
    font-size: 13px;
    color: #6c757d;
}

/* Not Found Section */
.not-found-section {
    padding: 60px 30px;
    text-align: center;
    background: white;
    border-radius: 12px;
    margin: 25px 0;
    border: 1px solid #dee2e6;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.not-found-icon {
    font-size: 4.5em;
    color: #dc3545;
    margin-bottom: 25px;
    opacity: 0.8;
}

.not-found-section h4 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-weight: 600;
}

.not-found-section p {
    color: #6c757d;
    margin-bottom: 25px;
    font-size: 15px;
    line-height: 1.5;
}

/* Detail Header */
.detail-header {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    padding: 30px;
    border-radius: 12px 12px 0 0;
    margin-bottom: 0;
    box-shadow: 0 4px 12px rgba(0,123,255,0.25);
}

.detail-header h3 {
    margin: 0 0 15px 0;
    font-weight: 600;
    font-size: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.complaint-meta {
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.ticket-number, .complaint-type, .complaint-date {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: rgba(255,255,255,0.9);
}

/* Responsive Design */
@media (max-width: 768px) {
    .status-check-container {
        padding: 20px;
        margin: 15px;
    }
    
    .search-form-section {
        padding: 25px 20px;
    }
    
    .timeline {
        padding-left: 25px;
    }
    
    .timeline-marker {
        left: -21px;
        width: 16px;
        height: 16px;
        font-size: 9px;
    }
    
    .timeline::before {
        left: 13px;
        width: 2px;
    }
    
    .detail-header {
        padding: 20px;
    }
    
    .detail-header h3 {
        font-size: 20px;
    }
    
    .complaint-meta {
        flex-direction: column;
        gap: 8px;
    }
    
    .info-card,
    .timeline-section,
    .description-section,
    .response-section,
    .complaint-info {
        padding: 20px;
    }
}

}

/* Sidebar Specific Fixes */
.sidebar-area {
    position: sticky;
    top: 20px;
    z-index: 10;
}

.sidebar-wrapper {
    width: 100%;
    background: transparent;
}

.modern-sidebar {
    background: transparent;
}

/* Ensure main content doesn't overlap sidebar */
.flat-row.services-details .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Force proper flexbox behavior */
.flat-row.services-details {
    overflow: hidden;
    padding: 60px 0;
}

.flat-row.services-details .row {
    align-items: flex-start;
    justify-content: space-between;
}

/* Dark Mode Support */
:root[data-theme='dark'] .status-check-container {
    background: #1f2529;
    border-color: #2c3338;
}

:root[data-theme='dark'] .search-form-section {
    background: linear-gradient(135deg, #1e2327, #22292e);
    border-color: #2c3338;
}

:root[data-theme='dark'] .info-card,
:root[data-theme='dark'] .timeline-content,
:root[data-theme='dark'] .description-section,
:root[data-theme='dark'] .response-item {
    background: #1f2529;
    border-color: #2c3338;
}

:root[data-theme='dark'] .timeline-section,
:root[data-theme='dark'] .complaint-info,
:root[data-theme='dark'] .response-section {
    background: #1e2327;
    border-color: #2c3338;
}