/* Tesla-benzeri Modern Tema Sistemi */
:root {
    /* Light Theme Colors */
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-tertiary: #f1f3f4;
    --text-primary: #171a20;
    --text-secondary: #5c5e62;
    --text-tertiary: #8a8d91;
    --accent-primary: #3e6ae1;
    --accent-secondary: #f90101;
    --border-color: #e4e4e7;
    --shadow-light: rgba(0, 0, 0, 0.04);
    --shadow-medium: rgba(0, 0, 0, 0.08);
    --shadow-strong: rgba(0, 0, 0, 0.12);
    
    /* Border Radius Variables */
    --border-radius: 8px;
    --border-radius-large: 16px;
    --border-radius-oval: 25px;
    --border-radius-round: 50px;
    
    /* Success, Warning, Error Colors */
    --success-color: #04b554;
    --warning-color: #ff9800;
    --error-color: #f44336;
    --info-color: #2196f3;
}

[data-theme="dark"] {
    /* Dark Theme Colors */
    --bg-primary: #000000;
    --bg-secondary: #111111;
    --bg-tertiary: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #d6d6d6;
    --text-tertiary: #999999;
    --accent-primary: #4285f4;
    --accent-secondary: #ff4444;
    --border-color: #333333;
    --shadow-light: rgba(255, 255, 255, 0.04);
    --shadow-medium: rgba(255, 255, 255, 0.08);
    --shadow-strong: rgba(255, 255, 255, 0.12);
    
    /* Success, Warning, Error Colors for Dark */
    --success-color: #00c851;
    --warning-color: #ffbb33;
    --error-color: #ff4444;
    --info-color: #33b5e5;
}

/* Base Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body Styling */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.5;
    font-size: 14px;
    font-weight: 400;
    transition: background-color 0.3s ease, color 0.3s ease;
    overflow-x: hidden;
    min-height: 100vh;
    width: 100%;
    margin: 0;
    padding: 0;
}

/* HTML element için de tam genişlik sağla */
html {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
}

/* Container */
.container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    min-height: 100vh;
}

/* Header Styling */
header {
    background: var(--bg-primary);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    color: var(--text-primary);
    padding: 1rem 0;
    
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.title-area {
    display: flex;
    align-items: center;
}

.title-area h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-left: 0.5rem;
    letter-spacing: -0.02em;
}

/* Navigation */
nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    padding: 0.75rem 1rem;
    background: var(--bg-tertiary);
    border-radius: 50px;
    box-shadow: 0 2px 12px var(--shadow-light);
    max-width: 100%;
    gap: 0.5rem;
}

nav ul li {
    display: flex;
    align-items: center;
}

nav ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    white-space: nowrap;
}

nav ul li a:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

nav ul li a.active {
    background: var(--accent-primary);
    color: white;
    box-shadow: 0 4px 12px rgba(62, 106, 225, 0.3);
}

/* Theme Toggle Button */
.theme-toggle {
    position: relative;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.theme-toggle:hover {
    background: var(--bg-secondary);
    box-shadow: 0 4px 12px var(--shadow-medium);
}

/* Language Selector */
.language-selector-top select {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: 25px;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.7rem center;
    background-size: 0.7rem;
    padding-right: 2rem;
}

.language-selector-top select:hover,
.language-selector-top select:focus {
    background-color: var(--bg-secondary);
    border-color: var(--accent-primary);
    outline: none;
}

/* Main Content */
main {
    padding: 2rem 0;
    min-height: calc(100vh - 200px);
    width: 100%;
}

/* Sayfa Spesifik Border Radius Kuralları */
/* Ana sayfa ve Typing sayfası için oval köşeler */
body[data-page="index"] .card,
body[data-page="index"] .content-card,
body[data-page="index"] .upload-container,
body[data-page="index"] .typing-container,
body[data-page="typing"] .card,
body[data-page="typing"] .content-card,
body[data-page="typing"] .upload-container,
body[data-page="typing"] .typing-container,
body[data-page="typing"] .finger-position-table {
    border-radius: var(--border-radius-oval) !important;
}

/* Diğer tüm sayfalar için kare köşeler */
body:not([data-page="index"]):not([data-page="typing"]) .card,
body:not([data-page="index"]):not([data-page="typing"]) .content-card,
body:not([data-page="index"]):not([data-page="typing"]) .upload-container,
body:not([data-page="index"]):not([data-page="typing"]) .typing-container,
body:not([data-page="index"]):not([data-page="typing"]) .finger-position-table {
    border-radius: var(--border-radius) !important;
}

.main-section {
    background: var(--bg-secondary);
    border-radius: 16px;
    padding: 2rem;
    margin: 1.5rem 0;
    box-shadow: 0 4px 16px var(--shadow-light);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.main-section:hover {
    box-shadow: 0 6px 20px var(--shadow-medium);
}

.section-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    text-align: center;
    letter-spacing: -0.02em;
}

.section-content {
    text-align: center;
}

.section-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.section-content p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.feature-card {
    background: var(--bg-primary);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    box-shadow: 0 8px 24px var(--shadow-medium);
    border-color: var(--accent-primary);
}

.feature-card .icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
    color: var(--accent-primary);
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.feature-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.5;
    font-size: 0.95rem;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.stat-item {
    background: var(--bg-primary);
    padding: 2rem 1.5rem;
    border-radius: 12px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    min-height: 160px;
}

.stat-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent, var(--accent-primary)08);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-item:hover::after {
    opacity: 1;
}

