/* Global Reset & Font */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { 
    height: 100%; 
    font-family: Pretendard, -apple-system, BlinkMacSystemFont, system-ui, Roboto, "Helvetica Neue", sans-serif;
    background-color: #f8f9fa; 
    color: #212529; 
}

/* Layout */
.admin-container { display: flex; min-height: 100vh; }
.sidebar { 
    width: 240px; 
    flex-shrink: 0; 
    background-color: #343a40; 
    color: #fff; 
    padding: 20px;
    position: relative;
}
.content-area { 
    flex-grow: 1; 
    padding: 40px; 
    overflow-y: auto; 
}

/* Sidebar Header */
.sidebar-header {
    margin-bottom: 30px;
}
.admin-title { 
    font-size: 20px; 
    line-height: 1.4;
}

/* Menu */
.menu ul { list-style: none; }
.menu ul li a { 
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px; 
    color: #ced4da; 
    text-decoration: none; 
    border-radius: 4px; 
    transition: background-color 0.2s, color 0.2s; 
}
.menu ul li a:hover { 
    background-color: #495057; 
    color: #fff; 
}
.menu ul li a.active { 
    background-color: #0d6efd; 
    color: #fff; 
}
.menu .icon {
    font-size: 1.2em;
}

/* Menu Divider */
.menu-divider {
    margin: 20px 20px;
    height: 1px;
    background: linear-gradient(to right, transparent, #3a3f51, transparent);
    opacity: 0.5;
}

/* Sidebar Footer */
.sidebar-footer {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    color: #ced4da;
    font-size: 14px;
}
.sidebar-footer p {
    margin-bottom: 8px;
}
.logout-link {
    color: #dc3545;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.logout-link:hover {
    text-decoration: underline;
}

/* Content Area */
.page-header {
    margin-bottom: 30px;
}
.page-header h1 {
    font-size: 28px;
    margin-bottom: 8px;
}
.page-header p {
    color: #6c757d;
    font-size: 15px;
}

/* Dashboard stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}
.stat-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    gap: 20px;
}
.stat-icon {
    font-size: 48px;
    opacity: 0.8;
}
.stat-info h3 {
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 8px;
}
.stat-value {
    font-size: 28px;
    font-weight: 700;
    color: #212529;
}

/* Info Section */
.info-section {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
.info-section h2 {
    font-size: 20px;
    margin-bottom: 15px;
}
.info-section p {
    margin: 8px 0;
    color: #495057;
}

/* 로그인 페이지 */
.login-body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}
.login-container {
    background: #ffffff;
    padding: 32px 28px;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(15,23,42,0.15);
    width: 100%;
    max-width: 360px;
    text-align: center;
}
.login-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 6px;
}
.login-subtitle {
    font-size: 13px;
    color: #6c757d;
    margin-bottom: 16px;
}
.login-error {
    background: #fff5f5;
    color: #e03131;
    font-size: 13px;
    padding: 8px 10px;
    border-radius: 8px;
    margin-bottom: 10px;
}
.login-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.login-form input[type="password"] {
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid #ced4da;
    font-size: 14px;
}
.login-form button {
    padding: 10px 12px;
    border-radius: 8px;
    border: none;
    background: #4c6fff;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}
.login-form button:hover {
    background: #3b57d0;
}
