* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f4f7f6;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.container {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.admin-container {
    max-width: 800px;
}

h1 {
    color: #333;
    margin-bottom: 15px;
    font-size: 24px;
}

/* Style Khusus Halaman QR */
.qr-box {
    margin: 20px auto;
    display: flex;
    justify-content: center;
    padding: 15px;
    background: #fff;
    border: 2px dashed #ccc;
    border-radius: 8px;
    width: max-content;
}

.instruction {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
}

/* Style Form */
form {
    text-align: left;
}

.form-group {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #444;
}

input[type="text"], input[type="file"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    outline: none;
}

input[type="text"]:focus {
    border-color: #007bff;
}

.btn-submit, .btn-danger {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 6px;
    color: white;
    font-size: 16px;
    cursor: pointer;
    margin-top: 10px;
}

.btn-submit { background-color: #007bff; }
.btn-submit:hover { background-color: #0056b3; }

.btn-danger { background-color: #dc3545; width: auto; padding: 8px 15px; }
.btn-danger:hover { background-color: #c82333; }

/* Style Tabel Admin */
.table-responsive {
    overflow-x: auto;
    margin-top: 20px;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 12px;
    border-bottom: 1px solid #ddd;
    text-align: left;
}

th { background-color: #f8f9fa; }

.foto-thumb {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.admin-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.link-admin, .link-back {
    display: inline-block;
    margin-top: 15px;
    color: #007bff;
    text-decoration: none;
    font-size: 14px;
}

.alert {
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 6px;
    display: none;
}
.alert.success { background: #d4edda; color: #155724; display: block; }
.alert.error { background: #f8d7da; color: #721c24; display: block; }
/* Style Khusus Fitur Rekap/Filter */
.filter-section {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    align-items: center;
    border: 1px solid #ddd;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-group input[type="date"] {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.btn-primary { 
    background-color: #17a2b8; 
    color: white; 
    border: none; 
    padding: 9px 15px; 
    border-radius: 5px; 
    cursor: pointer; 
}
.btn-primary:hover { background-color: #138496; }

.btn-success { 
    background-color: #28a745; 
    color: white; 
    border: none; 
    padding: 9px 15px; 
    border-radius: 5px; 
    cursor: pointer;
    margin-left: auto; /* Mendorong tombol ke kanan */
}
.btn-success:hover { background-color: #218838; }