:root {
    --sidebar-width: 260px;
    --forest-green: #1b4332;
    --gold: #b7965a;
    --cream: #f8f5f0;
    --text-light: #a8b3af;
    --transition-speed: 0.3s;
}

/* 1. Reset & Global Base */
* {
    box-sizing: border-box;
}

html, body {
    max-width: 100%;
    overflow-x: hidden;
    position: relative;
    background-color: #f8f9fa;
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
}

/* 2. Sidebar Styling */
.sidebar {
    width: var(--sidebar-width);
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    background: var(--forest-green);
    color: white;
    transition: all var(--transition-speed);
    z-index: 1050; /* Di atas elemen konten */
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    padding: 30px 25px;
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--gold);
    letter-spacing: 1px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.nav-menu {
    padding: 20px 0;
    flex-grow: 1;
}

.nav-link {
    padding: 12px 25px;
    color: var(--text-light);
    display: flex;
    align-items: center;
    transition: var(--transition-speed);
    text-decoration: none;
    font-size: 0.9rem;
    border-left: 4px solid transparent;
}

.nav-link i { 
    width: 25px; 
    font-size: 1.1rem; 
}

.nav-link:hover, .nav-link.active {
    color: white;
    background: rgba(255,255,255,0.05);
    border-left-color: var(--gold);
}

/* 3. Main Content Styling - PERBAIKAN LEBAR */
.main-content {
    margin-left: var(--sidebar-width);
    width: calc(100% - var(--sidebar-width));
    padding: 40px;
    min-height: 100vh;
    transition: all var(--transition-speed);
    position: relative;
}

.dashboard-section {
    width: 100%;
    overflow-x: hidden; /* Mencegah row bootstrap bocor ke kanan */
}

/* 4. Top Bar & Profile */
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.user-profile {
    display: flex;
    align-items: center;
    background: white;
    padding: 8px 18px;
    border-radius: 50px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

/* 5. UI Elements (Cards & Buttons) */
.stat-card {
    background: white;
    border-radius: 20px;
    padding: 25px;
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.02);
}

.btn-add-spa {
    background-color: var(--forest-green);
    border: none;
    color: white;
    padding: 10px 20px;
    border-radius: 50px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.btn-add-spa:hover {
    background-color: var(--gold);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(27, 67, 50, 0.2) !important;
}

/* 6. Quill Editor / View Mode Fixes */
#v-desc .ql-syntax {
    background-color: #23241f;
    color: #f8f8f2;
    padding: 10px;
    border-radius: 5px;
}

#v-desc ul[data-checked="true"] > li::before,
#v-desc ul[data-checked="false"] > li::before {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    margin-right: 10px;
}

#v-desc ul[data-checked="true"] > li::before {
    content: "\f058";
    color: var(--forest-green);
}

#v-desc ul[data-checked="false"] > li::before {
    content: "\f111";
    color: #ccc;
}

/* 7. Gallery Preview */
#gallery-preview img {
    transition: opacity 0.3s;
}

#gallery-preview .position-relative:hover img {
    opacity: 0.8;
}

#gallery-preview .btn-danger {
    width: 22px;
    height: 22px;
    border: 2px solid #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* 8. Form Fixes */
.form-check-input[type="radio"] {
    appearance: auto !important;
    opacity: 1 !important;
}

/* 9. Mobile Responsive Fixes - FINAL LOCK */
@media (max-width: 992px) {
    .sidebar { 
        left: calc(var(--sidebar-width) * -1); 
    }
    
    .sidebar.active { 
        left: 0; 
    }

    .main-content { 
        margin-left: 0; 
        width: 100%;
        padding: 20px; 
    }

    .mobile-toggle { 
        display: block !important; 
        background: var(--forest-green);
        color: white;
        border: none;
        padding: 10px 15px;
        border-radius: 8px;
    }
    }
    .btn-outline-gold {
        color: #d4af37;
        border-color: #d4af37;
        transition: all 0.3s ease;
    }

    .btn-outline-gold:hover {
        background-color: #d4af37;
        color: #fff;
        box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
    }

    .btn-gold {
        background-color: #d4af37;
        color: white;
        border: none;
    }

    .btn-gold:hover {
        background-color: #b8952d;
        color: white;
        transform: translateY(-2px);
    }