/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #d32f2f;
    --primary-dark: #b71c1c;
    --primary-light: #ef5350;
    --secondary-color: #1976d2;
    --success-color: #388e3c;
    --danger-color: #d32f2f;
    --warning-color: #f57c00;
    --bg-color: #f5f5f5;
    --card-bg: #ffffff;
    --text-primary: #212121;
    --text-secondary: #757575;
    --border-color: #e0e0e0;
    --shadow: 0 2px 8px rgba(0,0,0,0.1);
    --shadow-hover: 0 4px 16px rgba(0,0,0,0.15);
    
    /* HSK Level Colors */
    --hsk1-color: #4caf50;
    --hsk2-color: #2196f3;
    --hsk3-color: #ff9800;
    --hsk4-color: #f44336;
}

body {
    font-family: 'Inter', 'Noto Sans SC', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* Navigation */
.navbar {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 1rem 0;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand h1 {
    font-family: 'Noto Sans SC', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.nav-brand span {
    font-size: 0.9rem;
    opacity: 0.9;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.nav-menu a:hover,
.nav-menu a.active {
    background-color: rgba(255,255,255,0.2);
}

/* User Menu */
.user-menu {
    position: relative;
}

.user-menu-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.user-menu-arrow {
    font-size: 0.7rem;
    transition: transform 0.3s;
}

.user-menu:hover .user-menu-arrow {
    transform: rotate(180deg);
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s;
    margin-top: 0.5rem;
    list-style: none;
    padding: 0.5rem 0;
    z-index: 1000;
}

.user-menu:hover .user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown li {
    margin: 0;
}

.user-dropdown a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--text-primary);
    text-decoration: none;
    transition: background-color 0.3s;
}

.user-dropdown a:hover {
    background-color: #f5f5f5;
    color: var(--primary-color);
}

.btn-register {
    background-color: rgba(255,255,255,0.2);
    border: 2px solid rgba(255,255,255,0.3);
}

.btn-register:hover {
    background-color: rgba(255,255,255,0.3);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4rem 0;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
}

/* HSK Level Cards */
.hsk-levels {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.hsk-level-card {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    text-decoration: none;
    color: white;
    transition: all 0.3s;
    border: 2px solid rgba(255,255,255,0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.hsk-level-card:hover {
    transform: translateY(-5px);
    background: rgba(255,255,255,0.25);
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.hsk-level-card.level-1 { border-color: var(--hsk1-color); }
.hsk-level-card.level-2 { border-color: var(--hsk2-color); }
.hsk-level-card.level-3 { border-color: var(--hsk3-color); }
.hsk-level-card.level-4 { border-color: var(--hsk4-color); }

.level-number {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 700;
    background: rgba(255,255,255,0.2);
    border: 3px solid rgba(255,255,255,0.3);
}

.level-1 .level-number { background: var(--hsk1-color); }
.level-2 .level-number { background: var(--hsk2-color); }
.level-3 .level-number { background: var(--hsk3-color); }
.level-4 .level-number { background: var(--hsk4-color); }

.level-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.level-info p {
    opacity: 0.9;
    font-size: 0.9rem;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    font-family: 'Noto Sans SC', sans-serif;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 3rem;
    opacity: 0.95;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.stat-card {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s;
    border: 1px solid rgba(255,255,255,0.2);
}

.stat-card:hover {
    transform: translateY(-5px);
    background: rgba(255,255,255,0.25);
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Features Section */
.features {
    padding: 3rem 0;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-primary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    text-align: center;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(211, 47, 47, 0.1), transparent);
    transition: left 0.5s;
}

.feature-card:hover::before {
    left: 100%;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    border-color: var(--primary-color);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.feature-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.btn-secondary {
    background-color: var(--text-secondary);
    color: white;
}

.btn-secondary:hover {
    background-color: #616161;
}

.btn-success {
    background-color: var(--success-color);
    color: white;
}

.btn-success:hover {
    background-color: #2e7d32;
}

.btn-danger {
    background-color: var(--danger-color);
    color: white;
}

.btn-danger:hover {
    background-color: var(--primary-dark);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* Vocabulary Section */
.vocabulary-section {
    padding: 2rem 0;
    flex: 1;
}

.page-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--text-primary);
}

.filter-section {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.search-box {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.search-box input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.level-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.level-btn {
    padding: 0.5rem 1rem;
    border: 2px solid var(--border-color);
    background: white;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
}

.level-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.level-btn.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.results-info {
    color: var(--text-secondary);
    font-weight: 500;
}

.vocabulary-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.vocab-card {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    border: 1px solid var(--border-color);
    position: relative;
}

.vocab-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary-color);
    transform: scaleY(0);
    transition: transform 0.3s;
}

.vocab-card:hover::after {
    transform: scaleY(1);
}

.vocab-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-light);
}

.vocab-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 1rem;
}

.chinese-char {
    font-family: 'Noto Sans SC', sans-serif;
    font-size: 2rem;
    font-weight: 500;
    color: var(--text-primary);
}

.vocab-level {
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

.pinyin {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.meanings {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.pos {
    display: inline-block;
    background: var(--bg-color);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-right: 0.5rem;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.pagination button {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    background: white;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.pagination button:hover:not(:disabled) {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination button.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Flashcard Section */
.flashcard-section {
    padding: 2rem 0;
    flex: 1;
}

.flashcard-controls {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
    display: flex;
    gap: 1.5rem;
    align-items: end;
    flex-wrap: wrap;
}

.flashcard-controls select {
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
}

.flashcard-controls label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.flashcard-container {
    max-width: 600px;
    margin: 0 auto;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.progress-fill {
    height: 100%;
    background: var(--primary-color);
    transition: width 0.3s;
    width: 0%;
}

.progress-text {
    text-align: center;
    margin-bottom: 2rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.flashcard {
    width: 100%;
    height: 400px;
    perspective: 1000px;
    margin-bottom: 2rem;
}

.flashcard-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.flashcard.flipped .flashcard-inner {
    transform: rotateY(180deg);
}

.flashcard-front,
.flashcard-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 12px;
    box-shadow: var(--shadow-hover);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.flashcard-front {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
}

.flashcard-back {
    background: white;
    color: var(--text-primary);
    transform: rotateY(180deg);
}

.card-content {
    text-align: center;
}

.chinese-char {
    font-family: 'Noto Sans SC', sans-serif;
    font-size: 4rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.pinyin-text {
    font-size: 1.5rem;
    opacity: 0.9;
}

.meaning-text {
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-top: 1rem;
}

.pos-text {
    margin-top: 1rem;
    color: var(--text-secondary);
}

.flashcard-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.flashcard-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    background: var(--card-bg);
    padding: 1rem;
    border-radius: 8px;
}

.stat-item {
    text-align: center;
}

.stat-label {
    display: block;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* Quiz Section */
.quiz-section {
    padding: 2rem 0;
    flex: 1;
}

.quiz-setup {
    max-width: 600px;
    margin: 0 auto;
}

.setup-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.setup-card h2 {
    margin-bottom: 2rem;
    text-align: center;
    color: var(--text-primary);
}

.setup-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 500;
    color: var(--text-secondary);
}

.form-group select {
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
}

.quiz-container {
    max-width: 800px;
    margin: 0 auto;
}

.quiz-header {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.quiz-progress {
    flex: 1;
}

.quiz-score {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.quiz-question {
    background: var(--card-bg);
    padding: 3rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
    text-align: center;
}

.question-text {
    font-size: 2rem;
    font-family: 'Noto Sans SC', sans-serif;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.question-pinyin {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.quiz-options {
    display: grid;
    gap: 1rem;
    margin-bottom: 2rem;
}

.option-btn {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    padding: 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1.1rem;
    text-align: left;
}

.option-btn:hover {
    border-color: var(--primary-color);
    background: #fff5f5;
}

.option-btn.correct {
    background: #e8f5e9;
    border-color: var(--success-color);
    color: var(--success-color);
}

.option-btn.incorrect {
    background: #ffebee;
    border-color: var(--danger-color);
    color: var(--danger-color);
}

.option-btn:disabled {
    cursor: not-allowed;
}

.quiz-feedback {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    text-align: center;
}

.quiz-feedback.correct {
    background: #e8f5e9;
    color: var(--success-color);
}

.quiz-feedback.incorrect {
    background: #ffebee;
    color: var(--danger-color);
}

.quiz-actions {
    text-align: center;
}

.quiz-result {
    max-width: 600px;
    margin: 0 auto;
}

.result-card {
    background: var(--card-bg);
    padding: 3rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    text-align: center;
}

.result-card h2 {
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.result-score {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.score-circle {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
    font-weight: 700;
}

.score-details {
    display: flex;
    gap: 2rem;
    justify-content: center;
}

.score-details p {
    font-size: 1.1rem;
    font-weight: 500;
}

.result-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Recent Words */
.recent-words {
    padding: 3rem 0;
    background: var(--bg-color);
}

.words-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

/* Footer */
.footer {
    background: var(--text-primary);
    color: white;
    padding: 2rem 0;
    text-align: center;
    margin-top: auto;
}

/* User Stats Section */
.user-stats {
    padding: 3rem 0;
    background: var(--bg-color);
}

.progress-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.progress-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.progress-card h3 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.progress-bar-container {
    margin-bottom: 1rem;
}

.progress-bar {
    width: 100%;
    height: 20px;
    background: var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    transition: width 0.3s;
}

.progress-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

/* Exercises Section */
.exercises-section {
    padding: 2rem 0;
    flex: 1;
}

.exercise-container {
    max-width: 900px;
    margin: 0 auto;
}

.exercise-header {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.exercise-header h2 {
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.exercise-types {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.exercise-type-btn {
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--border-color);
    background: white;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
}

.exercise-type-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.exercise-type-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.exercise-content {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
    min-height: 300px;
}

.exercise-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.exercise-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

/* Level Selector */
.level-selector {
    text-align: center;
    padding: 2rem 0;
}

.level-selector h2 {
    margin-bottom: 2rem;
    color: var(--text-primary);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .user-menu {
        width: 100%;
    }
    
    .user-dropdown {
        right: auto;
        left: 0;
        width: 100%;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hsk-levels {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .vocabulary-list {
        grid-template-columns: 1fr;
    }
    
    .flashcard-actions {
        flex-direction: column;
    }
    
    .quiz-header {
        flex-direction: column;
        gap: 1rem;
    }
    
    .chinese-char {
        font-size: 3rem;
    }
    
    .search-box {
        flex-direction: column;
    }
    
    .progress-grid {
        grid-template-columns: 1fr;
    }
    
    .exercise-types {
        flex-direction: column;
    }
    
    .exercise-type-btn {
        width: 100%;
    }
}

/* Loading Animation */
.loading {
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
}

.spinner {
    border: 4px solid var(--border-color);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

