/* ==========================================================================
   RUMAH PRODA - MASTER STYLESHEET (PART 1 OF 2)
   Mencakup: Core, Variables, Navbar, Hero, Calendar, Events Public
   ========================================================================== */

/* 1. IMPORTS & FONTS */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700&family=Playfair+Display:wght@500;600;700;800&display=swap');

/* =========================================
   2. ROOT VARIABLES (PENGATURAN TEMA)
   ========================================= */
:root {
    /* Brand Identity */
    --primary-dark: #0f172a;
    --primary-blue: #1e3a8a;   /* SDN Blue */
    --primary-light: #3b82f6;
    
    /* Accent Colors */
    --gold: #d97706;           /* SDN Gold */
    --gold-light: #fbbf24;
    --gold-gradient: linear-gradient(135deg, #b45309 0%, #d97706 50%, #fbbf24 100%);
    
    /* Functional Colors */
    --success: #10b981;
    --success-bg: #ecfdf5;
    --danger: #ef4444;
    --danger-bg: #fef2f2;
    --warning: #f59e0b;
    --warning-bg: #fff7ed;
    
    /* UI Typography & Backgrounds */
    --text-main: #1e293b;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    --bg-body: #f8fafc;
    --bg-card: #ffffff;

    /* Glassmorphism System */
    --glass-surface: rgba(255, 255, 255, 0.85);
    --glass-border: 1px solid rgba(255, 255, 255, 0.6);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
    --glass-blur: blur(20px);
    
    /* Layout Dimensions */
    --max-width: 1280px;
    --header-height: 80px;
    --radius-md: 16px;
    --radius-lg: 24px;
}

/* =========================================
   3. GLOBAL RESET & UTILITIES
   ========================================= */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden; /* Mencegah layar geser kanan di HP */
    width: 100%;
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* Text Utilities */
.text-gold { color: var(--gold) !important; }
.text-blue { color: var(--primary-blue) !important; }
.text-success { color: var(--success) !important; }
.text-center { text-align: center; }
.font-serif { font-family: 'Playfair Display', serif; }

a { text-decoration: none; color: inherit; transition: 0.3s; }
button { font-family: inherit; cursor: pointer; }

/* =========================================
   4. NAVIGATION BAR (FIXED)
   ========================================= */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255,255,255,0.6);
    padding: 0.8rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    height: var(--header-height);
    width: 100%;
}

.logo-container { display: flex; align-items: center; gap: 12px; z-index: 1001; }
.logo-text h2 { font-family: 'Playfair Display', serif; font-size: 1.4rem; color: var(--primary-blue); margin: 0; line-height: 1; }
.logo-text span { font-size: 0.7rem; color: var(--text-muted); letter-spacing: 2px; text-transform: uppercase; font-weight: 600; }

.nav-links { display: flex; gap: 2rem; align-items: center; }
.nav-links a { 
    color: var(--text-muted); font-weight: 600; font-size: 0.95rem; 
    padding: 5px 0; border-bottom: 2px solid transparent; 
}
.nav-links a:hover, .nav-links a.active { color: var(--primary-blue); border-bottom-color: var(--gold); }

/* Hamburger Menu (Mobile Only) */
.hamburger { display: none; cursor: pointer; flex-direction: column; gap: 5px; z-index: 1002; }
.hamburger span { width: 25px; height: 3px; background: var(--primary-blue); border-radius: 5px; transition: 0.3s; }

/* =========================================
   5. HERO SECTION
   ========================================= */
.hero-section {
    position: relative;
    padding: 5rem 5% 10rem;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    overflow: hidden;
    min-height: 80vh;
    display: flex; align-items: center;
}

.hero-content { position: relative; z-index: 10; max-width: 650px; }
.hero-title { font-family: 'Playfair Display', serif; font-size: 3.5rem; color: var(--primary-blue); line-height: 1.15; margin-bottom: 1.5rem; }
.hero-subtitle { font-size: 1.15rem; color: var(--text-muted); margin-bottom: 2.5rem; line-height: 1.6; }

.btn-hero { 
    display: inline-flex; align-items: center; gap: 12px; 
    background: var(--gold-gradient); color: white; padding: 15px 35px; 
    border-radius: 50px; font-weight: 700; font-size: 1rem;
    box-shadow: 0 10px 20px rgba(217, 119, 6, 0.3); 
}
.btn-hero:hover { transform: translateY(-3px); box-shadow: 0 15px 30px rgba(217, 119, 6, 0.4); }

.hero-image { position: absolute; bottom: 0; right: 0; width: 60%; max-width: 850px; z-index: 1; pointer-events: none; }
.hero-image img { width: 100%; display: block; mask-image: linear-gradient(to bottom, black 80%, transparent 100%); -webkit-mask-image: linear-gradient(to bottom, black 80%, transparent 100%); }

