/* CSS Variables */
:root {
    --primary-color: #1A237E; /* 깊은 네이비 */
    --primary-light: #2d5a8a;
    --accent-color: #00BFA5;  /* 산뜻한 민트 */
    --accent-light: #7ee8e1;
    --admin-color: #FFB300;   /* 관리자 황색 */
    --background-color: #F4F7F9; /* 밝은 배경 */
    --card-background: #ffffff;
    --text-primary: #2C3E50;  /* 진한 텍스트 */
    --text-secondary: #7F8C8D; /* 중간 텍스트 */
    --text-light: #94a3b8;
    --border-color: #e2e8f0;
    --error-color: #ef4444;
    --success-color: #22c55e;
    --warning-color: #f59e0b;
    --blue: #3498DB;
    --green: #2ECC71; /* 리포트 색상 */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-card: 0 8px 20px rgba(0,0,0,0.06);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-full: 9999px;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--background-color);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

/* App Container */
.app-container {
    max-width: 480px;
    margin: 0 auto;
    min-height: 100vh;
    background: var(--card-background);
    position: relative;
}

/* Tab Navigation */
.tab-navigation {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    background: var(--card-background);
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 8px 0;
    padding-bottom: calc(8px + env(safe-area-inset-bottom));
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
    z-index: 100;
}

.tab-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px 20px;
    cursor: pointer;
    color: var(--text-light);
    transition: all 0.2s;
    border-radius: var(--radius-sm);
    flex: 1;
    max-width: 120px;
}

.tab-item svg {
    width: 24px;
    height: 24px;
}

.tab-item span {
    font-size: 12px;
    font-weight: 500;
}

.tab-item.active {
    color: var(--primary-color);
}

.tab-item:active {
    opacity: 0.7;
}

/* Add padding to screens with tab navigation */
#screen-home .main-content,
#screen-mypage .mypage-content {
    padding-top: 70px;
    padding-bottom: 80px;
}

/* Screens */
.screen {
    display: none;
    min-height: 100vh;
    flex-direction: column;
}

.screen.active {
    display: flex;
}

/* Loading Screen */
#screen-loading {
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
}

.loading-content {
    text-align: center;
    color: white;
}

.spinner {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--accent-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 16px;
}

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

/* Screen Header */
.screen-header {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    background: var(--primary-color);
    color: white;
    gap: 12px;
}

.screen-header h1 {
    flex: 1;
    font-size: 18px;
    font-weight: 600;
}

