:root {
    --primary-blue: #151b2d;
    --accent-blue: #3b82f6;
    --sidebar-bg: #151b2d;
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --nav-hover: rgba(59, 130, 246, 0.1);
    --border-color: rgba(255, 255, 255, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Pretendard', sans-serif;
    background: #f8fafc;
    overflow: hidden;
    height: 100vh;
}

.app-wrapper {
    display: flex;
    height: 100vh;
    width: 100vw;
}

/* Sidebar Styling */
.sidebar {
    width: 300px;
    background: var(--sidebar-bg);
    color: var(--text-main);
    display: flex;
    flex-direction: column;
    z-index: 100;
    border-right: 1px solid var(--border-color);
}

.sidebar-top {
    padding: 40px 20px;
    text-align: center;
    position: relative;
    border-bottom: 1px solid var(--border-color);
}

.mascot-container {
    width: 180px;
    height: 180px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-mascot {
    width: 180px;
    height: auto;
    animation: floating 3s ease-in-out infinite;
    filter: drop-shadow(0 10px 15px rgba(0,0,0,0.3));
}

@keyframes floating {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

.portal-logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.5px;
}

/* Navigation Section */
.sidebar-nav {
    flex: 1;
    padding: 30px 15px;
    overflow-y: auto;
}

.nav-section-title {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    padding-left: 10px;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 15px 12px;
    border-radius: 12px;
    margin-bottom: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.nav-item:hover {
    background: var(--nav-hover);
    border-color: rgba(59, 130, 246, 0.2);
    transform: translateX(5px);
}

.nav-item.active {
    background: var(--accent-blue);
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.nav-item.active .nav-desc {
    color: rgba(255, 255, 255, 0.8);
}

.nav-mascot-box {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    overflow: hidden;
}

.nav-mini-mascot {
    width: 90%;
    height: 90%;
    object-fit: contain;
}

.nav-text {
    display: flex;
    flex-direction: column;
}

.nav-title {
    font-weight: 600;
    font-size: 0.95rem;
}

.nav-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid var(--border-color);
    font-size: 0.7rem;
    color: var(--text-muted);
    text-align: center;
}

/* Main Dashboard Styling */
.main-dashboard {
    flex: 1;
    position: relative;
    background: #fff;
}

#main-frame {
    width: 100%;
    height: 100%;
    border: none;
}

.loader-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 50;
}

.hidden {
    display: none !important;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(59, 130, 246, 0.2);
    border-top-color: var(--accent-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
