/* CSS Variables */
:root {
    --primary-color: #1e3a5f;
    --primary-light: #2d5a8a;
    --accent-color: #4ecdc4;
    --accent-light: #7ee8e1;
    --background-color: #f8fafc;
    --card-background: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-light: #94a3b8;
    --border-color: #e2e8f0;
    --error-color: #ef4444;
    --success-color: #22c55e;
    --warning-color: #f59e0b;
    --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);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --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;
}

/* 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: var(--primary-color);
}

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

.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);
}

/* Main Header (Dashboard) */
.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;
}

/* 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);
}

/* Test Screen */
.test-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: var(--primary-color);
    color: white;
}

.test-progress {
    font-size: 16px;
    font-weight: 600;
}

.test-timer {
    background: rgba(255, 255, 255, 0.2);
    padding: 6px 12px;
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 500;
}

.progress-bar {
    height: 4px;
    background: var(--border-color);
}

.progress-fill {
    height: 100%;
    background: var(--accent-color);
    transition: width 0.3s;
    width: 0%;
}

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

.question-type-badge {
    align-self: flex-start;
    background: var(--primary-light);
    color: white;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 16px;
}

.question-passage {
    background: var(--background-color);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 16px;
    font-size: 14px;
    line-height: 1.8;
    border-left: 4px solid var(--accent-color);
    display: none;
}

.question-passage.show {
    display: block;
}

.question-text {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 24px;
    line-height: 1.6;
}

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

.option-btn {
    padding: 16px 20px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--card-background);
    text-align: left;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s;
}

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

.option-btn.selected {
    border-color: var(--accent-color);
    background: rgba(78, 205, 196, 0.1);
}

.option-btn.correct {
    border-color: var(--success-color);
    background: rgba(34, 197, 94, 0.1);
}

.option-btn.wrong {
    border-color: var(--error-color);
    background: rgba(239, 68, 68, 0.1);
}

.test-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--border-color);
}

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

.result-score-card {
    text-align: center;
    margin-bottom: 24px;
}

.score-circle {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    color: white;
}

.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 .btn {
    flex: 1;
}

/* 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;
}


.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;
}

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

.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;
}

.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);
}

.btn-delete {
    background: none;
    border: none;
    color: var(--error-color);
    cursor: pointer;
    padding: 8px;
}

/* 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-preview {
    font-size: 14px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-item {
    display: flex;
    align-items: center;
}

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

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

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

/* 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;
}

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