/* ÀüÃ¼ ½ºÅ¸ÀÏ ÃÊ±âÈ­ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 100%);
    height: 100vh;
    overflow: hidden;
    color: #e0e6ed;
}

.container {
    display: flex;
    height: 100vh;
    background: #1a1a2e;
    margin: 20px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

/* ¿ÞÂÊ »çÀÌµå¹Ù ½ºÅ¸ÀÏ */
.sidebar {
    width: 320px;
    background: linear-gradient(180deg, #16213e 0%, #0f3460 100%);
    color: #e0e6ed;
    display: flex;
    flex-direction: column;
    border-right: 1px solid #2d3748;
}

.sidebar-header {
    padding: 25px 20px;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.sidebar-header h1 {
    font-size: 24px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.home-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

.home-button:hover {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
    border-color: rgba(255, 255, 255, 0.2);
}

.nav-menu {
    flex: 1;
    overflow-y: auto;
    padding: 10px 0;
}

.nav-menu ul {
    list-style: none;
}

.nav-menu li {
    margin: 2px 0;
}

.nav-link {
    display: block;
    padding: 15px 20px;
    color: #cbd5e1;
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
    font-size: 14px;
    line-height: 1.4;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    border-left-color: #3b82f6;
    padding-left: 25px;
    transform: translateX(5px);
    color: #e0e6ed;
}

.nav-link.active {
    background: rgba(59, 130, 246, 0.2);
    border-left-color: #3b82f6;
    color: #e0e6ed;
    font-weight: 500;
}

/* ½ºÅ©·Ñ¹Ù ½ºÅ¸ÀÏ */
.nav-menu::-webkit-scrollbar {
    width: 6px;
}

.nav-menu::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

.nav-menu::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.nav-menu::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* ¿À¸¥ÂÊ ÄÁÅÙÃ÷ ¿µ¿ª */
.content-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #0f1419;
}

.content-header {
    padding: 20px 30px;
    background: #1a1a2e;
    border-bottom: 1px solid #2d3748;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.content-header h2 {
    color: #e0e6ed;
    font-size: 20px;
    font-weight: 600;
}

.content-controls {
    display: flex;
    gap: 10px;
}

.btn-refresh {
    padding: 8px 16px;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.btn-refresh:hover {
    background: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(59, 130, 246, 0.3);
}

.content-body {
    flex: 1;
    position: relative;
    overflow: hidden;
}

#content-frame {
    width: 100%;
    height: 100%;
    border: none;
    background: #ffffff;
    display: none;
    transition: opacity 0.3s ease;
}

/* È¯¿µ ¸Þ½ÃÁö ½ºÅ¸ÀÏ */
.welcome-message {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: #e0e6ed;
    text-align: center;
}

.welcome-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    animation: bounce 2s infinite;
}

.welcome-message h3 {
    font-size: 28px;
    margin-bottom: 15px;
    font-weight: 600;
}

.welcome-message p {
    font-size: 16px;
    color: #94a3b8;
    line-height: 1.6;
    margin-bottom: 20px;
}

.project-stats {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.stat-item {
    background: rgba(59, 130, 246, 0.2);
    color: #93c5fd;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* ¾Ö´Ï¸ÞÀÌ¼Ç */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* ¹ÝÀÀÇü µðÀÚÀÎ */
@media (max-width: 768px) {
    .container {
        margin: 10px;
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        height: 200px;
    }
    
    .nav-menu {
        display: flex;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 10px;
    }
    
    .nav-menu ul {
        display: flex;
        gap: 10px;
        min-width: max-content;
    }
    
    .nav-menu li {
        margin: 0;
    }
    
    .nav-link {
        white-space: nowrap;
        min-width: 200px;
        text-align: center;
    }
    
    .content-header {
        padding: 15px 20px;
    }
    
    .content-header h2 {
        font-size: 18px;
    }
}

/* ·Îµù ¾Ö´Ï¸ÞÀÌ¼Ç */
.loading {
    position: relative;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 4px solid #374151;
    border-top: 4px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}