/* style_admin.css */
body { font-family: Arial, sans-serif; margin: 0; background-color: #f4f7fa; color: #333; }
.admin-wrapper { display: flex; }
.sidebar { width: 250px; background-color: #2c3e50; color: #ecf0f1; height: 100vh; position: fixed; }
.sidebar h3 { padding: 20px; text-align: center; background-color: #34495e; margin: 0; }
.sidebar ul { list-style: none; padding: 0; margin: 0; }
.sidebar ul li a { display: block; padding: 15px 20px; color: #ecf0f1; text-decoration: none; border-bottom: 1px solid #34495e; transition: background-color 0.3s; }
.sidebar ul li a:hover { background-color: #3498db; }
.main-content { margin-left: 250px; padding: 30px; width: calc(100% - 250px); }
h2 { color: #2c3e50; border-bottom: 2px solid #3498db; padding-bottom: 10px; }
table { width: 100%; border-collapse: collapse; margin-top: 20px; box-shadow: 0 2px 5px rgba(0,0,0,0.1); }
th, td { padding: 12px 15px; border: 1px solid #ddd; text-align: left; }
thead { background-color: #34495e; color: #fff; }
tbody tr:nth-child(even) { background-color: #f2f2f2; }
form { background: #fff; padding: 20px; border-radius: 5px; box-shadow: 0 2px 5px rgba(0,0,0,0.1); }
label { display: block; margin-bottom: 8px; font-weight: bold; }
input[type="text"], input[type="file"], select, textarea { width: 100%; padding: 10px; margin-bottom: 15px; border: 1px solid #ccc; border-radius: 4px; box-sizing: border-box; }
button, .btn { background-color: #3498db; color: #fff; padding: 10px 15px; border: none; border-radius: 4px; cursor: pointer; text-decoration: none; display: inline-block; }
button:hover, .btn:hover { background-color: #2980b9; }
.btn-edit { background-color: #27ae60; } .btn-edit:hover{ background-color: #229954; }
.btn-delete { background-color: #c0392b; } .btn-delete:hover { background-color: #a93226; }
.login-body { display: flex; justify-content: center; align-items: center; height: 100vh; background-color: #ecf0f1;}
.login-container { width: 350px; padding: 30px; background: #fff; box-shadow: 0 0 15px rgba(0,0,0,0.2); border-radius: 8px;}

/* ========================================= */
/* ==   STYLE UNTUK HALAMAN LOGIN ADMIN   == */
/* ========================================= */

/* 1. Latar Belakang dan Layout Halaman Penuh */
.login-body {
    display: flex; /* Menggunakan flexbox untuk centering */
    justify-content: center; /* Center horizontal */
    align-items: center; /* Center vertikal */
    min-height: 100vh; /* Tinggi minimal 100% dari viewport */
    background-color: #f4f7fa; /* Warna latar belakang abu-abu muda */
    font-family: Arial, sans-serif;
    margin: 0;
}

/* 2. Kotak Login Utama */
.login-container {
    width: 100%;
    max-width: 400px; /* Lebar maksimal kotak login */
    padding: 40px;
    background: #ffffff; /* Latar belakang putih */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1); /* Efek bayangan yang lembut */
    border-radius: 10px; /* Sudut yang melengkung */
    box-sizing: border-box;
}

/* 3. Judul "Login Admin PTSP" */
.login-container h2 {
    text-align: center;
    color: #2c3e50; /* Warna biru tua */
    margin-top: 0;
    margin-bottom: 30px;
    font-size: 24px;
}

/* 4. Elemen Form (Label, Input, Tombol) */
.login-container form label {
    display: block;
    font-size: 14px;
    color: #555;
    margin-bottom: 8px;
    font-weight: bold;
}

.login-container form input[type="text"],
.login-container form input[type="password"] {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
    font-size: 16px;
    transition: border-color 0.3s;
}

/* Efek saat input di-klik (focus) */
.login-container form input:focus {
    border-color: #3498db; /* Warna border menjadi biru */
    outline: none; /* Hilangkan outline default */
}

.login-container form button {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 5px;
    background-color: #3498db; /* Warna tombol biru */
    color: white;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}

.login-container form button:hover {
    background-color: #2980b9; /* Warna tombol menjadi lebih gelap saat di-hover */
}
/* Style untuk Form Filter di Dasbor Admin */
.filter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 5px;
    border: 1px solid #dee2e6;
}
.filter-form input[type="text"] {
    flex-grow: 1; /* Biarkan input teks memanjang */
    min-width: 250px;
}
.filter-form input, .filter-form button, .filter-form .btn-reset {
    margin-bottom: 0;
}
.btn-reset {
    background-color: #6c757d;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    padding: 10px 15px;
    font-weight: normal;
}
.btn-reset:hover {
    background-color: #5a6268;
}
/* ========================================= */
/* ==       STYLE UNTUK DASBOR ADMIN      == */
/* ========================================= */

/* Kartu Statistik */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    text-align: center;
    border-left: 5px solid #3498db;
}

.stat-card:nth-child(2) { border-left-color: #2ecc71; }
.stat-card:nth-child(3) { border-left-color: #e67e22; }
.stat-card:nth-child(4) { border-left-color: #9b59b6; }

.stat-card h3 {
    font-size: 2.5em;
    margin: 0 0 5px 0;
    color: #2c3e50;
}

.stat-card p {
    margin: 0;
    color: #7f8c8d;
    font-weight: bold;
}

/* Akses Cepat */
.quick-links {
    margin-bottom: 30px;
}

.quick-links h3 {
    margin-bottom: 15px;
    color: #2c3e50;
}

.quick-link-btn {
    background-color: #fff;
    color: #3498db;
    border: 1px solid #3498db;
    padding: 10px 20px;
    margin-right: 10px;
    margin-bottom: 10px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    transition: all 0.3s;
}

.quick-link-btn:hover {
    background-color: #3498db;
    color: #fff;
}

/* Aktivitas Terbaru */
.recent-activity h3 {
    margin-bottom: 15px;
    color: #2c3e50;
}
.activity-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.activity-list {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

.activity-list h4 {
    margin-top: 0;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.activity-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.activity-list ul li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f4f4f4;
}

.activity-list ul li:last-child {
    border-bottom: none;
}

.activity-list ul li small {
    color: #777;
    background-color: #ecf0f1;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.8em;
}

/* Responsif untuk dasbor */
@media (max-width: 768px) {
    .activity-container {
        grid-template-columns: 1fr;
    }
}
/* ========================================= */
/* ==      STYLE UNTUK PAGINASI ADMIN     == */
/* ========================================= */
.pagination-container {
    margin-top: 25px;
    display: flex;
    justify-content: center;
}
.pagination {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.pagination .page-item .page-link {
    display: block;
    padding: 10px 15px;
    background-color: #fff;
    color: #3498db;
    text-decoration: none;
    border: 1px solid #ddd;
    border-left: none;
    transition: background-color 0.2s;
}
.pagination .page-item:first-child .page-link {
    border-left: 1px solid #ddd;
}
.pagination .page-item .page-link:hover {
    background-color: #f4f4f4;
}
.pagination .page-item.active .page-link {
    background-color: #3498db;
    color: white;
    border-color: #3498db;
    cursor: default;
}
/* -- Style untuk Filter dan Pagination -- */
.filter-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
}
.filter-form {
    display: flex;
    gap: 10px;
    align-items: center;
}
.filter-form input {
    padding: 8px 12px;
}
.pagination-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top:
}
/* -- Style untuk Filter -- */
.filter-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
    flex-wrap: wrap; /* Agar responsif di layar kecil */
    gap: 15px;
}
.filter-form {
    display: flex;
    gap: 10px;
    align-items: center;
}
.filter-form input, .filter-container select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

/* -- Style untuk Pagination Angka Animatif -- */
.pagination {
    display: flex;
    justify-content: center;
    padding: 20px 0;
    list-style: none;
}
.pagination a {
    color: #007bff;
    padding: 10px 18px;
    text-decoration: none;
    transition: all 0.3s ease;
    margin: 0 5px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-weight: bold;
}
.pagination a:hover {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0, 123, 255, 0.3);
}
.pagination a.active {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
    cursor: default;
    box-shadow: 0 2px 5px rgba(0, 123, 255, 0.2);
}