/* Feature Cards (Home) */
.features-container {
    position: relative; z-index: 20; margin-top: -120px; padding: 0 5% 4rem;
    display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 2rem;
}
.feature-card {
    background: var(--glass-surface); backdrop-filter: var(--glass-blur);
    border: var(--glass-border); border-radius: var(--radius-lg); padding: 2.5rem 2rem;
    box-shadow: var(--glass-shadow); transition: 0.3s;
    display: flex; flex-direction: column; justify-content: space-between;
}
.feature-card:hover { transform: translateY(-10px); background: #ffffff; }
.feature-icon-box { width: 55px; height: 55px; background: white; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; color: var(--primary-blue); margin-bottom: 1.5rem; box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
.feature-title { font-family: 'Playfair Display', serif; font-size: 1.3rem; color: var(--primary-blue); margin-bottom: 0.5rem; font-weight: 700; }
.feature-desc { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 1.5rem; }

.btn-card-gold { width: 100%; padding: 12px; text-align: center; background: var(--gold-gradient); color: white; border-radius: 10px; font-weight: 700; display: block; }
.btn-link { color: var(--primary-blue); font-weight: 700; font-size: 0.9rem; display: inline-flex; align-items: center; gap: 5px; }
.btn-link:hover { gap: 10px; color: var(--gold); }

/* =========================================
   6. CALENDAR SECTION & WIDGETS
   ========================================= */
.calendar-section {
    position: relative; padding: 5rem 5% 7rem; margin-top: 2rem;
    background: radial-gradient(circle at 80% 20%, rgba(217, 119, 6, 0.15) 0%, transparent 40%), linear-gradient(135deg, #1e3a8a 0%, #0f172a 100%);
    overflow: hidden; color: white;
}
.section-heading-cal { position: relative; z-index: 2; margin-bottom: 3rem; font-family: 'Playfair Display', serif; font-size: 2.5rem; }

.calendar-wrapper {
    position: relative; z-index: 2; max-width: var(--max-width); margin: 0 auto;
    display: grid; grid-template-columns: 1.2fr 1fr; gap: 4rem; align-items: start;
}

/* Glass Calendar (Left Side) */
.glass-calendar {
    background: rgba(255, 255, 255, 0.1); backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 28px; padding: 2.5rem;
    box-shadow: 0 20px 50px rgba(0,0,0,0.25);
    width: 100%; box-sizing: border-box;
}
.cal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; }
.cal-month-nav { display: flex; align-items: center; gap: 15px; font-family: 'Playfair Display', serif; font-size: 1.5rem; font-weight: 700; }
.btn-today { background: rgba(255,255,255,0.15); color: white; padding: 6px 15px; border-radius: 20px; border: 1px solid rgba(255,255,255,0.2); cursor: pointer; font-size: 0.8rem; }
.cal-nav-btn { background: none; border: none; color: rgba(255,255,255,0.7); font-size: 1.2rem; cursor: pointer; transition: 0.2s; }
.cal-nav-btn:hover { color: white; transform: scale(1.2); }

/* Grid Dates */
.cal-grid-days, .cal-grid-dates { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; gap: 8px; }
.cal-grid-days { margin-bottom: 1rem; font-size: 0.8rem; opacity: 0.7; text-transform: uppercase; letter-spacing: 1px; }
.cal-date { 
    aspect-ratio: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; 
    border-radius: 12px; font-weight: 500; font-size: 1rem; cursor: pointer; position: relative;
    border: 1px solid transparent; 
    z-index: 1; /* Layer dasar */
}
.cal-date:hover { background: rgba(255,255,255,0.2); }
.cal-date.active { background: var(--gold-gradient); color: white; font-weight: 700; border: 1px solid rgba(255,255,255,0.3); box-shadow: 0 5px 15px rgba(217, 119, 6, 0.4); }
.event-dot { width: 5px; height: 5px; background-color: var(--gold-light); border-radius: 50%; position: absolute; bottom: 6px; }
.cal-date.active .event-dot { background-color: white; }

/* Mini Event List (Below Calendar) */
.cal-mini-list { 
    margin-top: 2rem; padding-top: 1.5rem; 
    border-top: 1px solid rgba(255,255,255,0.1); 
    position: relative; z-index: 50; /* PENTING: Layer di atas grid tanggal */
}
.mini-event-row { 
    display: flex; align-items: center; justify-content: space-between; 
    margin-bottom: 10px; padding: 12px; 
    background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); 
    border-radius: 12px; transition: 0.2s; 
    position: relative; z-index: 60; 
}
.mini-event-row:hover { background: rgba(255,255,255,0.2); }
.mini-event-link { text-decoration: none; color: inherit; flex: 1; display: flex; align-items: center; gap: 15px; }
.me-date { font-weight: 700; color: var(--gold-light); text-align: center; min-width: 40px; font-size: 1.2rem; line-height: 1; }
.me-info h4 { font-size: 0.95rem; margin-bottom: 2px; font-weight: 600; }
.me-info span { font-size: 0.8rem; opacity: 0.7; }

/* Tombol Lonceng (Fix Z-Index & Klik) */
.btn-remind-icon { 
    background: rgba(255,255,255,0.2); border: 1px solid rgba(255,255,255,0.3); color: white; 
    width: 40px; height: 40px; border-radius: 50%; cursor: pointer; 
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
    transition: 0.2s; position: relative; 
    z-index: 100; /* Paling atas agar bisa diklik */
}
.btn-remind-icon:hover { background: var(--gold); border-color: var(--gold); transform: scale(1.1); }

/* Detail Card (Right Side) */
.glass-detail-card {
    background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(30px);
    border-radius: 28px; padding: 3rem; box-shadow: 0 30px 60px rgba(0,0,0,0.15);
    position: relative; color: var(--text-main); width: 100%; box-sizing: border-box;
}
.gd-close { position: absolute; top: 25px; right: 25px; font-size: 1.2rem; cursor: pointer; color: var(--text-muted); }
.gd-title { font-family: 'Playfair Display', serif; font-size: 2rem; color: var(--primary-blue); line-height: 1.3; margin-bottom: 2.5rem; }
.gd-info-row { display: flex; gap: 20px; align-items: flex-start; margin-bottom: 2rem; }
.gd-icon { width: 50px; height: 50px; border-radius: 12px; background: #eff6ff; color: var(--primary-blue); display: flex; align-items: center; justify-content: center; font-size: 1.3rem; flex-shrink: 0; }
.gd-text label { display: block; font-size: 0.8rem; color: var(--text-muted); font-weight: 700; text-transform: uppercase; margin-bottom: 5px; }
.gd-text div { font-size: 1.1rem; font-weight: 600; color: #1e293b; }

.btn-action-blue { 
    background: var(--primary-blue); color: white; padding: 16px; border-radius: 14px; border: none; 
    font-weight: 600; cursor: pointer; display: flex; justify-content: space-between; align-items: center; 
    width: 100%; box-shadow: 0 8px 20px rgba(30, 58, 138, 0.25); font-size: 1rem;
}
.btn-wa-full {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    width: 100%; padding: 14px; border-radius: 14px; margin-top: 15px;
    background: #fff; border: 1px solid #e2e8f0; color: #16a34a; font-weight: 700; cursor: pointer;
}
.btn-wa-full:hover { background: #f0fdf4; border-color: #bbf7d0; }

.footer-landscape { position: absolute; bottom: 0; left: 0; width: 100%; z-index: 1; pointer-events: none; }
.footer-landscape img { width: 100%; height: auto; object-fit: cover; mask-image: linear-gradient(to bottom, transparent 0%, black 20%); }

/* =========================================
   7. EVENTS LIST PUBLIC
   ========================================= */
.event-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; padding: 0 5% 5rem; max-width: var(--max-width); margin: 0 auto; }
.event-card { background: white; border-radius: 16px; overflow: hidden; box-shadow: 0 5px 15px rgba(0,0,0,0.05); border: 1px solid #f1f5f9; transition: 0.3s; display: flex; flex-direction: column; }
.event-card:hover { transform: translateY(-5px); box-shadow: 0 20px 40px rgba(0,0,0,0.1); }
.event-header { background: var(--primary-blue); color: white; padding: 1.2rem; display: flex; justify-content: space-between; align-items: center; }
.event-date-large { background: white; color: var(--primary-blue); padding: 5px 12px; border-radius: 8px; text-align: center; line-height: 1.1; }
.event-date-large .d { display: block; font-size: 1.3rem; font-weight: 800; }
.event-date-large .m { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; }
.event-body { padding: 1.5rem; flex: 1; }
.event-title { font-family: 'Playfair Display', serif; font-size: 1.3rem; margin-bottom: 10px; color: var(--text-main); line-height: 1.4; }
.event-meta { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 1rem; }
.event-meta div { margin-bottom: 5px; display: flex; align-items: center; gap: 8px; }
.event-footer { padding: 1.5rem; border-top: 1px solid #f1f5f9; background: #f8fafc; }

/* ==========================================================================
   8. EVENTS & BOOKING PAGES (TIMELINE & FORMS)
   ========================================================================== */

/* Common Page Header */
.page-header { 
    text-align: center; padding: 4rem 1rem; background: white; margin-bottom: 3rem; 
    border-bottom: 1px solid #e2e8f0; 
}
.page-header h1 { 
    font-family: 'Playfair Display', serif; font-size: 3rem; 
    color: var(--primary-blue); margin-bottom: 0.5rem; line-height: 1.2;
}
.page-header p { color: var(--text-muted); font-size: 1.1rem; }

/* Main Grid Layout */
.main-grid { 
    display: grid; grid-template-columns: 1fr 1.5fr; gap: 2.5rem; 
    max-width: var(--max-width); margin: 0 auto; padding: 0 5% 5rem; 
}

/* Standard Card Container */
.card { 
    background: white; border-radius: var(--radius-lg); padding: 2.5rem; 
    box-shadow: 0 4px 20px rgba(0,0,0,0.03); border: 1px solid #e2e8f0; 
    margin-bottom: 20px; 
}
.card-header { 
    border-bottom: 1px solid #f1f5f9; margin-bottom: 1.5rem; padding-bottom: 1rem; 
    display: flex; justify-content: space-between; align-items: center; 
}
.card-title { 
    font-size: 1.25rem; font-weight: 700; color: var(--primary-dark); 
    display: flex; align-items: center; gap: 10px; 
}

/* Forms Styling */
.form-group { margin-bottom: 1.5rem; }
.form-label { 
    display: block; margin-bottom: 0.5rem; font-weight: 600; 
    color: var(--primary-blue); font-size: 0.95rem; 
}
.form-control { 
    width: 100%; padding: 12px 16px; border-radius: 10px; border: 1px solid #cbd5e1; 
    font-size: 1rem; font-family: inherit; transition: 0.3s; 
}
.form-control:focus { 
    border-color: var(--primary-light); 
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1); outline: none; 
}
.time-row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }

.btn-submit { 
    width: 100%; padding: 14px; background: var(--primary-blue); color: white; border: none; 
    border-radius: 10px; font-weight: 600; cursor: pointer; font-size: 1rem; 
    display: flex; justify-content: center; align-items: center; gap: 10px; margin-top: 1rem;
    transition: 0.3s;
}
.btn-submit:hover { background: var(--primary-dark); transform: translateY(-2px); }

/* --- TIMELINE BOOKING CSS (Integrated from booking.php) --- */
.timeline-section { 
    margin-top: 3rem; background: white; border-radius: 24px; padding: 2rem; 
    box-shadow: 0 4px 20px rgba(0,0,0,0.03); border: 1px solid #e2e8f0; 
}
.timeline-header { 
    display: flex; justify-content: space-between; align-items: center; 
    margin-bottom: 20px; flex-wrap: wrap; gap: 15px; 
}
.room-filter-select { 
    padding: 10px 15px; border-radius: 8px; border: 1px solid #cbd5e1; 
    font-family: inherit; font-size: 0.95rem; min-width: 200px; cursor: pointer; 
}

/* Horizontal Date Scroller */
.date-scroller { 
    display: flex; overflow-x: auto; gap: 12px; padding-bottom: 10px; 
    margin-bottom: 20px; scrollbar-width: none; 
}
.date-scroller::-webkit-scrollbar { display: none; }
.date-card-item { 
    min-width: 80px; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 12px; 
    padding: 10px; text-align: center; cursor: pointer; transition: 0.2s; 
}
.date-card-item:hover, .date-card-item.active { 
    background: var(--primary-blue); color: white; border-color: var(--primary-blue); 
}
.date-day { font-size: 0.8rem; text-transform: uppercase; font-weight: 600; }
.date-num { font-size: 1.2rem; font-weight: 800; }

/* Vertical Time Grid */
.time-grid-container { 
    display: flex; flex-direction: column; gap: 8px; max-height: 500px; 
    overflow-y: auto; padding-right: 5px; 
}
.time-row-vis { display: flex; align-items: center; gap: 15px; }
.time-label-vis { 
    width: 60px; font-size: 0.85rem; font-weight: 700; color: var(--text-muted); text-align: right; 
}
.time-bar-bg { 
    flex: 1; height: 40px; background: #f1f5f9; border-radius: 8px; 
    position: relative; overflow: hidden; display: flex; align-items: center; padding: 0 15px; 
}
.status-free { 
    color: var(--success); font-size: 0.85rem; font-weight: 600; 
    display: flex; align-items: center; gap: 5px; 
}
.status-booked { 
    background: var(--danger-bg); color: #b91c1c; border-left: 4px solid var(--danger); 
    width: 100%; height: 100%; display: flex; align-items: center; padding-left: 10px; 
    font-size: 0.85rem; font-weight: 600; position: absolute; left: 0; top: 0; 
}
.status-pending-bar { 
    background: var(--warning-bg); color: #c2410c; border-left-color: var(--warning); 
}

/* Room Selection Grid */
.room-grid { 
    display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; 
    margin-top: 10px; background: #f8fafc; padding: 15px; border-radius: 8px; border: 1px solid #e2e8f0; 
}
.room-option { 
    display: flex; align-items: center; gap: 8px; font-size: 0.95rem; 
    cursor: pointer; padding: 5px; transition: 0.2s; 
}
.room-option:hover { background: #e0f2fe; border-radius: 5px; }

/* Detail Event Styling (event_detail.php) */
.detail-container { max-width: 900px; margin: 40px auto; padding: 0 20px; }
.detail-card { 
    background: white; border-radius: 20px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); 
    overflow: hidden; border: 1px solid #e2e8f0; 
}
.detail-header { background: var(--primary-blue); color: white; padding: 40px; text-align: center; }
.detail-header h1 { margin: 0; font-size: 2rem; line-height: 1.4; font-family: 'Playfair Display', serif; }
.badge-type { 
    background: #fff; color: var(--primary-blue); padding: 5px 15px; border-radius: 20px; 
    font-size: 0.85rem; font-weight: 700; display: inline-block; margin-top: 15px; 
}
.meta-grid { 
    display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 30px; 
    margin-bottom: 30px; padding: 40px; border-bottom: 1px solid #f1f5f9; 
}
.meta-item i { font-size: 1.8rem; color: var(--gold); margin-bottom: 10px; display: block; }
.meta-item label { font-size: 0.85rem; color: #64748b; font-weight: 600; text-transform: uppercase; }
.meta-item div { font-size: 1.2rem; font-weight: 700; color: #1e293b; margin-top: 5px; }
.action-buttons { padding: 0 40px 40px; display: flex; gap: 15px; flex-wrap: wrap; }

/* ==========================================================================
   9. ADMIN DASHBOARD & COMPONENTS
   ========================================================================== */
.admin-container { display: flex; min-height: 100vh; background: #f1f5f9; }

/* Sidebar */
.sidebar { 
    width: 270px; background: var(--primary-dark); color: white; 
    display: flex; flex-direction: column; position: fixed; top: 0; bottom: 0; left: 0; 
    z-index: 100; transition: 0.3s; 
}
.sidebar-header { 
    height: var(--header-height); display: flex; align-items: center; padding: 0 1.5rem; 
    border-bottom: 1px solid rgba(255,255,255,0.1); font-family: 'Playfair Display', serif; 
    font-size: 1.2rem; font-weight: 700; gap: 10px; 
}
.sidebar-menu { padding: 1.5rem 0; flex: 1; overflow-y: auto; }
.sidebar-menu a { 
    display: flex; align-items: center; gap: 12px; padding: 14px 1.5rem; 
    color: rgba(255,255,255,0.7); font-size: 0.95rem; border-left: 3px solid transparent; 
    transition: 0.2s; 
}
.sidebar-menu a:hover, .sidebar-menu a.active { 
    background: rgba(255,255,255,0.08); color: white; border-left-color: var(--gold); 
}
.sidebar-footer { padding: 1.5rem; border-top: 1px solid rgba(255,255,255,0.1); }

.btn-logout { 
    display: block; width: 100%; padding: 12px; text-align: center; 
    background: rgba(239, 68, 68, 0.2); color: #fca5a5; border-radius: 8px; 
    font-weight: 600; transition: 0.2s; 
}
.btn-logout:hover { background: var(--danger); color: white; }

/* Admin Content Area */
.admin-content { margin-left: 270px; flex: 1; padding: 2rem; width: 100%; }
.admin-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2.5rem; }
.admin-welcome h2 { font-family: 'Playfair Display', serif; color: var(--primary-blue); margin-bottom: 5px; }

/* Dashboard Stats Cards */
.stats-grid { 
    display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); 
    gap: 1.5rem; margin-bottom: 3rem; 
}
.stat-card { 
    background: white; padding: 1.5rem; border-radius: var(--radius-md); 
    box-shadow: 0 4px 6px rgba(0,0,0,0.02); border: 1px solid #e2e8f0; 
    display: flex; align-items: center; gap: 1.5rem; 
}
.stat-icon { 
    width: 55px; height: 55px; border-radius: 12px; display: flex; align-items: center; 
    justify-content: center; font-size: 1.5rem; 
}
.stat-info h3 { font-size: 2rem; font-weight: 700; color: var(--primary-dark); line-height: 1; margin-bottom: 5px; }
.stat-info span { font-size: 0.85rem; color: var(--text-muted); text-transform: uppercase; font-weight: 600; letter-spacing: 0.5px; }

/* Modern Tables */
.modern-table { width: 100%; border-collapse: collapse; }
.modern-table th { 
    text-align: left; padding: 15px; color: var(--text-muted); font-size: 0.85rem; 
    text-transform: uppercase; border-bottom: 2px solid #f1f5f9; background: #f8fafc; font-weight: 700; 
}
.modern-table td { padding: 15px; border-bottom: 1px solid #f1f5f9; vertical-align: middle; }
.modern-table tr:hover { background: #f8fafc; }

/* Status Badges */
.status-pill { padding: 6px 12px; border-radius: 20px; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; display: inline-block; }
.status-approved { background: var(--success-bg); color: #047857; border: 1px solid #d1fae5; }
.status-pending { background: var(--warning-bg); color: #c2410c; border: 1px solid #ffedd5; }
.status-rejected { background: var(--danger-bg); color: #b91c1c; border: 1px solid #fee2e2; }

/* Action Buttons (Table) */
.btn-icon { 
    display: inline-flex; width: 34px; height: 34px; align-items: center; justify-content: center; 
    border-radius: 8px; color: white; margin-left: 5px; transition: 0.2s; 
}
.btn-icon.check { background: var(--success); }
.btn-icon.cross { background: var(--danger); }
.btn-icon:hover { opacity: 0.8; transform: translateY(-2px); }

/* Map Modal (For manage_events.php) */
.map-modal { 
    display: none; position: fixed; z-index: 9999; top: 0; left: 0; width: 100%; height: 100%; 
    background: rgba(0,0,0,0.6); backdrop-filter: blur(5px); align-items: center; justify-content: center; 
}
.map-content { 
    background: white; width: 90%; max-width: 900px; height: 80vh; border-radius: 16px; 
    display: flex; flex-direction: column; overflow: hidden; animation: slideUp 0.3s; 
}
.map-header { 
    padding: 15px 20px; background: var(--primary-blue); color: white; 
    display: flex; justify-content: space-between; align-items: center; 
}
#mapContainer { flex: 1; width: 100%; background: #e2e8f0; }
.map-footer { 
    padding: 15px; background: #f8fafc; border-top: 1px solid #e2e8f0; 
    display: flex; justify-content: space-between; align-items: center; 
}

/* Event Type Toggle Radio */
.event-type-toggle { display: flex; gap: 15px; }
.radio-label { 
    display: flex; align-items: center; gap: 10px; padding: 10px 15px; border: 1px solid #e2e8f0; 
    border-radius: 8px; background: #f8fafc; cursor: pointer; flex: 1; transition: 0.2s; 
}
.radio-label:hover { background: white; border-color: var(--primary-light); }
.radio-label input:checked + span { color: var(--primary-blue); font-weight: 700; }

/* Gallery Management Grid */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 15px; margin-top: 20px; }
.gallery-item { position: relative; border-radius: 10px; overflow: hidden; aspect-ratio: 16/9; border: 1px solid #e2e8f0; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: 0.3s; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-overlay { 
    position: absolute; bottom: 0; left: 0; width: 100%; 
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent); color: white; 
    padding: 10px; display: flex; justify-content: space-between; align-items: flex-end; 
}

/* ==========================================================================
   10. LOGIN & MODALS
   ========================================================================== */
.login-body { 
    display: flex; align-items: center; justify-content: center; min-height: 100vh; 
    background: radial-gradient(circle at 50% 50%, #1e3a8a 0%, #0f172a 100%); 
}
.login-card { 
    background: rgba(255, 255, 255, 0.95); padding: 3rem; width: 100%; max-width: 420px; 
    border-radius: var(--radius-lg); box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5); text-align: center; 
}
.login-title { font-family: 'Playfair Display', serif; font-size: 1.8rem; color: var(--primary-blue); margin-bottom: 0.5rem; }

/* Modal & Alerts */
.modal-overlay { 
    display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; 
    background: rgba(0,0,0,0.6); z-index: 9999; align-items: center; justify-content: center; 
    backdrop-filter: blur(5px); 
}
.modal-box { 
    background: white; width: 90%; max-width: 400px; padding: 25px; border-radius: 16px; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.3); animation: slideUp 0.3s ease; 
}
@keyframes slideUp { from {transform: translateY(20px); opacity: 0;} to {transform: translateY(0); opacity: 1;} }
.close-modal { float: right; cursor: pointer; font-size: 1.2rem; color: #999; }

.alert { 
    padding: 15px; border-radius: 8px; margin-bottom: 1.5rem; font-size: 0.95rem; 
    display: flex; align-items: center; gap: 10px; 
}
.alert-success { background: var(--success-bg); color: #065f46; border: 1px solid #a7f3d0; }
.alert-error { background: var(--danger-bg); color: #991b1b; border: 1px solid #fecaca; }

/* ==========================================================================
   11. MOBILE RESPONSIVE SYSTEM (CRITICAL FIXES)
   ========================================================================== */

/* Tablet & Landscape (Max 1024px) */
@media (max-width: 1024px) {
    .calendar-wrapper { grid-template-columns: 1fr; gap: 3rem; }
    .hero-title { font-size: 3rem; }
    .main-grid { grid-template-columns: 1fr; }
}

/* Mobile Portrait (Max 768px) */
@media (max-width: 768px) {
    
    /* 1. HEADER & NAVIGATION (FIXED GESER KANAN) */
    .hamburger { display: flex; }
    
    .nav-links {
        position: fixed; 
        top: 0; 
        right: -100%; /* Sembunyikan di luar layar kanan */
        width: 75%; 
        max-width: 300px; 
        height: 100vh;
        background: white; 
        flex-direction: column; 
        align-items: flex-start;
        padding: 5rem 2rem 2rem; 
        box-shadow: -5px 0 20px rgba(0,0,0,0.1);
        transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1); 
        z-index: 1000;
        overflow-y: auto;
    }
    
    .nav-links.active { right: 0; /* Munculkan saat aktif */ }
    
    .nav-links a { 
        display: block; width: 100%; padding: 15px 0; border-bottom: 1px solid #f1f5f9; 
        color: var(--primary-dark); font-size: 1.1rem;
    }
    .nav-links a.active::after { display: none; }

    /* Hamburger Animation */
    .hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
    .hamburger.active span:nth-child(2) { opacity: 0; }
    .hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }

    /* 2. HERO ADJUSTMENTS */
    .hero-section { padding: 5rem 5% 4rem; text-align: center; flex-direction: column; }
    .hero-image { position: relative; width: 100%; margin-top: 2rem; transform: none; right: auto; opacity: 1; }
    .hero-title { font-size: 2.2rem; }

    /* 3. CALENDAR & EVENT FIXES */
    .calendar-section { padding: 3rem 1.5rem 6rem; overflow: hidden; }
    .glass-calendar, .glass-detail-card { padding: 1.5rem; width: 100%; box-sizing: border-box; }
    .cal-date { height: 40px; width: 40px; font-size: 0.9rem; }
    .cal-month-nav { font-size: 1.2rem; }
    
    /* Fix Tombol Lonceng & Teks di HP */
    .mini-event-row { flex-wrap: nowrap; gap: 10px; }
    .me-info h4 { font-size: 0.85rem; max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .btn-remind-icon { width: 34px; height: 34px; }

    /* 4. ADMIN SIDEBAR (Auto Hide) */
    .sidebar { width: 0; overflow: hidden; } 
    /* Anda bisa menambahkan toggle JS nanti untuk sidebar admin mobile */
    .admin-content { margin-left: 0; padding: 1rem; }
    
    /* 5. GENERAL LAYOUT */
    .features-container { grid-template-columns: 1fr; margin-top: 0; }
    .event-grid, .main-grid { padding: 0 1rem 3rem; }
}

/* ==========================================================================
   12. ADVANCED BOOKING TIMELINE (DETAIL VISUAL)
   ========================================================================== */

/* Container Scroll Timeline */
.timeline-scroll-wrapper {
    overflow-x: auto;
    padding-bottom: 20px;
    margin-top: 15px;
    border: 1px solid #f1f5f9;
    border-radius: 12px;
    background: #ffffff;
}

/* Custom Scrollbar untuk Timeline */
.timeline-scroll-wrapper::-webkit-scrollbar {
    height: 10px;
}
.timeline-scroll-wrapper::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 10px;
}
.timeline-scroll-wrapper::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
    border: 2px solid #f1f5f9;
}
.timeline-scroll-wrapper::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Status Bar: Terisi (Booked) dengan Efek Garis */
.status-booked {
    position: absolute;
    top: 0; left: 0; bottom: 0; right: 0;
    background-color: #fee2e2; /* Merah Muda Base */
    background-image: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(239, 68, 68, 0.1) 10px,
        rgba(239, 68, 68, 0.1) 20px
    );
    color: #991b1b;
    border-left: 4px solid #ef4444;
    display: flex;
    align-items: center;
    padding-left: 15px;
    font-size: 0.85rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.status-booked:hover {
    filter: brightness(0.95);
    z-index: 5;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.15);
}

/* Status Bar: Pending (Menunggu) dengan Animasi */
.status-pending-bar {
    background-color: #fff7ed; /* Orange Muda Base */
    background-image: repeating-linear-gradient(
        -45deg,
        transparent,
        transparent 10px,
        rgba(249, 115, 22, 0.1) 10px,
        rgba(249, 115, 22, 0.1) 20px
    );
    color: #9a3412;
    border-left: 4px solid #f97316;
}

/* Animasi untuk Status Pending */
@keyframes stripe-move {
    0% { background-position: 0 0; }
    100% { background-position: 50px 0; }
}
.status-pending-bar {
    animation: stripe-move 2s linear infinite;
}

/* Time Label pada Timeline */
.time-label-vis {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-variant-numeric: tabular-nums;
    color: var(--text-muted);
    font-size: 0.8rem;
    letter-spacing: 0.5px;
}

/* ==========================================================================
   13. FORM ELEMENTS DETAIL (CHECKBOX & FILE INPUT)
   ========================================================================== */

/* Custom File Input */
input[type="file"] {
    background: #f8fafc;
    padding: 10px;
    border: 1px dashed #cbd5e1;
    cursor: pointer;
}
input[type="file"]::-webkit-file-upload-button {
    background: var(--primary-blue);
    color: white;
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    margin-right: 15px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    transition: 0.2s;
}
input[type="file"]::-webkit-file-upload-button:hover {
    background: var(--primary-dark);
}

/* Custom Checkbox Room Selection */
.room-option {
    position: relative;
    padding: 12px 15px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: 0.2s;
}
.room-option:hover {
    border-color: var(--primary-light);
    background: #f0f9ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}
.room-option input[type="checkbox"] {
    accent-color: var(--primary-blue);
    width: 18px;
    height: 18px;
}
.room-option label {
    cursor: pointer;
    font-weight: 600;
    color: var(--text-main);
    font-size: 0.95rem;
}

/* ==========================================================================
   14. GALLERY HOVER EFFECTS & ANIMATIONS
   ========================================================================== */

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    background: #000;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    opacity: 0.9;
}

.gallery-item:hover img {
    transform: scale(1.1);
    opacity: 0.6;
}

.gallery-overlay {
    position: absolute;
    bottom: -100%; /* Sembunyi di bawah */
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: bottom 0.3s ease-in-out;
}

.gallery-item:hover .gallery-overlay {
    bottom: 0; /* Muncul saat hover */
}

.btn-del-img {
    background: rgba(255,255,255,0.2);
    color: white;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    backdrop-filter: blur(4px);
    transition: 0.2s;
}
.btn-del-img:hover {
    background: #ef4444;
    transform: scale(1.1);
}

/* ==========================================================================
   15. LOGIN PAGE ANIMATIONS
   ========================================================================== */

/* Background Animation Effect */
.login-body::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 10%, transparent 10%);
    background-size: 20px 20px;
    animation: bg-move 60s linear infinite;
    pointer-events: none;
}

@keyframes bg-move {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-50px, -50px); }
}

.login-card {
    position: relative;
    z-index: 10;
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(20px);
}

/* Input Focus Animation */
.login-card .form-control:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 4px rgba(217, 119, 6, 0.2);
}

