/* =========================================
   1. SETUP & VARIABLES
   ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700&family=Poppins:wght@300;400;500;600&display=swap');

:root {
    /* Palette Warna */
    --primary-dark: #1e2a38;   /* Biru Gelap Formal */
    --primary-light: #2c3e50;  /* Biru Abu-abu */
    --accent-gold: #d4af37;    /* Emas Mewah */
    --accent-gold-hover: #b59020;
    --text-dark: #333333;
    --text-muted: #6c757d;
    --bg-light: #f4f6f9;       /* Abu-abu sangat muda */
    
    /* Layout */
    --sidebar-width: 260px;
}

body {
    font-family: 'Poppins', sans-serif; /* Font untuk teks bacaan */
    background-color: var(--bg-light);
    color: var(--text-dark);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif; /* Font Elegan untuk Judul */
    font-weight: 700;
    color: var(--primary-dark);
}

a { text-decoration: none; transition: all 0.3s ease; }

/* =========================================
   2. LANDING PAGE STYLES (Index.php)
   ========================================= */

/* Navbar Landing */
.navbar-dark.bg-dark {
    background-color: rgba(30, 42, 56, 0.95) !important; /* Semi transparan */
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    padding: 15px 0;
}

.navbar-brand {
    font-family: 'Playfair Display', serif;
    letter-spacing: 1px;
    color: var(--accent-gold) !important;
    font-size: 1.5rem;
}

.navbar-nav .nav-link {
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.9rem;
    padding: 0 15px !important;
    color: #eee !important;
}

.navbar-nav .nav-link:hover, 
.navbar-nav .nav-link.active {
    color: var(--accent-gold) !important;
}

/* Hero Section */
section#home {
    position: relative;
}

section#home::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.4); /* Overlay gelap agar teks terbaca */
    z-index: 0;
}

section#home .text-center {
    position: relative;
    z-index: 1;
}

section#home h1 {
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

/* Cards (Fasilitas, Testimoni) */
.card {
    border: none;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.card-header.bg-primary {
    background-color: var(--primary-dark) !important;
    border-bottom: 3px solid var(--accent-gold);
}

/* Buttons */
.btn-warning, .btn-primary {
    background-color: var(--accent-gold);
    border-color: var(--accent-gold);
    color: #fff;
    font-weight: 600;
    padding: 10px 25px;
    border-radius: 50px; /* Rounded Buttons */
}

.btn-warning:hover, .btn-primary:hover {
    background-color: var(--accent-gold-hover);
    border-color: var(--accent-gold-hover);
    color: #fff;
}

/* Section Titles */
section h2 {
    position: relative;
    display: inline-block;
    margin-bottom: 3rem;
}

section h2::after {
    content: '';
    position: absolute;
    display: block;
    width: 60px;
    height: 3px;
    background: var(--accent-gold);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

/* =========================================
   3. ADMIN DASHBOARD STYLES
   ========================================= */

/* Sidebar Wrapper */
#sidebar {
    min-width: var(--sidebar-width);
    max-width: var(--sidebar-width);
    background: var(--primary-dark);
    color: #fff;
    transition: all 0.3s;
    position: relative;
    z-index: 999;
    box-shadow: 4px 0 10px rgba(0,0,0,0.1);
}

#sidebar .fs-4 {
    color: var(--accent-gold);
    font-family: 'Playfair Display', serif;
    font-weight: bold;
    padding: 10px;
    display: block;
    text-align: center;
}

#sidebar hr {
    border-color: rgba(255,255,255,0.1);
}

/* Sidebar Links */
#sidebar .nav-link {
    color: rgba(255, 255, 255, 0.7);
    padding: 15px 20px;
    border-radius: 0;
    border-left: 4px solid transparent; /* Indikator aktif di kiri */
    font-size: 0.95rem;
}

#sidebar .nav-link:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

/* Active State Sidebar */
#sidebar .nav-link.active {
    background: rgba(212, 175, 55, 0.15); /* Gold transparan */
    color: var(--accent-gold);
    border-left: 4px solid var(--accent-gold);
}

#sidebar .nav-link i {
    width: 25px; /* Fixed width icons for alignment */
}

/* Topbar Admin */
.content {
    width: 100%;
    background-color: var(--bg-light);
}

.navbar-light.bg-light {
    background-color: #ffffff !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.badge.bg-secondary {
    background-color: var(--primary-light) !important;
}

/* Dashboard Cards/Widgets */
.card.text-bg-primary {
    background: linear-gradient(45deg, var(--primary-dark), var(--primary-light)) !important;
    border: none;
}

.card.border-danger .card-header {
    background-color: #dc3545;
    color: white;
    font-weight: bold;
}

.card.border-success .card-header {
    background-color: #198754;
    color: white;
    font-weight: bold;
}

/* =========================================
   4. LOGIN PAGE
   ========================================= */

/* Login Background override if needed */
.login-body {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #000000 100%);
}

.card.shadow {
    border-radius: 15px;
    border: 1px solid rgba(0,0,0,0.05);
}