.btn-back {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-icon {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Public Screen (Landing) */
#screen-public {
    background: linear-gradient(180deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: white;
}

.public-header {
    padding: 60px 24px 40px;
    text-align: center;
}

.logo {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
}

.logo span {
    color: var(--accent-color);
}

.public-content {
    flex: 1;
    background: var(--card-background);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    padding: 40px 24px;
    color: var(--text-primary);
}

.hero-section {
    text-align: center;
    margin-bottom: 40px;
}

.hero-section h2 {
    font-size: 24px;
    margin-bottom: 12px;
    line-height: 1.4;
}

.hero-section p {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.feature-list {
    list-style: none;
    text-align: left;
    max-width: 280px;
    margin: 0 auto;
}

.feature-list li {
    padding: 8px 0;
    padding-left: 28px;
    position: relative;
    color: var(--text-secondary);
}

.feature-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Buttons */
.btn {
    padding: 14px 24px;
    border-radius: var(--radius-md);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    text-align: center;
}

.btn-primary {
    background: var(--accent-color);
    color: white;
    border-radius: 30px;
    box-shadow: 0 4px 10px rgba(0, 191, 165, 0.3);
    transition: all 0.2s;
}

.btn-primary:hover {
    background: #00a693;
    transform: translateY(-1px);
    box-shadow: 0 6px 15px rgba(0, 191, 165, 0.4);
}

.btn-primary:disabled {
    background: var(--border-color);
    color: var(--text-light);
    cursor: not-allowed;
}

.btn-secondary {
    background: var(--primary-color);
    color: white;
}

.btn-secondary:hover {
    background: var(--primary-light);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--border-color);
    color: var(--text-primary);
}

.btn-outline:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-full {
    width: 100%;
}

.btn-danger {
    background: var(--error-color);
    color: white;
}

.btn-accent {
    background: var(--accent-color);
    color: var(--primary-color);
}

.btn-accent:hover {
    background: var(--accent-light);
}

/* Social Login Buttons */
.social-login-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 8px;
}

.btn-google {
    background: white;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.btn-google:hover {
    background: var(--background-color);
    border-color: var(--text-secondary);
}

.btn-google svg {
    flex-shrink: 0;
}

.form-hint {
    font-size: 12px;
    color: var(--text-secondary);
    text-align: center;
    margin-top: 8px;
}

/* Profile Setup */
.profile-setup-intro {
    text-align: center;
    margin-bottom: 24px;
    padding: 16px;
    background: var(--background-color);
    border-radius: var(--radius-md);
}

.profile-setup-intro p {
    color: var(--text-secondary);
}

/* Screen Content */
.screen-content {
    flex: 1;
    padding: 24px 20px;
    overflow-y: auto;
}

/* Auth Form */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

.label-hint {
    font-weight: 400;
    color: var(--text-secondary);
    font-size: 12px;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 16px;
    transition: border-color 0.2s;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    color: var(--text-light);
    font-size: 14px;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

/* Fixed Header */
.fixed-header {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: var(--card-background);
    border-bottom: 1px solid var(--border-color);
    z-index: 50;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-logo svg {
    flex-shrink: 0;
}

.header-logo h1 {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
}

/* Main Header (Dashboard) - Legacy */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: var(--primary-color);
    color: white;
}

.user-greeting {
    font-size: 16px;
}

.greeting-text {
    color: rgba(255, 255, 255, 0.8);
}

.user-name {
    font-weight: 600;
    color: var(--accent-color);
}

.main-content {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    padding-top: calc(20px + 60px); /* Add padding for fixed header */
}

/* Learning Guide Card */
.learning-guide-card {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: var(--radius-lg);
    padding: 24px;
    color: white;
    margin-bottom: 24px;
    box-shadow: var(--shadow-md);
}

.learning-guide-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
    color: white;
}

.learning-guide-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.learning-guide-list li {
    font-size: 14px;
    line-height: 1.6;
    padding-left: 20px;
    position: relative;
}

.learning-guide-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    font-size: 18px;
    color: var(--accent-color);
    font-weight: bold;
}

/* Rank Summary Card */
.rank-summary-card {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: var(--radius-lg);
    padding: 24px;
    color: white;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
}

.rank-summary-card::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: radial-gradient(circle, rgba(78, 205, 196, 0.2) 0%, transparent 70%);
}

.rank-info {
    margin-bottom: 12px;
}

.rank-label {
    font-size: 12px;
    opacity: 0.8;
}

.rank-display {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.rank-number {
    font-size: 48px;
    font-weight: 700;
    color: var(--accent-color);
}

.rank-total {
    font-size: 18px;
    opacity: 0.8;
}

.score-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.score-label {
    font-size: 12px;
    opacity: 0.8;
}

.score-value {
    font-size: 20px;
    font-weight: 600;
}

.grade-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(255, 255, 255, 0.2);
    padding: 6px 12px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 500;
}

/* Menu Grid */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.menu-card {
    background: var(--card-background);
    border-radius: var(--radius-md);
    padding: 20px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid var(--border-color);
}

.menu-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.menu-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
}

.test-icon {
    background: rgba(78, 205, 196, 0.15);
    color: var(--accent-color);
}

.rank-icon {
    background: rgba(245, 158, 11, 0.15);
    color: var(--warning-color);
}

.mypage-icon {
    background: rgba(30, 58, 95, 0.15);
    color: var(--primary-color);
}

.log-icon {
    background: rgba(34, 197, 94, 0.15);
    color: var(--success-color);
}

.menu-card h3 {
    font-size: 16px;
    margin-bottom: 4px;
}

.menu-card p {
    font-size: 12px;
    color: var(--text-secondary);
}

/* Adaptive Test Screen */
.test-header {
    padding: 16px 20px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    background: var(--card-background);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.test-header-content {
    display: flex;
    align-items: center;
    color: var(--primary-color);
    font-size: 20px;
    font-weight: 700;
}

.test-header-title {
    margin-left: 8px;
}

.header-icon {
    color: var(--accent-color);
    font-size: 24px;
}

.test-content {
    flex: 1;
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    overflow-y: auto;
}

/* Grade & Progress Card */
.grade-progress-card {
    background: var(--card-background);
    border-radius: var(--radius-xl);
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    box-shadow: var(--shadow-card);
    margin-bottom: 20px;
}

.grade-info {
    flex: 1;
}

.grade-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.grade-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
}

