/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* CSS Variables for theming */
:root {
    /* Light mode (default) */
    --bg-primary: linear-gradient(135deg, #8cc63e 0%, #6ba82e 100%);
    --bg-secondary: #ffffff;
    --bg-tertiary: #f8f9fa;
    --text-primary: #333333;
    --text-secondary: #666666;
    --text-accent: #8cc63e;
    --border-color: rgba(0, 0, 0, 0.1);
    --card-bg: #ffffff;
    --card-shadow: rgba(0, 0, 0, 0.1);
    --header-bg: rgba(255, 255, 255, 0.95);
    --button-bg: #8cc63e;
    --button-hover: #7ab72d;
}

/* Dark mode */
[data-theme="dark"] {
    --bg-primary: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    --bg-secondary: #2d2d2d;
    --bg-tertiary: #3a3a3a;
    --text-primary: #000000;
    --text-secondary: #444444;
    --text-accent: #8cc63e;
    --border-color: rgba(255, 255, 255, 0.2);
    --card-bg: #3a3a3a;
    --card-shadow: rgba(0, 0, 0, 0.3);
    --header-bg: rgba(45, 45, 45, 0.95);
    --button-bg: #8cc63e;
    --button-hover: #7ab72d;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    min-height: 100vh;
    color: var(--text-primary);
    line-height: 1.6;
    transition: background 0.3s ease, color 0.3s ease;
}

.hidden {
    display: none !important;
}

/* Loading screen */
.loading-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    color: white;
    font-size: 1.2em;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-left: 4px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Landing page */
.landing-page {
    min-height: 100vh;
    background: var(--bg-primary);
    position: relative;
    overflow-x: hidden;
}

/* Header */
.landing-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--header-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: all 0.3s ease;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Dark mode toggle */
.theme-toggle {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-right: 1rem;
}

.toggle-switch {
    position: relative;
    width: 50px;
    height: 26px;
    background: var(--border-color);
    border-radius: 13px;
    cursor: pointer;
    transition: background 0.3s ease;
    border: none;
    outline: none;
}

.toggle-switch:hover {
    background: var(--text-secondary);
}

.toggle-slider {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 22px;
    height: 22px;
    background: var(--bg-secondary);
    border-radius: 50%;
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

[data-theme="dark"] .toggle-slider {
    transform: translateX(24px);
}

.toggle-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    user-select: none;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    font-size: 1.5rem;
    color: #4a5d23;
}

.logo-icon {
    flex-shrink: 0;
}

.logo-text {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: #4a5d23;
}

.logo-icon {
    font-size: 1.8rem;
}

.login-btn-header {
    background: #8cc63e;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.login-btn-header:hover {
    background: #6ba82e;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(140, 198, 62, 0.3);
}

/* Hero Section */
.hero-section {
    padding: 8rem 2rem 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.hero-visual {
    display: flex;
    justify-content: center;
}

.dashboard-preview {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    color: #333;
    min-width: 600px;
}

.dashboard-grid-preview {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
}

.dashboard-grid-preview:last-child {
    margin-bottom: 0;
}

.stat-card-preview {
    background: #f8fafc;
    padding: 1.2rem;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-card-preview:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(140, 198, 62, 0.15);
}

.stat-icon-preview {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    background: linear-gradient(135deg, #8cc63e, #6ba82e);
}

.stat-content-preview {
    width: 100%;
}

.stat-value-preview {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.3rem;
}

.stat-label-preview {
    font-size: 0.7rem;
    color: #64748b;
    font-weight: 500;
    line-height: 1.2;
}

/* Features Section */
.features-section {
    background: white;
    padding: 6rem 2rem;
}

.section-content {
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #4a5d23;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.2rem;
    color: #6b7280;
    max-width: 600px;
    margin: 0 auto;
}

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

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #f3f4f6;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(140, 198, 62, 0.15);
    border-color: #8cc63e;
}

.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.feature-icon.green {
    background: linear-gradient(135deg, #8cc63e, #6ba82e);
    color: white;
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #4a5d23;
    margin-bottom: 1rem;
}

.feature-card p {
    color: #6b7280;
    line-height: 1.7;
}

/* Statistics Showcase */
.stats-showcase {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 6rem 2rem;
}

.stats-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.stats-text h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #4a5d23;
    margin-bottom: 1.5rem;
}

.stats-text p {
    font-size: 1.2rem;
    color: #6b7280;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.stats-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.stat-feature {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    background: var(--card-bg);
    border-radius: 10px;
    box-shadow: 0 2px 10px var(--card-shadow);
    color: var(--text-primary);
}

.stat-icon {
    font-size: 1.5rem;
}

.stat-card-demo {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 40px var(--card-shadow);
    color: var(--text-primary);
}

.stat-header {
    font-weight: 700;
    color: #4a5d23;
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 1.2rem;
}

.stat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.stat-item {
    text-align: center;
    padding: 1rem;
    background: var(--bg-tertiary);
    border-radius: 10px;
    color: var(--text-primary);
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: #8cc63e;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #6b7280;
    font-weight: 500;
    font-size: 0.9rem;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #6ba82e 0%, #8cc63e 100%);
    padding: 6rem 2rem;
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Footer */
.landing-footer {
    background: #1e293b;
    color: white;
    padding: 4rem 2rem 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-main {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    margin-bottom: 2rem;
}

.footer-brand p {
    color: #94a3b8;
    margin-top: 1rem;
    line-height: 1.6;
}

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

.footer-column h4 {
    font-weight: 600;
    color: white;
    margin-bottom: 1rem;
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    color: #94a3b8;
    margin-bottom: 0.5rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.footer-column li:hover {
    color: #8cc63e;
}

.footer-bottom {
    border-top: 1px solid #334155;
    padding-top: 2rem;
    text-align: center;
    color: #94a3b8;
}

/* CTA Button Styles */
.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    border-radius: 50px;
    border: none;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.cta-button.primary {
    background: white;
    color: #4a5d23;
}

.cta-button.primary:hover {
    background: #f8fafc;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.cta-button.large {
    padding: 1.25rem 2.5rem;
    font-size: 1.2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .stats-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .footer-main {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .dashboard-grid-preview {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }
    
    .dashboard-preview {
        min-width: auto;
        padding: 1.5rem;
    }
    
    .stat-card-preview {
        padding: 1rem;
    }
    
    .stat-value-preview {
        font-size: 1.1rem;
    }
    
    .stat-label-preview {
        font-size: 0.65rem;
    }
}
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

/* Main app */
.main-app {
    min-height: 100vh;
    background: var(--bg-tertiary);
    color: var(--text-primary);
    transition: background 0.3s ease, color 0.3s ease;
}

/* Navigation */
.navbar {
    background: var(--card-bg);
    box-shadow: 0 2px 10px var(--card-shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.3rem;
    color: #8cc63e;
}

.brand-icon {
    font-size: 1.8rem;
}

.nav-menu {
    display: flex;
    gap: 5px;
}

.mobile-menu-btn,
.mobile-menu-overlay {
    display: none;
}

.nav-item {
    padding: 10px 20px;
    border: none;
    background: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    color: var(--text-secondary);
}

.nav-item:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.nav-item.active {
    background: var(--text-accent);
    color: white;
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.user-name {
    font-weight: 500;
    color: #334155;
}

.logout-btn {
    padding: 8px 16px;
    border: 1px solid #e2e8f0;
    background: white;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 500;
    color: #64748b;
    transition: all 0.3s ease;
}

.logout-btn:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

/* Main content */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
}

.view {
    display: none;
}

.view.active {
    display: block;
}

.page-header {
    margin-bottom: 15px;
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
}

/* Dashboard title should be white in dark mode */
[data-theme="dark"] .page-header h1 {
    color: #ffffff;
}

/* Navigation items should be white in dark mode */
[data-theme="dark"] .nav-item {
    color: #ffffff;
}

[data-theme="dark"] .nav-item:hover {
    color: #ffffff;
}

/* User name should be white in dark mode */
[data-theme="dark"] .user-name {
    color: #ffffff;
}

.page-header p {
    font-size: 1.1rem;
    color: #64748b;
}

.page-header .primary-btn {
    float: right;
    margin-top: -50px;
}

/* Dashboard */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

/* For larger screens, force 5 columns */
@media (min-width: 1200px) {
    .dashboard-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

.stat-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: transform 0.3s ease;
}

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

.stat-icon {
    font-size: 2.5rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #8cc63e, #6ba82e);
    border-radius: 15px;
}

.stat-content h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.stat-content p {
    color: var(--text-secondary);
    font-weight: 500;
}

/* Games */
.games-list {
    display: grid;
    gap: 20px;
}

.game-card {
    background: var(--card-bg);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 4px 15px var(--card-shadow);
    transition: all 0.3s ease;
    color: var(--text-primary);
}

.game-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--card-shadow);
}

.game-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.game-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.game-meta {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.game-score {
    font-size: 2rem;
    font-weight: 700;
    color: #8cc63e;
}

.game-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

/* Forms */
.game-form {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    max-width: 600px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #374151;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #fafafa;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #8cc63e;
    background: white;
    box-shadow: 0 0 0 3px rgba(140, 198, 62, 0.1);
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: #64748b;
    font-size: 0.9rem;
}

/* Buttons */
.primary-btn {
    background: var(--button-bg);
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.primary-btn:hover {
    background: var(--button-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(140, 198, 62, 0.3);
}

.secondary-btn {
    background: var(--card-bg);
    color: var(--text-accent);
    padding: 12px 24px;
    border: 2px solid var(--text-accent);
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

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

.danger-btn {
    background: #dc2626;
    color: white;
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.danger-btn:hover {
    background: #b91c1c;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

/* Game Play */
.game-header {
    background: white;
    padding: 10px 20px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin-bottom: 15px;
}

.game-header h1 {
    margin: 0 0 8px 0;
    color: #1e293b;
    font-size: 1.5rem;
}

.game-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.game-progress {
    display: flex;
    gap: 12px;
    align-items: center;
}

.game-progress span {
    color: #64748b;
    font-weight: 600;
    font-size: 0.9rem;
}

.score-display {
    display: flex;
    gap: 15px;
    align-items: center;
    font-weight: 600;
}

.score-display span {
    padding: 6px 10px;
    background: rgba(140, 198, 62, 0.1);
    border-radius: 6px;
    border: 1px solid rgba(140, 198, 62, 0.2);
    color: #8cc63e;
    font-size: 0.9rem;
}

.scorecard-container {
    background: white;
    border-radius: 10px;
    padding: 10px;
    margin-bottom: 8px;
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    box-sizing: border-box;
}

/* Removed duplicate scrollbar styles - using the ones below */

.player-section {
    margin-bottom: 15px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
}

.player-header {
    background: #4a5568;
    color: white;
    padding: 10px;
    font-weight: bold;
    font-size: 1.2em;
    text-align: center;
    position: relative;
}

.player-header::after {
    content: "© VOGLER Scoring Systems";
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-family: cursive;
    font-size: 0.6em;
    font-style: italic;
    font-weight: normal;
    color: white;
}

.player-header.current {
    background: #000000;
    color: #ffffff;
}

.scorecard {
    display: grid;
    grid-template-columns: repeat(11, 1fr);
    gap: 1px;
    background: #e2e8f0;
    min-width: 800px;
    width: 100%;
}

.frame-header {
    background: #718096;
    color: white;
    padding: 8px 4px;
    text-align: center;
    font-weight: bold;
    font-size: 0.9em;
}

.frame-balls {
    background: white;
    padding: 2px;
    min-height: 60px;
    display: flex;
    align-items: stretch;
    justify-content: stretch;
    gap: 1px;
}

.ball {
    flex: 1;
    height: 100%;
    min-height: 56px;
    border: 1px solid #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    border-radius: 2px;
    cursor: pointer;
    box-sizing: border-box;
}

.ball:hover {
    background: #f0f8ff;
}

.ball.strike {
    background: #38a169;
    color: white;
}

.ball.spare {
    background: #ed8936;
    color: white;
}

.ball.headpin {
    background: #9f7aea;
    color: white;
}

.ball.corner {
    background: #ec4899;
    color: white;
}

.ball.right {
    background: #8cc63e;
    color: white;
}

.ball.left {
    background: #8cc63e;
    color: white;
}

.ball.aflag {
    background: #6b7280;
    color: white;
}

/* Mini Scorecard Styles */
.mini-scorecard {
    margin-top: 15px;
    background: var(--bg-tertiary);
    border-radius: 8px;
    padding: 10px;
    border: 1px solid var(--border-color);
}

.mini-player-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 8px;
    text-align: center;
}

.mini-scorecard-grid {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 2px;
    font-size: 0.7rem;
}

.mini-frame {
    background: white;
    border: 1px solid #cbd5e0;
    border-radius: 3px;
    padding: 2px;
    min-height: 35px;
    display: flex;
    flex-direction: column;
}

.mini-frame-balls {
    display: flex;
    gap: 1px;
    justify-content: center;
    align-items: center;
    flex: 1;
    min-height: 20px;
}

.mini-ball {
    font-size: 0.65rem;
    font-weight: bold;
    min-width: 12px;
    text-align: center;
    padding: 1px;
}

.mini-frame-score {
    background: #f7fafc;
    text-align: center;
    font-weight: bold;
    font-size: 0.65rem;
    padding: 2px 1px;
    border-top: 1px solid #e2e8f0;
    min-height: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mini-scorecard-empty {
    text-align: center;
    color: #9ca3af;
    font-style: italic;
    padding: 15px;
    background: #f9fafb;
    border-radius: 6px;
    margin-top: 10px;
}

.frame-score {
    background: #f7fafc;
    padding: 8px;
    text-align: center;
    font-weight: bold;
    font-size: 1.1em;
    color: #333;
    border-top: 1px solid #e2e8f0;
}

.total-score {
    background: #ffd700;
    color: #333;
    font-size: 1.3em;
}

.max-score {
    background: #e6f7ff;
    color: #1890ff;
    font-size: 0.9em;
    font-style: italic;
    padding: 4px 8px;
    border-top: 1px solid #d9d9d9;
}

.game-controls {
    background: var(--card-bg);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 15px var(--card-shadow);
    color: var(--text-primary);
}

/* Touch-friendly controls */
.game-controls input,
.game-controls button {
    min-height: 44px; /* Minimum touch target size */
    touch-action: manipulation; /* Prevent double-tap zoom */
}

.game-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.game-actions button {
    flex: 1;
    min-width: 120px;
}

.score-input {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.score-input label {
    font-weight: 600;
    color: #374151;
}

.score-input input {
    width: 100px;
    padding: 10px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
    background: var(--card-bg);
    color: var(--text-primary);
}

.quick-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.quick-btn {
    padding: 12px 20px;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.quick-btn.strike {
    background: #10b981;
    color: white;
}

.quick-btn.spare {
    background: #f59e0b;
    color: white;
}

.quick-btn.miss {
    background: #ef4444;
    color: white;
}

.quick-btn.undo {
    background: #6b7280;
    color: white;
}

.ball.miss {
    background: white;
    color: #666;
    border-color: #ccc;
}

.quick-btn:hover {
    transform: translateY(-2px);
}

/* Statistics */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.stats-card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 15px var(--card-shadow);
    color: var(--text-primary);
}

/* Dashboard Statistics Styling */
.dashboard-stats-container {
    max-width: 1000px;
    margin: 0 auto;
}

.dashboard-stats-row {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

.dashboard-stat-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 10px var(--card-shadow);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 16px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    color: var(--text-primary);
}

.dashboard-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.dashboard-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, #8cc63e, #6ba82e);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.dashboard-stat-content h3 {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 4px 0;
    line-height: 1;
}

.dashboard-stat-content p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0;
    font-weight: 500;
}

/* Mobile Responsive */
/* Mobile utility classes */
.mobile-only {
    display: none;
}

.desktop-only {
    display: inline;
}

@media (max-width: 768px) {
    .mobile-only {
        display: inline;
    }
    
    .desktop-only {
        display: none;
    }
    
    /* Hide current player info on mobile */
    #current-total {
        display: none;
    }
    
    .dashboard-stats-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .dashboard-stat-card {
        padding: 20px;
        gap: 12px;
    }
    
    .dashboard-stat-icon {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }
    
    .dashboard-stat-content h3 {
        font-size: 1.5rem;
    }
}

.stats-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
}

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

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

.stats-item span:first-child {
    color: var(--text-secondary);
    font-weight: 500;
}

.stats-item span:last-child {
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.1rem;
}

/* Mobile responsive scorecard */
.scorecard-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #8cc63e #f1f5f9;
}

.scorecard-container::-webkit-scrollbar {
    height: 12px;
}

.scorecard-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 6px;
}

.scorecard-container::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 6px;
}

.scorecard-container::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Removed duplicate scorecard rule - moved to main scorecard definition */

/* Player name styling */
.player-name {
    user-select: none;
    position: relative;
}

.player-name:hover::after {
    content: " ✏️";
    font-size: 0.8em;
}

.player-name:active {
    transform: translateY(1px);
}

/* Mobile responsive game info */
@media (max-width: 768px) {
    .game-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .game-progress {
        width: 100%;
        justify-content: space-between;
    }
    
    .score-display {
        width: 100%;
        justify-content: space-between;
        gap: 10px;
    }
    
    .scorecard-container {
        margin: 0 -5px;
        padding: 0 5px;
        overflow-x: hidden;
        width: calc(100% + 10px);
        box-sizing: border-box;
    }
    
    .scorecard {
        font-size: 0.8rem;
        width: 100%;
    }
    
    /* Mobile responsive scorecard - completely new approach */
    .mobile-scorecard-container {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 8px;
    }
    
    .mobile-frame-section {
        display: flex;
        width: 100%;
        gap: 2px;
    }
    
    .mobile-frame-box {
        flex: 1;
        min-width: 0;
        border: 1px solid #ccc;
        background: white;
        display: flex;
        flex-direction: column;
    }
    
    .mobile-frame-number {
        background: #f8fafc;
        text-align: center;
        font-size: 10px;
        font-weight: bold;
        padding: 2px 0;
        border-bottom: 1px solid #ccc;
    }
    
    .mobile-frame-balls {
        min-height: 24px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 10px;
        padding: 2px;
        border-bottom: 1px solid #ccc;
    }
    
    .mobile-frame-balls.current-frame {
        background: #eff6ff;
    }
    
    .mobile-frame-score {
        background: #f1f5f9;
        text-align: center;
        font-size: 10px;
        font-weight: bold;
        padding: 2px 0;
        min-height: 16px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Desktop uses original grid layout */
    .scorecard:not(:has(.mobile-row)) {
        display: grid;
        grid-template-columns: repeat(11, 1fr);
        grid-template-rows: auto auto auto;
        gap: 1px;
        min-width: 800px;
        overflow-x: auto;
    }
    
    /* Mobile 2-row layout */
    .mobile-row {
        display: flex;
        width: 100%;
        gap: 1px;
    }
    
    .mobile-row .frame {
        flex: 1;
        min-width: 0;
        display: flex;
        flex-direction: column;
        border: 1px solid #e2e8f0;
        background: white;
    }
    
    .mobile-row .frame-header,
    .mobile-row .frame-balls,
    .mobile-row .frame-score {
        padding: 1px;
        text-align: center;
        font-size: 0.6rem;
        line-height: 1.1;
        min-height: 18px;
        overflow: hidden;
        word-break: break-all;
        flex-shrink: 0;
    }
    
    .mobile-row .frame-header {
        background: #f8fafc;
        font-weight: bold;
    }
    
    .mobile-row .frame-balls {
        background: white;
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .mobile-row .frame-score {
        background: #f1f5f9;
        font-weight: bold;
    }
    
    .game-controls {
        flex-direction: column;
        gap: 15px;
    }
    
    .score-input {
        width: 100%;
        justify-content: space-between;
    }
    
    .score-input input {
        width: 80px;
        text-align: center;
    }
    
    .quick-actions {
        width: 100%;
        justify-content: space-around;
    }
    
    .game-actions {
        width: 100%;
        flex-wrap: wrap;
        justify-content: space-around;
        gap: 10px;
    }
    
    .game-actions button {
        flex: 1;
        min-width: 120px;
        margin: 5px;
    }
    .nav-content {
        flex-direction: row;
        height: 70px;
        padding: 0 20px;
        gap: 0;
        justify-content: space-between;
        align-items: center;
    }

    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-user {
        order: -1;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .features {
        grid-template-columns: 1fr;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .page-header .primary-btn {
        float: none;
        margin-top: 20px;
        display: block;
        width: fit-content;
    }

    .frame-balls {
        min-height: 70px;
        padding: 8px;
    }

    .ball {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
        margin: 2px;
    }
    
    .frame-header {
        padding: 8px;
        font-size: 0.9rem;
    }
    
    .frame-score {
        padding: 8px;
        font-size: 1.1rem;
    }
}

/* Pin Selection Interface */
.pin-scoring {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 15px;
    padding: 25px;
    margin: 20px 0;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.pin-scoring h3 {
    margin: 0 0 20px 0;
    color: #4a5568;
    font-size: 1.2em;
    font-weight: 600;
}

.scoring-mode-toggle {
    display: flex;
    background: #f1f5f9;
    border-radius: 8px;
    padding: 4px;
    margin-bottom: 20px;
    border: 1px solid #e2e8f0;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
}

.mode-btn {
    flex: 1;
    padding: 10px 16px;
    border: none;
    background: transparent;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
    color: #64748b;
    font-size: 0.9rem;
}

.mode-btn.active {
    background: white;
    color: #8cc63e;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.mode-btn:hover:not(.active) {
    color: #475569;
}

.pin-layout {
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    gap: 15px;
    margin: 25px 0;
    padding: 25px;
    background: white;
    border-radius: 12px;
    border: 2px solid #e2e8f0;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
}

.pin-row {
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: center;
}

.pin-row:nth-child(1) {
    /* Front row - single 5-pin */
    margin-bottom: 8px;
}

.pin-row:nth-child(2) {
    /* Middle row - two 3-pins */
    margin-bottom: 8px;
}

.pin-row:nth-child(3) {
    /* Back row - two 2-pins */
    gap: 100px; /* Wide spacing for proper V formation */
}

.pin {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid #4a5568;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
    color: #4a5568;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.pin:hover {
    background: #f7fafc;
    transform: scale(1.1);
    border-color: #8cc63e;
    box-shadow: 0 4px 12px rgba(140, 198, 62, 0.2);
}

.pin.hit {
    background: #8cc63e;
    color: white;
    border-color: #6ba82e;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(140, 198, 62, 0.4);
}

.pin.frame-knocked {
    background: #a0aec0;
    color: white;
    border-color: #718096;
    cursor: not-allowed;
    opacity: 0.7;
    transform: none;
}

.pin.frame-knocked:hover {
    transform: none;
    background: #a0aec0;
    border-color: #718096;
    box-shadow: none;
}

/* Headpin split styles */
.pin.headpin {
    position: relative;
    padding: 0;
}

.headpin-left,
.headpin-right {
    position: absolute;
    top: 0;
    width: 50%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
    color: #4a5568;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.headpin-left {
    left: 0;
    border-radius: 50% 0 0 50%;
}

.headpin-right {
    right: 0;
    border-radius: 0 50% 50% 0;
}

.headpin-left:hover,
.headpin-right:hover {
    background: rgba(140, 198, 62, 0.2);
}

.headpin-left.hit,
.headpin-right.hit {
    background: #8cc63e;
    color: white;
}

.headpin-divider {
    position: absolute;
    top: 5px;
    bottom: 5px;
    left: 50%;
    width: 2px;
    background: #4a5568;
    transform: translateX(-50%);
    z-index: 1;
}

.pin-scoring-controls {
    margin-top: 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.pin-total {
    font-size: 1.4em;
    font-weight: bold;
    color: #8cc63e;
    margin: 0;
    padding: 10px 20px;
    background: white;
    border-radius: 8px;
    border: 2px solid #e2e8f0;
    min-width: 120px;
}

.pin-controls-row {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.pin-quick-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e2e8f0;
}

.pin-btn {
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    min-height: 44px;
}

.pin-btn.confirm {
    background: #10b981;
    color: white;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.pin-btn.confirm:hover {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.pin-btn.confirm:disabled {
    background: #d1d5db;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.pin-btn.reset {
    background: #6b7280;
    color: white;
}

.pin-btn.reset:hover {
    background: #4b5563;
    transform: translateY(-2px);
}

.pin-btn.strike {
    background: #10b981;
    color: white;
}

.pin-btn.strike:hover {
    background: #059669;
    transform: translateY(-2px);
}

.pin-btn.spare {
    background: #f59e0b;
    color: white;
}

.pin-btn.spare:hover {
    background: #d97706;
    transform: translateY(-2px);
}

.pin-btn.miss {
    background: #ef4444;
    color: white;
}

.pin-btn.miss:hover {
    background: #dc2626;
    transform: translateY(-2px);
}

.pin-btn.undo {
    background: #6366f1;
    color: white;
}

.pin-btn.undo:hover {
    background: #4f46e5;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    body {
        padding: 5px;
    }
    
    .main-content {
        padding: 10px;
    }
    
    .scorecard-container {
        margin: 10px -10px;
        padding: 0;
        overflow: hidden; /* Hide default scrollbars */
        border: 1px solid #e2e8f0;
        border-radius: 8px;
        background: white;
        width: calc(100vw - 20px);
        max-width: none;
        position: relative;
    }
    
    .scorecard {
        min-width: 1200px; /* Force content to be wider than container */
        width: max-content;
        transition: transform 0.3s ease;
    }
    

    
    .scorecard {
        font-size: 0.75em;
        min-width: 1050px;
        width: 1050px;
        display: grid;
        grid-template-columns: repeat(11, 95px);
        margin: 10px;
        border-collapse: separate;
        border-spacing: 0;
    }
    
    .frame {
        border: 2px solid #e2e8f0;
        border-right: none;
        min-width: 90px;
    }
    
    .frame:last-child {
        border-right: 2px solid #e2e8f0;
    }
    
    .ball {
        width: 20px;
        height: 20px;
        font-size: 11px;
        min-height: 20px;
        line-height: 20px;
        font-weight: 600;
    }
    
    .frame-header {
        padding: 8px 4px;
        font-size: 0.9em;
        min-width: 86px;
        font-weight: 700;
        background: #f8fafc;
        text-align: center;
        color: #374151;
        border-bottom: 1px solid #e2e8f0;
    }
    
    .frame-balls {
        min-height: 55px;
        padding: 6px 4px;
        min-width: 86px;
        display: flex;
        flex-wrap: wrap;
        gap: 3px;
        align-items: center;
        justify-content: center;
    }
    
    .frame-score {
        padding: 8px 4px;
        font-size: 1.1em;
        min-width: 86px;
        font-weight: 700;
        background: #f8fafc;
        text-align: center;
        color: #111827;
        border-top: 1px solid #e2e8f0;
    }
    
    .game-controls {
        padding: 15px 10px;
        margin-top: 10px;
    }
    
    /* Mobile scroll hint */
    .mobile-scroll-hint {
        text-align: center;
        font-size: 0.75rem;
        color: #64748b;
        margin: 5px 0;
        padding: 0 10px;
    }
    
    /* Pin selection mobile adjustments */
    .pin-layout {
        max-width: 300px;
        margin: 0 auto;
    }
    
    .pin {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
    
    .pin-controls-row {
        gap: 8px;
    }
    
    .pin-btn {
        padding: 10px 12px;
        font-size: 0.9rem;
    }
    
    .pin-quick-actions {
        gap: 6px;
    }
    
    .pin-quick-actions .pin-btn {
        padding: 8px 10px;
        font-size: 0.8rem;
    }
    
    /* Mobile game header adjustments */
    .game-header {
        padding: 10px 15px;
        margin: 0 -10px 15px -10px;
        background: #f8fafc;
        border-radius: 8px;
    }
    
    .game-header h1 {
        font-size: 1.5rem;
        margin-bottom: 10px;
    }
    
    .game-info {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }
    
    .game-progress,
    .score-display {
        font-size: 0.9rem;
    }
    
    .score-display {
        display: flex;
        gap: 15px;
    }
    
    /* Mobile navigation adjustments */
    .nav-menu {
        display: none;
    }
    
    .nav-user {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 40px;
        height: 40px;
        background: none;
        border: none;
        cursor: pointer;
        padding: 8px;
        border-radius: 6px;
        transition: background-color 0.2s ease;
    }
    
    .mobile-menu-btn:hover {
        background: #f1f5f9;
    }
    
    .burger-line {
        width: 24px;
        height: 3px;
        background: #64748b;
        margin: 2px 0;
        transition: 0.3s ease;
        border-radius: 2px;
    }
    
    .mobile-menu-btn.active .burger-line:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
        background: #8cc63e;
    }
    
    .mobile-menu-btn.active .burger-line:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-btn.active .burger-line:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
        background: #8cc63e;
    }
    
    .mobile-menu-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1000;
        backdrop-filter: blur(4px);
    }
    
    .mobile-menu-overlay.active {
        display: flex;
        animation: fadeIn 0.3s ease;
    }
    
    .mobile-menu-content {
        background: white;
        width: 100%;
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        padding: 80px 20px 40px 20px;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    }
    
    .mobile-nav-items {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }
    
    .mobile-nav-item {
        display: flex;
        align-items: center;
        gap: 16px;
        padding: 20px 24px;
        background: none;
        border: none;
        border-radius: 12px;
        cursor: pointer;
        transition: all 0.2s ease;
        font-size: 1.1rem;
        font-weight: 500;
        color: #334155;
        text-align: left;
        width: 100%;
    }
    
    .mobile-nav-item:hover {
        background: #f8fafc;
        transform: translateX(4px);
    }
    
    .mobile-nav-item.active {
        background: #8cc63e;
        color: white;
    }
    
    .mobile-nav-item.active:hover {
        background: #6ba82e;
    }
    
    .mobile-nav-icon {
        font-size: 1.4rem;
        width: 24px;
        text-align: center;
    }
    
    .mobile-user-section {
        border-top: 1px solid #e2e8f0;
        padding-top: 20px;
        display: flex;
        flex-direction: column;
        gap: 16px;
    }
    
    .mobile-user-info {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 16px 24px;
        background: #f8fafc;
        border-radius: 12px;
    }
    
    .mobile-user-avatar {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        object-fit: cover;
    }
    
    .mobile-user-name {
        font-weight: 500;
        color: #334155;
        font-size: 1rem;
    }
    
    .mobile-logout-btn {
        padding: 16px 24px;
        background: #ef4444;
        color: white;
        border: none;
        border-radius: 12px;
        cursor: pointer;
        font-size: 1rem;
        font-weight: 500;
        transition: background-color 0.2s ease;
    }
    
    .mobile-logout-btn:hover {
        background: #dc2626;
    }
    
    @keyframes fadeIn {
        from {
            opacity: 0;
        }
        to {
            opacity: 1;
        }
    }
    
    /* Mobile dashboard adjustments */
    .dashboard-stats-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .dashboard-stat-card {
        padding: 16px;
        gap: 12px;
    }
    
    .dashboard-stat-icon {
        width: 36px;
        height: 36px;
        font-size: 1.2rem;
    }
    
    .dashboard-stat-content h3 {
        font-size: 1.4rem;
    }
    
    .dashboard-stat-content p {
        font-size: 0.8rem;
    }
}