:root {
    --header-height: 60px;
    --sidebar-width: 250px;
    --footer-height: 40px;
    --primary-color: #0d6efd;
    --content-bg: #ffffff;
    /* Reverted to white as requested */
}

body {
    overflow: hidden;
    /* Prevent body scroll, only content scrolls */
    font-family: 'Noto Sans KR', sans-serif;
    background-color: #f8f9fa;
}

/* Header */
#header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1030;
    background-color: white;
    box-shadow: 0 .125rem .25rem rgba(0, 0, 0, .075);
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
}

/* Sidebar */
#sidebar-wrapper {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: var(--sidebar-width);
    height: calc(100vh - var(--header-height) - var(--footer-height));
    overflow-y: auto;
    background-color: white;
    border-right: 1px solid #dee2e6;
    transition: width 0.25s ease, margin-left 0.25s ease;
    z-index: 1020;
}

#sidebar-wrapper .list-group-item {
    border: none;
    padding: 0.75rem 1.25rem;
    font-size: 0.95rem;
}

#sidebar-wrapper .list-group-item.active {
    background-color: #e9ecef;
    color: #0d6efd;
    font-weight: bold;
    border-right: 4px solid #0d6efd;
}

/* Main Content */
#page-content-wrapper {
    position: absolute;
    top: var(--header-height);
    left: var(--sidebar-width);
    width: calc(100% - var(--sidebar-width));
    height: calc(100vh - var(--header-height) - var(--footer-height));
    overflow-y: auto;
    background-color: var(--content-bg);
    padding: 0;
    transition: left 0.25s ease, width 0.25s ease;
}

/* Footer */
#footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: var(--footer-height);
    background-color: white;
    border-top: 1px solid #dee2e6;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1030;
    font-size: 0.85rem;
    color: #6c757d;
}

/* Toggled State (Collapsed Sidebar) */
body.sb-sidenav-toggled #sidebar-wrapper {
    margin-left: calc(-1 * var(--sidebar-width));
}

body.sb-sidenav-toggled #page-content-wrapper {
    left: 0;
    width: 100%;
}

/* Responsive */
@media (max-width: 768px) {
    #sidebar-wrapper {
        margin-left: calc(-1 * var(--sidebar-width));
    }

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

    /* Toggle show */
    body.sb-sidenav-toggled #sidebar-wrapper {
        margin-left: 0;
    }
}

/* Utility */
.card {
    border: none;
    box-shadow: 0 .125rem .25rem rgba(0, 0, 0, .075);
}

.form-label {
    font-weight: 500;
}

/* Scrollbar Styling for Webkit */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #adb5bd;
}