/* CSS Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    transition: color 0.3s ease, background-color 0.3s ease;
}

/* CSS Variables for Light Theme */
:root {
    --primary-color: #007bff;
    --primary-hover: #0056b3;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --info-color: #17a2b8;
    
    --text-color: #333333;
    --text-muted: #666666;
    --bg-color: #ffffff;
    --bg-secondary: #f8f9fa;
    --border-color: #dee2e6;
    --shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 4px 8px rgba(0, 0, 0, 0.15);
    
    --header-bg: #ffffff;
    --header-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    --footer-bg: #2c3e50;
    --footer-text: #ecf0f1;
}

/* Dark Theme Variables */
[data-theme="dark"] {
    --text-color: #e0e0e0;
    --text-muted: #b0b0b0;
    --bg-color: #1a1a1a;
    --bg-secondary: #2d2d2d;
    --border-color: #404040;
    --shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 4px 8px rgba(0, 0, 0, 0.4);
    
    --header-bg: #2d2d2d;
    --header-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    --footer-bg: #1a1a1a;
    --footer-text: #e0e0e0;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.site-header {
    background-color: var(--header-bg);
    box-shadow: var(--header-shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    padding: 1rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand .logo {
    text-decoration: none;
    color: var(--primary-color);
}

.logo-text {
    font-size: 1.5rem;
    font-weight: bold;
    letter-spacing: -0.5px;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    padding: 0.5rem;
}

.hamburger {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 2px 0;
    transition: 0.3s;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
}

.nav-link {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    transition: color 0.3s ease, background-color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
    background-color: var(--bg-secondary);
}

.theme-toggle {
    background: none;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.theme-toggle:hover {
    border-color: var(--primary-color);
    transform: scale(1.1);
}

.theme-icon {
    font-size: 1.2rem;
    transition: all 0.3s ease;
    position: absolute;
}

.light-icon {
    opacity: 1;
    transform: rotate(0deg);
}

.dark-icon {
    opacity: 0;
    transform: rotate(180deg);
}

[data-theme="dark"] .light-icon {
    opacity: 0;
    transform: rotate(-180deg);
}

[data-theme="dark"] .dark-icon {
    opacity: 1;
    transform: rotate(0deg);
}

/* Admin Button Styles */
.admin-nav-item {
    margin-right: 1rem;
}

.admin-link {
    background: linear-gradient(135deg, #f59e0b, #d97706) !important;
    color: white !important;
    padding: 0.5rem 1rem !important;
    border-radius: 0.5rem !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    text-decoration: none !important;
}

.admin-link:hover {
    background: linear-gradient(135deg, #d97706, #b45309) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.3) !important;
}

.admin-icon {
    font-size: 1.1rem;
}

/* Main Content */
.main-content {
    min-height: calc(100vh - 200px);
    padding: 2rem 0;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-color) 100%);
    padding: 3rem 0;
    text-align: center;
    margin-bottom: 2rem;
}

.hero-section h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* Page Header */
.page-header {
    background: var(--bg-secondary);
    padding: 3rem 0;
    text-align: center;
    margin-bottom: 2rem;
}

.page-header h1 {
    font-size: 2.5rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.page-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Typing Test Section */
.typing-test-section {
    padding: 2rem 0;
}

.test-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background-color: var(--bg-secondary);
    border-radius: 0.5rem;
}

.control-group {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.time-selector,
.difficulty-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.time-selector label,
.difficulty-selector label {
    font-weight: 500;
    color: var(--text-color);
    white-space: nowrap;
}

.time-selector select,
.difficulty-selector select {
    padding: 0.5rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 0.25rem;
    background-color: var(--bg-color);
    color: var(--text-color);
    font-size: 1rem;
    min-width: 120px;
    transition: all 0.15s ease;
    cursor: pointer;
}

.time-selector select:hover,
.difficulty-selector select:hover {
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.time-selector select:focus,
.difficulty-selector select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.action-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

/* Settings Panel */
.settings-panel {
    background-color: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: 0.5rem;
    margin-bottom: 2rem;
    border: 2px solid var(--border-color);
}

.settings-panel h3 {
    color: var(--text-color);
    margin-bottom: 1rem;
    text-align: center;
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.setting-item {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    background-color: var(--bg-color);
    border-radius: 0.25rem;
    box-shadow: var(--shadow);
}

.setting-item label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-color);
    cursor: pointer;
    width: 100%;
}

.setting-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
}

.test-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background-color: var(--bg-secondary);
    border-radius: 0.5rem;
}

.stat-item {
    text-align: center;
    padding: 1rem;
    background-color: var(--bg-color);
    border-radius: 0.25rem;
    box-shadow: var(--shadow);
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.typing-area {
    background-color: var(--bg-secondary);
    padding: 2rem;
    border-radius: 0.5rem;
    margin-bottom: 2rem;
}

.text-display {
    background-color: var(--bg-color);
    padding: 1.5rem;
    border-radius: 0.25rem;
    margin-bottom: 1rem;
    font-family: 'Courier New', monospace;
    font-size: 1.1rem;
    line-height: 1.8;
    min-height: 120px;
    border: 2px solid var(--border-color);
    position: relative;
}

.text-display .char {
    position: relative;
}

.text-display .char.correct {
    background-color: var(--success-color);
    color: white;
}

.text-display .char.incorrect {
    background-color: var(--danger-color);
    color: white;
}

.text-display .char.current {
    background-color: var(--primary-color);
    color: white;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0.3; }
}

.typing-input {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 0.25rem;
    font-family: 'Courier New', monospace;
    font-size: 1.1rem;
    background-color: var(--bg-color);
    color: var(--text-color);
    resize: vertical;
    min-height: 120px;
}

.typing-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.typing-input:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Results Section */
.results-section {
    background-color: var(--bg-secondary);
    padding: 2rem;
    border-radius: 0.5rem;
    text-align: center;
}

.results-section h3 {
    color: var(--text-color);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.result-item {
    background-color: var(--bg-color);
    padding: 1.5rem;
    border-radius: 0.25rem;
    box-shadow: var(--shadow);
}

.result-label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.result-value {
    display: block;
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: 0.25rem;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
}

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

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

.btn-secondary:hover {
    background-color: #5a6268;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    min-width: 100px;
}

/* Info Section */
.info-section {
    padding: 3rem 0;
    background-color: var(--bg-secondary);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.info-card {
    background-color: var(--bg-color);
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: var(--shadow);
}

.info-card h2 {
    color: var(--text-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.info-card p {
    color: var(--text-muted);
    line-height: 1.6;
}

/* Content Sections */
.content-section {
    padding: 2rem 0;
}

.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}

.content-main h2 {
    color: var(--text-color);
    margin-bottom: 1rem;
    margin-top: 2rem;
}

.content-main h2:first-child {
    margin-top: 0;
}

.content-main p {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.content-main ul {
    color: var(--text-muted);
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.content-main li {
    margin-bottom: 0.5rem;
}

.content-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sidebar-card {
    background-color: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: var(--shadow);
}

.sidebar-card h3 {
    color: var(--text-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.typing-benchmarks {
    list-style: none;
    padding: 0;
}

.typing-benchmarks li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
}

.typing-benchmarks li:last-child {
    border-bottom: none;
}

/* Contact Form */
.contact-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

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

.form-group label {
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 0.25rem;
    font-size: 1rem;
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: border-color 0.3s ease;
}

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

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item h3 {
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.contact-item p {
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.contact-item small {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.social-link:hover {
    text-decoration: underline;
}

/* FAQ Section */
.faq-section {
    margin-top: 2rem;
}

.faq-item {
    margin-bottom: 1.5rem;
}

.faq-item h4 {
    color: var(--text-color);
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.faq-item p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Alerts */
.alert {
    padding: 1rem;
    border-radius: 0.25rem;
    margin-bottom: 1rem;
}

.alert-success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.alert-error {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

[data-theme="dark"] .alert-success {
    background-color: #1e3f2a;
    border-color: #2d5a3d;
    color: #a3c9aa;
}

[data-theme="dark"] .alert-error {
    background-color: #3f1e1e;
    border-color: #5a2d2d;
    color: #c9a3a3;
}

/* Policy Content */
.policy-content {
    max-width: 800px;
    margin: 0 auto;
}

.policy-content h2 {
    color: var(--text-color);
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.policy-content h2:first-child {
    margin-top: 0;
}

.policy-content h3 {
    color: var(--text-color);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-size: 1.2rem;
}

.policy-content p {
    color: var(--text-muted);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.policy-content ul {
    color: var(--text-muted);
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.policy-content li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.policy-content a {
    color: var(--primary-color);
    text-decoration: none;
}

.policy-content a:hover {
    text-decoration: underline;
}

/* AdSense Ad Styles */
.ad-banner, .content-ad-section, .footer-ad-section {
    background-color: var(--bg-secondary);
    padding: 1rem 0;
    margin: 1rem 0;
    border: 1px solid var(--border-color);
    border-radius: 0.25rem;
}

.ad-container, .content-ad, .footer-ad {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 90px;
    background-color: var(--bg-color);
    border-radius: 0.25rem;
    position: relative;
}

.header-ad .ad-container {
    min-height: 90px;
}

.content-ad {
    min-height: 250px;
    margin: 2rem 0;
}

.footer-ad {
    min-height: 90px;
    margin-bottom: 1rem;
}

.ad-placeholder {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-align: center;
    padding: 1rem;
    opacity: 0.7;
    border: 2px dashed var(--border-color);
    border-radius: 0.25rem;
    background-color: transparent;
}

/* Sidebar Layout */
.content-with-sidebar {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.sidebar {
    width: 280px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.main-typing-area {
    flex: 1;
    min-width: 0;
}

.sidebar-ad {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-widget {
    background-color: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: 0.5rem;
    border: 1px solid var(--border-color);
}

.sidebar-widget h4 {
    color: var(--text-color);
    margin: 0 0 1rem 0;
    font-size: 1.1rem;
}

.quick-stats .stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.quick-stats .stat-item:last-child {
    border-bottom: none;
}

.quick-stats .stat-label {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.quick-stats .stat-value {
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1rem;
}

.typing-tips-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.typing-tips-list li {
    color: var(--text-color);
    font-size: 0.9rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
    position: relative;
    padding-left: 1.5rem;
}

.typing-tips-list li:last-child {
    border-bottom: none;
}

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

/* Responsive Design for Sidebar */
@media (max-width: 1024px) {
    .content-with-sidebar {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .sidebar {
        width: 100%;
        flex-direction: row;
        overflow-x: auto;
        gap: 1rem;
        padding-bottom: 0.5rem;
    }
    
    .sidebar-widget, .sidebar-ad {
        min-width: 250px;
        flex-shrink: 0;
    }
}

@media (max-width: 768px) {
    .sidebar {
        flex-direction: column;
        gap: 1rem;
    }
    
    .sidebar-widget, .sidebar-ad {
        min-width: auto;
    }
    
    .ad-banner, .content-ad-section, .footer-ad-section {
        margin: 0.5rem 0;
    }
    
    .content-ad {
        min-height: 200px;
        margin: 1rem 0;
    }
    
    .sidebar-ad {
        min-height: 200px;
    }
}

/* Admin Panel Additional Styles */
.content-card {
    background: white;
    padding: 2rem;
    border-radius: 0.75rem;
    border: 1px solid var(--border-color);
    margin-bottom: 1.5rem;
}

.content-card h3 {
    margin: 0 0 1.5rem 0;
    color: var(--text-color);
    font-size: 1.25rem;
}

.user-filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    align-items: center;
}

.search-input, .filter-select {
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 0.9rem;
}

.search-input {
    flex: 1;
    max-width: 300px;
}

.user-table {
    overflow-x: auto;
}

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

.user-table th,
.user-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.user-table th {
    background-color: var(--bg-secondary);
    font-weight: 600;
    color: var(--text-color);
}

.status {
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 500;
}

.status.active {
    background-color: #dcfce7;
    color: #166534;
}

.status.inactive {
    background-color: #fef2f2;
    color: #dc2626;
}

.btn-small {
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
    margin-right: 0.5rem;
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1.5rem;
}

.setting-group {
    margin-bottom: 1.5rem;
}

.setting-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-weight: 500;
}

.setting-group input,
.setting-group textarea,
.setting-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 0.9rem;
    box-sizing: border-box;
}

.setting-group input[type="checkbox"] {
    width: auto;
    margin-right: 0.5rem;
}

/* Footer */
.site-footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
    padding: 2rem 0 1rem;
    margin-top: 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.footer-section h3,
.footer-section h4 {
    color: var(--footer-text);
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.footer-section p {
    color: var(--footer-text);
    opacity: 0.8;
    line-height: 1.5;
    margin-bottom: 0.75rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.4rem;
}

.footer-links a {
    color: var(--footer-text);
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
    font-size: 0.95rem;
}

.footer-links a:hover {
    opacity: 1;
    text-decoration: underline;
}

.footer-section .social-links {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.footer-section .social-link {
    color: var(--footer-text);
    opacity: 0.8;
    transition: all 0.3s ease;
}

.footer-section .social-link:hover {
    opacity: 1;
    transform: translateY(-2px);
}

.typing-stats {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.typing-stats .stat-item {
    background: none;
    box-shadow: none;
    padding: 0.4rem 0;
    text-align: left;
}

.typing-stats .stat-number {
    color: var(--footer-text);
    font-weight: bold;
    font-size: 1.1rem;
    display: block;
}

.typing-stats .stat-label {
    color: var(--footer-text);
    opacity: 0.8;
    font-size: 0.85rem;
    display: block;
    margin-top: 0.2rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-copyright p {
    color: var(--footer-text);
    opacity: 0.8;
    margin: 0;
}

.footer-legal {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.footer-legal a {
    color: var(--footer-text);
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-legal a:hover {
    opacity: 1;
    text-decoration: underline;
}

.separator {
    color: var(--footer-text);
    opacity: 0.5;
}

/* Progress Page Styles */
.progress-dashboard {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.stats-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.stat-card {
    background-color: var(--bg-secondary);
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-icon {
    font-size: 2.5rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-color);
    border-radius: 50%;
    color: white;
}

.stat-content h3 {
    color: var(--text-color);
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.stat-content small {
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* Chart Section */
.chart-section {
    background-color: var(--bg-secondary);
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: var(--shadow);
}

.chart-section h2 {
    color: var(--text-color);
    margin-bottom: 2rem;
    text-align: center;
}

.chart-container {
    background-color: var(--bg-color);
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1rem;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chart-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.chart-controls .btn.active {
    background-color: var(--primary-color);
    color: white;
}

/* Achievements Section */
.achievements-section {
    background-color: var(--bg-secondary);
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: var(--shadow);
}

.achievements-section h2 {
    color: var(--text-color);
    margin-bottom: 2rem;
    text-align: center;
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.achievement-badge {
    background-color: var(--bg-color);
    padding: 1.5rem;
    border-radius: 0.5rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.achievement-badge:hover {
    transform: scale(1.05);
}

.achievement-badge.earned {
    border: 2px solid var(--success-color);
}

.achievement-badge.locked {
    opacity: 0.5;
    filter: grayscale(100%);
}

.achievement-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.achievement-title {
    font-weight: bold;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.achievement-description {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Recent Tests Table */
.recent-tests-section {
    background-color: var(--bg-secondary);
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: var(--shadow);
}

.recent-tests-section h2 {
    color: var(--text-color);
    margin-bottom: 2rem;
    text-align: center;
}

.recent-tests-table {
    overflow-x: auto;
}

.recent-tests-table table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--bg-color);
    border-radius: 0.5rem;
    overflow: hidden;
}

.recent-tests-table th,
.recent-tests-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.recent-tests-table th {
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
}

.recent-tests-table td {
    color: var(--text-color);
}

.recent-tests-table tr:hover {
    background-color: var(--bg-secondary);
}

/* Goals Section */
.goals-section {
    background-color: var(--bg-secondary);
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: var(--shadow);
}

.goals-section h2 {
    color: var(--text-color);
    margin-bottom: 2rem;
    text-align: center;
}

.goals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.goal-card {
    background-color: var(--bg-color);
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: var(--shadow);
}

.goal-card h3 {
    color: var(--text-color);
    margin-bottom: 1rem;
    text-align: center;
}

.goal-input {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.goal-input input {
    flex: 1;
    padding: 0.5rem;
    border: 2px solid var(--border-color);
    border-radius: 0.25rem;
    background-color: var(--bg-color);
    color: var(--text-color);
}

.goal-progress {
    text-align: center;
}

.progress-bar {
    width: 100%;
    height: 20px;
    background-color: var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

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

.goal-progress small {
    color: var(--text-muted);
}

/* Quick Practice Animation */
@keyframes fadeInOut {
    0% { 
        opacity: 0; 
        transform: translateY(-20px); 
    }
    20%, 80% { 
        opacity: 1; 
        transform: translateY(0); 
    }
    100% { 
        opacity: 0; 
        transform: translateY(-20px); 
    }
}

/* Typing Tips Section */
.typing-tips {
    background-color: var(--bg-secondary);
    padding: 3rem 0;
    margin-top: 4rem;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.tip-card {
    background-color: var(--bg-color);
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--primary-color);
    transition: transform 0.3s ease;
}

.tip-card:hover {
    transform: translateY(-5px);
}

.tip-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: block;
}

.tip-card h3 {
    color: var(--text-color);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.tip-card p {
    color: var(--text-muted);
    line-height: 1.6;
}

/* Enhanced Button Styles */
.btn {
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

/* Achievement Animations */
@keyframes bounceIn {
    0% {
        transform: scale(0.3);
        opacity: 0;
    }
    50% {
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.achievement-earned {
    animation: bounceIn 0.6s ease-out;
}

/* Responsive Improvements */
@media (max-width: 768px) {
    .tips-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-overview {
        grid-template-columns: 1fr;
    }
    
    .goals-grid {
        grid-template-columns: 1fr;
    }
    
    .achievements-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: var(--bg-color);
    border-radius: 0.5rem;
    max-width: 90%;
    max-height: 90%;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

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

.modal-header h2 {
    color: var(--text-color);
    margin: 0;
}

.close-modal {
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: var(--text-color);
}

.modal-body {
    padding: 2rem;
}

/* Lessons Grid */
.lessons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.lesson-card {
    background-color: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.3s ease;
}

.lesson-card:hover {
    transform: translateY(-5px);
}

.lesson-card h3 {
    color: var(--text-color);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.lesson-card p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

/* Custom Text Panel */
.custom-text-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    justify-content: flex-end;
}

#custom-text-input {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 0.5rem;
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    resize: vertical;
    min-height: 120px;
}

#custom-text-input:focus {
    border-color: var(--primary-color);
    outline: none;
}

/* Text Category Selector */
.text-category-selector {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.text-category-selector label {
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.9rem;
}

.text-category-selector select {
    padding: 0.5rem;
    border: 2px solid var(--border-color);
    border-radius: 0.25rem;
    background-color: var(--bg-color);
    color: var(--text-color);
    font-size: 0.9rem;
    transition: all 0.15s ease;
    cursor: pointer;
    will-change: border-color, box-shadow;
}

.text-category-selector select:hover {
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.text-category-selector select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Live WPM Indicator */
.live-wpm-indicator {
    position: fixed;
    top: 50%;
    right: 20px;
    background-color: var(--primary-color);
    color: white;
    padding: 1rem;
    border-radius: 50%;
    font-size: 1.2rem;
    font-weight: bold;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    box-shadow: var(--shadow);
    z-index: 100;
    transition: all 0.3s ease;
}

.live-wpm-indicator small {
    font-size: 0.7rem;
    opacity: 0.9;
}

/* Typing Streak Indicator */
.streak-indicator {
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: 1rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Difficulty Badges */
.difficulty-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.8rem;
    font-weight: bold;
    margin-left: 0.5rem;
}

.difficulty-easy { background-color: #4ade80; color: white; }
.difficulty-medium { background-color: #fbbf24; color: white; }
.difficulty-hard { background-color: #f97316; color: white; }
.difficulty-expert { background-color: #dc2626; color: white; }

/* Performance Chart Placeholder */
.performance-chart {
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-color));
    border-radius: 0.5rem;
    padding: 2rem;
    text-align: center;
    color: var(--text-muted);
    border: 2px dashed var(--border-color);
}

/* Leaderboard Styles */
.leaderboard {
    background-color: var(--bg-secondary);
    padding: 2rem;
    border-radius: 0.5rem;
    margin-top: 2rem;
}

.leaderboard h3 {
    color: var(--text-color);
    margin-bottom: 1.5rem;
    text-align: center;
}

.leaderboard-entry {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    margin-bottom: 0.5rem;
    background-color: var(--bg-color);
    border-radius: 0.5rem;
    transition: transform 0.3s ease;
}

.leaderboard-entry:hover {
    transform: translateX(5px);
}

.leaderboard-rank {
    font-weight: bold;
    color: var(--primary-color);
    width: 30px;
}

.leaderboard-name {
    flex: 1;
    color: var(--text-color);
    margin-left: 1rem;
}

.leaderboard-score {
    font-weight: bold;
    color: var(--success-color);
}

/* Enhanced Control Styles */
.control-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .control-group {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        margin: 1rem;
        max-width: calc(100% - 2rem);
    }
    
    .lessons-grid {
        grid-template-columns: 1fr;
    }
    
    .live-wpm-indicator {
        display: none;
    }
}

/* Challenge System Styles */
.challenges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.challenge-card {
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-color));
    padding: 2rem;
    border-radius: 0.75rem;
    border: 2px solid transparent;
    background-clip: padding-box;
    position: relative;
    transition: all 0.3s ease;
    overflow: hidden;
}

.challenge-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, var(--primary-color), var(--success-color));
    border-radius: 0.75rem;
    padding: 2px;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    z-index: -1;
}

.challenge-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.challenge-card h3 {
    color: var(--text-color);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.challenge-card p {
    color: var(--text-muted);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.challenge-reward {
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    color: #000;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-weight: bold;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    display: inline-block;
}

/* Multiplayer Race Styles */
.race-setup {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.race-options {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.race-option {
    background-color: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: 0.5rem;
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
}

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

.race-option h3 {
    color: var(--text-color);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.race-option p {
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.race-input {
    width: 100%;
    padding: 0.5rem;
    margin-bottom: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 0.25rem;
    background-color: var(--bg-color);
    color: var(--text-color);
}

.race-preview {
    background-color: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: 0.5rem;
}

.race-preview h4 {
    color: var(--text-color);
    margin-bottom: 1rem;
    text-align: center;
}

.race-track {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.racer {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.racer-name {
    width: 80px;
    font-weight: bold;
    color: var(--text-color);
    font-size: 0.9rem;
}

.racer-progress {
    flex: 1;
    height: 20px;
    background-color: var(--border-color);
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.racer-progress::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--primary-color), var(--success-color));
    border-radius: 10px;
    transition: width 0.3s ease;
}

.racer[data-racer="you"] .racer-progress::before {
    background: linear-gradient(90deg, #4ade80, #22c55e);
}

/* Font Size Controls */
.setting-item label[for="font-size-slider"] {
    display: block;
    margin-bottom: 0.5rem;
}

#font-size-slider {
    width: 100%;
    margin-bottom: 0.5rem;
}

#font-size-value {
    color: var(--primary-color);
    font-weight: bold;
}

/* Ghost and Blind Mode Styles */
.ghost-mode .text-display {
    opacity: 0.3;
    transition: opacity 0.3s ease;
}

.ghost-mode .text-display:hover {
    opacity: 1;
}

.blind-mode .text-display {
    color: transparent;
    text-shadow: 0 0 8px var(--text-color);
}

.blind-mode .typed-character {
    color: var(--text-color);
    text-shadow: none;
}

/* Words Only Mode */
.words-only-mode {
    font-family: 'Courier New', monospace;
    font-size: 1.5rem;
    letter-spacing: 0.1em;
}

/* Zen Mode */
.zen-mode {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.zen-mode .text-display {
    color: rgba(255,255,255,0.9);
    font-size: 1.2rem;
    line-height: 2;
}

/* XP and Achievement System */
.xp-indicator {
    position: fixed;
    top: 80px;
    right: 20px;
    background: linear-gradient(45deg, #6366f1, #8b5cf6);
    color: white;
    padding: 0.75rem 1rem;
    border-radius: 2rem;
    font-weight: bold;
    z-index: 100;
    box-shadow: var(--shadow);
}

.achievement-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    color: #000;
    padding: 2rem;
    border-radius: 1rem;
    font-weight: bold;
    font-size: 1.2rem;
    z-index: 1000;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    animation: achievementBounce 0.6s ease-out;
}

@keyframes achievementBounce {
    0% { transform: translate(-50%, -50%) scale(0.3); opacity: 0; }
    50% { transform: translate(-50%, -50%) scale(1.1); }
    100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

/* Enhanced Statistics Display */
.enhanced-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.stat-mini {
    background-color: var(--bg-secondary);
    padding: 1rem;
    border-radius: 0.5rem;
    text-align: center;
    border-left: 4px solid var(--primary-color);
}

.stat-mini h4 {
    color: var(--text-color);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.stat-mini .stat-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .race-setup {
        grid-template-columns: 1fr;
    }
    
    .challenges-grid {
        grid-template-columns: 1fr;
    }
    
    .enhanced-stats {
        grid-template-columns: 1fr;
    }
}

/* Additional Animations */
@keyframes slideUpFade {
    0% {
        transform: translateY(20px);
        opacity: 0;
    }
    50% {
        transform: translateY(-10px);
        opacity: 1;
    }
    100% {
        transform: translateY(-50px);
        opacity: 0;
    }
}

/* Floating Action Button */
.fab-menu {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.fab-main {
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, var(--primary-color), var(--success-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
}

.fab-main:hover {
    transform: scale(1.1);
}

/* Enhanced Statistics in Footer */
.footer-stats {
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-color));
    padding: 2rem 0;
    border-top: 1px solid var(--border-color);
}

.footer-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    text-align: center;
}

.footer-stat {
    color: var(--text-color);
}

.footer-stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color);
    display: block;
}

.footer-stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

/* Advanced Typing Modes */
.typing-mode-indicator {
    position: absolute;
    top: -40px;
    left: 0;
    right: 0;
    text-align: center;
    font-weight: bold;
    color: var(--primary-color);
    font-size: 0.9rem;
}

/* Keyboard Heatmap */
.keyboard-heatmap {
    margin-top: 2rem;
    padding: 1rem;
    background-color: var(--bg-secondary);
    border-radius: 0.5rem;
}

.key-row {
    display: flex;
    justify-content: center;
    gap: 2px;
    margin-bottom: 2px;
}

.key {
    width: 40px;
    height: 40px;
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
    color: var(--text-color);
    transition: background-color 0.3s ease;
}

.key.pressed {
    background-color: var(--primary-color);
    color: white;
}

.key.frequent {
    background-color: rgba(75, 85, 99, 0.3);
}

/* Streak Counter */
.streak-counter {
    position: fixed;
    bottom: 100px;
    right: 30px;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    color: white;
    padding: 1rem;
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    box-shadow: var(--shadow);
    z-index: 100;
}

.streak-number {
    font-size: 1.5rem;
}

.streak-label {
    font-size: 0.7rem;
    opacity: 0.9;
}

/* Advanced Analytics Styles */
.modal-large {
    max-width: 900px;
}

.analytics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.analytics-card {
    background-color: var(--bg-secondary);
    padding: 2rem;
    border-radius: 0.75rem;
    border: 1px solid var(--border-color);
}

.analytics-card h3 {
    color: var(--text-color);
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

.speed-metrics, .accuracy-breakdown {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.metric-item, .accuracy-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.metric-label {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.metric-value {
    font-weight: bold;
    color: var(--text-color);
}

.metric-value.positive {
    color: var(--success-color);
}

.key-list {
    font-family: monospace;
    padding: 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.9rem;
}

.key-list.accurate {
    background-color: rgba(34, 197, 94, 0.1);
    color: var(--success-color);
}

.key-list.problematic {
    background-color: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

/* Typing Heatmap */
.heatmap-display {
    text-align: center;
}

.heatmap-row {
    display: flex;
    justify-content: center;
    gap: 2px;
    margin-bottom: 1rem;
}

.key {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    font-weight: bold;
    font-size: 0.8rem;
    color: white;
    transition: transform 0.2s ease;
}

.key:hover {
    transform: scale(1.1);
}

.key.hot {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.key.warm {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.key.cool {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.key.cold {
    background: linear-gradient(135deg, #6b7280, #4b5563);
}

.heatmap-legend {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 2px;
}

.legend-color.hot {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.legend-color.cool {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.legend-color.cold {
    background: linear-gradient(135deg, #6b7280, #4b5563);
}

/* Training Programs */
.training-programs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.program-card {
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-color));
    padding: 2rem;
    border-radius: 0.75rem;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.program-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--success-color));
}

.program-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.program-card h3 {
    color: var(--text-color);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.program-card p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.program-details {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.duration, .difficulty {
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.8rem;
    font-weight: bold;
}

.duration {
    background-color: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.difficulty.adaptive {
    background-color: rgba(168, 85, 247, 0.1);
    color: #a855f7;
}

.difficulty.progressive {
    background-color: rgba(34, 197, 94, 0.1);
    color: #22c55e;
}

.difficulty.beginner {
    background-color: rgba(34, 197, 94, 0.1);
    color: #22c55e;
}

.difficulty.advanced {
    background-color: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

/* Tournament Styles */
.tournament-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.tournament-card {
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-color));
    padding: 2rem;
    border-radius: 1rem;
    border: 2px solid var(--border-color);
    position: relative;
    transition: all 0.3s ease;
}

.tournament-card.active {
    border-color: var(--success-color);
    box-shadow: 0 0 30px rgba(34, 197, 94, 0.2);
}

.tournament-card.upcoming {
    border-color: var(--primary-color);
}

.tournament-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.8rem;
    font-weight: bold;
}

.tournament-badge.live {
    background: linear-gradient(45deg, #22c55e, #16a34a);
    color: white;
    animation: pulse 2s infinite;
}

.tournament-badge.upcoming {
    background: linear-gradient(45deg, #3b82f6, #2563eb);
    color: white;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.tournament-card h3 {
    color: var(--text-color);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.tournament-info {
    margin-bottom: 2rem;
}

.tournament-info > div {
    margin-bottom: 0.5rem;
    color: var(--text-muted);
}

.prize {
    color: #fbbf24 !important;
    font-weight: bold;
}

.mini-leaderboard {
    background-color: var(--bg-color);
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
}

.leader-entry {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.leader-entry:last-child {
    border-bottom: none;
}

.leader-entry.yours {
    background-color: rgba(59, 130, 246, 0.1);
    padding: 0.5rem;
    border-radius: 0.25rem;
    border: none;
}

.rank {
    font-weight: bold;
    color: var(--primary-color);
    width: 30px;
}

.name {
    flex: 1;
    color: var(--text-color);
}

.score {
    font-weight: bold;
    color: var(--success-color);
}

/* Enhanced Category Text Styles */
.medical-text {
    font-family: 'Times New Roman', serif;
    line-height: 1.8;
}

.legal-text {
    font-family: 'Times New Roman', serif;
    font-size: 0.95rem;
    line-height: 1.7;
}

.foreign-words-text {
    font-style: italic;
    letter-spacing: 0.05em;
}

.symbols-special-text {
    font-family: 'Courier New', monospace;
    letter-spacing: 0.1em;
}

/* Advanced Mode Indicators */
.mode-indicator {
    position: fixed;
    top: 120px;
    right: 20px;
    background: linear-gradient(45deg, var(--primary-color), var(--success-color));
    color: white;
    padding: 0.75rem 1rem;
    border-radius: 2rem;
    font-weight: bold;
    z-index: 100;
    box-shadow: var(--shadow);
    animation: slideInRight 0.5s ease-out;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive Design for Advanced Features */
@media (max-width: 768px) {
    .analytics-grid {
        grid-template-columns: 1fr;
    }
    
    .training-programs {
        grid-template-columns: 1fr;
    }
    
    .tournament-grid {
        gap: 1.5rem;
    }
    
    .heatmap-legend {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .mode-indicator {
        top: 80px;
        right: 10px;
        font-size: 0.8rem;
    }
}

/* Typing Games Styles */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.game-card {
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-color));
    padding: 2rem;
    border-radius: 1rem;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.game-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4);
}

.game-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-color);
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
}

.game-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.game-card h3 {
    color: var(--text-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.game-card p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.game-stats {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.game-stats .difficulty, .game-stats .duration {
    padding: 0.4rem 0.8rem;
    border-radius: 1rem;
    font-size: 0.8rem;
    font-weight: bold;
}

.game-stats .duration {
    background-color: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

/* Game Arena Styles */
.game-arena {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--bg-color), var(--bg-secondary));
    z-index: 2000;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.game-header {
    background: linear-gradient(90deg, var(--primary-color), var(--success-color));
    color: white;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.game-header h2 {
    margin: 0;
    font-size: 1.5rem;
}

.game-controls {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.game-score, .game-timer {
    background: rgba(255,255,255,0.2);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: bold;
}

.game-content {
    flex: 1;
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: auto;
}

.game-container {
    width: 100%;
    max-width: 800px;
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: 1rem;
    border: 2px solid var(--border-color);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

/* Word Builder Game Styles */
.builder-arena {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    padding: 2rem;
}

.target-word-display h3 {
    font-size: 2rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.letters-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    max-width: 600px;
    margin: 1rem 0;
    padding: 1rem;
    background-color: var(--bg-color);
    border-radius: 1rem;
    box-shadow: inset 0 2px 8px rgba(0,0,0,0.1);
}

.letter-button {
    background: linear-gradient(145deg, #f0f4f8, #e2e8f0);
    border: 2px solid var(--border-color);
    border-radius: 0.5rem;
    color: var(--text-color);
    font-size: 1.5rem;
    font-weight: bold;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.letter-button:hover {
    background: linear-gradient(145deg, var(--primary-color), #2563eb);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(59, 130, 246, 0.3);
}

.letter-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.built-word-display {
    text-align: center;
    min-height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.built-word-display h4 {
    font-size: 1.5rem;
    color: var(--text-color);
    background-color: var(--bg-color);
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    border: 2px dashed var(--border-color);
    min-width: 300px;
    text-align: center;
}

.builder-stats {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 1rem;
}

.builder-stats span {
    background-color: var(--bg-color);
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    font-weight: 500;
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.game-input {
    width: 100%;
    padding: 1rem;
    font-size: 1.2rem;
    border: 2px solid var(--border-color);
    border-radius: 0.5rem;
    background: var(--bg-color);
    color: var(--text-color);
    margin: 1rem 0;
    text-align: center;
}

.game-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.game-actions {
    padding: 1rem 2rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
}

/* Word Race Game Styles */
.race-track {
    text-align: center;
}

.word-target {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-color);
    margin: 2rem 0;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(34, 197, 94, 0.1));
    border-radius: 1rem;
    border: 2px dashed var(--primary-color);
}

.progress-bar {
    width: 100%;
    height: 20px;
    background: var(--bg-color);
    border-radius: 10px;
    overflow: hidden;
    margin: 1rem 0;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--success-color));
    transition: width 0.3s ease;
    width: 0%;
}

.race-stats {
    display: flex;
    justify-content: space-around;
    margin-top: 1rem;
    font-weight: bold;
    color: var(--text-color);
}

/* Letter Rain Game Styles */
.rain-area {
    position: relative;
    height: 400px;
    background: linear-gradient(to bottom, #87CEEB, #E0F6FF);
    border-radius: 1rem;
    overflow: hidden;
    margin-bottom: 1rem;
}

.falling-letter {
    position: absolute;
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color);
    animation: fall linear;
    cursor: pointer;
    background: white;
    padding: 0.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

@keyframes fall {
    from { top: -50px; }
    to { top: 450px; }
}

.catcher {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--success-color);
    color: white;
    padding: 1rem 2rem;
    border-radius: 2rem;
    font-weight: bold;
}

.rain-stats {
    display: flex;
    justify-content: space-around;
    color: var(--text-color);
    font-weight: bold;
}

/* Typing Snake Game Styles */
.snake-arena {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

#snake-canvas {
    border: 3px solid var(--primary-color);
    border-radius: 0.5rem;
    background: #f0f8ff;
}

.snake-word-display {
    text-align: center;
}

.current-word {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.snake-stats {
    display: flex;
    justify-content: space-around;
    color: var(--text-color);
    font-weight: bold;
    margin-top: 1rem;
}

/* Speed Typer Game Styles */
.speed-display {
    text-align: center;
}

.word-queue {
    min-height: 200px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    padding: 2rem;
    background: var(--bg-color);
    border-radius: 1rem;
    margin-bottom: 1rem;
}

.speed-word {
    padding: 1rem 1.5rem;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--text-color);
    transition: all 0.3s ease;
}

.speed-word.active {
    background: linear-gradient(45deg, var(--primary-color), var(--success-color));
    color: white;
    transform: scale(1.1);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.speed-word.completed {
    background: var(--success-color);
    color: white;
    opacity: 0.7;
}

.speed-stats {
    display: flex;
    justify-content: space-around;
    color: var(--text-color);
    font-weight: bold;
}

/* Typing Defense Game Styles */
.defense-field {
    position: relative;
    height: 400px;
    background: linear-gradient(to bottom, #1e3c72, #2a5298);
    border-radius: 1rem;
    overflow: hidden;
    margin-bottom: 1rem;
}

.base {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    background: var(--success-color);
    color: white;
    padding: 1rem 2rem;
    border-radius: 1rem;
    font-weight: bold;
    box-shadow: 0 8px 16px rgba(0,0,0,0.3);
}

.enemies-area {
    position: relative;
    height: 100%;
    width: 100%;
}

.enemy {
    position: absolute;
    background: linear-gradient(45deg, #ff6b6b, #ee5a52);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: bold;
    font-size: 1.1rem;
    animation: enemyAdvance linear;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

@keyframes enemyAdvance {
    from { top: -50px; }
    to { top: 350px; }
}

.defense-stats {
    display: flex;
    justify-content: space-around;
    color: var(--text-color);
    font-weight: bold;
}

/* Game Effects */
.explosion {
    position: absolute;
    font-size: 2rem;
    color: #ffd700;
    animation: explode 0.6s ease-out forwards;
    pointer-events: none;
}

@keyframes explode {
    0% { transform: scale(0.5); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.8; }
    100% { transform: scale(2); opacity: 0; }
}

.score-popup {
    position: absolute;
    color: var(--success-color);
    font-weight: bold;
    font-size: 1.2rem;
    animation: scoreFloat 1s ease-out forwards;
    pointer-events: none;
}

@keyframes scoreFloat {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(-50px); opacity: 0; }
}

/* Mobile Responsive for Games */
@media (max-width: 768px) {
    .games-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .game-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .game-controls {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .game-content {
        padding: 1rem;
    }
    
    .word-target {
        font-size: 2rem;
        padding: 1rem;
    }
    
    #snake-canvas {
        width: 300px;
        height: 300px;
    }
    
    .word-queue {
        gap: 0.5rem;
        padding: 1rem;
    }
    
    .speed-word {
        font-size: 1rem;
        padding: 0.8rem 1rem;
    }
}

/* Toast Animations */
@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideOutRight {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(100%); opacity: 0; }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--header-bg);
        box-shadow: var(--shadow);
        padding: 1rem;
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-list {
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
    }
    
    .nav-actions {
        margin-top: 1rem;
    }
    
    .hero-section h1,
    .page-header h1 {
        font-size: 2rem;
    }
    
    .test-controls {
        flex-direction: column;
        gap: 1rem;
    }
    
    .test-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .content-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .results-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .container {
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .hero-section h1,
    .page-header h1 {
        font-size: 1.75rem;
    }
    
    .test-stats,
    .results-grid {
        grid-template-columns: 1fr;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .typing-area,
    .results-section {
        padding: 1rem;
    }
    
    .text-display,
    .typing-input {
        font-size: 1rem;
        padding: 1rem;
    }
    
    .stat-value,
    .result-value {
        font-size: 1.5rem;
    }
}

/* Animation Utilities */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.slide-up {
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from { transform: translateY(10px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for accessibility */
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
a:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --border-color: #000000;
        --shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    }
    
    [data-theme="dark"] {
        --border-color: #ffffff;
        --text-color: #ffffff;
        --bg-color: #000000;
    }
}

/* Print styles */
@media print {
    .site-header,
    .site-footer,
    .nav-menu,
    .theme-toggle,
    .btn {
        display: none !important;
    }
    
    .main-content {
        margin: 0;
        padding: 0;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
}
