/* Admin-specific styles */

.admin-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 1.5rem;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.header-left h1 {
    font-size: 1.5rem;
}

.badge {
    background: var(--primary);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.btn-link {
    color: var(--primary);
    text-decoration: none;
    font-size: 0.9rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

.stat-new .stat-number {
    color: #ef4444;
}

.stat-process .stat-number {
    color: #eab308;
}

.stat-done .stat-number {
    color: #22c55e;
}

.filter-bar {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.filter-bar select {
    padding: 0.5rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-size: 0.9rem;
}

.laporan-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.laporan-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    cursor: pointer;
    transition: border-color 0.2s;
}

.laporan-card:hover {
    border-color: var(--primary);
}

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

.laporan-id {
    font-weight: 600;
    color: var(--primary);
}

.laporan-time {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.laporan-alamat {
    margin-bottom: 0.5rem;
}

.laporan-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.75rem;
}

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

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-baru {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.status-proses {
    background: rgba(234, 179, 8, 0.2);
    color: #eab308;
}

.status-selesai {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
}

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

/* Fix for Hidden Modal overriding Flex */
.modal.hidden {
    display: none !important;
}

.modal-content {
    background: var(--bg-card);
    border-radius: var(--radius);
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border);
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
}

.modal-body {
    padding: 1.25rem;
}

.modal-footer {
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 1rem;
}

.modal-footer select {
    flex: 1;
    padding: 0.75rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
}

.modal-footer .btn-primary {
    width: auto;
    padding: 0.75rem 1.5rem;
}

.detail-row {
    margin-bottom: 1rem;
}

.detail-label {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-bottom: 0.25rem;
}

.detail-value {
    font-size: 1rem;
}

.detail-value a {
    color: var(--primary);
}

.detail-foto img {
    max-width: 100%;
    border-radius: 8px;
    margin-top: 0.5rem;
}

.loading-placeholder {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
}

@media (max-width: 600px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}/* SLA Badges */
.sla-badge {
    margin-top: 8px;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
    display: inline-block;
}

.sla-badge.critical {
    background-color: #fee2e2;
    color: #dc2626;
    border: 1px solid #dc2626;
    animation: pulse 2s infinite;
}

.sla-badge.warning {
    background-color: #fef3c7;
    color: #d97706;
    border: 1px solid #d97706;
}

/* Status Ditolak */
.status-ditolak {
    background-color: #f3f4f6;
    color: #4b5563;
    border: 1px solid #9ca3af;
}

@keyframes pulse {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }

    100% {
        opacity: 1;
    }
}