/* 공통 CSS 변수 및 기본 스타일 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: hsl(330, 80%, 55%);
    --primary-foreground: hsl(0, 0%, 100%);
    --secondary: hsl(330, 100%, 97%);
    --secondary-foreground: hsl(330, 80%, 40%);
    --background: hsl(0, 0%, 100%);
    --foreground: hsl(220, 15%, 20%);
    --card: hsl(0, 0%, 100%);
    --muted: hsl(220, 15%, 96%);
    --muted-foreground: hsl(220, 10%, 50%);
    --border: hsl(220, 15%, 90%);
    --success: hsl(140, 60%, 50%);
    --info: hsl(200, 80%, 50%);
    --radius: 0.75rem;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--background);
    color: var(--foreground);
    line-height: 1.6;
}

/* 레이아웃 */
.container {
    display: flex;
    min-height: 100vh;
}

/* 사이드바 */
.sidebar {
    width: 320px;
    background-color: var(--card);
    border-right: 1px solid var(--border);
    overflow-y: auto;
}

.sidebar-header {
    padding: 1.5rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background-color: var(--primary);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--primary-foreground);
}

.logo-text h2 {
    font-weight: bold;
    font-size: 1rem;
    color: var(--foreground);
}

.logo-text p {
    font-size: 0.75rem;
    color: var(--muted-foreground);
}

/* 네비게이션 */
.nav {
    padding: 0 1.25rem 1.5rem;
}

.nav-section {
    margin-bottom: 0.5rem;
}

.nav-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    border: none;
    background: transparent;
    color: var(--foreground);
    border-radius: var(--radius);
    cursor: pointer;
    transition: background-color 0.2s;
}

.nav-toggle:hover {
    background-color: var(--muted);
}

.nav-toggle svg {
    width: 16px;
    height: 16px;
    transition: transform 0.2s;
}

.nav-toggle.active svg {
    transform: rotate(180deg);
}

.nav-items {
    display: none;
    padding-left: 0.75rem;
    margin-top: 0.25rem;
}

.nav-items.show {
    display: block;
}

.nav-item {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    border-radius: var(--radius);
    cursor: pointer;
    transition: background-color 0.2s;
    margin-bottom: 0.25rem;
    text-decoration: none;
    color: inherit;
    display: block;
    white-space: nowrap;
    word-break: keep-all;
    overflow: visible;
    text-overflow: clip;
    min-width: 0;
}

.nav-item:hover {
    background-color: var(--muted);
}

.nav-item.active {
    background-color: var(--secondary);
    color: var(--secondary-foreground);
}

/* 메인 컨텐츠 */
.main-content {
    flex: 1;
    overflow-y: auto;
    padding: 2rem;
}

.content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
}

/* 푸터 */
footer {
    margin-top: 4rem;
    padding: 2rem;
    border-top: 1px solid var(--border);
    background-color: var(--muted);
}

footer .content-wrapper {
    max-width: 1280px;
    margin: 0 auto;
}

footer h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--foreground);
}

footer p {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    line-height: 1.6;
}

footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

footer li {
    margin-bottom: 0.5rem;
}

footer a {
    color: var(--muted-foreground);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s;
}

footer a:hover {
    color: var(--primary);
}

/* 모바일 반응형 */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--border);
    }

    .main-content {
        padding: 1rem;
    }
}

