/* =========================================
   1. RESET & GLOBAL STYLE
   ========================================= */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f0f2f5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Konten di tengah vertikal */
    align-items: center;     /* Konten di tengah horizontal */
    padding: 40px 20px;
}

.container {
    width: 100%;
}

/* Style Kartu (Card) */
.card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    height: 100%;
    position: relative;
}

h2 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 10px;
}

p {
    text-align: center;
    color: #7f8c8d;
    margin-bottom: 25px;
    font-size: 14px;
}

/* =========================================
   2. FORM ELEMENTS
   ========================================= */
.form-group {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 8px;
    color: #34495e;
    font-weight: 600;
    font-size: 14px;
}

/* Input Styles (Termasuk Date & Time) */
input[type="text"],
input[type="tel"],
input[type="date"], 
input[type="time"], 
select {
    width: 100%;
    padding: 12px;
    border: 1px solid #bdc3c7;
    border-radius: 8px;
    background-color: #fff;
    font-size: 14px;
    transition: all 0.3s ease;
    min-height: 45px; 
}

input:focus, select:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.15);
}

button {
    width: 100%;
    padding: 12px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    margin-top: 10px;
}

button:hover {
    background-color: #2980b9;
}

/* =========================================
   3. DASHBOARD / REKAP STYLE
   ========================================= */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: start;
}

.stat-card {
    padding: 25px;
    border-radius: 12px;
    color: white;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}
.stat-card:hover { transform: translateY(-5px); }
.card-blue { background: linear-gradient(135deg, #3498db, #2980b9); }
.card-green { background: linear-gradient(135deg, #2ecc71, #27ae60); }

.stat-card h3 { margin-bottom: 5px; font-size: 16px; font-weight: normal; opacity: 0.9; color: white;}
.stat-card .number { font-size: 38px; font-weight: bold; }
.stat-card .number small { font-size: 14px; font-weight: normal; margin-left: 5px; }

.panel-title {
    border-bottom: 2px solid #f0f2f5;
    padding-bottom: 15px;
    margin-bottom: 15px;
    font-size: 16px;
    font-weight: 700;
    color: #2c3e50;
    text-align: left;
}

/* =========================================
   4. TABEL & FILTER
   ========================================= */
.filter-container { margin-bottom: 15px; }
.filter-select { padding: 8px 12px; border-radius: 6px; border: 1px solid #bdc3c7; font-size: 13px; cursor: pointer; }
.btn-reset { display: inline-block; padding: 8px 12px; background-color: #e74c3c; color: white; text-decoration: none; font-size: 13px; border-radius: 6px; margin-top: 5px; }
.btn-reset:hover { background-color: #c0392b; }

.btn-back { display: inline-block; margin-top: 10px; text-decoration: none; color: #7f8c8d; font-size: 14px; font-weight: 600; }
.btn-back:hover { color: #3498db; }

.table-responsive { width: 100%; scrollbar-width: thin; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
table thead { position: sticky; top: 0; background-color: #ecf0f1; z-index: 1; }
table th { background-color: #ecf0f1; color: #2c3e50; padding: 12px 10px; text-align: left; font-weight: 700; border-bottom: 2px solid #bdc3c7; }
table td { padding: 10px; border-bottom: 1px solid #eee; color: #555; vertical-align: middle; }
table tr:nth-child(even) { background-color: #f9f9f9; }
.table-compact th, .table-compact td { padding: 8px; font-size: 13px; }

/* =========================================
   5. TOMBOL NAVIGASI & AKSI (FLEXBOX)
   ========================================= */
.action-buttons-container {
    display: flex;             /* Mode Flexbox */
    justify-content: center;   /* Rata Tengah Horizontal */
    align-items: center;       /* Rata Tengah Vertikal */
    gap: 20px;                 /* Jarak antar tombol */
    margin-top: 40px;
    margin-bottom: 20px;
    flex-wrap: wrap;           /* Agar turun ke bawah jika layar HP sempit */
}

/* Tombol Besar Utama (Biru) */
.btn-print-large {
    display: flex;             
    align-items: center;
    justify-content: center;
    background-color: #2c3e50;
    color: white;
    text-decoration: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(44, 62, 80, 0.3);
    transition: transform 0.2s, background-color 0.2s;
    border: none;
    min-width: 220px;         
    text-align: center;
}

.btn-print-large:hover {
    background-color: #1a252f;
    transform: translateY(-2px);
}

/* Tombol Besar Sekunder (Abu-abu) */
.btn-secondary {
    background-color: #2c3e50; 
    box-shadow: 0 4px 10px rgba(127, 140, 141, 0.3);
}

.btn-secondary:hover {
    background-color: #1a252f;
}

/* =========================================
   6. TYBROO & NOTIFIKASI
   ========================================= */
.icon-success { font-size: 60px; color: #2ecc71; display: block; text-align: center; margin-bottom: 20px; }
.btn-home { display: block; text-align: center; margin-top: 20px; text-decoration: none; color: #3498db; font-weight: 600; }
.btn-home:hover { text-decoration: underline; }
.message { margin-top: 20px; text-align: center; font-size: 14px; padding: 12px; border-radius: 8px; display: none; }
.success { background-color: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.error { background-color: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

/* =========================================
   7. RESPONSIF (HP)
   ========================================= */
@media (max-width: 850px) {
    .dashboard-grid, .split-layout { grid-template-columns: 1fr; gap: 15px; }
    .card { padding: 20px; }
    .table-responsive { overflow-x: auto; }
    .stat-card .number { font-size: 32px; }
    
    /* Tombol Navigasi di HP */
    .action-buttons-container {
        flex-direction: column;
    }
    .btn-print-large {
        width: 100%;
    }
}