/* File: admin/admin_style.css */

/* Mengatur Body untuk tata letak Sidebar + Content */
body {
    display: flex; /* Menggunakan Flexbox untuk Sidebar dan Konten */
    min-height: 100vh;
    padding: 0; /* Hilangkan padding body lama */
    background-color: #f4f7f6;
}

/* --- SIDEBAR STYLES --- */
.sidebar {
    width: 250px;
    min-width: 250px;
    background-color: #2c3e50; /* Warna gelap untuk Sidebar */
    color: #ecf0f1;
    padding: 20px;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Untuk meletakkan Logout di bawah */
}

.sidebar-header {
    margin-bottom: 30px;
}

.sidebar-header h3 {
    font-size: 1.5em;
    font-weight: 700;
    margin-bottom: 0;
    color: #ffffff;
}

.sidebar-header p {
    font-size: 0.8em;
    color: #bdc3c7;
}

.sidebar-nav {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.sidebar-nav ul {
    list-style: none;
    padding: 0;
}

.sidebar-nav li {
    margin-bottom: 5px;
}

.sidebar-nav a {
    display: block;
    padding: 10px 15px;
    color: #ecf0f1;
    text-decoration: none;
    border-radius: 8px;
    transition: background-color 0.3s, color 0.3s;
    font-size: 0.95em;
}

.sidebar-nav a:hover, .sidebar-nav .active {
    background-color: #34495e;
    color: #ffffff;
    font-weight: 600;
}

.bottom-menu {
    border-top: 1px solid #34495e;
    padding-top: 15px;
    margin-top: 20px;
}

/* --- MAIN CONTENT STYLES --- */
.main-content {
    flex-grow: 1; /* Konten mengisi sisa lebar */
    padding: 30px;
}

.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ddd;
}

.main-header h1 {
    font-size: 1.8em;
    color: #34495e;
}

.user-info span {
    font-weight: 600;
    color: #2980b9;
}

/* --- STAT CARD STYLES --- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.stat-card {
    background: #ffffff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    border-left: 5px solid #007bff; /* Garis aksen biru */
}

.stat-card h3 {
    font-size: 1em;
    color: #7f8c8d;
    margin-bottom: 5px;
}

.stat-card .stat-number {
    font-size: 2.5em;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
}

/* File: admin/admin_style.css (TAMBAHAN) */

/* --- TABLE STYLES --- */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden; /* Penting untuk border radius */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.data-table th, .data-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.9em;
}

.data-table th {
    background-color: #e9ecef;
    color: #34495e;
    font-weight: 700;
    text-transform: uppercase;
}

.data-table tbody tr:hover {
    background-color: #f8f9fa;
}

/* Badge Status */
.status-badge {
    padding: 4px 8px;
    border-radius: 5px;
    font-weight: 600;
    font-size: 0.8em;
    display: inline-block;
}

.status-pending {
    background-color: #fff3cd;
    color: #856404;
}

.status-diterima {
    background-color: #d4edda;
    color: #155724;
}

.status-ditolak {
    background-color: #f8d7da;
    color: #721c24;
}

/* Tombol Detail */
.btn-detail {
    background-color: #007bff;
    color: white;
    padding: 6px 10px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.9em;
    transition: background-color 0.3s;
}

.btn-detail:hover {
    background-color: #0056b3;
}

/* File: admin/admin_style.css (TAMBAHAN UNTUK DETAIL) */

/* --- DETAIL LAYOUT STYLES --- */
.btn-back {
    text-decoration: none;
    background-color: #95a5a6;
    color: white;
    padding: 8px 15px;
    border-radius: 8px;
    font-size: 0.9em;
    transition: background-color 0.3s;
}
.btn-back:hover {
    background-color: #7f8c8d;
}

.detail-card {
    background: #ffffff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-left: 5px solid #007bff;
}

.detail-card h2 {
    margin: 0;
    font-size: 1.6em;
    color: #2c3e50;
}

.status-verifikasi-box {
    font-weight: 600;
}

.detail-section {
    background: #ffffff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 25px;
}

.detail-section h3 {
    color: #007bff;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 20px;
    font-size: 1.3em;
}

.detail-section h4 {
    color: #ff6f61; /* Warna sekunder untuk sub header */
    margin-top: 15px;
    margin-bottom: 10px;
    font-size: 1.1em;
}

.data-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    font-size: 0.95em;
    line-height: 1.4;
}

.data-grid strong {
    color: #34495e;
}

.grid-span-2 {
    grid-column: span 2;
}

.berkas-list-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 10px;
}