/* ==========================================================================
   16. PRINT STYLES (Agar Tampilan Cetak Rapi)
   ========================================================================== */

@media print {
    .navbar, .btn-submit, .btn-icon, .sidebar, .page-header p, .timeline-header, .footer-landscape {
        display: none !important;
    }

    body {
        background: white;
        color: black;
        font-size: 12pt;
    }

    .main-grid, .admin-container, .admin-content {
        display: block;
        margin: 0;
        padding: 0;
        width: 100%;
    }

    .card, .stat-card {
        border: 1px solid #ccc;
        box-shadow: none;
        break-inside: avoid;
    }

    .status-booked, .status-pending-bar {
        background: #eee !important;
        color: black !important;
        border: 1px solid #999;
        -webkit-print-color-adjust: exact;
    }

    a[href]:after {
        content: " (" attr(href) ")";
        font-size: 0.8rem;
    }
}

/* ==========================================================================
   17. UTILITY ANIMATIONS (KEYFRAMES)
   ========================================================================== */

/* Fade In Up */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 30px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.hero-content, .feature-card, .event-card {
    animation: fadeInUp 0.8s ease-out forwards;
}

/* Delay Animasi agar berurutan */
.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.3s; }
.feature-card:nth-child(4) { animation-delay: 0.4s; }

