/* ============================================
   VARIABLES & RESET — OCEAN, SAND, COCKTAIL, PALM
   Perbaikan kontras untuk keterbacaan maksimal
   ============================================ */
:root {
    /* Warna utama dari referensi */
    --ocean: #1F858F;
    --ocean-dark: #145F67;
    --ocean-light: #E0F4F6;
    --ocean-soft: #C5E8EC;

    --sand: #D49A0E;
    --sand-dark: #A6780B;
    --sand-light: #FFF8E1;
    --sand-soft: #FDECC8;

    --cocktail: #D93636;
    --cocktail-dark: #B32828;
    --cocktail-light: #FDE8E8;

    --palm: #1B7834;
    --palm-dark: #145F29;
    --palm-light: #E5F5E9;
    --palm-soft: #C1E6CA;

    /* CSS Variables — Kontras tinggi untuk keterbacaan */
    --bg-primary: #F5F2EB;
    --bg-secondary: #EBE6DA;
    --bg-card: #FFFFFF;
    --bg-card-hover: #FFFDF8;
    
    /* Warna teks dengan kontras tinggi */
    --text-primary: #0D1B2A;
    --text-secondary: #2D3E50;
    --text-muted: #5C6B7A;
    --text-light: #8A9AAD;
    
    --accent-primary: #1B7834;
    --accent-secondary: #D93636;
    --accent-warning: #D49A0E;
    --accent-danger: #D93636;
    --accent-info: #1F858F;
    --border-color: #C8BDA8;
    
    --gradient-primary: linear-gradient(135deg, #145F29 0%, #1B7834 100%);
    --gradient-ocean: linear-gradient(135deg, #1F858F 0%, #145F67 100%);
    --gradient-sand: linear-gradient(135deg, #D49A0E 0%, #B8800A 100%);
    --gradient-cocktail: linear-gradient(135deg, #D93636 0%, #B32828 100%);
    --gradient-palm: linear-gradient(135deg, #1B7834 0%, #145F29 100%);
    --gradient-tropical: linear-gradient(135deg, #1F858F 0%, #1B7834 40%, #D49A0E 80%, #D93636 100%);
    --gradient-sunset: linear-gradient(135deg, #D49A0E 0%, #D93636 50%, #1F858F 100%);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bg-primary);
    background-image:
        radial-gradient(ellipse at 0% 0%, rgba(31, 133, 143, 0.04) 0%, transparent 50%),
        radial-gradient(ellipse at 100% 0%, rgba(27, 120, 52, 0.03) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 100%, rgba(212, 154, 14, 0.03) 0%, transparent 50%);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Merriweather', 'Georgia', 'Times New Roman', serif;
    font-weight: 700;
    color: var(--text-primary);
}

a { color: var(--ocean-dark); text-decoration: none; font-weight: 500; }
a:hover { color: var(--palm-dark); }

.container { max-width: 1400px; margin: 0 auto; padding: 0 24px; }

/* ============================================
   BUTTONS — dengan warna 4 tema
   ============================================ */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 24px; border-radius: 10px; font-weight: 600; font-size: 0.95rem;
    cursor: pointer; border: none; transition: all 0.2s ease; text-decoration: none;
}
.btn-primary { 
    background: var(--gradient-palm); 
    color: #FFFFFF; 
    box-shadow: 0 4px 15px rgba(27, 120, 52, 0.3);
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}
.btn-primary:hover { transform: translateY(-2px); color: #FFFFFF; box-shadow: 0 6px 20px rgba(27, 120, 52, 0.4); }
.btn-secondary { background: var(--bg-card); color: var(--text-primary); border: 2px solid var(--border-color); }
.btn-secondary:hover { border-color: var(--ocean); background: var(--ocean-light); color: var(--ocean-dark); }
.btn-danger { background: var(--gradient-cocktail); color: #FFFFFF; text-shadow: 0 1px 2px rgba(0,0,0,0.2); }
.btn-success { background: var(--gradient-palm); color: #FFFFFF; text-shadow: 0 1px 2px rgba(0,0,0,0.2); }
.btn-ocean { background: var(--gradient-ocean); color: #FFFFFF; box-shadow: 0 4px 12px rgba(31, 133, 143, 0.3); text-shadow: 0 1px 2px rgba(0,0,0,0.2); }
.btn-ocean:hover { transform: translateY(-2px); color: #FFFFFF; }
.btn-sand { background: var(--gradient-sand); color: #FFFFFF; box-shadow: 0 4px 12px rgba(212, 154, 14, 0.3); text-shadow: 0 1px 2px rgba(0,0,0,0.2); }
.btn-sand:hover { transform: translateY(-2px); color: #FFFFFF; }
.btn-sm { padding: 8px 16px; font-size: 0.85rem; }
.btn-lg { padding: 16px 32px; }
.btn-block { width: 100%; }

/* ============================================
   HEADER — gradient Ocean ke Palm
   ============================================ */
.header {
    background: linear-gradient(135deg, #1F858F 0%, #1B7834 60%, #166E76 100%);
    border-bottom: 3px solid var(--sand);
    position: sticky; top: 0; z-index: 1000;
    box-shadow: 0 4px 20px rgba(31, 133, 143, 0.25);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; }
.logo-section { display: flex; align-items: center; gap: 16px; }
.logo-img {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    object-fit: contain;
    padding: 4px;
    border: 2px solid var(--sand);
    background: rgba(255, 255, 255, 0.95);
    flex-shrink: 0;
}
.logo-text h1 { font-size: 1.15rem; color: #FFFFFF; font-weight: 700; text-shadow: 0 2px 4px rgba(0,0,0,0.3); }
.logo-text span { font-size: 0.78rem; color: rgba(255, 255, 255, 0.9); display: block; text-shadow: 0 1px 2px rgba(0,0,0,0.2); }
.nav-links { display: flex; gap: 10px; }
.nav-link { 
    padding: 10px 20px; 
    border-radius: 8px; 
    color: #FFFFFF; 
    font-weight: 600; 
    transition: all 0.2s; 
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}
.nav-link:hover { background: rgba(255, 255, 255, 0.2); color: sand; }
.nav-link.active { background: var(--sand); color: #FFFFFF; box-shadow: 0 2px 10px rgba(212, 154, 14, 0.4); text-shadow: 0 1px 2px rgba(0,0,0,0.2); }
.btn-admin { border: 2px solid var(--sand); color: #FFFFFF; background: transparent; }
.btn-login { border: 2px solid var(--sand); color: #green; background: orange; }
.btn-admin:hover { background: var(--sand); color: #FFFFFF; }

/* ============================================
   HERO — Judul Menarik dengan Dekorasi 4 Warna
   ============================================ */
.hero {
    padding: 80px 0 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(160deg, var(--ocean-light) 0%, #FFFFFF 30%, var(--palm-light) 50%, #FFFFFF 75%);
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 5px;
    background: var(--gradient-tropical);
    z-index: 2;
}

.hero-spacer {
    background: var(--bg-primary);
    height: 40px;
    position: relative;
}
.hero-spacer::before {
    content: '';
    position: absolute;
    top: -1px; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--border-color) 20%, var(--border-color) 80%, transparent 100%);
}

/* ---------- Blob dekorasi ---------- */
.hero-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: 0.25;
    pointer-events: none;
    z-index: 0;
}
.hero-blob.blob-ocean {
    width: 300px; height: 300px;
    background: var(--ocean);
    top: -80px; left: -60px;
    animation: blobFloat 8s ease-in-out infinite;
}
.hero-blob.blob-palm {
    width: 250px; height: 250px;
    background: var(--palm);
    top: -40px; right: -40px;
    animation: blobFloat 10s ease-in-out 1s infinite;
}
.hero-blob.blob-sand {
    width: 220px; height: 220px;
    background: var(--sand);
    bottom: -60px; left: 15%;
    animation: blobFloat 9s ease-in-out 2s infinite;
}
.hero-blob.blob-cocktail {
    width: 200px; height: 200px;
    background: var(--cocktail);
    bottom: -50px; right: 10%;
    animation: blobFloat 11s ease-in-out 0.5s infinite;
}

@keyframes blobFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33%      { transform: translate(15px, -20px) scale(1.05); }
    66%      { transform: translate(-10px, 10px) scale(0.95); }
}

/* ---------- Konten hero ---------- */
.hero-content {
    position: relative;
    z-index: 1;
    max-width: 720px;
    margin: 0 auto;
}

/* Ikon dekoratif atas */
.hero-icon-row {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 24px;
}
.hero-icon-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    animation: dotPulse 2s ease-in-out infinite;
}
.hero-icon-dot:nth-child(1) { background: var(--ocean); animation-delay: 0s; }
.hero-icon-dot:nth-child(2) { background: var(--palm); animation-delay: 0.3s; }
.hero-icon-dot:nth-child(3) { background: var(--sand); animation-delay: 0.6s; }
.hero-icon-dot:nth-child(4) { background: var(--cocktail); animation-delay: 0.9s; }
@keyframes dotPulse {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50%      { transform: scale(1.4); opacity: 1; }
}

/* Label kecil atas judul */
.hero-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--ocean-dark);
    background: rgba(31, 133, 143, 0.15);
    border: 1px solid rgba(31, 133, 143, 0.3);
    margin-bottom: 20px;
}

/* Judul utama */
.hero-title {
    font-family: 'Merriweather', 'Georgia', serif;
    font-size: 2.8rem;
    font-weight: 900;
    line-height: 1.25;
    color: var(--text-primary);
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.hero-title .highlight-ocean {
    color: var(--ocean-dark);
    position: relative;
}

.hero-title .highlight-palm {
    color: var(--palm-dark);
    position: relative;
}

/* Garis dekoratif di bawah judul */
.hero-title-line {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin: 20px auto 24px;
    width: fit-content;
}
.hero-title-line .line-seg {
    height: 3px;
    border-radius: 3px;
}
.hero-title-line .line-ocean  { width: 50px; background: var(--ocean); }
.hero-title-line .line-palm   { width: 35px; background: var(--palm); }
.hero-title-line .line-sand   { width: 25px; background: var(--sand); }
.hero-title-line .line-cocktail { width: 18px; background: var(--cocktail); }

.hero-title-line .line-diamond {
    width: 10px; height: 10px;
    background: var(--sand);
    transform: rotate(45deg);
    margin: 0 8px;
    flex-shrink: 0;
}

/* Subtitle */
.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 520px;
    margin: 0 auto 32px;
    font-weight: 500;
}

/* Badge statistik */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
}
.hero-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}
.hero-stat-value {
    font-family: 'Merriweather', 'Georgia', serif;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
}
.hero-stat-item:nth-child(1) .hero-stat-value { color: var(--ocean-dark); }
.hero-stat-item:nth-child(2) .hero-stat-value { color: var(--palm-dark); }
.hero-stat-item:nth-child(3) .hero-stat-value { color: var(--sand-dark); }
.hero-stat-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.today-section {
    padding: 50px 0 40px;
    background: var(--bg-primary);
}

/* Responsive */
@media (max-width: 768px) {
    .hero { padding: 60px 0 80px; }
    .hero-title { font-size: 2rem; }
    .hero-subtitle { font-size: 1rem; }
    .hero-stats { gap: 20px; }
    .hero-stat-value { font-size: 1.2rem; }
    .hero-blob { display: none; }
    .today-section { padding: 40px 0 30px; }
}

.rooms-section { padding: 20px 0 60px; }
.section-title { margin-bottom: 30px; font-size: 1.25rem; color: var(--ocean-dark); font-weight: 700; }

.room-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.room-card { 
    background: var(--bg-card); 
    border-radius: 16px; 
    overflow: hidden; 
    border: 2px solid var(--border-color); 
    transition: 0.3s; 
    text-decoration: none; 
    display: flex; 
    flex-direction: column; 
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08); 
}
.room-card:hover { transform: translateY(-5px); border-color: var(--ocean); box-shadow: 0 8px 25px rgba(31, 133, 143, 0.2); }
.room-image { height: 180px; position: relative; overflow: hidden; }
.room-image img { width: 100%; height: 100%; object-fit: cover; }
.room-status { position: absolute; top: 10px; right: 10px; padding: 5px 14px; border-radius: 20px; font-size: 0.72rem; font-weight: 700; }
.status-tersedia { background: var(--palm); color: #FFFFFF; }
.status-tidak { background: var(--cocktail); color: #FFFFFF; }
.room-content { padding: 20px; flex-grow: 1; display: flex; flex-direction: column; }
.room-content h3 { font-size: 1.1rem; margin-bottom: 10px; color: var(--ocean-dark); font-weight: 700; }
.room-info-item { font-size: 0.88rem; color: var(--text-secondary); margin-bottom: 10px; display: flex; align-items: center; gap: 6px; font-weight: 500; }
.room-facilities { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.facility-tag { background: var(--ocean-light); color: var(--ocean-dark); padding: 5px 10px; border-radius: 4px; font-size: 0.72rem; font-weight: 600; }

/* ============================================
   FORMS & LOGIN
   ============================================ */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: linear-gradient(135deg, var(--ocean-light) 0%, var(--sand-light) 40%, var(--palm-light) 70%, var(--ocean-soft) 100%);
}
.login-card {
    padding: 40px;
    border-radius: 20px;
    width: 100%;
    max-width: 400px;
    border: 2px solid var(--ocean);
    text-align: center;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    position: relative;
    overflow: hidden;
}
.login-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 5px;
    background: var(--gradient-tropical);
}
.login-logo {
    width: 90px;
    height: 90px;
    margin: 0 auto 20px;
    border-radius: 16px;
    overflow: hidden;
    border: 3px solid var(--ocean);
    display: flex;
    align-items: center;
    justify-content: center;
    background: #FFFFFF;
    padding: 10px;
}
.login-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.form-group { margin-bottom: 20px; text-align: left; }
.form-label { display: block; margin-bottom: 8px; font-weight: 600; font-size: 0.9rem; color: var(--text-primary); }
.form-input, .form-select {
    width: 100%; padding: 14px 16px;
    background: #FFFFFF;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.2s;
}
.form-input:focus, .form-select:focus {
    outline: none;
    border-color: var(--ocean);
    box-shadow: 0 0 0 3px rgba(31, 133, 143, 0.15);
}
.form-input::placeholder { color: var(--text-muted); }

.alert { padding: 14px; border-radius: 10px; margin-bottom: 20px; font-size: 0.9rem; font-weight: 500; }
.alert-error { background: var(--cocktail-light); color: var(--cocktail-dark); border: 1px solid rgba(217, 54, 54, 0.3); }

/* ============================================
   ADMIN SIDEBAR
   ============================================ */
.admin-layout { 
    display: flex; 
    min-height: 100vh; 
    width: 100%; /* Tambahkan ini */
    overflow-x: hidden; /* Tambahkan ini untuk mencegah scroll horizontal global */
}
.sidebar {
    width: 260px;
    background: linear-gradient(180deg, #1F858F 0%, #166E76 40%, #145F29 100%);
    border-right: 3px solid var(--sand);
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    box-shadow: 4px 0 20px rgba(31, 133, 143, 0.2);
	flex-shrink: 0; /* Tambahkan ini agar sidebar tidak mengecil */
}
.sidebar-header { padding: 20px; border-bottom: 1px solid rgba(255, 255, 255, 0.15); }
.sidebar-logo { display: flex; align-items: center; gap: 12px; }
.sidebar-logo img {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    object-fit: contain;
    padding: 3px;
    border: 2px solid var(--sand);
    background: rgba(255, 255, 255, 0.95);
}
.sidebar-logo h3 { font-size: 0.95rem; color: #FFFFFF; font-weight: 700; text-shadow: 0 1px 2px rgba(0,0,0,0.2); }
.sidebar-logo span { font-size: 0.75rem; color: rgba(255, 255, 255, 0.85); }
.sidebar-nav { padding: 16px; }
.sidebar-menu { list-style: none; }
.sidebar-menu li { margin-bottom: 4px; }
.sidebar-menu a { 
    display: flex; 
    align-items: center; 
    gap: 12px; 
    padding: 12px 14px; 
    border-radius: 8px; 
    color: #FFFFFF; 
    font-weight: 600; 
    transition: 0.2s; 
    font-size: 0.9rem; 
}
.sidebar-menu a:hover { background: rgba(255, 255, 255, 0.15); color: #FFFFFF; }
.sidebar-menu a.active { background: var(--sand); color: #FFFFFF; box-shadow: 0 2px 10px rgba(212, 154, 14, 0.3); }
.sidebar-menu a svg { width: 18px; height: 18px; flex-shrink: 0; }

.admin-main { 
    flex: 1; 
    margin-left: 260px; 
    width: calc(100% - 260px); /* Hitung lebar pasti */
    max-width: 100%; /* Batasi maksimal */
    min-width: 0; /* Penting: Agar flex item bisa mengecil lebih kecil dari kontennya */
    display: flex;
    flex-direction: column;
    overflow-x: hidden; /* Sembunyikan overflow horizontal di level layout */
}
.admin-header {
    background: #FFFFFF;
    padding: 16px 32px;
    border-bottom: 2px solid var(--ocean);
    display: flex; justify-content: space-between; align-items: center;
    position: sticky; top: 0; z-index: 10;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
	flex-shrink: 0; /* Agar header tidak mengecil */
}
.admin-content { 
    padding: 30px; 
    background: var(--bg-primary); 
    background-image: radial-gradient(ellipse at 80% 20%, rgba(31, 133, 143, 0.03) 0%, transparent 50%), radial-gradient(ellipse at 20% 80%, rgba(212, 154, 14, 0.03) 0%, transparent 50%); 
    min-height: calc(100vh - 65px); 
    flex: 1;
    overflow-x: hidden; /* Sembunyikan overflow global */
    min-width: 0;
    max-width: 100%; /* Pastikan tidak melebihi parent */
    box-sizing: border-box;
}

/* ============================================
   DASHBOARD STATS
   ============================================ */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-bottom: 30px; }
.stat-card {
    background: #FFFFFF;
    border-radius: 12px; padding: 20px;
    border-left: 4px solid;
    display: flex; align-items: center; gap: 16px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}
.stat-card:nth-child(1) { border-left-color: var(--ocean); }
.stat-card:nth-child(2) { border-left-color: var(--sand); }
.stat-card:nth-child(3) { border-left-color: var(--palm); }
.stat-card:nth-child(4) { border-left-color: var(--cocktail); }
.stat-icon { width: 50px; height: 50px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; }
.icon-total { background: var(--ocean-light); color: var(--ocean-dark); }
.icon-pending { background: var(--sand-light); color: var(--sand-dark); }
.icon-approved { background: var(--palm-light); color: var(--palm-dark); }
.icon-rejected { background: var(--cocktail-light); color: var(--cocktail-dark); }
.stat-value { font-size: 1.8rem; font-weight: 700; font-family: 'Merriweather', 'Georgia',  sans-serif; }
.stat-card:nth-child(1) .stat-value { color: var(--ocean-dark); }
.stat-card:nth-child(2) .stat-value { color: var(--sand-dark); }
.stat-card:nth-child(3) .stat-value { color: var(--palm-dark); }
.stat-card:nth-child(4) .stat-value { color: var(--cocktail-dark); }
.stat-label { font-size: 0.88rem; color: var(--text-secondary); font-weight: 500; }

/* ============================================
   DATA TABLE - Clean & Modern Style (WITH BORDERS)
   ============================================ */
.data-card {
    background: #FFFFFF;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    overflow: hidden; 
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    position: relative;
    margin-bottom: 24px;
}
.data-header {
    padding: 16px 24px;
    border-bottom: 1px solid var(--border-color);
    background: #FAFAFA;
    display: flex; justify-content: space-between; align-items: center;
}
.data-header h3 { color: var(--text-primary); font-weight: 700; font-size: 1rem; margin: 0; }

/* Wrapper utama DataTables */
.dataTables_wrapper {
    padding: 24px; /* Memberi jarak antara konten dengan pinggir kartu */
    box-sizing: border-box;
}

/* Styling Dasar Tabel - PAKSA BORDER */
table.dataTable { 
    width: 100% !important; 
    border-collapse: collapse !important; /* Penting: menggabungkan border */
    margin: 0;
}

/* Header Tabel - Garis Tegas */
table.dataTable thead th { 
    background: var(--bg-secondary); 
    color: var(--text-primary); 
    border: 1px solid #C8BDA8 !important; /* PAKSA BORDER */
    border-bottom: 2px solid var(--ocean) !important; /* Border bawah header lebih tebal */
    font-weight: 700; 
    white-space: nowrap; 
    padding: 12px 16px;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: left;
}

/* Body Tabel - Garis Tegas */
table.dataTable tbody td { 
    border: 1px solid #C8BDA8 !important; /* PAKSA BORDER */
    vertical-align: middle; 
    padding: 10px 16px;
    font-size: 0.88rem;
    color: var(--text-secondary);
    background: #FFFFFF;
}

/* Efek Zebra Striping */
table.dataTable tbody tr:nth-child(even) td {
    background-color: #FAFAFA !important;
}
table.dataTable tbody tr:hover td {
    background-color: var(--ocean-light) !important;
}

/* Kontrol Atas (Show Entries & Search) */
.dataTables_wrapper .dataTables_length, 
.dataTables_wrapper .dataTables_filter {
    margin-bottom: 20px;
}
.dataTables_wrapper .dataTables_length select { 
    border: 1px solid var(--border-color); 
    border-radius: 6px; 
    padding: 6px 10px; 
    background: #FFF; 
    color: var(--text-primary); 
    font-weight: 500;
    cursor: pointer;
    margin-right: 5px;
}
.dataTables_wrapper .dataTables_filter input { 
    border: 1px solid var(--border-color); 
    border-radius: 6px; 
    padding: 8px 12px; 
    background: #FFF; 
    color: var(--text-primary); 
    margin-left: 5px;
    transition: border-color 0.2s;
}
.dataTables_wrapper .dataTables_filter input:focus {
    border-color: var(--ocean);
    outline: none;
    box-shadow: 0 0 0 2px rgba(31, 133, 143, 0.1);
}

/* Pagination */
.dataTables_wrapper .dataTables_paginate { 
    margin-top: 20px; 
}
.dataTables_wrapper .dataTables_paginate .paginate_button { 
    color: var(--text-secondary) !important; 
    border-radius: 6px !important; 
    margin: 0 2px; 
    border: 1px solid var(--border-color) !important;
    background: #FFF !important;
    padding: 6px 12px;
}
.dataTables_wrapper .dataTables_paginate .paginate_button.current { 
    background: var(--ocean) !important; 
    color: #FFF !important; 
    border-color: var(--ocean) !important; 
}
.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: var(--ocean-light) !important;
    color: var(--ocean-dark) !important;
    border-color: var(--ocean) !important;
}
.dataTables_wrapper .dataTables_info {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 10px;
}

/* Wrapper Scroll (jika layar kecil) */
.table-responsive-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.data-table { 
    width: 100%; 
    border-collapse: collapse;
    table-layout: auto; /* Biarkan browser mengatur, tapi kita kompakkan konten */
}

/* Perkecil Padding dan Font */
.data-table th, .data-table td { 
    padding: 8px 10px; /* Diperkecil dari 14px 16px */
    text-align: left; 
    border-bottom: 1px solid var(--border-color); 
    vertical-align: middle; /* Tengah secara vertikal agar rapi */
}

.data-table th { 
    background: linear-gradient(90deg, var(--ocean-light) 0%, var(--sand-light) 50%, var(--palm-light) 100%); 
    font-size: 0.72rem; /* Diperkecil */
    color: var(--ocean-dark); 
    text-transform: uppercase; 
    font-weight: 700; 
    letter-spacing: 0.3px;
    white-space: nowrap; /* Header tetap satu baris */
}

.data-table td { 
    font-size: 0.82rem; /* Diperkecil dari 0.9rem */
    color: var(--text-primary); 
    font-weight: 500; 
}

.data-table tr:hover td { background: var(--ocean-light); }

/* Aturan Khusus Kolom */
.data-table td:nth-child(1) { width: 30px; text-align: center; font-weight: 600; color: var(--text-muted); } /* No */
.data-table td:nth-child(4) { white-space: normal; min-width: 100px; line-height: 1.3; } /* Jadwal: Bisa wrap */
.data-table td:nth-child(5) { max-width: 120px; } /* Keperluan: Batasi lebar */
.data-table td:nth-child(7) { max-width: 100px; } /* Catatan: Batasi lebar */
.data-table td:nth-child(9) { min-width: 140px; } /* Aksi */
.status-badge { padding: 3px 8px; border-radius: 12px; font-size: 0.68rem; font-weight: 700; }
.badge-pending { background: var(--sand-light); color: var(--sand-dark); border: 1px solid rgba(212, 154, 14, 0.3); }
.badge-approved { background: var(--palm-light); color: var(--palm-dark); border: 1px solid rgba(27, 120, 52, 0.3); }
.badge-rejected { background: var(--cocktail-light); color: var(--cocktail-dark); border: 1px solid rgba(217, 54, 54, 0.3); }

/* Tombol Aksi lebih kecil */
.action-buttons { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; }
.btn-sm { padding: 5px 10px; font-size: 0.75rem; } /* Diperkecil */
.action-divider { height: 18px; margin: 0 1px; }

.btn-icon { width: 28px; height: 28px; } /* Diperkecil */

/* Kelas helper untuk memotong teks panjang */
.text-truncate {
    display: block;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.table-controls { padding: 12px 16px; border-bottom: 1px solid var(--border-color); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.pagination-wrapper { padding: 16px; display: flex; justify-content: space-between; align-items: center; border-top: 2px solid var(--ocean); background: var(--ocean-light); flex-wrap: wrap; gap: 12px; }
.page-link { 
    padding: 8px 12px; 
    background: #FFFFFF; 
    border: 2px solid var(--border-color); 
    border-radius: 8px; 
    color: var(--text-primary); 
    font-size: 0.88rem; 
    font-weight: 600;
    margin-right: 4px; 
}
.page-link:hover { border-color: var(--ocean); background: var(--ocean-light); color: var(--ocean-dark); }
.page-link.active { background: var(--ocean); color: #FFFFFF; border-color: var(--ocean); }

/* Modal */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); display: flex; align-items: center; justify-content: center; z-index: 999; visibility: hidden; opacity: 0; transition: 0.3s; }
.modal-overlay.active { visibility: visible; opacity: 1; }
.modal-content { background: #FFFFFF; padding: 24px; border-radius: 16px; width: 90%; max-width: 500px; position: relative; border: 2px solid var(--ocean); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15); }
.modal-close { position: absolute; top: 10px; right: 10px; background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 1.5rem; }

/* Room Detail Page */
.room-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-bottom: 30px; }
@media (max-width: 768px) { .room-detail-grid { grid-template-columns: 1fr; } }
.room-info-card { background: #FFFFFF; border-radius: 12px; padding: 24px; border: 2px solid var(--border-color); border-left: 4px solid var(--ocean); box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06); }

/* Calendar */
.calendar-grid { border: 2px solid var(--ocean); border-radius: 12px; overflow: hidden; }
.calendar-weekdays { display: grid; grid-template-columns: repeat(7, 1fr); background: linear-gradient(90deg, var(--ocean) 0%, var(--palm) 100%); }
.weekday { padding: 12px; text-align: center; font-size: 0.8rem; font-weight: 700; color: #FFFFFF; text-shadow: 0 1px 2px rgba(0,0,0,0.2); }
.calendar-body { display: grid; grid-template-columns: repeat(7, 1fr); }
.calendar-day { min-height: 80px; padding: 8px; border: 1px solid var(--border-color); border-top: none; border-left: none; background: #FFFFFF; }
.calendar-day:nth-child(7n) { border-right: none; }
.calendar-day.other-month { background: var(--ocean-light); opacity: 0.6; }
.calendar-day.today { background: var(--sand-light); }
.day-number { font-size: 0.88rem; font-weight: 700; display: block; margin-bottom: 4px; color: var(--ocean-dark); }
.calendar-day.today .day-number { background: var(--sand); color: #FFFFFF; width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.booking-indicator { display: flex; gap: 3px; margin-bottom: 4px; }
.booking-dot { width: 6px; height: 6px; border-radius: 50%; }
.dot-approved { background: var(--palm); }
.dot-pending { background: var(--sand); }
.dot-rejected { background: var(--cocktail); }
.booking-list { display: flex; flex-direction: column; gap: 2px; }
.booking-item { font-size: 0.68rem; background: var(--ocean-light); padding: 3px 6px; border-radius: 3px; border-left: 3px solid; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-weight: 500; }
.booking-item.approved { border-color: var(--palm); color: var(--palm-dark); }
.booking-item.pending { border-color: var(--sand); color: var(--sand-dark); }
.booking-item.rejected { border-color: var(--cocktail); color: var(--cocktail-dark); }

.footer {
    padding: 20px; text-align: center; color: #FFFFFF;
    background: linear-gradient(90deg, var(--ocean) 0%, var(--palm) 50%, var(--ocean) 100%);
    border-top: 3px solid var(--sand);
    margin-top: 40px;
}

.logo-preview {
    width: 100px; height: 100px; border-radius: 12px;
    background: var(--ocean-light); display: flex; align-items: center; justify-content: center;
    margin-bottom: 16px; overflow: hidden; border: 2px solid var(--ocean); position: relative;
}
.logo-preview img { width: 100%; height: 100%; object-fit: contain; background: transparent; }
.logo-preview svg { opacity: 0.5; }

.file-input-wrapper { position: relative; overflow: hidden; display: inline-block; width: 100%; }
.file-input { position: absolute; left: 0; top: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; z-index: 2; }
.file-label {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 20px; background: var(--ocean-light); border: 2px dashed var(--ocean);
    border-radius: 10px; cursor: pointer; transition: all 0.2s ease;
    font-size: 0.9rem; color: var(--ocean-dark); font-weight: 600;
}
.file-label:hover { background: var(--ocean-soft); border-color: var(--palm); }

.settings-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
.settings-card { background: #FFFFFF; border-radius: 16px; border: 2px solid var(--ocean); padding: 24px; max-width: 600px; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06); }

.admin-footer {
    background: linear-gradient(90deg, var(--ocean) 0%, var(--palm) 50%, var(--ocean) 100%);
    border-top: 3px solid var(--sand);
    padding: 16px 32px; text-align: center; font-size: 0.88rem; color: #FFFFFF; margin-top: auto; font-weight: 500;
}
.login-footer { margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--border-color); text-align: center; font-size: 0.85rem; color: var(--text-muted); }

@media (max-width: 768px) {
    .admin-main { 
        margin-left: 0 !important; 
        width: 100% !important; /* Full width di mobile */
    }
}

/* ============================================
   GALLERY STYLES
   ============================================ */
.main-photo-container { width: 100%; height: 350px; border-radius: 12px; overflow: hidden; background: var(--ocean-light); position: relative; cursor: pointer; border: 2px solid var(--ocean); }
.main-photo-container img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.main-photo-container:hover img { transform: scale(1.02); }
.thumbnail-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)); gap: 8px; }
.thumbnail-item { width: 100%; aspect-ratio: 1; border-radius: 8px; overflow: hidden; cursor: pointer; border: 2px solid transparent; opacity: 0.8; transition: all 0.2s ease; }
.thumbnail-item:hover, .thumbnail-item.active { border-color: var(--ocean); opacity: 1; transform: translateY(-2px); }
.thumbnail-item img { width: 100%; height: 100%; object-fit: cover; }

/* ============================================
   TEXTAREA & FORM REFINEMENTS
   ============================================ */
.form-textarea-improved {
    width: 100%; min-height: 160px; padding: 16px; font-size: 1rem;
    font-family: 'Inter', 'Segoe UI',  sans-serif; line-height: 1.6;
    background: #FFFFFF; border: 2px solid var(--border-color); border-radius: 12px;
    color: var(--text-primary); resize: vertical; transition: all 0.2s ease; font-weight: 500;
}
.form-textarea-improved:focus { outline: none; border-color: var(--ocean); box-shadow: 0 0 0 4px rgba(31, 133, 143, 0.1); }
.form-textarea-improved::placeholder { color: var(--text-muted); font-style: italic; }
.form-label-enhanced { display: flex; align-items: center; gap: 8px; font-weight: 700; margin-bottom: 10px; color: var(--text-primary); }
.form-label-enhanced svg { color: var(--ocean); }

.form-input-single-line {
    width: 100%; padding: 14px 16px; background: #FFFFFF;
    border: 2px solid var(--border-color); border-radius: 10px;
    color: var(--text-primary); font-size: 1rem; font-family: inherit; font-weight: 500;
    transition: border-color 0.2s ease; overflow: hidden; resize: none; min-height: 50px; line-height: 1.5; white-space: nowrap;
}
.form-input-single-line:focus { outline: none; border-color: var(--ocean); box-shadow: 0 0 0 4px rgba(31, 133, 143, 0.1); }
.form-input-single-line.auto-expand { white-space: pre-wrap; min-height: 50px; height: auto; }

/* ============================================
   SLIDER
   ============================================ */
.slider-container { position: relative; width: 100%; max-height: 400px; border-radius: 16px; overflow: hidden; background: var(--ocean-light); border: 2px solid var(--ocean); margin-bottom: 16px; }
.slider-viewport { width: 100%; height: 400px; position: relative; }
.slider-slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 0.5s ease-in-out; cursor: pointer; }
.slider-slide.active { opacity: 1; z-index: 1; }
.slider-slide img { width: 100%; height: 100%; object-fit: cover; }
.slider-btn { position: absolute; top: 50%; transform: translateY(-50%); z-index: 10; background: var(--ocean); color: #FFFFFF; border: none; width: 40px; height: 40px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background 0.2s; box-shadow: 0 2px 8px rgba(0,0,0,0.15); }
.slider-btn:hover { background: var(--palm); }
.slider-btn.prev { left: 15px; }
.slider-btn.next { right: 15px; }
.slider-dots { position: absolute; bottom: 15px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 10; }
.slider-dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, 0.5); cursor: pointer; transition: all 0.2s; }
.slider-dot.active { background: var(--sand); transform: scale(1.2); }

/* ============================================
   BOOKING DETAIL MODAL
   ============================================ */
.booking-item { cursor: pointer; transition: all 0.2s ease; }
.booking-item:hover { transform: translateX(2px); filter: brightness(1.05); }
.booking-more { font-size: 0.68rem; color: var(--ocean-dark); cursor: pointer; padding: 3px 6px; border-radius: 4px; display: inline-block; transition: all 0.2s ease; font-weight: 600; }
.booking-more:hover { color: var(--palm-dark); text-decoration: underline; }
.calendar-day.has-bookings { cursor: pointer; }
.calendar-day.has-bookings:hover { background: var(--ocean-light) !important; }

.modal-detail-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.5); display: flex; align-items: center; justify-content: center; z-index: 9999; visibility: hidden; opacity: 0; transition: all 0.3s ease; backdrop-filter: blur(4px); }
.modal-detail-overlay.active { visibility: visible; opacity: 1; }
.modal-detail { background: #FFFFFF; border: 2px solid var(--ocean); border-radius: 20px; width: 90%; max-width: 480px; max-height: 85vh; overflow-y: auto; transform: translateY(20px) scale(0.95); transition: all 0.3s ease; box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15); }
.modal-detail-overlay.active .modal-detail { transform: translateY(0) scale(1); }
.modal-detail-header { padding: 24px 24px 16px; border-bottom: 2px solid var(--ocean); display: flex; justify-content: space-between; align-items: flex-start; background: var(--ocean-light); border-radius: 18px 18px 0 0; }
.modal-detail-title { font-family: 'Merriweather', 'Georgia',  sans-serif; font-size: 1.15rem; font-weight: 700; color: var(--ocean-dark); }
.modal-detail-close { background: #FFFFFF; border: 2px solid var(--border-color); color: var(--text-muted); width: 32px; height: 32px; border-radius: 8px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.2s ease; flex-shrink: 0; }
.modal-detail-close:hover { background: var(--cocktail); color: white; border-color: var(--cocktail); }
.modal-detail-body { padding: 20px 24px 24px; }
.detail-status-badge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 20px; font-size: 0.82rem; font-weight: 700; margin-bottom: 20px; }
.detail-status-badge.status-approved { background: var(--palm-light); color: var(--palm-dark); border: 1px solid rgba(27, 120, 52, 0.3); }
.detail-status-badge.status-pending { background: var(--sand-light); color: var(--sand-dark); border: 1px solid rgba(212, 154, 14, 0.3); }
.detail-status-badge.status-rejected { background: var(--cocktail-light); color: var(--cocktail-dark); border: 1px solid rgba(217, 54, 54, 0.3); }
.detail-row { display: flex; padding: 12px 0; border-bottom: 1px solid var(--border-color); }
.detail-row:last-child { border-bottom: none; }
.detail-label { width: 120px; flex-shrink: 0; font-size: 0.88rem; color: var(--ocean-dark); font-weight: 600; }
.detail-value { flex: 1; font-size: 0.92rem; color: var(--text-primary); font-weight: 500; word-break: break-word; }

.day-bookings-list { display: flex; flex-direction: column; gap: 10px; }
.day-booking-card { background: var(--ocean-light); border: 2px solid var(--border-color); border-radius: 12px; padding: 14px; cursor: pointer; transition: all 0.2s ease; display: flex; align-items: center; gap: 12px; }
.day-booking-card:hover { border-color: var(--ocean); transform: translateX(4px); }
.day-booking-time { background: #FFFFFF; padding: 8px 10px; border-radius: 8px; text-align: center; min-width: 60px; border: 1px solid var(--border-color); }
.day-booking-time .time-start { font-size: 0.88rem; font-weight: 700; color: var(--ocean-dark); font-family: 'Merriweather', 'Georgia',  sans-serif; }
.day-booking-time .time-end { font-size: 0.72rem; color: var(--text-muted); }
.day-booking-info { flex: 1; min-width: 0; }
.day-booking-name { font-size: 0.92rem; font-weight: 600; color: var(--text-primary); margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.day-booking-purpose { font-size: 0.78rem; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.day-booking-status { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.day-booking-status.approved { background: var(--palm); }
.day-booking-status.pending  { background: var(--sand); }
.day-booking-status.rejected { background: var(--cocktail); }

/* ============================================
   BOOKING STATUS SECTION
   ============================================ */
.booking-status-section { padding: 20px 0 60px; }
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; flex-wrap: wrap; gap: 16px; }
.section-header h3 { display: flex; align-items: center; gap: 10px; font-size: 1.25rem; color: var(--ocean-dark); font-weight: 700; }
.section-header h3 svg { color: var(--ocean); }

.booking-search-bar { display: flex; gap: 8px; max-width: 400px; width: 100%; }
.booking-search-bar .form-input { flex: 1; padding: 12px 16px; font-size: 0.9rem; border-radius: 10px; border: 2px solid var(--border-color); background: #FFFFFF; color: var(--text-primary); font-weight: 500; transition: border-color 0.2s; }
.booking-search-bar .form-input:focus { outline: none; border-color: var(--ocean); box-shadow: 0 0 0 3px rgba(31, 133, 143, 0.1); }
.booking-search-bar .form-input::placeholder { color: var(--text-muted); }
.booking-search-bar .btn { flex-shrink: 0; }

.booking-filter-tabs { display: flex; gap: 6px; margin-bottom: 20px; flex-wrap: wrap; }
.filter-tab { padding: 10px 20px; border-radius: 20px; font-size: 0.85rem; font-weight: 600; cursor: pointer; border: 2px solid var(--border-color); background: #FFFFFF; color: var(--text-secondary); transition: all 0.2s ease; text-decoration: none; }
.filter-tab:hover { border-color: var(--ocean); color: var(--ocean-dark); }
.filter-tab.active { background: var(--ocean); color: #FFFFFF; border-color: var(--ocean); }
.filter-tab .tab-count { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; border-radius: 10px; font-size: 0.72rem; font-weight: 700; margin-left: 6px; padding: 0 6px; }
.filter-tab.active .tab-count { background: rgba(255, 255, 255, 0.25); color: #FFFFFF; }
.filter-tab:not(.active) .tab-count { background: var(--ocean-light); color: var(--ocean-dark); }

.booking-list { display: flex; flex-direction: column; gap: 10px; }
.booking-status-card { background: #FFFFFF; border: 2px solid var(--border-color); border-radius: 14px; padding: 18px 22px; display: flex; align-items: flex-start; gap: 16px; border-left: 4px solid; transition: all 0.25s ease; cursor: default; box-shadow: 0 1px 6px rgba(0, 0, 0, 0.05); }
.booking-status-card:hover { background: var(--bg-card-hover); transform: translateX(3px); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); }
.booking-status-card.card-approved { border-left-color: var(--palm); }
.booking-status-card.card-pending { border-left-color: var(--sand); }
.booking-status-card.card-rejected { border-left-color: var(--cocktail); }

.booking-card-icon { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 2px; }
.card-approved .booking-card-icon { background: var(--palm-light); color: var(--palm-dark); }
.card-pending .booking-card-icon { background: var(--sand-light); color: var(--sand-dark); }
.card-rejected .booking-card-icon { background: var(--cocktail-light); color: var(--cocktail-dark); }

.booking-card-body { flex: 1; min-width: 0; }
.booking-card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.booking-card-room { font-weight: 700; font-size: 1.02rem; color: var(--ocean-dark); font-family: 'Merriweather', 'Georgia',  sans-serif; }
.booking-card-badge { flex-shrink: 0; }
.booking-card-name { font-size: 0.92rem; color: var(--text-secondary); margin-bottom: 8px; display: flex; align-items: center; gap: 6px; font-weight: 500; }
.booking-card-name svg { flex-shrink: 0; color: var(--text-muted); }
.booking-card-details { display: flex; flex-wrap: wrap; gap: 16px; font-size: 0.85rem; color: var(--text-muted); font-weight: 500; }
.booking-card-details .detail-item { display: flex; align-items: center; gap: 5px; }
.booking-card-details .detail-item svg { flex-shrink: 0; opacity: 0.7; }
.booking-card-purpose { font-size: 0.82rem; color: var(--text-muted); margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--border-color); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 500; }

.booking-empty { text-align: center; padding: 50px 20px; color: var(--text-muted); }
.booking-empty svg { opacity: 0.3; margin-bottom: 16px; }
.booking-empty h4 { color: var(--text-secondary); font-size: 1.05rem; margin-bottom: 6px; font-weight: 600; }
.booking-empty p { font-size: 0.88rem; }

@media (max-width: 640px) {
    .section-header { flex-direction: column; align-items: flex-start; }
    .booking-search-bar { max-width: 100%; }
    .booking-card-top { flex-direction: column; align-items: flex-start; gap: 4px; }
    .booking-card-details { gap: 10px; }
    .booking-status-card { padding: 14px 16px; }
}

/* ============================================
   FORM CARD & LAYOUT
   ============================================ */
.form-card { background: #FFFFFF; border-radius: 20px; border: 2px solid var(--ocean); overflow: hidden; box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06); }
.form-header { padding: 28px 32px; border-bottom: 2px solid var(--ocean); background: var(--ocean-light); }
.form-header h3 { font-size: 1.3rem; margin-bottom: 4px; color: var(--ocean-dark); font-weight: 700; }
.form-header p { font-size: 0.92rem; color: var(--text-secondary); font-weight: 500; }
.form-header strong { color: var(--palm-dark); }
.form-card form { padding: 32px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } .form-card form { padding: 20px; } }
.form-label span { color: var(--cocktail); font-weight: 700; }

/* ============================================
   DATE & TIME PICKER
   ============================================ */
.picker-wrapper { position: relative; }
.picker-display { display: flex; align-items: center; gap: 14px; padding: 14px 18px; background: #FFFFFF; border: 2px solid var(--border-color); border-radius: 12px; color: var(--text-primary); cursor: pointer; transition: all 0.2s ease; min-height: 54px; user-select: none; }
.picker-display:hover { border-color: var(--ocean); }
.picker-display.active { border-color: var(--ocean); box-shadow: 0 0 0 4px rgba(31, 133, 143, 0.1); }
.picker-display svg { color: var(--ocean); flex-shrink: 0; }
.picker-display-text { flex: 1; min-width: 0; }
.picker-display-value { font-size: 1rem; font-weight: 600; color: var(--text-primary); }
.picker-display-label { font-size: 0.75rem; color: var(--text-muted); margin-top: 2px; }
.picker-display.placeholder .picker-display-value { color: var(--text-muted); font-weight: 400; }
.picker-display .chevron-icon { color: var(--text-muted); transition: transform 0.2s; }
.picker-display.active .chevron-icon { transform: rotate(180deg); }

.picker-popup { position: absolute; top: calc(100% + 8px); left: 0; background: #FFFFFF; border: 2px solid var(--ocean); border-radius: 16px; padding: 20px; z-index: 1000; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15); display: none; min-width: 320px; }
.picker-popup.active { display: block; animation: pickerFadeIn 0.25s ease; }
@keyframes pickerFadeIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }

.cp-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.cp-nav { background: var(--ocean-light); border: 2px solid var(--ocean); color: var(--ocean-dark); width: 34px; height: 34px; border-radius: 8px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.2s; }
.cp-nav:hover { background: var(--ocean); color: #FFFFFF; }
.cp-title { font-family: 'Merriweather', 'Georgia',  sans-serif; font-weight: 700; font-size: 0.95rem; color: var(--ocean-dark); }
.cp-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.cp-weekday { text-align: center; font-size: 0.72rem; font-weight: 700; color: var(--ocean-dark); padding: 8px 0; text-transform: uppercase; letter-spacing: 0.5px; }
.cp-day { text-align: center; padding: 9px 4px; border-radius: 8px; cursor: pointer; font-size: 0.88rem; font-weight: 500; transition: all 0.15s; position: relative; color: var(--text-primary); }
.cp-day:hover:not(.disabled):not(.empty) { background: var(--ocean-light); }
.cp-day.today { background: var(--sand-light); color: var(--sand-dark); font-weight: 700; }
.cp-day.selected { background: var(--ocean) !important; color: #FFFFFF !important; font-weight: 700; }
.cp-day.disabled { color: var(--text-muted); opacity: 0.3; cursor: not-allowed; }
.cp-day.empty { cursor: default; }
.cp-day.has-booking::after { content: ''; position: absolute; bottom: 4px; left: 50%; transform: translateX(-50%); width: 5px; height: 5px; border-radius: 50%; background: var(--sand); }
.cp-day.selected.has-booking::after { background: #FFFFFF; }

.tp-section { margin-bottom: 14px; }
.tp-section:last-of-type { margin-bottom: 0; }
.tp-label { font-size: 0.75rem; font-weight: 700; color: var(--ocean-dark); text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 8px; }
.tp-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.tp-grid.minutes { grid-template-columns: repeat(4, 1fr); }
.tp-btn { padding: 10px 4px; border-radius: 8px; border: 2px solid var(--border-color); background: #FFFFFF; color: var(--text-secondary); font-size: 0.88rem; font-weight: 600; cursor: pointer; transition: all 0.15s; text-align: center; font-family: 'Merriweather', 'Georgia',  sans-serif; }
.tp-btn:hover:not(.booked) { border-color: var(--ocean); color: var(--ocean-dark); background: var(--ocean-light); }
.tp-btn.selected { background: var(--ocean); color: #FFFFFF; border-color: var(--ocean); }
.tp-btn.booked { background: var(--cocktail-light); color: rgba(217, 54, 54, 0.6); border-color: rgba(217, 54, 54, 0.2); cursor: not-allowed; position: relative; }
.tp-btn.booked::after { content: ''; position: absolute; top: 50%; left: 20%; right: 20%; height: 1px; background: rgba(217, 54, 54, 0.4); }
.tp-preview { text-align: center; padding: 14px; background: var(--ocean-light); border-radius: 10px; margin-top: 14px; border: 2px solid var(--ocean); }
.tp-preview-time { font-family: 'Merriweather', 'Georgia',  sans-serif; font-size: 1.6rem; font-weight: 700; color: var(--ocean-dark); }
.tp-preview-label { font-size: 0.75rem; color: var(--text-muted); margin-top: 2px; }

.booked-info { margin-top: 20px; padding: 16px; background: var(--sand-light); border-radius: 12px; border: 1px solid rgba(212, 154, 14, 0.3); display: none; }
.booked-info.visible { display: block; }
.booked-info-title { font-size: 0.85rem; font-weight: 700; color: var(--sand-dark); margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.booked-info-title svg { color: var(--sand-dark); }
.booked-slot-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid rgba(212, 154, 14, 0.2); font-size: 0.85rem; }
.booked-slot-row:last-child { border-bottom: none; }
.slot-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.slot-dot.approved { background: var(--palm); }
.slot-dot.pending { background: var(--sand); }
.slot-dot.rejected { background: var(--cocktail); opacity: 0.5; }
.slot-time { font-weight: 700; font-family: 'Merriweather', 'Georgia',  sans-serif; color: var(--text-primary); min-width: 110px; }
.slot-name { color: var(--text-secondary); flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 500; }
.slot-status { font-size: 0.72rem; padding: 3px 8px; border-radius: 12px; font-weight: 600; flex-shrink: 0; }
.slot-status.approved { background: var(--palm-light); color: var(--palm-dark); }
.slot-status.pending { background: var(--sand-light); color: var(--sand-dark); }
.slot-status.rejected { background: var(--cocktail-light); color: var(--cocktail-dark); }
.no-slots { text-align: center; color: var(--palm-dark); font-size: 0.85rem; padding: 8px 0; font-weight: 500; }

/* ============================================
   TOAST
   ============================================ */
.toast-container { position: fixed; top: 24px; right: 24px; z-index: 99999; display: flex; flex-direction: column; gap: 12px; pointer-events: none; }
.toast { background: #FFFFFF; border: 2px solid var(--border-color); border-radius: 14px; padding: 18px 22px; border-left: 5px solid; display: flex; align-items: flex-start; gap: 14px; min-width: 360px; max-width: 460px; box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15); animation: toastIn 0.45s cubic-bezier(0.22, 1, 0.36, 1); pointer-events: all; position: relative; overflow: hidden; }
.toast.toast-success { border-left-color: var(--palm); }
.toast.toast-error { border-left-color: var(--cocktail); }
.toast-icon { width: 42px; height: 42px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.toast-success .toast-icon { background: var(--palm-light); color: var(--palm-dark); }
.toast-error .toast-icon { background: var(--cocktail-light); color: var(--cocktail-dark); }
.toast-body { flex: 1; min-width: 0; }
.toast-title { font-weight: 700; font-size: 0.98rem; margin-bottom: 3px; color: var(--text-primary); }
.toast-msg { font-size: 0.88rem; color: var(--text-secondary); line-height: 1.5; font-weight: 500; }
.toast-close-btn { background: none; border: none; color: var(--text-muted); cursor: pointer; padding: 2px; flex-shrink: 0; transition: color 0.2s; line-height: 1; }
.toast-close-btn:hover { color: var(--text-primary); }
.toast-progress { position: absolute; bottom: 0; left: 0; height: 3px; border-radius: 0 0 14px 14px; }
.toast-success .toast-progress { background: var(--palm); }
.toast-error .toast-progress { background: var(--cocktail); }
@keyframes toastIn { from { transform: translateX(110%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes toastOut { from { transform: translateX(0); opacity: 1; } to { transform: translateX(110%); opacity: 0; } }
.toast.removing { animation: toastOut 0.35s ease forwards; }

@media (max-width: 640px) {
    .picker-popup { left: -10px; right: -10px; min-width: auto; }
    .tp-grid { grid-template-columns: repeat(4, 1fr); }
    .toast { min-width: auto; max-width: calc(100vw - 48px); }
    .toast-container { left: 24px; right: 24px; }
}

/* ============================================
   REJECTION REASON
   ============================================ */
.booking-card-rejection { margin-top: 10px; padding: 12px 14px; background: var(--cocktail-light); border: 1px solid rgba(217, 54, 54, 0.2); border-radius: 10px; display: flex; align-items: flex-start; gap: 10px; }
.booking-card-rejection svg { color: var(--cocktail-dark); flex-shrink: 0; margin-top: 1px; }
.rejection-content { flex: 1; min-width: 0; }
.rejection-label { font-size: 0.75rem; font-weight: 700; color: var(--cocktail-dark); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 3px; }
.rejection-text { font-size: 0.88rem; color: var(--text-secondary); line-height: 1.5; word-break: break-word; font-weight: 500; }

/* ============================================
   VIEW ALL LINK
   ============================================ */
.view-all-wrapper { text-align: center; margin-top: 20px; }
.view-all-link { display: inline-flex; align-items: center; gap: 8px; padding: 12px 28px; background: #FFFFFF; border: 2px solid var(--ocean); border-radius: 12px; color: var(--ocean-dark); font-weight: 600; font-size: 0.92rem; transition: all 0.2s ease; text-decoration: none; }
.view-all-link:hover { background: var(--ocean); color: #FFFFFF; transform: translateY(-1px); }
.view-all-link svg { transition: transform 0.2s; }
.view-all-link:hover svg { transform: translateX(3px); }

.count-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 26px; height: 26px; border-radius: 8px; font-size: 0.8rem; font-weight: 700; padding: 0 8px; font-family: 'Merriweather', 'Georgia',  sans-serif; }
.count-badge.primary { background: var(--ocean-light); color: var(--ocean-dark); }
.count-badge.muted { background: var(--bg-secondary); color: var(--text-muted); }

/* ============================================
   TODAY'S SCHEDULE
   ============================================ */
.today-section { padding: 0 0 40px; }
.today-banner {
    background: #FFFFFF;
    border: 2px solid var(--ocean);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
}
.today-banner::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: var(--gradient-tropical);
}
.today-header { padding: 24px 28px 16px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--border-color); position: relative; z-index: 1; flex-wrap: wrap; gap: 12px; }
.today-header-left { display: flex; align-items: center; gap: 14px; }
.today-pulse { width: 12px; height: 12px; border-radius: 50%; background: var(--palm); position: relative; flex-shrink: 0; }
.today-pulse::before { content: ''; position: absolute; top: -4px; left: -4px; width: 20px; height: 20px; border-radius: 50%; background: rgba(27, 120, 52, 0.3); animation: pulseRing 2s ease-out infinite; }
@keyframes pulseRing { 0% { transform: scale(0.8); opacity: 1; } 100% { transform: scale(1.8); opacity: 0; } }
.today-title { font-family: 'Merriweather', 'Georgia',  sans-serif; font-size: 1.1rem; font-weight: 700; color: var(--ocean-dark); }
.today-subtitle { font-size: 0.8rem; color: var(--text-muted); font-weight: 500; }
.today-date-badge { display: flex; align-items: center; gap: 8px; padding: 10px 18px; background: var(--ocean); border-radius: 12px; }
.today-date-badge svg { color: #FFFFFF; }
.today-date-text { font-family: 'Merriweather', 'Georgia',  sans-serif; font-size: 0.9rem; font-weight: 600; color: #FFFFFF; }

.today-body { padding: 20px 28px 24px; position: relative; z-index: 1; }
.today-empty { text-align: center; padding: 32px 20px; color: var(--text-muted); }
.today-empty svg { opacity: 0.3; margin-bottom: 12px; }
.today-empty h4 { color: var(--text-secondary); font-size: 0.98rem; margin-bottom: 4px; font-weight: 600; }
.today-empty p { font-size: 0.85rem; }
.today-schedule-list { display: flex; flex-direction: column; gap: 10px; }

.today-schedule-item { display: flex; align-items: flex-start; gap: 16px; padding: 16px 18px; background: #FFFFFF; border: 2px solid var(--border-color); border-radius: 14px; transition: all 0.2s ease; position: relative; overflow: hidden; }
.today-schedule-item:hover { border-color: var(--ocean); transform: translateX(3px); }
.today-schedule-item::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; border-radius: 3px 0 0 3px; }
.today-schedule-item.ongoing::before { background: var(--palm); box-shadow: 0 0 8px rgba(27, 120, 52, 0.3); }
.today-schedule-item.upcoming::before { background: var(--ocean); }
.today-schedule-item.finished::before { background: var(--text-muted); opacity: 0.4; }

.today-time-block { flex-shrink: 0; text-align: center; min-width: 70px; padding: 10px 12px; border-radius: 10px; background: var(--ocean-light); border: 2px solid var(--ocean); }
.ongoing .today-time-block { background: var(--palm-light); border-color: var(--palm); }
.today-time-start { font-family: 'Merriweather', 'Georgia',  sans-serif; font-size: 1.05rem; font-weight: 700; color: var(--text-primary); line-height: 1.2; }
.today-time-end { font-size: 0.72rem; color: var(--text-muted); margin-top: 2px; }
.today-time-separator { color: var(--text-muted); font-size: 0.6rem; margin: 1px 0; }

.today-status-tag { display: inline-flex; align-items: center; gap: 5px; padding: 4px 12px; border-radius: 20px; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
.today-status-tag.ongoing { background: var(--palm-light); color: var(--palm-dark); animation: statusGlow 2.5s ease-in-out infinite; }
@keyframes statusGlow { 0%, 100% { box-shadow: 0 0 0 0 rgba(27, 120, 52, 0); } 50% { box-shadow: 0 0 8px 2px rgba(27, 120, 52, 0.15); } }
.today-status-tag.upcoming { background: var(--ocean-light); color: var(--ocean-dark); }
.today-status-tag.finished { background: var(--bg-secondary); color: var(--text-muted); }
.today-status-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.ongoing .today-status-dot { animation: dotBlink 1.5s ease-in-out infinite; }
@keyframes dotBlink { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

.today-info-block { flex: 1; min-width: 0; }
.today-info-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 4px; flex-wrap: wrap; }
.today-room-name { font-family: 'Merriweather', 'Georgia',  sans-serif; font-size: 1.02rem; font-weight: 700; color: var(--ocean-dark); }
.today-borrower { font-size: 0.88rem; color: var(--text-secondary); display: flex; align-items: center; gap: 5px; font-weight: 500; }
.today-borrower svg { flex-shrink: 0; color: var(--text-muted); }
.today-purpose { font-size: 0.8rem; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; gap: 5px; font-weight: 500; }

.today-countdown { font-size: 0.75rem; font-weight: 600; display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; padding: 3px 8px; border-radius: 6px; }
.today-countdown.starting { background: var(--palm-light); color: var(--palm-dark); }
.today-countdown.ending { background: var(--cocktail-light); color: var(--cocktail-dark); }

.today-summary { display: flex; gap: 20px; padding: 16px 28px; border-top: 1px solid var(--border-color); position: relative; z-index: 1; flex-wrap: wrap; background: var(--bg-card-hover); }
.today-summary-item { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--text-secondary); font-weight: 500; }
.today-summary-item svg { color: var(--text-muted); }
.today-summary-item strong { color: var(--text-primary); }

@media (max-width: 640px) {
    .today-header { padding: 18px 18px 14px; flex-direction: column; align-items: flex-start; }
    .today-body { padding: 16px 18px 20px; }
    .today-schedule-item { flex-direction: column; gap: 10px; padding: 14px; }
    .today-time-block { display: flex; align-items: center; gap: 8px; min-width: auto; padding: 6px 12px; }
    .today-time-start { font-size: 0.92rem; }
    .today-time-separator { display: none; }
    .today-summary { padding: 14px 18px; gap: 12px; }
}

/* ============================================
   ADMIN ACTION BUTTONS
   ============================================ */
.action-buttons { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.action-divider { width: 1px; height: 24px; background: var(--border-color); margin: 0 2px; }
.btn-icon { width: 34px; height: 34px; padding: 0; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; border: 2px solid var(--border-color); background: #FFFFFF; color: var(--text-secondary); cursor: pointer; transition: all 0.2s; }
.btn-icon:hover { border-color: var(--ocean); color: var(--ocean-dark); background: var(--ocean-light); }
.btn-icon.danger:hover { border-color: var(--cocktail); color: var(--cocktail-dark); background: var(--cocktail-light); }

.catatan-cell { max-width: 160px; font-size: 0.85rem; color: var(--text-secondary); line-height: 1.4; font-weight: 500; }
.catatan-cell .catatan-text { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.catatan-cell.empty { color: var(--text-muted); font-style: italic; }
.keputusan-cell { font-size: 0.85rem; white-space: nowrap; }
.keputusan-cell .keputusan-date { color: var(--text-primary); font-weight: 600; }
.keputusan-cell .keputusan-time { color: var(--text-muted); font-size: 0.78rem; }
.keputusan-cell.empty { color: var(--text-muted); }

/* ============================================
   EDIT MODAL
   ============================================ */
.modal-edit-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.5); display: flex; align-items: center; justify-content: center; z-index: 9999; visibility: hidden; opacity: 0; transition: all 0.3s ease; backdrop-filter: blur(4px); }
.modal-edit-overlay.active { visibility: visible; opacity: 1; }
.modal-edit { background: #FFFFFF; border: 2px solid var(--ocean); border-radius: 20px; width: 90%; max-width: 680px; max-height: 90vh; overflow-y: auto; transform: translateY(20px) scale(0.95); transition: all 0.3s ease; box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15); }
.modal-edit-overlay.active .modal-edit { transform: translateY(0) scale(1); }
.modal-edit-header { padding: 24px 28px 16px; border-bottom: 2px solid var(--ocean); display: flex; justify-content: space-between; align-items: center; background: var(--ocean-light); border-radius: 18px 18px 0 0; }
.modal-edit-header h3 { font-size: 1.15rem; display: flex; align-items: center; gap: 10px; color: var(--ocean-dark); font-weight: 700; }
.modal-edit-header h3 svg { color: var(--ocean); }
.modal-edit-close { background: #FFFFFF; border: 2px solid var(--border-color); color: var(--text-muted); width: 34px; height: 34px; border-radius: 8px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.2s; }
.modal-edit-close:hover { background: var(--cocktail); color: white; border-color: var(--cocktail); }
.modal-edit-body { padding: 24px 28px; }
.modal-edit-footer { padding: 16px 28px 24px; display: flex; gap: 12px; justify-content: flex-end; border-top: 1px solid var(--border-color); }
.edit-section-title { font-size: 0.85rem; font-weight: 700; color: var(--ocean-dark); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 14px; margin-top: 24px; display: flex; align-items: center; gap: 8px; }
.edit-section-title:first-child { margin-top: 0; }
.edit-section-title svg { width: 16px; height: 16px; }
.edit-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .edit-form-row { grid-template-columns: 1fr; } .modal-edit { max-width: 100%; border-radius: 16px 16px 0 0; max-height: 100vh; } }

/* ============================================
   DELETE MODAL
   ============================================ */
.modal-delete-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.5); display: flex; align-items: center; justify-content: center; z-index: 9999; visibility: hidden; opacity: 0; transition: all 0.3s ease; backdrop-filter: blur(4px); }
.modal-delete-overlay.active { visibility: visible; opacity: 1; }
.modal-delete { background: #FFFFFF; border: 2px solid var(--cocktail); border-radius: 20px; width: 90%; max-width: 460px; transform: translateY(20px) scale(0.95); transition: all 0.3s ease; box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15); }
.modal-delete-overlay.active .modal-delete { transform: translateY(0) scale(1); }
.delete-warning-icon { width: 64px; height: 64px; border-radius: 50%; background: var(--cocktail-light); display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; color: var(--cocktail-dark); }
.delete-info { background: var(--bg-secondary); border-radius: 10px; padding: 14px; margin: 16px 0; border: 1px solid var(--border-color); }
.delete-info-row { display: flex; justify-content: space-between; padding: 4px 0; font-size: 0.88rem; }
.delete-info-label { color: var(--text-muted); }
.delete-info-value { color: var(--text-primary); font-weight: 600; text-align: right; max-width: 60%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ============================================
   ADMIN FILTER TABS
   ============================================ */
.admin-filter-bar { display: flex; gap: 8px; margin-bottom: 24px; flex-wrap: wrap; align-items: center; }
.filter-btn { padding: 10px 20px; border-radius: 10px; font-size: 0.88rem; font-weight: 600; cursor: pointer; border: 2px solid var(--border-color); background: #FFFFFF; color: var(--text-secondary); transition: all 0.2s; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.filter-btn:hover { border-color: var(--ocean); color: var(--ocean-dark); }
.filter-btn.active-all { background: var(--ocean); color: #FFFFFF; border-color: var(--ocean); }
.filter-btn.active-pending { background: var(--sand); color: #FFFFFF; border-color: var(--sand); }
.filter-btn.active-approved { background: var(--palm); color: #FFFFFF; border-color: var(--palm); }
.filter-btn.active-rejected { background: var(--cocktail); color: #FFFFFF; border-color: var(--cocktail); }
.filter-count { background: rgba(255, 255, 255, 0.25); padding: 2px 8px; border-radius: 6px; font-size: 0.75rem; font-weight: 700; color: #FFFFFF; }
.filter-btn:not([class*="active-"]) .filter-count { background: var(--ocean-light); color: var(--ocean-dark); }

.alert-success { background: var(--palm-light); color: var(--palm-dark); border: 1px solid rgba(27, 120, 52, 0.3); padding: 14px 18px; border-radius: 10px; display: flex; align-items: center; gap: 10px; font-size: 0.92rem; font-weight: 500; }

.form-textarea { width: 100%; min-height: 80px; padding: 12px 14px; background: #FFFFFF; border: 2px solid var(--border-color); border-radius: 8px; color: var(--text-primary); font-size: 0.92rem; font-family: 'Inter', 'Segoe UI',  sans-serif; resize: vertical; line-height: 1.5; font-weight: 500; }
.form-textarea:focus { outline: none; border-color: var(--ocean); box-shadow: 0 0 0 3px rgba(31, 133, 143, 0.1); }

.modal-content { background: #FFFFFF; padding: 0; border-radius: 20px; width: 90%; max-width: 500px; position: relative; border: 2px solid var(--ocean); overflow: hidden; }

/* ============================================
   REPORT STYLES
   ============================================ */
.report-filters { background: #FFFFFF; border: 2px solid var(--ocean); border-radius: 16px; padding: 24px; margin-bottom: 24px; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06); }
.filter-title { font-size: 0.98rem; font-weight: 700; color: var(--ocean-dark); margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.filter-title svg { color: var(--ocean); }
.filter-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; align-items: end; }
.filter-group label { display: block; font-size: 0.82rem; font-weight: 600; color: var(--text-primary); margin-bottom: 6px; }
.filter-actions { display: flex; gap: 8px; }

.report-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; margin-bottom: 24px; }
.summary-card { background: #FFFFFF; border-radius: 12px; padding: 18px; display: flex; align-items: center; gap: 14px; border-left: 4px solid; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06); }
.summary-card:nth-child(1) { border-left-color: var(--ocean); }
.summary-card:nth-child(2) { border-left-color: var(--palm); }
.summary-card:nth-child(3) { border-left-color: var(--cocktail); }
.summary-card:nth-child(4) { border-left-color: var(--sand); }
.summary-icon { width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.summary-icon.icon-total { background: var(--ocean-light); color: var(--ocean-dark); }
.summary-icon.icon-approved { background: var(--palm-light); color: var(--palm-dark); }
.summary-icon.icon-rejected { background: var(--cocktail-light); color: var(--cocktail-dark); }
.summary-icon.icon-pending { background: var(--sand-light); color: var(--sand-dark); }
.summary-value { font-size: 1.6rem; font-weight: 700; font-family: 'Merriweather', 'Georgia',  sans-serif; line-height: 1.2; }
.summary-card:nth-child(1) .summary-value { color: var(--ocean-dark); }
.summary-card:nth-child(2) .summary-value { color: var(--palm-dark); }
.summary-card:nth-child(3) .summary-value { color: var(--cocktail-dark); }
.summary-card:nth-child(4) .summary-value { color: var(--sand-dark); }
.summary-label { font-size: 0.8rem; color: var(--text-muted); font-weight: 500; }

.report-actions { display: flex; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.report-actions-left { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-excel { background: var(--palm); color: white; border: none; }
.btn-excel:hover { background: var(--palm-dark); color: white; transform: translateY(-1px); }
.btn-print { background: var(--ocean); color: white; border: none; }
.btn-print:hover { background: var(--ocean-dark); color: white; transform: translateY(-1px); }
.report-period { font-size: 0.88rem; color: var(--text-muted); display: flex; align-items: center; gap: 6px; font-weight: 500; }

/* ============================================
   PRINT STYLES
   ============================================ */
@page { size: A4 portrait; margin: 10mm 8mm; }
@media print {
    .sidebar, .admin-header, .admin-footer, .report-filters, .report-actions, .no-print { display: none !important; }
    * { -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; }
    .admin-layout { display: block !important; }
    .admin-main { margin-left: 0 !important; padding: 0 !important; }
    .admin-content { padding: 0 !important; }
    body { background: white !important; color: #000 !important; font-size: 8pt; line-height: 1.3; }
    .print-header { display: block !important; text-align: center; margin-bottom: 6px; padding-bottom: 4px; border-bottom: 2px solid #000; }
    .print-header h2 { font-size: 12pt !important; margin: 0 0 2px !important; color: #000 !important; letter-spacing: 1px; }
    .print-header p { font-size: 8pt !important; color: #333 !important; margin: 0 !important; line-height: 1.3; }
    .report-summary { display: flex !important; gap: 8px !important; margin-bottom: 6px !important; flex-wrap: nowrap !important; }
    .summary-card { border: 1px solid #999 !important; background: white !important; flex: 1; padding: 6px 10px !important; border-radius: 4px !important; gap: 8px !important; }
    .summary-icon { width: 28px !important; height: 28px !important; border-radius: 6px !important; }
    .summary-icon svg { width: 16px !important; height: 16px !important; }
    .summary-value { font-size: 14pt !important; color: #000 !important; line-height: 1.1 !important; }
    .summary-label { font-size: 6.5pt !important; color: #333 !important; }
    .data-card { border: none !important; box-shadow: none !important; background: white !important; border-radius: 0 !important; }
    .data-table { border-collapse: collapse; width: 100%; table-layout: fixed; font-size: 7.5pt; }
    .data-table th, .data-table td { border: 1px solid #333 !important; padding: 3px 5px !important; color: #000 !important; background: transparent !important; font-size: 7.5pt; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: normal; word-wrap: break-word; }
    .data-table th { background: #ddd !important; font-weight: bold; font-size: 7pt; text-transform: uppercase; letter-spacing: 0.3px; padding: 4px 5px !important; }
    .data-table tr:hover td { background: transparent !important; }
    .data-table th:nth-child(1), .data-table td:nth-child(1) { width: 20px; text-align: center; }
    .data-table th:nth-child(2), .data-table td:nth-child(2) { width: 70px; }
    .data-table th:nth-child(3), .data-table td:nth-child(3) { width: 60px; }
    .data-table th:nth-child(4), .data-table td:nth-child(4) { width: 80px; }
    .data-table th:nth-child(5), .data-table td:nth-child(5) { width: 90px; }
    .data-table th:nth-child(6), .data-table td:nth-child(6) { width: auto; }
    .data-table th:nth-child(7), .data-table td:nth-child(7) { width: 55px; text-align: center; }
    .data-table th:nth-child(8), .data-table td:nth-child(8) { width: 100px; }
    .data-table th:nth-child(9), .data-table td:nth-child(9) { width: 65px; }
    .status-badge { border: 1px solid #333 !important; background: transparent !important; color: #000 !important; font-weight: bold; font-size: 6.5pt !important; padding: 1px 4px !important; }
    .data-table td[style*="color"] { color: #000 !important; }
    .data-table tr { page-break-inside: avoid; }
    .report-summary { page-break-after: avoid; }
    .print-header { page-break-after: avoid; }
}

/* ============================================
   PAGINATION
   ============================================ */
.data-length-selector { display: flex; align-items: center; gap: 8px; font-size: 0.88rem; color: var(--text-secondary); font-weight: 500; }
.data-length-selector select { padding: 8px 12px; background: #FFFFFF; border: 2px solid var(--border-color); border-radius: 8px; color: var(--text-primary); font-size: 0.88rem; cursor: pointer; font-weight: 600; }
.data-length-selector select:focus { outline: none; border-color: var(--ocean); }
.data-total-info { font-size: 0.85rem; color: var(--text-muted); font-weight: 500; }
.data-total-info strong { color: var(--ocean-dark); }
.pagination-info { font-size: 0.85rem; color: var(--text-muted); font-weight: 500; }
.pagination-info strong { color: var(--ocean-dark); }
.pagination-links { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }

@media (max-width: 640px) {
    .pagination-wrapper { flex-direction: column; align-items: stretch; text-align: center; }
    .pagination-links { justify-content: center; }
    .table-controls { flex-direction: column; align-items: flex-start; }
}
/* ============================================
   LOGIN PAGE — MOBILE PRECISION FIX
   ============================================ */

/* 1. Mencegah scroll horizontal (penyebab space abu-abu di kanan) */
html, body {
    overflow-x: hidden;
    width: 100%;
    margin: 0;
    padding: 0;
}

/* 2. Layout Login Full Screen */
.login-page {
    min-height: 100vh;
    min-height: 100dvh; /* Dynamic Viewport Height untuk mobile modern */
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box; /* Penting: padding tidak menambah lebar */
    background: linear-gradient(135deg, var(--ocean-light) 0%, var(--sand-light) 40%, var(--palm-light) 70%, var(--ocean-soft) 100%);
    position: relative;
}

/* Background dekorasi (opsional) */
.login-page::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: var(--ocean);
    border-radius: 50%;
    opacity: 0.08;
    filter: blur(60px);
    pointer-events: none;
}

/* 3. Card Styling */
.login-card {
    background: #FFFFFF;
    padding: 32px 24px;
    border-radius: 24px;
    width: 100%;
    max-width: 420px;
    border: 2px solid var(--ocean);
    text-align: center;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    z-index: 1;
    margin: 0 auto; /* Posisi tengah */
    box-sizing: border-box;
}

.login-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 5px;
    background: var(--gradient-tropical);
}

.login-logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    border-radius: 16px;
    overflow: hidden;
    border: 3px solid var(--ocean);
    display: flex;
    align-items: center;
    justify-content: center;
    background: #FFFFFF;
    padding: 8px;
    box-shadow: 0 4px 12px rgba(31, 133, 143, 0.15);
}

.login-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.login-title {
    font-family: 'Merriweather', 'Georgia', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.login-subtitle {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 28px;
    font-weight: 500;
}

.login-form {
    margin-bottom: 20px;
}

.login-form .form-group {
    margin-bottom: 18px;
    text-align: left;
}

.login-form .form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.login-form .form-input {
    width: 100%;
    padding: 14px 16px;
    background: #FAFAFA;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 16px; /* Wajib 16px agar tidak zoom otomatis di iOS */
    font-weight: 500;
    transition: all 0.2s ease;
    -webkit-appearance: none;
    appearance: none;
    box-sizing: border-box;
}

.login-form .form-input:focus {
    outline: none;
    border-color: var(--ocean);
    background: #FFFFFF;
    box-shadow: 0 0 0 3px rgba(31, 133, 143, 0.15);
}

.login-form .btn-primary {
    margin-top: 8px;
    padding: 16px 24px;
    font-size: 1rem;
    font-weight: 700;
    width: 100%;
}

.btn-back-home {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 20px;
    margin-top: 16px;
    color: var(--ocean-dark);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.2s ease;
    background: transparent;
}

.btn-back-home:hover {
    background: var(--ocean-light);
}

.login-footer {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ============================================
   RESPONSIVE BREAKPOINTS
   ============================================ */

/* Mobile Small (misal: iPhone SE, Android kecil) */
@media screen and (max-width: 380px) {
    .login-page {
        padding: 12px;
        align-items: flex-start;
        padding-top: 10%;
    }
    
    .login-card {
        padding: 28px 18px;
        border-radius: 20px;
    }
    
    .login-logo {
        width: 65px;
        height: 65px;
    }
    
    .login-title {
        font-size: 1.3rem;
    }
    
    .login-subtitle {
        font-size: 0.85rem;
        margin-bottom: 20px;
    }
    
    .login-form .form-input {
        padding: 12px 14px;
    }
}

/* Mobile Regular */
@media screen and (min-width: 381px) and (max-width: 480px) {
    .login-card {
        padding: 32px 22px;
    }
}

/* Landscape Mode */
@media screen and (max-height: 600px) and (orientation: landscape) {
    .login-page {
        padding: 10px;
        align-items: center; /* Tetap di tengah vertikal */
    }
    
    .login-logo {
        width: 50px;
        height: 50px;
        margin-bottom: 12px;
    }
    
    .login-title {
        font-size: 1.2rem;
        margin-bottom: 2px;
    }
    
    .login-subtitle {
        font-size: 0.8rem;
        margin-bottom: 12px;
    }
    
    .login-form .form-group {
        margin-bottom: 10px;
    }
    
    .login-footer {
        margin-top: 12px;
        padding-top: 10px;
        font-size: 0.7rem;
    }
}

/* Mengatasi Notch / Safe Area di iPhone X ke atas */
@supports (padding: max(0px)) {
    .login-page {
        padding-left: max(16px, env(safe-area-inset-left));
        padding-right: max(16px, env(safe-area-inset-right));
        padding-bottom: max(16px, env(safe-area-inset-bottom));
    }
}

/* ============================================
   RESPONSIVE HEADER — MOBILE FIX
   ============================================ */

@media screen and (max-width: 768px) {
    /* 1. Ubah layout header menjadi vertikal (tumpuk) */
    .header {
        position: relative; /* Biar tidak menutupi konten saat tinggi bertambah */
        padding: 0;
    }

    .header-inner {
        flex-direction: column; /* Susun logo dan tombol secara vertikal */
        padding: 12px 16px;
        gap: 12px; /* Jarak antara nama sekolah dan tombol */
        align-items: center; /* Posisikan di tengah */
    }

    /* 2. Perkecil sedikit ukuran logo dan nama sekolah */
    .logo-section {
        justify-content: center;
        text-align: center;
        gap: 10px;
    }

    .logo-img {
        width: 40px;
        height: 40px;
    }

    .logo-text h1 {
        font-size: 1rem; /* Ukuran font lebih kecil */
        line-height: 1.2;
    }

    .logo-text span {
        font-size: 0.7rem; /* Ukuran sub-judul lebih kecil */
        display: block;
        margin-top: 2px;
    }

    /* 3. Perkecil ukuran tombol navigasi */
    .nav-links {
        width: 100%;
        display: flex;
        justify-content: center; /* Tombol di tengah */
        gap: 8px; /* Jarak antar tombol */
        flex-wrap: wrap;
    }

    .nav-link {
        padding: 8px 16px; /* Padding diperkecil */
        font-size: 0.8rem; /* Font diperkecil */
        border-radius: 6px;
    }

    /* Penyesuaian khusus tombol Admin */
    .btn-admin {
        padding: 7px 14px;
        border-width: 1.5px;
    }
}

/* Untuk layar sangat kecil (opsional, agar lebih presisi) */
@media screen and (max-width: 360px) {
    .logo-text h1 {
        font-size: 0.9rem;
    }
    .nav-link {
        padding: 6px 12px;
        font-size: 0.75rem;
    }
}

/* ============================================
   ADMIN PANEL — MOBILE RESPONSIVE FIX
   ============================================ */

/* 1. Atur Ulang Layout Utama di Mobile */
@media screen and (max-width: 768px) {
    /* Sembunyikan sidebar statis di mobile */
    .sidebar {
        position: fixed;
        left: -280px; /* Sembunyikan ke kiri */
        top: 0;
        height: 100%;
        z-index: 1050;
        transition: left 0.3s ease;
        box-shadow: none;
    }

    /* Tampilkan sidebar saat class 'active' ditambahkan */
    .sidebar.active {
        left: 0;
        box-shadow: 4px 0 20px rgba(0,0,0,0.5);
    }

    /* Konten Utama Full Width */
    .admin-main {
        margin-left: 0 !important;
        width: 100%;
    }

    /* Atur Header Admin */
    .admin-header {
        padding: 12px 16px;
        display: flex;
        align-items: center;
        justify-content: space-between; /* Tombol di kiri, User di kanan */
        position: sticky;
        top: 0;
        background: #FFFFFF;
        border-bottom: 2px solid var(--ocean);
        z-index: 1000;
    }

    /* Tombol Hamburger (Untuk membuka sidebar) */
    .sidebar-toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        width: 28px;
        height: 24px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 10;
        order: -1; /* Pindahkan ke kiri */
    }

    .sidebar-toggle span {
        width: 100%;
        height: 3px;
        background: var(--ocean);
        border-radius: 2px;
        transition: all 0.3s;
    }

    /* Sembunyikan tombol toggle di desktop */
    @media screen and (min-width: 769px) {
        .sidebar-toggle { display: none; }
    }

    /* Penyesuaian Header Title */
    .admin-header h2 {
        font-size: 1.1rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 150px; /* Batasi lebar judul di mobile */
        flex-grow: 1;
        text-align: center;
        margin: 0 10px;
    }

    /* Penyesuaian Konten Admin */
    .admin-content {
        padding: 16px;
        min-height: auto;
    }

    /* 2. Perbaikan Statistik Cards */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 kolom di mobile */
        gap: 12px;
    }
    
    .stat-card {
        padding: 14px;
    }
    
    .stat-value {
        font-size: 1.4rem;
    }

    /* 3. Perbaikan Form Grid (Tambah Ruangan) */
    .admin-content form > div[style*="grid"] {
        grid-template-columns: 1fr !important; /* 1 Kolom penuh */
    }

    /* 4. Perbaikan Tabel */
    .data-card {
        border-radius: 12px;
    }
    
    /* Bungkus tabel agar bisa di-scroll horizontal */
	.table-responsive-wrapper {
		width: 100%;
		overflow-x: auto; /* Ini yang membuat scrollbar muncul */
		-webkit-overflow-scrolling: touch; /* Halus di Mac/iOS */
		flex: 1 1 auto; /* Isi ruang sisa di dalam data-card */
	}

    /* Target khusus untuk tabel yang overflow */
	.data-table {
		width: 100%;
		min-width: 900px; /* SET MINIMUM LEBAR TABEL.
							 Jika layar < 900px, scrollbar akan muncul di wrapper.
							 Jika tidak ada ini, tabel akan mengecil atau membesar tak terkendali. */
		border-collapse: collapse;
	}

    /* Atau gunakan card view untuk tabel jika memungkinkan (opsional tingkat lanjut) */
    
    /* 5. Modal Responsive */
    .modal-edit, .modal-delete, .modal-content {
        width: 95% !important;
        max-width: none !important;
        margin: 10px auto;
        max-height: 90vh;
        overflow-y: auto;
        border-radius: 16px !important;
    }

    .modal-edit-header {
        padding: 16px 20px;
    }
    
    .modal-edit-body {
        padding: 16px 20px;
    }

    .edit-form-row {
        grid-template-columns: 1fr !important;
    }

    /* 6. Footer Admin */
    .admin-footer {
        padding: 12px 16px;
        font-size: 0.75rem;
        text-align: center;
    }
}

/* Layar sangat kecil (misal: iPhone SE) */
@media screen and (max-width: 360px) {
    .stats-grid {
        grid-template-columns: 1fr; /* 1 kolom saja jika layar terlalu sempit */
    }
    
    .admin-header h2 {
        font-size: 1rem;
    }
}

/* Overlay Background saat Sidebar aktif */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1040;
    display: none;
    cursor: pointer;
}
.sidebar-overlay.active {
    display: block;
}
/* ============================================
   MODAL EDIT RUANGAN — MOBILE PRECISION FIX
   ============================================ */

@media screen and (max-width: 768px) {
    /* 1. Atur Ukuran Modal agar Pas Layar */
    .modal-content {
        width: 95% !important;
        max-width: 95% !important;
        margin: 20px auto !important;
        max-height: 90vh; /* Maksimal 90% tinggi layar */
        display: flex;
        flex-direction: column;
        border-radius: 16px !important;
        overflow: hidden; /* Mencegah elemen keluar */
        position: relative;
        top: 0;
        left: 0;
        transform: none !important;
    }

    /* 2. Header Modal */
    .modal-header {
        padding: 16px 20px;
        flex-shrink: 0; /* Jangan dikecilkan */
    }
    
    .modal-header h3 {
        font-size: 1.1rem;
    }

    /* 3. Body Modal agar Bisa Scroll */
    .modal-body {
        padding: 20px;
        overflow-y: auto; /* Aktifkan scroll vertikal jika konten panjang */
        flex: 1;
        -webkit-overflow-scrolling: touch; /* Scroll halus di iOS */
    }

    /* 4. Footer Modal & Tombol */
    .modal-footer {
        padding: 16px 20px;
        display: flex;
        flex-direction: column; /* Tombol menumpuk vertikal */
        gap: 10px;
        flex-shrink: 0;
        background: #FFFFFF;
        border-top: 1px solid var(--border-color);
    }

    .modal-footer .btn {
        width: 100%; /* Tombol penuh */
        padding: 14px;
        font-size: 1rem;
    }

    /* 5. Form Grid di Dalam Modal (PENTING) */
    /* Mengubah layout 2 kolom menjadi 1 kolom */
    .modal-body .form-grid-2 {
        grid-template-columns: 1fr !important;
        gap: 16px;
    }

    /* 6. Input Agar Tidak Zoom Otomatis */
    .modal-body .form-input {
        font-size: 16px; 
        padding: 12px 14px;
    }
    
    /* 7. Galeri Foto Responsif di Dalam Modal */
    #current_photos {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr); /* 3 foto per baris */
        gap: 10px;
        justify-content: center;
    }

    /* Target elemen foto yang dibuat via JS */
    #current_photos > div {
        width: 100% !important;
        text-align: center;
    }

    #current_photos img {
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 4/3;
        object-fit: cover;
    }
    
    /* Tombol aksi foto */
    #current_photos .btn-sm {
        font-size: 0.7rem !important;
        padding: 4px 8px !important;
    }
}
/* ============================================
   1. DESKTOP DEFAULT STYLES (Presisi Desktop)
   ============================================ */

/* Atur Modal agar Presisi di Desktop (Bekerja di layar > 768px) */
.modal-content {
    background: #FFFFFF;
    border-radius: 16px;
    width: 90%;
    max-width: 550px; /* Lebar ideal untuk Desktop */
    border: 2px solid var(--ocean);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    overflow: hidden; /* Penting agar border-radius bekerja */
    padding: 0; /* Hapus padding default, pindah ke header/body/footer */
    position: relative;
}

/* Struktur Header, Body, Footer untuk Desktop */
.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    background: var(--ocean-light);
    flex-shrink: 0;
}

.modal-body {
    padding: 24px;
    overflow-y: auto;
    max-height: 70vh; /* Batasi tinggi agar tidak memanjang tak terbatas */
}

.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    background: #FAFAFA;
    flex-shrink: 0;
}

/* Grid 2 Kolom untuk Desktop */
.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* Grid Responsif untuk Form Tambah (Desktop) */
.form-grid-responsive {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

/* Galeri Foto Desktop */
#current_photos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 12px;
}

.photo-item-edit {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.photo-item-edit img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    border: 2px solid transparent;
    transition: border-color 0.2s;
}

.photo-item-edit .photo-actions {
    display: flex;
    gap: 4px;
    justify-content: center;
}

/* ============================================
   2. MOBILE RESPONSIVE STYLES (Presisi Mobile)
   ============================================ */

@media screen and (max-width: 768px) {
    /* 1. Modal Full Width di Mobile */
    .modal-content {
        width: 95% !important;
        max-width: 95% !important;
        margin: 20px auto !important;
        max-height: 90vh;
        border-radius: 16px !important;
    }

    /* 2. Header Mobile */
    .modal-header {
        padding: 16px 20px;
    }
    
    .modal-header h3 {
        font-size: 1.1rem;
    }

    /* 3. Body Mobile (Scrollable) */
    .modal-body {
        padding: 20px;
        max-height: 65vh; /* Sisa ruang di mobile */
        -webkit-overflow-scrolling: touch;
    }

    /* 4. Footer Mobile (Tombol Menumpuk) */
    .modal-footer {
        flex-direction: column;
        padding: 16px 20px;
    }
    
    .modal-footer .btn {
        width: 100%; /* Tombol penuh */
        padding: 14px;
    }

    /* 5. Grid Form: Jadi 1 Kolom di Mobile */
    .form-grid-2,
    .form-grid-responsive {
        grid-template-columns: 1fr !important;
    }

    /* 6. Input Mobile */
    .form-input {
        font-size: 16px; /* Prevent auto zoom */
    }
    
    /* 7. Galeri Foto Mobile (3 Kolom) */
    #current_photos {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
    
    .photo-item-edit img {
        height: 70px;
    }
    
    .photo-item-edit .btn-sm {
        font-size: 0.7rem;
        padding: 4px 6px;
    }
}
/* ============================================
   FIX: GALERI FOTO EDIT RUANGAN (LEBAR & RAPI)
   ============================================ */

/* Container Galeri */
#current_photos {
    display: flex;
    flex-wrap: wrap;
    gap: 16px; /* Jarak antar foto */
    margin-top: 8px;
}

/* Item Foto Individual - Desktop (Lebar Diperlebar) */
.photo-item-edit {
    width: 150px; /* Lebar 150px agar muat 2 tombol dengan nyaman */
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    background: #FAFAFA;
    padding: 8px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.photo-item-edit:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* Gambar */
.photo-item-edit img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 6px;
    display: block;
    border: 2px solid transparent;
    transition: border-color 0.2s;
}

/* Area Tombol - Desktop (Horizontal) */
.photo-item-edit .photo-actions {
    display: flex;
    flex-direction: row; /* Default horizontal di desktop */
    gap: 6px;
    width: 100%;
    justify-content: center;
}

/* Penyesuaian Tombol di Galeri */
.photo-item-edit .btn-sm {
    font-size: 0.72rem !important;
    padding: 4px 8px !important;
    line-height: 1.2;
    white-space: nowrap; /* Teks tombol tidak patah */
}

/* Responsif Mobile - PAKSA 2 KOLOM & TOMBOL VERTIKAL */
@media screen and (max-width: 768px) {
    #current_photos {
        gap: 10px; /* Jarak diperkecil sedikit di mobile */
    }

    .photo-item-edit {
        /* Trik calc(50% - gap) untuk memaksa 2 kolom persis */
        width: calc(50% - 5px); 
        min-width: 0; /* Hapus min-width agar tidak nge-block */
        max-width: 200px; /* Batasi lebar maksimal agar tidak terlalu besar */
    }
    
    .photo-item-edit img {
        height: 80px; /* Tinggi disesuaikan */
    }
    
    /* PERBAIKAN: Tombol disusun vertikal (atas-bawah) di mobile */
    .photo-item-edit .photo-actions {
        flex-direction: column; /* Mengubah dari row menjadi column */
        gap: 4px; /* Jarak vertikal antar tombol */
        width: 100%;
    }
    
    .photo-item-edit .btn-sm {
        width: 100%; /* Tombol memenuhi lebar container foto */
        font-size: 0.65rem !important;
        padding: 4px 6px !important;
    }
}