/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Lato:wght@300;400;700&display=swap');

:root {
    --primary-color: #9C837F;
    /* Taupe/Dusty Rose from Logo 2 */
    --primary-dark: #7D6663;
    --primary-light: #C4B0AD;
    --bg-color: #F9F7F5;
    /* Warm off-white */
    --text-color: #4A4A4A;
    --sidebar-width: 260px;
    --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

body {
    font-family: 'Lato', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6,
.brand-text {
    font-family: 'Playfair Display', serif;
    color: #333;
}

/* Sidebar Layout */
#wrapper {
    display: flex;
    width: 100%;
    align-items: stretch;
    min-height: 100vh;
}

#sidebar-wrapper {
    min-width: var(--sidebar-width);
    max-width: var(--sidebar-width);
    background: #ffffff;
    border-right: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    z-index: 1000;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.02);
}

#page-content-wrapper {
    width: 100%;
    padding: 0;
}

/* Sidebar Branding */
.sidebar-heading {
    padding: 2rem 1.5rem;
    text-align: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.sidebar-logo {
    max-width: 150px;
    height: auto;
    margin-bottom: 0.5rem;
}

.brand-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-color);
    letter-spacing: 1px;
    margin: 0;
}

/* Sidebar Menu */
.list-group-item {
    padding: 1rem 1.5rem;
    border: none;
    background-color: transparent;
    color: #666;
    font-weight: 500;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
}

.list-group-item:hover {
    background-color: var(--bg-color);
    color: var(--primary-color);
    text-decoration: none;
    padding-left: 1.75rem;
    /* Slight shift effect */
}

.list-group-item.active {
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 0 25px 25px 0;
    margin-right: 10px;
    /* Cut effect */
}

/* Navbar (Top) */
.navbar-top {
    padding: 1rem 2rem;
    background: transparent;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Content Container */
.content-container {
    padding: 20px 30px;
}

/* UI Elements */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    background: #fff;
    transition: transform 0.2s;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 0.5rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

/* Tables */
.table thead th {
    border-bottom: 2px solid var(--primary-light);
    color: var(--text-color);
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
}

/* Login Page specific */
.site-login {
    max-width: 400px;
    margin: 50px auto;
    padding: 30px;
    background: #fff;
    border-radius: 15px;
    box-shadow: var(--card-shadow);
}

/* Responsive Sidebar */
@media (max-width: 991.98px) {
    #sidebar-wrapper {
        position: fixed;
        height: 100vh;
        overflow-y: auto;
        left: -260px;
        /* Sembunyikan sepenuhnya */
        top: 0;
        z-index: 1050;
        margin-left: 0 !important;
        transition: left 0.3s ease-in-out;
    }

    #wrapper.toggled #sidebar-wrapper {
        left: 0;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2);
    }

    #sidebar-backdrop {
        display: none !important;
    }

    #wrapper.toggled #sidebar-backdrop {
        display: block !important;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1040;
    }

    .content-container {
        padding: 15px;
    }
}

@media (min-width: 992px) {
    #wrapper.toggled #sidebar-wrapper {
        margin-left: calc(-1 * var(--sidebar-width));
    }
}