.progress-section {
    flex: 1;
    max-width: 50%;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.progress-bar-container {
    height: 8px;
    background: #f1f5f9;
    border-radius: var(--radius-full);
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: var(--accent-color);
    transition: width 0.3s ease-out;
    border-radius: var(--radius-full);
    box-shadow: 0 2px 4px rgba(0, 191, 165, 0.3);
}

/* Question Timer */
.question-timer-container {
    width: 100%;
}

.timer-header {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.timer-value {
    color: var(--accent-color);
    font-weight: 600;
}

.timer-value.urgent {
    color: #ef4444;
    animation: pulse 1s infinite;
}

.timer-bar-container {
    height: 8px;
    background: #e5e7eb;
    border-radius: var(--radius-full);
    overflow: hidden;
}

.timer-bar-fill {
    height: 100%;
    background: var(--accent-color);
    transition: width 1s linear;
    border-radius: var(--radius-full);
    box-shadow: 0 2px 4px rgba(0, 191, 165, 0.3);
}

.timer-bar-fill.urgent {
    background: #ef4444;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Question Area */
.question-area {
    flex: 1;
}

.question-type-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.question-type-badge.type-vocab {
    background: #dbeafe;
    color: var(--primary-color);
}

.question-type-badge.type-grammar {
    background: #d1fae5;
    color: #065f46;
}

.question-type-badge.type-logic {
    background: #fed7aa;
    color: #9a3412;
}

.question-type-badge.type-reading {
    background: #e9d5ff;
    color: #6b21a8;
}

.question-passage {
    background: var(--background-color);
    border-radius: var(--radius-lg);
    padding: 16px;
    margin-bottom: 16px;
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-secondary);
    border-left: 4px solid var(--accent-color);
    box-shadow: var(--shadow-sm);
}

.question-text {
    font-family: 'Noto Sans KR', 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', 'EmojiOne Color', 'Android Emoji', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 24px;
    line-height: 1.6;
    color: var(--text-primary);
}

.options-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.option-btn {
    width: 100%;
    padding: 16px;
    border: 2px solid #f3f4f6;
    border-radius: var(--radius-lg);
    background: var(--card-background);
    text-align: left;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 12px;
}

.option-btn:hover {
    border-color: #bfdbfe;
    background: var(--background-color);
}

.option-btn.selected {
    border-color: var(--accent-color);
    background: rgba(0, 191, 165, 0.1);
    color: var(--primary-color);
    box-shadow: 0 4px 10px rgba(0, 191, 165, 0.2);
}

.option-circle {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid #d1d5db;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s;
}

.option-btn.selected .option-circle {
    border-color: var(--accent-color);
    background: var(--accent-color);
    color: white;
}

.option-btn.selected .option-circle::after {
    content: '✓';
    font-size: 14px;
    font-weight: bold;
}

/* Test Actions */
.test-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.btn-pass {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 14px;
    text-decoration: underline;
    cursor: pointer;
    padding: 8px;
    transition: color 0.2s;
}

.btn-pass:hover {
    color: var(--text-primary);
}

/* Result Screen */
.result-content {
    flex: 1;
    padding: 24px 20px;
    overflow-y: auto;
    text-align: center;
}

.result-subtitle {
    color: var(--text-secondary);
    font-size: 14px;
    margin-top: 8px;
}

/* GE Score Display */
.ge-score-display {
    position: relative;
    margin-bottom: 32px;
}

.ge-score-circle {
    width: 192px;
    height: 192px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    color: white;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.ge-score-label {
    font-size: 12px;
    font-weight: 500;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.ge-score-value {
    font-size: 60px;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 4px;
}

.ge-score-desc {
    font-size: 11px;
    opacity: 0.8;
    margin-top: 4px;
}

.us-grade-badge {
    position: absolute;
    bottom: -16px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 700;
    color: var(--primary-color);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
    white-space: nowrap;
}

/* Result Stats */
.result-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    max-width: 400px;
    margin: 0 auto;
}

.stat-card {
    background: var(--card-background);
    padding: 20px;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-color);
    text-align: left;
    box-shadow: var(--shadow-card);
}

.stat-label {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
}

.score-number {
    font-size: 48px;
    font-weight: 700;
    color: var(--accent-color);
}

.score-max {
    font-size: 16px;
    opacity: 0.8;
}

.result-message {
    font-size: 20px;
    font-weight: 600;
    color: var(--primary-color);
}

.result-details {
    background: var(--background-color);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 24px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-label {
    color: var(--text-secondary);
}

.detail-value {
    font-weight: 600;
}

.result-rank-card {
    background: linear-gradient(135deg, var(--accent-color), var(--accent-light));
    border-radius: var(--radius-md);
    padding: 24px;
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 24px;
}

.result-rank-card h3 {
    font-size: 14px;
    margin-bottom: 8px;
    opacity: 0.8;
}

.rank-highlight {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
}

.rank-position {
    font-size: 56px;
    font-weight: 700;
}

.rank-suffix {
    font-size: 24px;
    font-weight: 600;
}

.rank-description {
    margin-top: 8px;
    font-size: 14px;
}

.ranking-preview {
    margin-bottom: 24px;
}

.result-footer {
    display: flex;
    gap: 12px;
    padding: 16px 20px;
    border-top: 1px solid var(--border-color);
}

.result-footer {
    padding: 20px;
    border-top: 1px solid var(--border-color);
    background: var(--card-background);
}

.result-footer .btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Ranking Screen */
.ranking-content {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

.ranking-filter {
    margin-bottom: 16px;
}

.ranking-filter select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 16px;
    font-family: inherit;
}

.my-rank-banner {
    background: var(--accent-color);
    color: var(--primary-color);
    padding: 16px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 600;
}

/* Notice Styles */
.notice-section {
    margin-bottom: 24px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.notice-list {
    background: var(--card-background);
    border-radius: var(--radius-md);
    padding: 16px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.notice-item {
    padding: 12px;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: background-color 0.2s;
}

.notice-item:last-child {
    border-bottom: none;
}

.notice-item:hover {
    background-color: var(--background-color);
}

.notice-title {
    font-weight: 500;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.notice-meta {
    font-size: 12px;
    color: var(--text-secondary);
    display: flex;
    justify-content: space-between;
}

.notice-content-full {
    display: none;
    margin-top: 8px;
    font-size: 14px;
    color: var(--text-secondary);
    padding-top: 8px;
    border-top: 1px dashed var(--border-color);
    line-height: 1.6;
    white-space: pre-wrap;
}

.notice-item.expanded .notice-content-full {
    display: block;
}

.notice-admin-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.admin-notice-item {
    background: var(--card-background);
    padding: 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.admin-notice-content h3 {
    font-size: 16px;
    margin-bottom: 4px;
}

.admin-notice-content p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.admin-notice-date {
    font-size: 12px;
    color: var(--text-light);
}

.admin-notice-actions {
    display: flex;
    gap: 8px;
}

/* Curation Styles */
.curation-section {
    margin-bottom: 24px;
}

.curation-list {
    background: var(--card-background);
    border-radius: var(--radius-md);
    padding: 16px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.curation-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: #f5f5f5;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.curation-card:hover {
    background: #eeeeee;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.curation-type-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: var(--primary-color);
    color: white;
}

.curation-type-icon.video {
    background: var(--primary-color);
}

.curation-type-icon.article {
    background: var(--primary-color);
}

.curation-content {
    flex: 1;
    min-width: 0;
}

.curation-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 4px;
    line-height: 1.4;
}

.curation-description {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.curation-list-full {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.curation-card-skeleton {
    padding: 16px;
    background: #f5f5f5;
    border-radius: var(--radius-md);
    height: 80px;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Admin Curation Styles */
.curation-admin-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.admin-curation-item {
    background: var(--card-background);
    padding: 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.admin-curation-content {
    flex: 1;
}

.admin-curation-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.curation-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: var(--radius-full);
    background: var(--background-color);
    color: var(--text-primary);
    font-weight: 500;
}

.curation-type-badge.video {
    color: var(--primary-color);
}

.curation-type-badge.article {
    color: var(--accent-color);
}

.admin-curation-content h3 {
    font-size: 16px;
    margin: 0;
    color: var(--text-primary);
}

.admin-curation-content p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
    line-height: 1.5;
}

.admin-curation-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 12px;
    color: var(--text-light);
}

.admin-curation-url {
    word-break: break-all;
    color: var(--accent-color);
}

.admin-curation-date {
    color: var(--text-light);
}

.admin-curation-actions {
    display: flex;
    gap: 8px;
    margin-left: 12px;
}

.banner-label {
    font-size: 12px;
    opacity: 0.8;
}

.banner-rank {
    font-size: 24px;
    font-weight: 700;
}

.banner-score {
    margin-left: auto;
    font-weight: 500;
}

.ranking-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ranking-item {
    display: flex;
    align-items: center;
    padding: 16px;
    background: var(--card-background);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.ranking-item.me {
    background: rgba(78, 205, 196, 0.1);
    border-color: var(--accent-color);
}

.ranking-position {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--background-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-right: 12px;
}

.ranking-item:nth-child(1) .ranking-position {
    background: linear-gradient(135deg, #ffd700, #ffed4a);
    color: #92400e;
}

.ranking-item:nth-child(2) .ranking-position {
    background: linear-gradient(135deg, #c0c0c0, #e2e8f0);
    color: #475569;
}

.ranking-item:nth-child(3) .ranking-position {
    background: linear-gradient(135deg, #cd7f32, #d4a574);
    color: #451a03;
}

.ranking-info {
    flex: 1;
}

.ranking-name {
    font-weight: 600;
    margin-bottom: 2px;
}

.ranking-grade {
    font-size: 12px;
    color: var(--text-secondary);
}

.ranking-score {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
}

/* MyPage Screen */
.mypage-content {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

.profile-section {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.profile-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--background-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
}

.profile-info {
    flex: 1;
}

.profile-info h2 {
    font-size: 20px;
    margin-bottom: 4px;
}

.profile-info p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.profile-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.grade-tag {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 500;
}

.member-type-badge {
    display: inline-block;
    background: var(--text-light);
    color: var(--text-primary);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 500;
}

.member-type-badge.premium {
    background: var(--accent-color);
    color: white;
}

.stats-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.stat-item {
    background: var(--background-color);
    border-radius: var(--radius-md);
    padding: 16px;
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 4px;
}

.stat-label {
    font-size: 12px;
    color: var(--text-secondary);
}

.growth-report {
    margin-bottom: 24px;
}

.growth-report h3 {
    font-size: 16px;
    margin-bottom: 16px;
}

.chart-container {
    background: var(--card-background);
    border-radius: var(--radius-md);
    padding: 16px;
    border: 1px solid var(--border-color);
    height: 200px;
}

/* Recent Reading Log Section */
.recent-reading-log-section {
    background: var(--card-background);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 24px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.recent-reading-log-section .section-header {
    margin-bottom: 16px;
}

.recent-reading-log-section .section-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    margin: 0;
}

.recent-reading-log-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
    min-height: 60px;
}

.recent-reading-log-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    color: var(--text-primary);
}

.recent-reading-log-title {
    flex: 1;
    font-size: 14px;
    color: var(--text-primary);
}

.recent-reading-log-date {
    font-size: 14px;
    color: var(--text-secondary);
    white-space: nowrap;
}

.recent-reading-log-actions {
    display: flex;
    gap: 12px;
}

.recent-reading-log-actions .btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.recent-reading-log-actions .btn-write {
    background: var(--success-color);
    color: white;
}

.recent-reading-log-actions .btn-write:hover {
    background: #16a34a;
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.recent-reading-log-actions .btn-view-all {
    background: #e3f2fd;
    color: #1565c0;
}

.recent-reading-log-actions .btn-view-all:hover {
    background: #bbdefb;
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.recent-reading-log-actions .btn svg {
    flex-shrink: 0;
}

.test-history h3 {
    font-size: 16px;
    margin-bottom: 16px;
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 24px;
}

.history-item {
    display: flex;
    align-items: center;
    padding: 16px;
    background: var(--card-background);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.history-date {
    flex: 1;
}

.history-date .date {
    font-weight: 500;
    margin-bottom: 2px;
}

.history-date .type {
    font-size: 12px;
    color: var(--text-secondary);
}

.history-score {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
}

.logout-btn {
    margin-top: 16px;
}

/* Reading Log */
.reading-log-content {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

.add-book-form {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.add-book-form input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 16px;
}

.book-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.book-item {
    display: flex;
    align-items: center;
    padding: 16px;
    background: var(--card-background);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.book-info {
    flex: 1;
}

.book-title {
    font-weight: 500;
    margin-bottom: 4px;
}

.book-date {
    font-size: 12px;
    color: var(--text-secondary);
}

.book-actions {
    display: flex;
    gap: 4px;
    align-items: center;
}

.btn-edit {
    background: none;
    border: none;
    color: var(--accent-color);
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-edit:hover {
    opacity: 0.7;
}

.btn-delete {
    background: none;
    border: none;
    color: var(--error-color);
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-delete:hover {
    opacity: 0.7;
}

.book-edit-form {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    margin-right: 8px;
}

.book-edit-input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid var(--accent-color);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    outline: none;
}

.book-edit-input:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(78, 205, 196, 0.1);
}

.book-edit-actions {
    display: flex;
    gap: 4px;
}

.btn-save {
    background: var(--accent-color);
    border: none;
    color: white;
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-save:hover {
    background: var(--accent-light);
}

.btn-cancel {
    background: var(--text-light);
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-cancel:hover {
    background: var(--border-color);
}

/* Settings */
.settings-content {
    flex: 1;
    padding: 20px;
}

.settings-group {
    margin-bottom: 24px;
}

.settings-group h3 {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.setting-item {
    margin-bottom: 16px;
}

.setting-item label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
}

.setting-item input,
.setting-item select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 16px;
    font-family: inherit;
}

/* Admin Screens */
.admin-content {
    flex: 1;
    padding: 20px;
}

.admin-menu {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.admin-card {
    background: var(--card-background);
    border-radius: var(--radius-md);
    padding: 24px;
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.2s;
}

.admin-card:hover {
    border-color: var(--accent-color);
    box-shadow: var(--shadow-md);
}

.admin-card h3 {
    font-size: 18px;
    margin-bottom: 4px;
}

.admin-card p {
    color: var(--text-secondary);
    font-size: 14px;
}

.admin-questions-content,
.admin-users-content {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

.question-filter,
.user-search {
    margin-bottom: 16px;
}

.question-filter select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 16px;
}

.user-search {
    display: flex;
    gap: 12px;
}

.user-search input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 16px;
}

.question-list,
.user-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.question-item,
.user-item {
    padding: 16px;
    background: var(--card-background);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    cursor: pointer;
}

.question-item:hover,
.user-item:hover {
    border-color: var(--accent-color);
}

.question-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.question-type-tag {
    font-size: 12px;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    background: var(--background-color);
}

.question-type-tag.vocab {
    color: var(--accent-color);
}

.question-type-tag.grammar {
    color: var(--warning-color);
}

.question-type-tag.reading {
    color: var(--success-color);
}

.question-type-tag.logic {
    color: #9a3412;
    background: #fed7aa;
}

.question-grade-tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    background: #dbeafe;
    color: #1e40af;
    margin-left: 8px;
}

.question-preview {
    font-size: 14px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-item {
    display: flex;
    flex-direction: column;
    position: relative;
    transition: all 0.3s ease;
}

.user-item-info {
    flex: 1;
}

.user-item-email {
    font-weight: 500;
    margin-bottom: 2px;
}

.user-item-details {
    font-size: 12px;
    color: var(--text-secondary);
}

.user-item-header {
    display: flex;
    align-items: center;
    width: 100%;
}

.user-item-expandable {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0;
}

.user-item-expandable.expanded {
    max-height: 2000px;
    padding: 16px 0 0 0;
}

.user-item-expand-icon {
    margin-left: auto;
    transition: transform 0.3s ease;
    color: var(--text-secondary);
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.user-item.expanded .user-item-expand-icon {
    transform: rotate(180deg);
}

.user-expanded-content {
    border-top: 1px solid var(--border-color);
    margin-top: 12px;
    padding-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.user-memo-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.user-memo-section label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.user-memo-textarea {
    width: 100%;
    min-height: 80px;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
}

.user-memo-save-btn {
    align-self: flex-end;
    padding: 6px 16px;
    font-size: 14px;
}

.user-meeting-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.user-meeting-section label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.user-next-meeting {
    padding: 12px;
    background: var(--background-color);
    border-radius: var(--radius-sm);
    font-size: 14px;
    color: var(--text-secondary);
}

.user-action-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.user-action-buttons .btn {
    flex: 1;
    min-width: 120px;
    font-size: 14px;
    padding: 10px 16px;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 100;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--card-background);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h2 {
    font-size: 18px;
}

.btn-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-secondary);
}

.question-form {
    padding: 20px;
}

.question-form .form-group {
    margin-bottom: 16px;
}

.question-form input[type="text"] {
    margin-bottom: 8px;
}

.modal-footer {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.modal-footer .btn {
    flex: 1;
}

/* Toast */
.toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--text-primary);
    color: white;
    padding: 12px 24px;
    border-radius: var(--radius-full);
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 200;
}

.toast.show {
    opacity: 1;
}

.toast.error {
    background: var(--error-color);
}

.toast.success {
    background: var(--success-color);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 48px 24px;
    color: var(--text-secondary);
}

.empty-state svg {
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state p {
    font-size: 14px;
}

/* Utility Classes */
.hidden {
    display: none !important;
}

/* Daily English Video Section */
.daily-video-section {
    background: var(--card-background);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 24px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.space-buttons-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.space-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 12px;
    min-height: 100px;
}

.space-button svg {
    flex-shrink: 0;
}

.space-button span {
    font-size: 13px;
    font-weight: 500;
    text-align: center;
    word-break: keep-all;
}

@media (max-width: 480px) {
    .space-buttons-grid {
        grid-template-columns: 1fr;
    }
    
    .space-button {
        min-height: 60px;
        flex-direction: row;
        justify-content: flex-start;
    }
}

.daily-video-section .section-header {
    margin-bottom: 16px;
}

.daily-video-section .section-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    margin: 0;
}

/* Daily Videos Content */
.daily-videos-content {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

.video-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.daily-video-item {
    background: var(--card-background);
    border-radius: var(--radius-md);
    padding: 20px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.2s;
}

.daily-video-item:hover {
    box-shadow: var(--shadow-md);
}

.video-item-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.video-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.video-step-badge {
    background: var(--accent-color);
    color: white;
    padding: 6px 12px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
}

.video-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-secondary);
}

.video-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--accent-color);
}

.video-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.video-url {
    color: var(--accent-color);
    text-decoration: none;
    font-size: 14px;
    display: flex;
    align-items: center;
    word-break: break-all;
    transition: color 0.2s;
}

.video-url:hover {
    color: var(--accent-light);
    text-decoration: underline;
}

/* Admin Video Styles */
.admin-video-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.admin-video-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    background: var(--card-background);
    border-radius: var(--radius-md);
    padding: 20px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    gap: 16px;
}

.admin-video-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.admin-video-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.video-watched-badge {
    font-size: 12px;
    font-weight: 600;
}

.video-url-text {
    color: var(--text-secondary);
    font-size: 14px;
    word-break: break-all;
    margin: 0;
}

.admin-video-meta {
    font-size: 12px;
    color: var(--text-light);
}

.admin-video-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

/* Growth Report Content */
.growth-report-content {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    padding-top: 70px;
    padding-bottom: 80px;
}

.growth-report-content .chart-container {
    height: 400px;
}

/* MyPage Action Buttons */
.mypage-action-buttons {
    width: 100%;
}

.action-buttons-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.action-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 20px 16px;
    min-height: 100px;
}

.action-button svg {
    flex-shrink: 0;
}

.action-button span {
    font-size: 14px;
    font-weight: 600;
    text-align: center;
}

@media (max-width: 480px) {
    .action-buttons-grid {
        grid-template-columns: 1fr;
    }
    
    .action-button {
        min-height: 70px;
        flex-direction: row;
        justify-content: flex-start;
    }
}

/* Limited Member Screen */
.limited-member-content {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    padding-top: 70px;
    padding-bottom: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.limited-member-card {
    background: var(--card-background);
    border-radius: var(--radius-lg);
    padding: 40px 24px;
    max-width: 500px;
    width: 100%;
    text-align: center;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
}

.limited-member-icon {
    color: #4ecdc4;
    margin-bottom: 24px;
    display: flex;
    justify-content: center;
}

.limited-member-card h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.limited-member-card > p {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.6;
}

.limited-features {
    text-align: left;
    background: var(--background-secondary);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-top: 24px;
}

.limited-features h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.limited-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.limited-features li {
    padding: 8px 0;
    padding-left: 24px;
    position: relative;
    color: var(--text-secondary);
    font-size: 14px;
}

.limited-features li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #4ecdc4;
    font-weight: bold;
}

/* Meeting Schedule Card */
.meeting-schedule-card {
    background: var(--card-background);
    border-radius: var(--radius-md);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.meeting-schedule-header {
    margin-bottom: 16px;
}

.meeting-schedule-header h3 {
    font-size: 18px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
}

.meeting-schedule-content {
    margin-top: 12px;
}

.meeting-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.meeting-date-time,
.meeting-duration,
.meeting-teacher {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: var(--text-primary);
}

.meeting-date-time {
    font-weight: 600;
    font-size: 16px;
}

.meeting-duration {
    color: var(--text-secondary);
}

.meeting-teacher {
    color: var(--text-secondary);
}

/* Meeting List */
.meeting-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.meeting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: var(--background-color);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
}

.meeting-item-info {
    flex: 1;
}

.meeting-item-date {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.meeting-item-details {
    font-size: 12px;
    color: var(--text-secondary);
}

.meeting-item-actions {
    display: flex;
    gap: 8px;
}

/* Admin Meetings Screen */
.admin-meetings-content {
    flex: 1;
    padding: 20px;
}

.meeting-user-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
}

/* Admin Test Results */
.admin-test-results-content {
    flex: 1;
    padding: 20px;
}

.admin-test-results-table-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow-x: auto;
}

.admin-test-results-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-test-results-table thead {
    background: #f8f9fa;
}

.admin-test-results-table th {
    padding: 16px;
    text-align: left;
    font-weight: 600;
    color: #333;
    font-size: 14px;
    border-bottom: 2px solid #e0e0e0;
}

.admin-test-results-table th:last-child {
    text-align: center;
}

.test-result-row {
    border-bottom: 1px solid #e0e0e0;
    cursor: pointer;
    transition: background-color 0.2s;
}

.test-result-row:hover {
    background-color: #f8f9fa;
}

.test-result-row td {
    padding: 16px;
    font-size: 14px;
}

.test-result-details-row {
    background: #f8f9fa;
}

.test-result-details {
    padding: 24px;
}

.area-stats-panel {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.area-stats-panel h3 {
    margin: 0 0 20px 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ge-score-panel {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.details-icon {
    color: #999;
    transform: rotate(0deg);
    transition: transform 0.3s;
}

.test-result-row:hover .details-icon {
    color: #666;
}

/* Test Results Filters */
.test-results-filters {
    margin-bottom: 20px;
    background: white;
    padding: 16px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.search-filter-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.search-filter-row input[type="text"] {
    flex: 1;
    min-width: 200px;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    font-family: 'Noto Sans KR', sans-serif;
    transition: border-color 0.2s;
}

.search-filter-row input[type="text"]:focus {
    outline: none;
    border-color: var(--accent-color);
}

.search-filter-row select {
    flex: 0 0 150px;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    background: white;
    cursor: pointer;
    font-family: 'Noto Sans KR', sans-serif;
    transition: border-color 0.2s;
}

.search-filter-row select:focus {
    outline: none;
    border-color: var(--accent-color);
}

.search-filter-row select:last-of-type {
    flex: 0 0 180px;
}

/* Responsive */
@media (max-width: 600px) {
    .search-filter-row {
        flex-direction: column;
    }

    .search-filter-row input[type="text"],
    .search-filter-row select {
        width: 100%;
        flex: 1 1 100%;
    }
}

/* Stats Section */
.stats-section {
    margin-top: 30px;
}

.stats-section h3 {
    margin-bottom: 16px;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.stats-table-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    overflow: hidden;
}

.stats-table-container table {
    width: 100%;
    border-collapse: collapse;
}

.stats-table-container thead {
    background: #f8f9fa;
}

.stats-table-container th {
    padding: 12px;
    text-align: left;
    font-weight: 600;
    color: #333;
    font-size: 14px;
    border-bottom: 2px solid #e0e0e0;
}

.stats-table-container th:last-child {
    text-align: right;
}

.stats-table-container tbody tr {
    border-bottom: 1px solid #e0e0e0;
}

.stats-table-container tbody tr:last-child {
    border-bottom: none;
}

.stats-table-container tbody td {
    padding: 12px;
    font-size: 14px;
    color: #333;
}

.stats-table-container tbody td:last-child {
    text-align: right;
    font-weight: 600;
}

@media (min-width: 768px) {
    .app-container {
        box-shadow: var(--shadow-lg);
    }
}