.berkas-item {
    background: #f8f8f8;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #007bff;
    display: flex;
    flex-direction: column;
}

.berkas-item strong {
    margin-bottom: 8px;
    font-size: 1em;
}

.btn-view-file {
    display: inline-block;
    background-color: #2ecc71; /* Hijau */
    color: white;
    padding: 8px;
    border-radius: 6px;
    text-decoration: none;
    text-align: center;
    font-size: 0.9em;
    transition: background-color 0.3s;
}

.btn-view-file:hover {
    background-color: #27ae60;
}

/* --- ACTION BUTTONS --- */
.action-section {
    background: #ffffff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 25px;
}

.action-section p {
    font-weight: 600;
    margin-bottom: 15px;
}

.btn-action {
    padding: 10px 15px;
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    margin-right: 10px;
    transition: opacity 0.3s;
}

.btn-action:hover {
    opacity: 0.9;
}

.btn-success {
    background-color: #28a745; /* Hijau */
}

.btn-danger {
    background-color: #dc3545; /* Merah */
}

.btn-warning {
    background-color: #ffc107; /* Kuning */
    color: #333;
}

/* File: admin/admin_style.css (TAMBAHAN UNTUK PENGATURAN) */

.settings-section {
    background: #ffffff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 25px;
}

.settings-section h3 {
    color: #007bff;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 20px;
    font-size: 1.3em;
}

.form-group-setting {
    margin-bottom: 20px;
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
}

.form-group-setting label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
    color: #34495e;
}

.form-group-setting input[type="text"],
.form-group-setting input[type="date"],
.form-group-setting select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-sizing: border-box;
    margin-top: 5px;
}

.form-group-setting small {
    display: block;
    margin-top: 5px;
    color: #7f8c8d;
    font-size: 0.85em;
}

/* admin/admin_style.css */

/* 1. Atur lebar minimum untuk kolom Aksi */
/* Ini memastikan kolom Aksi tidak terlalu sempit */
.data-table th:last-child,
.data-table td:last-child {
    width: 120px; /* Beri lebar minimum yang cukup (misalnya 120px) */
    text-align: center; /* Rata tengah tombol aksi */
}

/* 2. Pastikan tombol detail tidak melebar full */
.btn-detail {
    /* Gunakan display inline-block agar tombol tidak memakan lebar 100% */
    display: inline-block; 
    padding: 6px 10px;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9em;
    white-space: nowrap; /* Mencegah teks tombol memecah baris jika ruangnya sempit */
    transition: background-color 0.2s;
}

.btn-detail:hover {
    background-color: #0056b3;
}

.btn-primary {
    background-color: #007bff; /* Warna biru yang umum digunakan untuk aksi utama */
    color: white; /* Teks putih kontras */
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.2s;
}

.btn-primary:hover {
    background-color: #0056b3;
}

/* Jika tombol aksi memiliki class tambahan btn-action (seperti di pengaturan.php) */
.btn-action {
    display: inline-block; /* Agar tombol tidak melebar 100% jika ditaruh di div */
    text-decoration: none; /* Jika ini tag <a> */
}

/* --- 1. Container untuk Posisi Kanan dan Sejajar --- */
.action-buttons {
    /* Menggunakan Flexbox untuk membuat elemen sejajar */
    display: flex;
    /* Membuat ruang di antara elemen */
    gap: 10px;
    /* PENTING: Mendorong semua konten ke kanan */
    justify-content: flex-end;
    /* Memberi sedikit ruang di atas */
    margin-bottom: 20px;
}

/* --- 2. Menyesuaikan Ukuran Tombol (btn-small) --- */

/* Gaya untuk tombol kecil (agar tidak terlalu besar) */
.btn-small {
    padding: 8px 15px; /* Sedikit lebih kecil dari tombol default */
    font-size: 0.9em;
    font-weight: 500;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.2s;
}

/* --- 3. Gaya Tombol Utama (Cetak) --- */
.btn-primary {
    background-color: #007bff; /* Biru */
    color: white;
    border: 1px solid #007bff;
}

.btn-primary:hover {
    background-color: #0056b3;
}

/* --- 4. Gaya Tombol Sekunder (Kembali) --- */
.btn-secondary {
    background-color: #f8f9fa; /* Abu-abu terang */
    color: #333;
    border: 1px solid #ccc;
}

.btn-secondary:hover {
    background-color: #e2e6ea;
}

/* Penyesuaian Ikon (Jika menggunakan FontAwesome/sejenisnya) */
.btn-small i {
    margin-right: 5px;
}