/* 사이드바 기본 레이아웃 */
.admin-sidebar {
    background: #1a1f2c;
    width: 240px;
    min-width: 240px;
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    display: flex;
    flex-direction: column;
    z-index: 100;
    transition: all 0.3s ease;
    box-shadow: 4px 0 10px rgba(0, 0, 0, 0.1);
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
}

/* 사이드바 축소 상태 */
.admin-sidebar.collapsed {
    width: 80px;
    min-width: 80px;
}

.admin-sidebar.collapsed .symbol-logo-container {
    padding: 1rem 0.5rem;
}

.admin-sidebar.collapsed .symbol-logo {
    width: 40px;
}

.admin-sidebar.collapsed .sidebar-nav li a span {
    display: none;
}

.admin-sidebar.collapsed .sidebar-nav li a {
    padding: 0.75rem;
    justify-content: center;
}

.admin-sidebar.collapsed .sidebar-nav .nav-icon {
    margin-right: 0;
}

.admin-sidebar.collapsed .logout-btn span {
    display: none;
}

.admin-sidebar.collapsed .logout-btn {
    padding: 0.75rem;
    justify-content: center;
}

.admin-sidebar.collapsed .logout-btn i {
    margin-right: 0;
}

.admin-sidebar.collapsed .mtp-logo,
.admin-sidebar.collapsed .copyright-text {
    display: none;
}

/* 토글 버튼 */
.sidebar-toggle {
    display: none !important;
}

/* 로고 컨테이너 */
.symbol-logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100px;
    padding: 1.5rem;
    padding-bottom: 1.5rem;
    margin-bottom: 1rem;
    margin-top: 2rem;
}

.symbol-logo {
    width: 110px;
    height: auto;
    transition: transform 0.2s ease;
}

.symbol-logo:hover {
    transform: scale(1.05);
}

/* 네비게이션 메뉴 */
.sidebar-nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 0;
    transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
}

.sidebar-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    transform: translateZ(0);
}

/* 홈 메뉴 특별 스타일 */
.sidebar-nav ul li:first-child {
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    padding-bottom: 1.5rem;
}

.sidebar-nav ul li:not(:first-child) {
    margin-top: 0.5rem;
}

.sidebar-nav li {
    transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
}

.sidebar-nav li a {
    display: flex;
    align-items: center;
    padding: 0.75rem 1.25rem;
    color: #94a3b8;
    text-decoration: none;
    transition: all 0.2s ease;
    border-radius: 8px;
    margin: 0.25rem 0.75rem;
    font-size: 0.95rem;
    position: relative;
    overflow: hidden;
    transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
}

.sidebar-nav li a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
}

.sidebar-nav li.active a {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-weight: 500;
    position: relative;
    transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
}

.sidebar-nav li.active a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #1a73e8;
    border-radius: 2px;
    transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
    transition: transform 0.2s ease;
}

.sidebar-nav .nav-icon {
    margin-right: 0.75rem;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
    flex-shrink: 0;
    transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
}

.sidebar-nav li.active .nav-icon {
    color: #fff;
    opacity: 1;
}

/* 하단 영역 */
.sidebar-bottom {
    padding: 1.5rem;
}

.logout-container {
    margin-bottom: 1rem;
}

.logout-btn {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0.75rem 1rem;
    color: #94a3b8;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-size: 0.95rem;
}

.logout-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.logout-btn i {
    margin-right: 0.75rem;
    opacity: 0.8;
}

.bottom-logo-container {
    text-align: center;
    padding-top: 1rem;
}

.mtp-logo {
    width: 148px;
    height: auto;
    margin-bottom: 0.5rem;
    transition: transform 0.2s ease;
}

.mtp-logo:hover {
    transform: scale(1.05);
}

.copyright-text {
    color: #64748b;
    font-size: 0.75rem;
}

/* 메인 컨텐츠 영역 */
.admin-main {
    margin-left: 240px;
    padding: 1.5rem;
    min-height: 100vh;
    background: #f1f5f9;
    transition: all 0.3s ease;
}

.admin-main.expanded {
    margin-left: 80px;
}

.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.main-header h1 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e2b3c;
    margin: 0;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .admin-sidebar {
        width: 100%;
        min-width: 100%;
        height: 60px;
        position: fixed;
        top: 0;
        left: 0;
        flex-direction: row;
        align-items: center;
        padding: 0 1rem;
        z-index: 1000;
    }

    .admin-main {
        margin-left: 0;
        padding-top: 80px;
    }

    .symbol-logo-container {
        min-height: auto;
        padding: 0;
        margin: 0;
        width: auto;
    }

    .symbol-logo {
        width: 40px;
        height: auto;
    }

    .sidebar-nav {
        flex: 1;
        flex-direction: row;
        justify-content: flex-end;
        padding: 0;
        margin-left: 1rem;
    }

    .sidebar-nav ul {
        display: flex;
        flex-direction: row;
        gap: 1rem;
        margin: 0;
        padding: 0;
    }

    .sidebar-nav li {
        margin: 0 !important;
        padding: 0 !important;
    }

    .sidebar-nav li a {
        padding: 0.5rem;
        margin: 0;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 8px;
    }

    .sidebar-nav li a span {
        display: none;
    }

    .sidebar-nav .nav-icon {
        margin: 0;
        width: 20px;
        height: 20px;
    }

    .sidebar-bottom {
        display: none;
    }

    .main-header {
        margin-top: 1rem;
    }
}

/* 작은 모바일 화면 */
@media (max-width: 480px) {
    .admin-sidebar {
        height: 50px;
        padding: 0 0.5rem;
    }

    .admin-main {
        padding-top: 70px;
    }

    .symbol-logo {
        width: 35px;
    }

    .sidebar-nav li a {
        width: 35px;
        height: 35px;
        padding: 0.35rem;
    }

    .sidebar-nav .nav-icon {
        width: 18px;
        height: 18px;
    }

    .sidebar-nav ul {
        gap: 0.5rem;
    }
}

/* 사이드바 하단 가로선 완전 제거 */
.sidebar-bottom,
.logout-container,
.bottom-logo-container {
    border: none !important;
    border-top: none !important;
    border-bottom: none !important;
}
.sidebar-bottom hr,
.logout-container hr,
.bottom-logo-container hr {
    display: none !important;
}

.sidebar-nav,
.sidebar-bottom,
.logout-container,
.bottom-logo-container {
    background: transparent !important;
}

.logout-btn {
    background: transparent !important;
} 