/* Pulse Animation untuk Tombol Penting */
@keyframes pulse-gold {
    0% { box-shadow: 0 0 0 0 rgba(217, 119, 6, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(217, 119, 6, 0); }
    100% { box-shadow: 0 0 0 0 rgba(217, 119, 6, 0); }
}

.btn-card-gold {
    animation: pulse-gold 2s infinite;
}

/* ==========================================================================
   18. FINAL MOBILE FIXES (SAFETY NET)
   ========================================================================== */

/* Memastikan body tidak pernah geser horizontal di mobile */
html, body {
    max-width: 100%;
    overflow-x: hidden;
    position: relative;
}

/* Penyesuaian akhir untuk tabel di HP agar bisa di-scroll horizontal */
@media (max-width: 768px) {
    .card {
        padding: 1.5rem 1rem; /* Kurangi padding card di HP */
    }

    /* Table Wrapper agar bisa scroll */
    .table-responsive {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .modern-table {
        min-width: 600px; /* Paksa tabel lebar agar trigger scroll */
    }

    /* Modal Fullscreen di HP */
    .modal-box {
        width: 95%;
        max-height: 90vh;
        overflow-y: auto;
    }

    /* Sidebar Admin Overlay Mode */
    .sidebar.active {
        width: 270px; /* Munculkan sidebar jika class active ditambahkan via JS */
        box-shadow: 5px 0 15px rgba(0,0,0,0.2);
    }
}

/* ======================================================
   HOTFIX: PERBAIKAN BUG TOMBOL & LAYOUT AKHIR
   Paste kode ini di baris paling bawah style.css
   ====================================================== */

/* 1. Memaksa Container Event List Turun agar tidak tertutup Kalender */
.cal-mini-list {
    margin-top: 2rem !important; /* Jarak aman */
    padding-top: 1rem !important;
    position: relative !important;
    z-index: 999 !important; /* Layer sangat tinggi */
    clear: both; /* Pastikan tidak ada elemen floating mengganggu */
    pointer-events: none; /* Container tidak menghalangi, tapi anak elemennya (tombol) bisa */
}

/* 2. Memaksa Baris Event dan Tombol agar BISA DIKLIK */
.mini-event-row {
    pointer-events: auto !important; /* Aktifkan klik */
    position: relative;
    z-index: 1000 !important;
    background: rgba(255,255,255,0.15) !important; /* Sedikit lebih terang agar terlihat */
}

/* 3. Memaksa Tombol Lonceng Paling Atas (Super Priority) */
.btn-remind-icon {
    position: relative !important;
    z-index: 2000 !important; /* Paling atas dari segalanya */
    cursor: pointer !important;
    pointer-events: auto !important;
}

/* 4. Fix Header Mobile yang "Hilang" atau "Geser" */
@media (max-width: 768px) {
    body {
        padding-top: 0 !important; /* Reset padding jika ada */
        overflow-x: hidden !important; /* Kunci geser samping */
    }
    
    .navbar {
        position: fixed !important; /* Paksa Fixed di HP */
        top: 0; 
        left: 0;
        width: 100%;
        background: #ffffff !important; /* Pastikan background putih solid */
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }
    
    /* Turunkan konten agar tidak tertutup navbar fixed */
    .hero-section {
        margin-top: 80px; 
    }
}

/* ======================================================
   HOTFIX 2: MENGEMBALIKAN FITUR DROPDOWN KALENDER
   Paste kode ini di baris paling bawah style.css
   ====================================================== */

/* 1. Container Dropdown */
.dropdown {
    position: relative;
    display: block;
    width: 100%;
}

/* 2. Isi Menu Dropdown (Tersembunyi Default) */
.dropdown-content {
    display: none; /* Sembunyi dulu */
    position: absolute;
    background-color: white;
    width: 100%;
    min-width: 200px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    border-radius: 12px;
    z-index: 2000; /* Pastikan di atas layer lain */
    border: 1px solid #e2e8f0;
    
    /* Posisi: Muncul di ATAS tombol (Drop-UP) karena posisi tombol di bawah */
    bottom: 100%; 
    left: 0;
    margin-bottom: 8px; /* Jarak sedikit dari tombol */
    
    /* Animasi Halus */
    animation: fadeInUp 0.2s ease-out;
}

/* 3. Link di Dalam Dropdown */
.dropdown-content a {
    color: var(--text-main);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    border-bottom: 1px solid #f1f5f9;
    text-align: left;
    transition: 0.2s;
}

.dropdown-content a:last-child {
    border-bottom: none;
}

.dropdown-content a:hover {
    background-color: #f0f9ff;
    color: var(--primary-blue);
    padding-left: 20px; /* Efek geser sedikit */
}

/* 4. MEKANISME MUNCUL (HOVER) */
.dropdown:hover .dropdown-content {
    display: block; /* Muncul saat mouse di atas area */
}

/* Panah Indikator di Tombol (Opsional jika ada icon chevron) */
.dropdown:hover .btn-action-blue i.fa-chevron-up {
    transform: rotate(180deg);
    transition: 0.3s;
}

/* FIX MOBILE: Agar dropdown tidak terpotong di layar kecil */
@media (max-width: 768px) {
    .dropdown-content {
        position: relative; /* Di HP jadi relative agar mendorong konten */
        bottom: auto;
        margin-top: 5px;
        box-shadow: none;
        border: 1px solid #e2e8f0;
        background: #f8fafc;
    }
}

/* ======================================================
   HOTFIX 3: FIX BOOKING TERPOTONG & LAYOUT MOBILE
   Paste di paling bawah style.css
   ====================================================== */

@media (max-width: 768px) {
    /* 1. Perbaiki Container Utama agar tidak geser */
    .main-grid {
        display: block !important; /* Susun vertikal */
        padding: 15px !important; /* Kurangi padding */
        width: 100% !important;
        overflow-x: hidden;
    }

    /* 2. Perbaiki Card Booking agar pas layar */
    .card, .timeline-section {
        padding: 1.2rem !important; /* Padding lebih kecil */
        width: 100% !important;
        box-sizing: border-box;
        margin-bottom: 20px;
    }

    /* 3. Perbaiki Input Form agar tidak melebar */
    .form-control, .room-filter-select {
        width: 100% !important;
        min-width: 0 !important; /* Hapus batas minimal */
        box-sizing: border-box;
    }

    /* 4. Perbaiki Timeline agar bisa di-scroll horizontal jika lebar */
    .timeline-section {
        overflow-x: auto; /* Scroll jika konten melebar */
    }
    
    .date-scroller {
        padding-bottom: 5px;
        margin-bottom: 15px;
        justify-content: flex-start; /* Mulai dari kiri */
    }

    /* 5. Header Timeline */
    .timeline-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}