.stat-item:hover {
    box-shadow: 0 8px 25px var(--shadow-medium);
    border-color: var(--accent-primary);
    transform: translateY(-3px);
}

.stat-item .icon {
    font-size: 3rem;
    display: block;
    color: var(--accent-primary);
    order: 1;
    margin: 0;
}

.stat-number {
    display: block;
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    line-height: 1;
    order: 2;
    margin: 0;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    order: 3;
    margin: 0;
}

/* Renk Koordinasyonu - Her istatistik türü için farklı renkler */
.stat-item:nth-child(1) .icon { color: #ff6b6b; } /* Hız - Kırmızı */
.stat-item:nth-child(2) .icon { color: #4ecdc4; } /* Doğruluk - Turkuaz */
.stat-item:nth-child(3) .icon { color: #45b7d1; } /* Okuma - Mavi */
.stat-item:nth-child(4) .icon { color: #ffa500; } /* Seviye/Zaman - Turuncu */

/* Typing Stats - Aynı 3 Basamaklı Düzen */
.typing-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
    padding: 1.5rem;
    background: var(--bg-tertiary);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.typing-stats .stat-item {
    background: var(--bg-primary);
    padding: 1.5rem 1rem;
    min-height: 140px;
    gap: 0.75rem;
    border-radius: var(--border-radius);
}

.typing-stats .stat-item .icon {
    font-size: 2.5rem;
    order: 1;
}

.typing-stats .stat-item span:not(.icon):not(.stat-label) {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    order: 2;
    line-height: 1;
}

.typing-stats .stat-item .stat-label {
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    order: 3;
    margin: 0;
}

/* Typing stats renk koordinasyonu */
.typing-stats .stat-item:nth-child(1) .icon { color: #ffa500; } /* Timer - Turuncu */
.typing-stats .stat-item:nth-child(2) .icon { color: #ff6b6b; } /* WPM - Kırmızı */
.typing-stats .stat-item:nth-child(3) .icon { color: #4ecdc4; } /* Accuracy - Turkuaz */
.typing-stats .stat-item:nth-child(4) .icon { color: #e74c3c; } /* Errors - Kırmızı */

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1.2rem;
    border: none;
    border-radius: 25px;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    text-transform: none;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn-success {
    background: var(--success-color);
    color: white;
    box-shadow: 0 2px 8px rgba(4, 181, 84, 0.25);
}

.btn-success:hover {
    box-shadow: 0 4px 12px rgba(4, 181, 84, 0.35);
    background: #039649;
}

.btn-info {
    background: var(--info-color);
    color: white;
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.25);
}

.btn-info:hover {
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.35);
    background: #1976d2;
}

.btn-warning {
    background: var(--warning-color);
    color: white;
    box-shadow: 0 2px 8px rgba(255, 152, 0, 0.25);
}

.btn-warning:hover {
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.35);
    background: #e68900;
}

.btn-primary {
    background: var(--accent-primary);
    color: white;
    box-shadow: 0 2px 8px rgba(62, 106, 225, 0.25);
}

.btn-primary:hover {
    box-shadow: 0 4px 12px rgba(62, 106, 225, 0.35);
    background: #2f57d4;
}

/* Footer */
footer {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.95rem;
}

/* Icons */
.icon {
    display: inline-block;
    margin-right: 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        font-size: 13px;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .top-bar {
        flex-direction: column;
        gap: 1rem;
    }
    
    nav ul {
        flex-direction: column;
        gap: 0.5rem;
        padding: 1rem;
        border-radius: 16px;
    }
    
    nav ul li a {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .stat-item {
        padding: 1.5rem 1rem;
        min-height: 140px;
        gap: 0.75rem;
    }
    
    .stat-item .icon {
        font-size: 2.5rem;
    }
    
    .stat-number {
        font-size: 2.2rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
    
    .typing-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
        padding: 1rem;
    }
    
    .typing-stats .stat-item {
        padding: 1.25rem 0.75rem;
        min-height: 120px;
    }
    
    .typing-stats .stat-item .icon {
        font-size: 2rem;
    }
    
    .typing-stats .stat-item span:not(.icon):not(.stat-label) {
        font-size: 1.6rem;
    }
    
    .main-section {
        padding: 1.5rem;
        margin: 1rem 0;
    }
    
    .title-area h1 {
        font-size: 1.4rem;
    }
    
    .section-header h2 {
        font-size: 1.2rem;
    }
    
    .section-content h3 {
        font-size: 1rem;
    }
    
    .btn {
        padding: 0.4rem 1rem;
        font-size: 0.75rem;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
    
    .stat-item {
        padding: 1.25rem;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .stat-item {
        padding: 1.5rem 1rem;
        min-height: 130px;
    }
    
    .stat-item .icon {
        font-size: 2.5rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-label {
        font-size: 0.75rem;
    }
    
    .typing-stats {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .typing-stats .stat-item {
        padding: 1.25rem;
        min-height: 110px;
    }
    
    .typing-stats .stat-item .icon {
        font-size: 2rem;
    }
    
    .typing-stats .stat-item span:not(.icon):not(.stat-label) {
        font-size: 1.5rem;
    }
    
    .feature-card {
        padding: 1.25rem;
    }
    
    .btn {
        padding: 0.4rem 1rem;
        font-size: 0.75rem;
    }
    
    .reading-text {
        font-size: 0.85rem;
        line-height: 1.5;
    }
    
    .title-area h1 {
        font-size: 1.5rem;
    }
    
    .section-header h2 {
        font-size: 1.4rem;
    }
    
    .stat-item .icon {
        font-size: 1.75rem;
    }
    
    .feature-card .icon {
        font-size: 2rem;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Typing Settings Styles */
.typing-settings {
    background: var(--bg-secondary);
    border-radius: var(--border-radius-large);
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    align-items: end;
}

.setting-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.setting-group label {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.typing-settings select {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    background-repeat: no-repeat;
    background-position: right 0.7rem center;
    background-size: 0.7rem;
    padding-right: 2.5rem;
    min-width: 200px;
}

[data-theme="light"] .typing-settings select {
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
}

[data-theme="dark"] .typing-settings select {
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' stroke='%23ccc' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
}

.typing-settings select:hover {
    background-color: var(--bg-primary);
    border-color: var(--accent-primary);
}

.typing-settings select:focus {
    background-color: var(--bg-primary);
    border-color: var(--accent-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(62, 106, 225, 0.1);
}

.keyboard-selector select {
    background: var(--bg-tertiary) !important;
    color: var(--text-primary) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: var(--border-radius) !important;
    padding: 0.75rem 1rem !important;
    font-size: 0.9rem !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    appearance: none !important;
    background-repeat: no-repeat !important;
    background-position: right 0.7rem center !important;
    background-size: 0.7rem !important;
    padding-right: 2.5rem !important;
}

[data-theme="light"] .keyboard-selector select {
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
}

[data-theme="dark"] .keyboard-selector select {
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' stroke='%23ccc' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
}

.keyboard-selector select:hover,
.keyboard-selector select:focus {
    background-color: var(--bg-primary) !important;
    border-color: var(--accent-primary) !important;
    outline: none !important;
}

/* Loading animation removed */

/* Reading Page Specific Styles */
.pdf-upload-section {
    background: var(--bg-secondary);
    border-radius: var(--border-radius-large);
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
}

.upload-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    margin-top: 1rem;
}

.difficulty-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.difficulty-selector label {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
}

.difficulty-selector select {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    background-repeat: no-repeat;
    background-position: right 0.7rem center;
    background-size: 0.7rem;
    padding-right: 2.5rem;
    min-width: 150px;
}

[data-theme="light"] .difficulty-selector select {
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
}

[data-theme="dark"] .difficulty-selector select {
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' stroke='%23ccc' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
}

.difficulty-selector select:hover,
.difficulty-selector select:focus {
    background-color: var(--bg-primary);
    border-color: var(--accent-primary);
    outline: none;
}

.reading-exercise {
    background: var(--bg-secondary);
    border-radius: var(--border-radius-large);
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
}

.reading-display {
    background: var(--bg-tertiary);
    border-radius: var(--border-radius);
    padding: 2rem;
    margin-bottom: 1.5rem;
    min-height: 200px;
    border: 1px solid var(--border-color);
    position: relative;
}

.reading-text {
    color: var(--text-primary);
    font-size: 0.95rem;
    line-height: 1.6;
    text-align: justify;
}

.reading-focus {
    position: absolute;
    background: rgba(62, 106, 225, 0.2);
    border: 2px solid var(--accent-primary);
    border-radius: var(--border-radius);
    pointer-events: none;
    transition: all 0.3s ease;
}

.current-word-display {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--bg-primary);
    color: var(--accent-primary);
    font-size: 2rem;
    font-weight: 700;
    padding: 1rem 2rem;
    border-radius: var(--border-radius-large);
    border: 2px solid var(--accent-primary);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    z-index: 100;
}

.reading-stats {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--bg-tertiary);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.reading-controls-bottom {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
}

.reading-controls {
    background: var(--bg-secondary);
    border-radius: var(--border-radius-large);
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.control-group label {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.9rem;
}

.control-group input[type="range"] {
    appearance: none;
    height: 6px;
    background: var(--bg-tertiary);
    border-radius: 3px;
    outline: none;
    border: 1px solid var(--border-color);
}

.control-group input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    width: 20px;
    height: 20px;
    background: var(--accent-primary);
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid var(--bg-primary);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.control-group input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: var(--accent-primary);
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid var(--bg-primary);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

#speedValue {
    color: var(--accent-primary);
    font-weight: 700;
    font-size: 1.1rem;
}

.control-group select {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    background-repeat: no-repeat;
    background-position: right 0.7rem center;
    background-size: 0.7rem;
    padding-right: 2.5rem;
}

[data-theme="light"] .control-group select {
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
}

[data-theme="dark"] .control-group select {
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' stroke='%23ccc' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
}

.control-group select:hover,
.control-group select:focus {
    background-color: var(--bg-primary);
    border-color: var(--accent-primary);
    outline: none;
}

.reading-techniques-guide {
    background: var(--bg-secondary);
    border-radius: var(--border-radius-large);
    padding: 2rem;
    border: 1px solid var(--border-color);
}

.techniques-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.technique-item {
    background: var(--bg-tertiary);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.technique-item:hover {
    border-color: var(--accent-primary);
}

.technique-name {
    font-weight: 700;
    color: var(--accent-primary);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.technique-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

.text-preview {
    background: var(--bg-tertiary);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-top: 1rem;
    border: 1px solid var(--border-color);
}

.preview-content {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    max-height: 150px;
    overflow-y: auto;
}

.upload-status {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: var(--border-radius);
    font-weight: 600;
}

.upload-status.success {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.upload-status.error {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Responsive Design for Reading Page */
@media (max-width: 768px) {
    .upload-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .difficulty-selector {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }
    
    .reading-stats {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }
    
    .reading-controls-bottom {
        flex-direction: column;
        align-items: center;
    }
    
    .techniques-grid {
        grid-template-columns: 1fr;
    }
}

/* Progress Page Specific Styles */
.overview-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--bg-secondary);
    border-radius: var(--border-radius-large);
    padding: 2rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.stat-card:hover {
    border-color: var(--accent-primary);
    box-shadow: 0 8px 25px rgba(62, 106, 225, 0.1);
}

.stat-card .icon {
    color: var(--accent-primary);
    font-size: 2rem;
    margin-bottom: 1rem;
    display: block;
}

.stat-card h3 {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.stat-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.stat-item:last-child {
    border-bottom: none;
}

.stat-item .label {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.9rem;
}

.stat-item .value {
    color: var(--accent-primary);
    font-weight: 700;
    font-size: 1.1rem;
}

.chart-section {
    background: var(--bg-secondary);
    border-radius: var(--border-radius-large);
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
}

.chart-section h3 {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.chart-container {
    background: var(--bg-tertiary);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    position: relative;
    height: 400px;
}

.recent-sessions {
    background: var(--bg-secondary);
    border-radius: var(--border-radius-large);
    padding: 2rem;
    border: 1px solid var(--border-color);
}

.recent-sessions h3 {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.session-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.session-item {
    background: var(--bg-tertiary);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.session-item:hover {
    border-color: var(--accent-primary);
    background: var(--bg-primary);
}

.session-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.session-type {
    background: var(--accent-primary);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: var(--border-radius);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.session-date {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.session-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
}

.session-stat {
    text-align: center;
}

.session-stat .stat-label {
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    margin-bottom: 0.25rem;
}

.session-stat .stat-value {
    color: var(--text-primary);
    font-size: 1.2rem;
    font-weight: 700;
}

.achievements-section {
    background: var(--bg-secondary);
    border-radius: var(--border-radius-large);
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
}

.achievements-section h3 {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.achievement-badge {
    background: var(--bg-tertiary);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: all 0.3s ease;
}

.achievement-badge.unlocked {
    border-color: var(--accent-primary);
    background: linear-gradient(135deg, var(--bg-tertiary), rgba(62, 106, 225, 0.05));
}

.achievement-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.achievement-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.achievement-badge.unlocked .achievement-icon {
    color: var(--accent-primary);
}

.achievement-badge:not(.unlocked) .achievement-icon {
    color: var(--text-disabled);
    opacity: 0.5;
}

.achievement-title {
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.achievement-description {
    color: var(--text-secondary);
    font-size: 0.8rem;
    line-height: 1.4;
}

.export-section {
    background: var(--bg-secondary);
    border-radius: var(--border-radius-large);
    padding: 2rem;
    border: 1px solid var(--border-color);
    text-align: center;
}

.export-section h3 {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.export-description {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.export-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Responsive Design for Progress Page */
@media (max-width: 768px) {
    .overview-stats {
        grid-template-columns: 1fr;
    }
    
    .session-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .session-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .achievements-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .export-buttons {
        flex-direction: column;
        align-items: center;
    }
}

/* Finger Position Guide - Text Only (Alt Kısım İçin) */
.finger-position-table {
    background: var(--bg-tertiary);
    border-radius: var(--border-radius);
    padding: 2rem 0;
    margin-top: 2rem;
    border: 1px solid var(--border-color);
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    width: 100%;
}

.finger-column-container {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
    max-width: none;
    margin: 0;
    padding: 0 1rem;
    width: 100%;
}

.finger-column h4 {
    text-align: center;
    color: var(--text-primary);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    border-bottom: 3px solid var(--accent-primary);
    padding-bottom: 0.75rem;
}

.finger-side h3 {
    text-align: center;
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--accent-primary);
    padding-bottom: 0.5rem;
}

.finger-assignments {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.finger-item {
    background: var(--bg-primary);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-height: 120px;
}

.finger-item:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

.finger-name {
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
}

.finger-keys {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    background: var(--bg-tertiary);
    padding: 0.75rem;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    text-align: center;
    line-height: 1.4;
}

/* Klavye renkleriyle uyumlu parmak renkleri */
.finger-pinky-left,
.finger-pinky-right {
    border-color: #ff6b6b;
}
.finger-pinky-left .finger-name,
.finger-pinky-right .finger-name {
    color: #ff6b6b;
}

.finger-ring-left {
    border-color: #ffa500;
}
.finger-ring-left .finger-name {
    color: #ffa500;
}

.finger-middle-left {
    border-color: #4ecdc4;
}
.finger-middle-left .finger-name {
    color: #4ecdc4;
}

.finger-index-left,
.finger-index-right {
    border-color: #45b7d1;
}
.finger-index-left .finger-name,
.finger-index-right .finger-name {
    color: #45b7d1;
}

.finger-middle-right {
    border-color: #9b59b6;
}
.finger-middle-right .finger-name {
    color: #9b59b6;
}

.finger-ring-right {
    border-color: #e74c3c;
}
.finger-ring-right .finger-name {
    color: #e74c3c;
}

.finger-thumb-left,
.finger-thumb-right {
    border-color: #2ecc71;
}
.finger-thumb-left .finger-name,
.finger-thumb-right .finger-name {
    color: #2ecc71;
}

/* Responsive Design for Finger Guide */
@media (max-width: 768px) {
    .finger-column-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        padding: 0 1rem;
    }
    
    .finger-position-table {
        padding: 1.5rem;
        margin: 1rem;
    }
    
    .finger-item {
        padding: 0.75rem;
    }
    
    .finger-column h4 {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .finger-column-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* Animations removed for natural scrolling */
