/* ========================================================
   FILE CSS UTAMA BACK-OFFICE RENTAL MOBIL (LOKAL)
   ======================================================== */

/* 1. Gaya Umum Dasar Aplikasi */
body { 
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; 
    background-color: #f3f4f6; 
    margin: 0; 
    padding: 0;
    display: flex; 
    height: 100vh; 
    overflow: hidden; 
}

/* 2. Gaya Khusus Halaman Login */
.login-body {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100vw;
    height: 100vh;
}
.login-box { 
    background: white; 
    padding: 2.5rem; 
    border-radius: 0.5rem; 
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1); 
    width: 90% !important; 
    max-width: 360px !important; 
    box-sizing: border-box; 
    margin: auto;
}
.text-center { text-align: center; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.block { display: block; }
.text-sm { font-size: 0.875rem; color: #4b5563; }
.font-bold { font-weight: 700; }
.w-full { width: 100%; }
.border { border: 1px solid #d1d5db; border-radius: 0.25rem; padding: 0.5rem; box-sizing: border-box; font-size: 1rem; }
.border:focus { border-color: #2563eb; outline: none; }
.bg-blue { background-color: #2563eb; color: white; border: none; cursor: pointer; transition: 0.2s; }
.bg-blue:hover { background-color: #1d4ed8; }
.btn { font-weight: bold; padding: 0.65rem; border-radius: 0.25rem; }
.error-box { background-color: #fef2f2; border: 1px solid #f87171; color: #991b1b; padding: 0.75rem; border-radius: 0.25rem; font-size: 0.875rem; margin-bottom: 1rem; }

/* 3. Arsitektur Komponen Layout Dashboard */
.sidebar { 
    width: 260px; 
    min-width: 260px;
    background-color: #111827; 
    color: white; 
    display: flex; 
    flex-direction: column; 
    justify-content: space-between; 
    box-sizing: border-box; 
    height: 100vh;
}
.sidebar-brand { 
    font-size: 1.25rem; 
    font-weight: bold; 
    text-align: center; 
    padding: 1.5rem; 
    border-bottom: 1px solid #1f2937; 
    letter-spacing: 0.05em;
}
.sidebar-menu { list-style: none; padding: 0; margin: 0; flex-grow: 1; }
.sidebar-menu li a { 
    display: block; 
    padding: 1rem 1.5rem; 
    color: #9ca3af; 
    text-decoration: none; 
    border-left: 4px solid transparent; 
    font-size: 0.95rem; 
    transition: all 0.2s;
}
.sidebar-menu li a:hover, .sidebar-menu li a.active { 
    background-color: #1f2937; 
    color: white; 
    border-left-color: #2563eb; 
}
.sidebar-footer { padding: 1rem; border-top: 1px solid #1f2937; }
.logout-btn { 
    width: 100%; 
    background-color: #dc2626; 
    color: white; 
    border: none; 
    padding: 0.65rem; 
    border-radius: 0.25rem; 
    font-weight: bold; 
    cursor: pointer; 
    transition: 0.2s;
}
.logout-btn:hover { background-color: #b91c1c; }

/* 4. Area Konten Utama */
.main-content { 
    flex-grow: 1; 
    display: flex; 
    flex-direction: column; 
    height: 100vh; 
    overflow-y: auto; 
    box-sizing: border-box; 
}
.top-navbar { 
    background: white; 
    padding: 1rem 1.5rem; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    box-shadow: 0 1px 3px rgba(0,0,0,0.05); 
}
.content-body { padding: 1.5rem; flex-grow: 1; box-sizing: border-box; }

/* 5. Grid Statistik Berwarna */
.stats-grid { 
    display: grid; 
    grid-template-cols: repeat(auto-fit, minmax(220px, 1fr)); 
    gap: 1.25rem; 
    margin-bottom: 1.5rem; 
}
.card-stat { 
    background: white; 
    padding: 1.25rem; 
    border-radius: 0.5rem; 
    box-shadow: 0 1px 3px rgba(0,0,0,0.02); 
    border-left: 5px solid #2563eb; 
    box-sizing: border-box;
}
.card-stat.green { border-left-color: #10b981; }
.card-stat.yellow { border-left-color: #f59e0b; }
.card-stat.red { border-left-color: #ef4444; }
.stat-title { font-size: 0.8rem; font-weight: bold; color: #9ca3af; text-transform: uppercase; letter-spacing: 0.05em; }
.stat-value { font-size: 1.75rem; font-weight: bold; color: #1f2937; margin-top: 0.5rem; }
.card-info { background: white; padding: 1.5rem; border-radius: 0.5rem; box-shadow: 0 1px 3px rgba(0,0,0,0.02); box-sizing: border-box; }
/* 6. Gaya Tabel Administrasi CRUD */
.btn-primary { background-color: #2563eb; color: white; padding: 0.5rem 1rem; border-radius: 0.25rem; font-weight: bold; text-decoration: none; border: none; cursor: pointer; font-size: 0.85rem; }
.btn-primary:hover { background-color: #1d4ed8; }
.btn-danger { background-color: #dc2626; color: white; padding: 0.35rem 0.75rem; border-radius: 0.25rem; text-decoration: none; border: none; cursor: pointer; font-size: 0.8rem; }
.btn-danger:hover { background-color: #b91c1c; }
.btn-warning { background-color: #f59e0b; color: white; padding: 0.35rem 0.75rem; border-radius: 0.25rem; text-decoration: none; border: none; cursor: pointer; font-size: 0.8rem; }
.btn-warning:hover { background-color: #d97706; }

.table-responsive { width: 100%; overflow-x: auto; margin-top: 1rem; }
.crud-table { width: 100%; border-collapse: collapse; background: white; border-radius: 0.5rem; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,0.05); }
.crud-table th { background-color: #f9fafb; color: #374151; font-weight: bold; padding: 0.75rem 1rem; text-align: left; border-bottom: 1px solid #e5e7eb; font-size: 0.85rem; }
.crud-table td { padding: 0.75rem 1rem; border-bottom: 1px solid #e5e7eb; color: #4b5563; font-size: 0.9rem; }
.badge { padding: 0.25rem 0.5rem; border-radius: 9999px; font-size: 0.75rem; font-weight: bold; text-transform: uppercase; }
.badge-admin { background-color: #dbeafe; color: #1e40af; }
.badge-manager { background-color: #fef3c7; color: #92400e; }
.badge-staff { background-color: #e0f2fe; color: #0369a1; }
.badge-customer { background-color: #f3f4f6; color: #374151; }
.badge-blacklist { background-color: #fee2e2; color: #991b1b; }

.alert-success { background-color: #d1fae5; color: #065f46; padding: 0.75rem 1rem; border-radius: 0.35rem; margin-bottom: 1rem; font-size: 0.9rem; font-weight: bold; }
.form-grid { display: grid; grid-template-cols: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin-bottom: 1rem; }

