/* Navigation Sidebar Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans KR', 'Malgun Gothic', '맑은 고딕', Arial, sans-serif;
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    /* Green Gradient */
    min-height: 100vh;
}

/* Sidebar Navigation */
.sidebar {
    position: fixed;
    left: -300px;
    top: 0;
    width: 300px;
    height: 100vh;
    background: white;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    transition: left 0.3s ease;
    z-index: 1000;
    overflow-y: auto;
}

.sidebar.active {
    left: 0;
}

.sidebar-header {
    padding: 20px;
    background: linear-gradient(135deg, #81c784 0%, #4caf50 100%);
    /* Green Gradient */
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-header h2 {
    font-size: 22px;
    font-weight: bold;
}

.close-btn {
    background: transparent;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 5px 10px;
}

.close-btn:hover {
    opacity: 0.8;
}

/* Search Box */
.search-box {
    padding: 15px;
    border-bottom: 1px solid #e0e0e0;
    position: relative;
}

.search-box input {
    width: 100%;
    padding: 10px 35px 10px 10px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s;
}

.search-box input:focus {
    border-color: #4caf50;
    /* Green */
}

.search-box i {
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
}

/* Navigation Menu */
.nav-menu {
    list-style: none;
    padding: 0;
}

.nav-menu li {
    border-bottom: 1px solid #f0f0f0;
}

.nav-menu li a {
    display: block;
    padding: 15px 20px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 15px;
}

.nav-menu li a:hover {
    background: #e8f5e9;
    /* Light Green */
    color: #2e7d32;
    /* Dark Green */
    padding-left: 25px;
}

.nav-menu li a i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.nav-section-title {
    padding: 15px 20px;
    font-weight: bold;
    color: #666;
    background: #f5f5f5;
    font-size: 14px;
    text-transform: uppercase;
}

/* Overlay */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 999;
}

.overlay.active {
    display: block;
}

/* Main Wrapper */
.main-wrapper {
    transition: margin-left 0.3s ease;
}

/* Top Bar */
.top-bar {
    background: white;
    padding: 15px 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 20px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.menu-toggle {
    background: linear-gradient(135deg, #81c784 0%, #4caf50 100%);
    /* Green Gradient */
    border: none;
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.menu-toggle:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
    /* Green Shadow */
}

.page-title {
    font-size: 22px;
    color: #2e7d32;
    /* Dark Green */
    font-weight: bold;
}

/* Main Content */
.main-content {
    padding: 20px;
    min-height: calc(100vh - 140px);
}

/* Footer */
.footer {
    background: #2e7d32;
    /* Dark Green Footer */
    color: white;
    padding: 20px;
    text-align: center;
}

.footer-content p {
    margin: 5px 0;
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .sidebar {
        width: 280px;
        left: -280px;
    }

    .page-title {
        font-size: 18px;
    }

    .main-content {
        padding: 15px 0;
        /* Removed horizontal padding */
    }
}

@media (min-width: 1024px) {
    .sidebar {
        left: 0;
    }

    .main-wrapper {
        margin-left: 300px;
    }

    .menu-toggle {
        display: none;
    }

    .overlay {
        display: none !important;
    }
}