* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

/* Mobile touch optimizations */
body {
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    touch-action: manipulation;
}

/* Improve touch targets */
button, 
input, 
.login-btn {
    min-height: 44px;
    touch-action: manipulation;
}

/* Prevent iOS zooming on inputs */
@supports (-webkit-overflow-scrolling: touch) {
    input[type="text"],
    input[type="password"] {
        font-size: 16px;
    }
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Override body background for login page */
body:has(#loginPage.active) {
    background: none;
}

/* Page Management */
.page {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.page.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Login Page Styles - Center of Universe Cosmic Theme */
body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow-x: hidden;
}

.login-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    min-width: 100vw;
    padding: 10px;
    background: 
        radial-gradient(ellipse at 20% 50%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(255, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(ellipse at 40% 80%, rgba(120, 219, 255, 0.3) 0%, transparent 50%),
        linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
    background-size: 150% 150%, 150% 150%, 150% 150%, 100% 100%;
    animation: universeShift 40s ease-in-out infinite;
    overflow: hidden;
}

/* Galaxy spiral arms */
.login-container {
    position: relative;
}

/* Creating galaxy arms with additional element - LOGIN PAGE ONLY */
body:has(#loginPage.active)::before {
    content: '';
    position: fixed;
    top: 50%;
    left: 50%;
    width: 150vmax;
    height: 150vmax;
    transform: translate(-50%, -50%);
    background: 
        conic-gradient(from 0deg at 50% 50%, 
            transparent 0deg,
            rgba(166, 99, 204, 0.2) 30deg,
            rgba(79, 172, 254, 0.25) 60deg,
            transparent 90deg,
            transparent 180deg,
            rgba(114, 9, 183, 0.2) 210deg,
            rgba(255, 255, 255, 0.1) 240deg,
            transparent 270deg,
            transparent 360deg);
    mask: radial-gradient(ellipse 60% 20% at 50% 50%, black 20%, transparent 80%);
    -webkit-mask: radial-gradient(ellipse 60% 20% at 50% 50%, black 20%, transparent 80%);
    animation: galaxyArms 120s linear infinite reverse;
    pointer-events: none;
    z-index: 0;
    opacity: 0.2;
}

@keyframes galaxyArms {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Universe background animation */
@keyframes universeShift {
    0%, 100% {
        background: 
            radial-gradient(ellipse at 20% 50%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
            radial-gradient(ellipse at 80% 20%, rgba(255, 119, 198, 0.3) 0%, transparent 50%),
            radial-gradient(ellipse at 40% 80%, rgba(120, 219, 255, 0.3) 0%, transparent 50%),
            linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
        background-size: 150% 150%, 150% 150%, 150% 150%, 100% 100%;
    }
    25% {
        background: 
            radial-gradient(ellipse at 80% 30%, rgba(166, 99, 204, 0.4) 0%, transparent 50%),
            radial-gradient(ellipse at 20% 80%, rgba(79, 172, 254, 0.3) 0%, transparent 50%),
            radial-gradient(ellipse at 60% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
            linear-gradient(135deg, #1a0d2e 0%, #0f0f23 50%, #2e1065 100%);
        background-size: 150% 150%, 150% 150%, 150% 150%, 100% 100%;
    }
    50% {
        background: 
            radial-gradient(ellipse at 30% 70%, rgba(114, 9, 183, 0.4) 0%, transparent 50%),
            radial-gradient(ellipse at 70% 30%, rgba(79, 172, 254, 0.3) 0%, transparent 50%),
            radial-gradient(ellipse at 50% 50%, rgba(255, 255, 255, 0.05) 0%, transparent 50%),
            linear-gradient(135deg, #16213e 0%, #1a1a2e 50%, #0a0a2e 100%);
        background-size: 150% 150%, 150% 150%, 150% 150%, 100% 100%;
    }
    75% {
        background: 
            radial-gradient(ellipse at 60% 20%, rgba(79, 172, 254, 0.4) 0%, transparent 50%),
            radial-gradient(ellipse at 30% 60%, rgba(166, 99, 204, 0.3) 0%, transparent 50%),
            radial-gradient(ellipse at 80% 80%, rgba(255, 119, 198, 0.2) 0%, transparent 50%),
            linear-gradient(135deg, #0f0f23 0%, #2e1065 50%, #1a0d2e 100%);
        background-size: 150% 150%, 150% 150%, 150% 150%, 100% 100%;
    }
}

/* Floating stars animation */
.login-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background-image: 
        radial-gradient(circle at 15% 25%, rgba(255, 255, 255, 0.9) 1px, transparent 1px),
        radial-gradient(circle at 85% 15%, rgba(166, 99, 204, 0.8) 1px, transparent 1px),
        radial-gradient(circle at 45% 75%, rgba(79, 172, 254, 0.7) 1px, transparent 1px),
        radial-gradient(circle at 75% 85%, rgba(255, 255, 255, 0.6) 1px, transparent 1px),
        radial-gradient(circle at 25% 60%, rgba(114, 9, 183, 0.8) 1px, transparent 1px),
        radial-gradient(circle at 90% 40%, rgba(255, 255, 255, 0.9) 1px, transparent 1px),
        radial-gradient(circle at 60% 30%, rgba(83, 52, 131, 0.7) 1px, transparent 1px),
        radial-gradient(circle at 20% 10%, rgba(255, 255, 255, 0.5) 1px, transparent 1px),
        radial-gradient(circle at 80% 70%, rgba(79, 172, 254, 0.6) 1px, transparent 1px),
        radial-gradient(circle at 40% 90%, rgba(166, 99, 204, 0.7) 1px, transparent 1px),
        radial-gradient(circle at 65% 5%, rgba(255, 255, 255, 0.8) 1px, transparent 1px),
        radial-gradient(circle at 10% 80%, rgba(114, 9, 183, 0.6) 1px, transparent 1px);
    background-size: 15vmax 15vmax, 12vmax 12vmax, 14vmax 14vmax, 16vmax 16vmax, 13vmax 13vmax, 14.5vmax 14.5vmax, 13.5vmax 13.5vmax, 12vmax 12vmax, 15.5vmax 15.5vmax, 11.5vmax 11.5vmax, 17.5vmax 17.5vmax, 10vmax 10vmax;
    animation: floatingStars 45s linear infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes floatingStars {
    0% { 
        transform: translateY(100vh) translateX(0px) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% { 
        transform: translateY(-100vh) translateX(50px) rotate(360deg);
        opacity: 0;
    }
}

/* Galaxy effect in the center */
.login-container::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120vmax;
    height: 120vmax;
    transform: translate(-50%, -50%);
    background: 
        radial-gradient(ellipse 40% 15% at 50% 50%, rgba(255, 255, 255, 0.4) 0%, rgba(166, 99, 204, 0.3) 20%, rgba(114, 9, 183, 0.2) 40%, transparent 70%),
        radial-gradient(ellipse 35% 12% at 50% 50%, rgba(79, 172, 254, 0.35) 0%, rgba(120, 119, 198, 0.25) 30%, transparent 60%),
        radial-gradient(ellipse 25% 8% at 50% 50%, rgba(255, 255, 255, 0.5) 0%, rgba(166, 99, 204, 0.35) 25%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.15) 0%, rgba(114, 9, 183, 0.1) 15%, transparent 30%);
    animation: galaxyRotation 60s linear infinite;
    pointer-events: none;
    z-index: 1;
    opacity: 0.3;
}

@keyframes galaxyRotation {
    0% { 
        transform: translate(-50%, -50%) rotate(0deg) scale(1);
        opacity: 0.6;
    }
    25% {
        transform: translate(-50%, -50%) rotate(90deg) scale(1.1);
        opacity: 0.8;
    }
    50% { 
        transform: translate(-50%, -50%) rotate(180deg) scale(1);
        opacity: 0.7;
    }
    75% {
        transform: translate(-50%, -50%) rotate(270deg) scale(1.1);
        opacity: 0.8;
    }
    100% { 
        transform: translate(-50%, -50%) rotate(360deg) scale(1);
        opacity: 0.6;
    }
}

.login-card {
    position: relative;
    background: rgba(26, 0, 51, 0.95);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    padding: 40px 30px;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.4),
        0 15px 35px rgba(0, 0, 0, 0.3),
        0 5px 15px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        0 0 60px rgba(114, 9, 183, 0.15),
        0 0 100px rgba(79, 172, 254, 0.1);
    width: 100%;
    max-width: 420px;
    min-height: fit-content;
    max-height: 90vh;
    transform: translateY(0) scale(1);
    transition: all 0.3s ease;
    overflow: hidden;
    animation: cardMaterialize 1s ease-out;
    z-index: 100;
    flex-shrink: 0;
}

.login-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 
        0 35px 70px rgba(0, 0, 0, 0.5),
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 10px 20px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 0 80px rgba(114, 9, 183, 0.2),
        0 0 120px rgba(79, 172, 254, 0.15);
}

/* Remove the animated border effect */
.login-card::before {
    display: none;
}

@keyframes cosmicBorder {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Cosmic particles inside card */
.login-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 20%, rgba(166, 99, 204, 0.1) 1px, transparent 1px),
        radial-gradient(circle at 80% 30%, rgba(79, 172, 254, 0.1) 1px, transparent 1px),
        radial-gradient(circle at 40% 80%, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 50px 50px, 70px 70px, 60px 60px;
    animation: cardParticles 15s linear infinite;
    pointer-events: none;
    border-radius: 25px;
}

@keyframes cardParticles {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(-100%); opacity: 0.5; }
}

@keyframes cardMaterialize {
    0% { 
        opacity: 0; 
        transform: translateY(30px);
    }
    100% { 
        opacity: 1; 
        transform: translateY(0);
    }
}

.login-header {
    text-align: center;
    margin-bottom: 40px;
    animation: headerMaterialize 1.5s ease-out 0.5s both;
}

@keyframes headerMaterialize {
    0% { 
        opacity: 0; 
        transform: translateY(-50px) scale(0.8);
    }
    100% { 
        opacity: 1; 
        transform: translateY(0) scale(1);
    }
}

.login-header h1 {
    color: #ffffff;
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 15px;
    text-shadow: none;
    letter-spacing: -1px;
    position: relative;
}

.login-header h1::before {
    content: '✨ 🌌 ✨';
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.2rem;
    animation: starTwinkle 2s ease-in-out infinite;
}

@keyframes starTwinkle {
    0%, 100% { opacity: 0.6; transform: translateX(-50%) scale(1); }
    50% { opacity: 1; transform: translateX(-50%) scale(1.2); }
}

@keyframes cosmicTextFlow {
    0% { 
        background-position: 0% 50%;
        filter: drop-shadow(0 0 10px rgba(166, 99, 204, 0.8));
    }
    100% { 
        background-position: 100% 50%;
        filter: drop-shadow(0 0 20px rgba(79, 172, 254, 0.8));
    }
}

.input-group {
    position: relative;
    margin-bottom: 25px;
    animation: inputMaterialize 0.8s ease-out both;
    display: flex;
    align-items: center;
    gap: 15px;
}

.input-group:nth-child(2) { animation-delay: 0.6s; }
.input-group:nth-child(3) { animation-delay: 0.8s; }

@keyframes inputMaterialize {
    0% { 
        opacity: 0; 
        transform: translateX(-80px) rotateX(45deg);
    }
    100% { 
        opacity: 1; 
        transform: translateX(0) rotateX(0deg);
    }
}

.input-group i {
    color: #ffffff;
    font-size: 1.3rem;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    min-width: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    order: -1;
}

.input-group input {
    width: 100%;
    padding: 20px 25px;
    border: 2px solid rgba(166, 99, 204, 0.3);
    border-radius: 15px;
    font-size: 1.1rem;
    font-weight: 500;
    background: #ffffff;
    color: #000000;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-sizing: border-box;
    backdrop-filter: blur(10px);
}

.input-group input::placeholder {
    color: #999999;
    font-weight: 400;
}

.input-group input:focus {
    outline: none;
    border-color: rgba(79, 172, 254, 0.8);
    background: #ffffff;
    box-shadow: 
        0 0 0 4px rgba(79, 172, 254, 0.2),
        0 0 20px rgba(79, 172, 254, 0.3) inset,
        0 0 30px rgba(166, 99, 204, 0.2);
    transform: translateY(-3px);
}

.input-group:focus-within i {
    color: #ffffff;
    transform: scale(1.1);
}

.login-btn {
    width: 100%;
    padding: 20px;
    background: linear-gradient(135deg, 
        #7209b7 0%,
        #4facfe 100%);
    border: none;
    border-radius: 15px;
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 15px;
    animation: buttonMaterialize 1s ease-out 1s both;
    backdrop-filter: blur(10px);
}

@keyframes buttonMaterialize {
    0% { 
        opacity: 0; 
        transform: translateY(80px) scale(0.8);
    }
    100% { 
        opacity: 1; 
        transform: translateY(0) scale(1);
    }
}

.login-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.4), 
        transparent);
    transition: left 0.8s ease;
}

.login-btn:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(79, 172, 254, 0.4) inset,
        0 0 50px rgba(114, 9, 183, 0.3),
        0 0 80px rgba(166, 99, 204, 0.2);
    border-color: #4facfe;
    background: linear-gradient(135deg, 
        #4facfe 0%,
        #7209b7 100%);
}

.login-btn:hover::before {
    left: 100%;
}

.login-btn:active {
    transform: translateY(-3px) scale(0.98);
}

.login-btn i {
    transition: transform 0.3s ease;
}

.login-btn:hover i {
    transform: translateX(8px) rotate(15deg);
}

/* Loading state for login button */
.login-btn.loading {
    pointer-events: none;
}

.login-btn.loading::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 24px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    animation: cosmicSpin 1s linear infinite;
}

@keyframes cosmicSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.error-message {
    color: #ff6b6b;
    background: rgba(255, 107, 107, 0.1);
    border: 1px solid rgba(255, 107, 107, 0.4);
    backdrop-filter: blur(10px);
    text-align: center;
    margin-top: 20px;
    padding: 15px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 500;
    display: none;
    animation: errorPulse 0.6s ease-in-out;
    box-shadow: 0 0 20px rgba(255, 107, 107, 0.2);
}

@keyframes errorPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Success message styles */
.success-message {
    color: #51cf66;
    background: rgba(81, 207, 102, 0.1);
    border: 1px solid rgba(81, 207, 102, 0.4);
    backdrop-filter: blur(10px);
    text-align: center;
    margin-top: 20px;
    padding: 15px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 500;
    display: none;
    animation: successGlow 0.8s ease-out;
    box-shadow: 0 0 20px rgba(81, 207, 102, 0.2);
}

@keyframes successGlow {
    0% { transform: scale(0.9); opacity: 0; }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}

/* Responsive enhancements */
/* Tablet and smaller laptop screens */
@media (max-width: 768px) {
    .login-container {
        padding: 15px;
    }
    
    .login-card {
        padding: 35px 25px;
        max-width: 380px;
        border-radius: 20px;
    }
    
    .login-header h1 {
        font-size: 2.5rem;
    }
    
    .input-group input {
        padding: 16px 16px 16px 55px;
        font-size: 1rem;
    }
    
    .login-btn {
        padding: 18px;
        font-size: 1.1rem;
    }
    
    /* Adjust galaxy effects for tablets - LOGIN PAGE ONLY */
    body:has(#loginPage.active)::before {
        width: 120vmax;
        height: 120vmax;
        opacity: 0.15;
    }
    
    .login-container::after {
        width: 100vmax;
        height: 100vmax;
        opacity: 0.25;
    }
}

/* Mobile phones */
@media (max-width: 480px) {
    .login-container {
        padding: 10px;
        align-items: center;
        justify-content: center;
    }
    
    .login-card {
        padding: 30px 20px;
        margin: 10px;
        max-width: 90%;
        width: auto;
        min-height: auto;
        max-height: 85vh;
        border-radius: 18px;
        flex-shrink: 0;
    }
    
    .login-header {
        margin-bottom: 30px;
    }
    
    .login-header h1 {
        font-size: 2rem;
        margin-bottom: 8px;
    }
    
    .login-header p {
        font-size: 0.9rem;
    }
    
    .input-group {
        margin-bottom: 20px;
    }
    
    .input-group input {
        padding: 15px 15px 15px 50px;
        font-size: 16px; /* Prevents zoom on iOS */
        border-radius: 12px;
    }
    
    .input-group i {
        left: 18px;
        font-size: 1.1rem;
    }
    
    .login-btn {
        padding: 16px;
        font-size: 1rem;
        margin-top: 10px;
        border-radius: 12px;
    }
    
    /* Reduce galaxy effects on mobile for performance - LOGIN PAGE ONLY */
    body:has(#loginPage.active)::before {
        width: 100vmax;
        height: 100vmax;
        opacity: 0.1;
        animation-duration: 180s; /* Slower for mobile */
    }
    
    .login-container::after {
        width: 80vmax;
        height: 80vmax;
        opacity: 0.2;
        animation-duration: 90s; /* Slower for mobile */
    }
    
    .login-container::before {
        background-size: 10vmax 10vmax, 8vmax 8vmax, 9vmax 9vmax, 11vmax 11vmax, 8.5vmax 8.5vmax, 9.5vmax 9.5vmax, 9vmax 9vmax, 8vmax 8vmax, 10vmax 10vmax, 7.5vmax 7.5vmax, 12vmax 12vmax, 7vmax 7vmax;
    }
}

/* Very small phones */
@media (max-width: 360px) {
    .navbar {
        padding: 0.5rem;
    }
    
    .nav-brand h2 {
        font-size: 1rem;
    }
    
    .welcome-message {
        font-size: 0.7rem;
    }
    
    .nav-menu {
        gap: 0.3rem;
    }
    
    .nav-link {
        padding: 6px 8px;
        font-size: 0.7rem;
        border-radius: 15px;
    }
    
    .nav-link span {
        display: none; /* Hide text, show only icons */
    }
    
    .nav-link i {
        font-size: 1rem;
        margin: 0;
    }

    .login-card {
        padding: 25px 15px;
        border-radius: 15px;
        margin: 5px;
        max-width: 95%;
        width: auto;
    }
    
    .login-header h1 {
        font-size: 1.8rem;
    }
    
    .input-group input {
        padding: 14px 14px 14px 45px;
    }
    
    .input-group i {
        left: 15px;
        font-size: 1rem;
    }
    
    .login-btn {
        padding: 14px;
        font-size: 0.95rem;
    }
}

/* Landscape orientation on mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .login-container {
        align-items: center;
        padding: 5px;
    }
    
    .login-card {
        padding: 20px 25px;
        max-height: 90vh;
        overflow-y: auto;
    }
    
    .login-header {
        margin-bottom: 20px;
    }
    
    .login-header h1 {
        font-size: 1.8rem;
        margin-bottom: 5px;
    }
    
    .input-group {
        margin-bottom: 15px;
    }
    
    /* Reduce animations in landscape for better performance - LOGIN PAGE ONLY */
    body:has(#loginPage.active)::before,
    .login-container::after {
        animation-play-state: paused;
    }
}

/* Very tall screens - prevent excessive stretching */
@media (min-height: 800px) {
    .login-container {
        padding: 40px 20px;
    }
    
    .login-card {
        max-height: 600px;
    }
}

/* Ultra tall screens (like some modern phones) */
@media (min-height: 1000px) {
    .login-container {
        padding: 60px 20px;
    }
    
    .login-card {
        max-height: 550px;
        align-self: center;
    }
}

/* Dashboard Styles */
#dashboardPage {
    background: #f8f9ff;
    min-height: 100vh;
}

/* Navigation Bar */
.navbar {
    background: linear-gradient(135deg, #667eea, #764ba2);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-brand h2 {
    color: white;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.welcome-message {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: 8px;
}

.welcome-message i {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
}

#currentUsername {
    font-weight: 600;
    color: #ffffff;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 500;
    padding: 10px 20px;
    border-radius: 25px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link:hover, .nav-link.active {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    transform: translateY(-2px);
}

.nav-link.logout:hover {
    background: rgba(231, 76, 60, 0.2);
    color: #ff6b6b;
}

/* Content Areas */
.content {
    display: none;
    padding: 2rem;
    animation: slideIn 0.5s ease-out;
}

.content.active {
    display: block;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Dashboard Content */
.dashboard-header {
    text-align: center;
    margin-bottom: 3rem;
}

.dashboard-header h1 {
    font-size: 2.2rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.dashboard-header p {
    font-size: 1rem;
    color: #666;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    max-width: 1400px;
    margin: 0 auto 3rem auto;
}

.stat-card {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
}

.stat-icon {
    font-size: 2rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.25);
}

.stat-info h3 {
    font-size: 1.6rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0.3rem;
}

.stat-info p {
    color: #666;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Today's Session Section */
.todays-session-container {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    margin: 2rem auto;
    max-width: 1200px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f0f2f5;
}

.section-header h2 {
    color: #333;
    font-size: 1.5rem;
    margin: 0;
}

.session-date {
    color: #666;
    font-size: 1rem;
    font-weight: 500;
}

.todays-sessions {
    display: grid;
    gap: 1rem;
}

.today-session-card {
    background: linear-gradient(135deg, #f8f9ff, #e8f4f8);
    border-radius: 15px;
    padding: 1.5rem;
    border-left: 4px solid #667eea;
    transition: all 0.3s ease;
}

.today-session-card:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.15);
}

.session-game {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1rem;
}

.session-rating-notes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.rating-section {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.rating-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.today-star-rating {
    display: flex;
    gap: 3px;
    margin-bottom: 0.5rem;
}

.today-star {
    font-size: 1.1rem;
    color: #ddd;
    cursor: pointer;
    transition: all 0.2s ease;
}

.today-star:hover, .today-star.active {
    color: #ffd700;
    transform: scale(1.1);
}

.today-notes {
    width: 100%;
    padding: 8px 12px;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    font-size: 0.9rem;
    resize: vertical;
    min-height: 60px;
    background: white;
    transition: all 0.3s ease;
}

.today-notes:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.today-save-btn {
    background: linear-gradient(135deg, #00b894, #00a085);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
}

.today-save-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 184, 148, 0.3);
}

.no-sessions-today {
    text-align: center;
    padding: 3rem;
    color: #999;
}

.no-sessions-today .empty-state i {
    font-size: 3rem;
    color: #ddd;
    margin-bottom: 1rem;
}

.no-sessions-today h3 {
    color: #666;
    margin-bottom: 0.5rem;
}

.no-sessions-today p {
    color: #999;
}

/* Games Content */
.games-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.games-header h1 {
    font-size: 2rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.add-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.add-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

/* Form Styles */
.form-container {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    animation: slideDown 0.3s ease-out;
}

.form-container.hidden {
    display: none;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.form-card h3 {
    color: #333;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
}

.input-group input, .input-group select, .input-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e1e1e1;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
}

.input-group input:focus, .input-group select:focus, .input-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.input-group textarea {
    resize: vertical;
    min-height: 80px;
}

/* Star Rating */
.star-rating {
    display: flex;
    gap: 5px;
    margin-top: 5px;
}

.star {
    font-size: 1.5rem;
    color: #ddd;
    cursor: pointer;
    transition: all 0.2s ease;
}

.star:hover, .star.active {
    color: #ffd700;
    transform: scale(1.1);
}

.star.active {
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
}

.cancel-btn, .submit-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cancel-btn {
    background: #f8f9fa;
    color: #666;
    border: 2px solid #e1e1e1;
}

.cancel-btn:hover {
    background: #e9ecef;
    transform: translateY(-2px);
}

.submit-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

/* Table Styles */
.table-container {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    overflow-x: auto;
}

.sessions-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.sessions-table th {
    background: linear-gradient(135deg, #e8f4f8, #d1ecf1);
    color: #2c3e50;
    padding: 12px 8px;
    text-align: left;
    font-weight: 500;
    font-size: 0.85rem;
    border-bottom: 2px solid #bde4f4;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sessions-table th:first-child {
    border-radius: 8px 0 0 0;
}

.sessions-table th:last-child {
    border-radius: 0 8px 0 0;
}

.sessions-table td {
    padding: 12px 8px;
    border-bottom: 1px solid #f8f9fa;
    vertical-align: middle;
}

.sessions-table tr:hover {
    background: rgba(232, 244, 248, 0.3);
}

.sessions-table tr:last-child td {
    border-bottom: none;
}

.star-display {
    color: #ffd700;
    font-size: 1.1rem;
}

.edit-btn, .delete-btn {
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.8rem;
    margin-right: 5px;
}

.edit-btn {
    background: linear-gradient(135deg, #74b9ff, #0984e3);
    color: white;
}

.edit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(116, 185, 255, 0.3);
}

.delete-btn {
    background: linear-gradient(135deg, #fd79a8, #e84393);
    color: white;
}

.delete-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(253, 121, 168, 0.3);
}

/* Inline editing styles */
.inline-star-rating {
    display: flex;
    gap: 2px;
    margin: 2px 0;
}

.inline-star {
    font-size: 1rem;
    color: #ddd;
    cursor: pointer;
    transition: all 0.2s ease;
}

.inline-star:hover, .inline-star.active {
    color: #ffd700;
}

.inline-notes {
    width: 100%;
    min-width: 120px;
    padding: 4px 6px;
    border: 1px solid #e1e8ed;
    border-radius: 4px;
    font-size: 0.8rem;
    resize: vertical;
    min-height: 30px;
    max-height: 60px;
}

.inline-notes:focus {
    outline: none;
    border-color: #74b9ff;
    box-shadow: 0 0 0 2px rgba(116, 185, 255, 0.2);
}

/* Inline date and game editing styles */
.inline-date-input {
    width: 100%;
    min-width: 120px;
    padding: 4px 6px;
    border: 1px solid #e1e8ed;
    border-radius: 4px;
    font-size: 0.8rem;
    background: white;
    cursor: pointer;
}

.inline-date-input:focus {
    outline: none;
    border-color: #74b9ff;
    box-shadow: 0 0 0 2px rgba(116, 185, 255, 0.2);
}

.inline-game-input {
    width: 100%;
    min-width: 140px;
    padding: 4px 6px;
    border: 1px solid #e1e8ed;
    border-radius: 4px;
    font-size: 0.8rem;
    background: white;
}

.inline-game-input:focus {
    outline: none;
    border-color: #74b9ff;
    box-shadow: 0 0 0 2px rgba(116, 185, 255, 0.2);
}

.inline-day-display {
    font-size: 0.8rem;
    color: #636e72;
    font-style: italic;
    display: block;
    text-align: center;
    padding: 4px;
    background: rgba(116, 185, 255, 0.1);
    border-radius: 4px;
    border: 1px solid rgba(116, 185, 255, 0.2);
}

/* Today's session editing styles */
.session-header {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
    padding: 10px;
    background: rgba(116, 185, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(116, 185, 255, 0.1);
}

.session-game-edit,
.session-date-edit {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.session-game-edit label,
.session-date-edit label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #2d3436;
}

.today-game-input,
.today-date-input {
    padding: 6px 8px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.9rem;
    background: white;
    transition: all 0.2s ease;
}

.today-game-input:focus,
.today-date-input:focus {
    outline: none;
    border-color: #74b9ff;
    box-shadow: 0 0 0 2px rgba(116, 185, 255, 0.2);
}

.today-update-basic-btn {
    background: #0984e3;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.2s ease;
    align-self: flex-start;
}

.today-update-basic-btn:hover {
    background: #0770c2;
    transform: translateY(-1px);
}

.today-update-basic-btn:active {
    transform: translateY(0);
}

.today-update-basic-btn:disabled {
    background: #bbb;
    cursor: not-allowed;
    transform: none;
}

.save-btn, .cancel-btn {
    border: none;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.7rem;
    margin: 2px;
    transition: all 0.2s ease;
}

.save-btn {
    background: #00b894;
    color: white;
}

.save-btn:hover {
    background: #00a085;
}

.cancel-btn {
    background: #636e72;
    color: white;
}

.cancel-btn:hover {
    background: #2d3436;
}

/* Empty State */
.no-sessions {
    display: none;
    text-align: center;
    padding: 3rem;
}

.empty-state i {
    font-size: 4rem;
    color: #ddd;
    margin-bottom: 1rem;
}

.empty-state h3 {
    color: #666;
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: #999;
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    .nav-menu {
        gap: 1rem;
    }

    .content {
        padding: 1rem;
    }

    .dashboard-header h1 {
        font-size: 2rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .games-header {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .form-actions {
        flex-direction: column;
    }

    .sessions-table {
        font-size: 0.8rem;
    }

    .sessions-table th, .sessions-table td {
        padding: 10px 5px;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 0.8rem;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .nav-brand h2 {
        font-size: 1.1rem;
        margin-bottom: 0;
        text-align: center;
    }
    
    .welcome-message {
        font-size: 0.8rem;
        text-align: center;
    }
    
    .nav-menu {
        gap: 0.5rem;
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
    }
    
    .nav-link {
        padding: 8px 12px;
        font-size: 0.8rem;
        border-radius: 20px;
        min-width: auto;
        text-align: center;
    }
    
    .nav-link i {
        font-size: 0.9rem;
    }

    .login-card {
        padding: 30px 20px;
    }

    .login-header h1 {
        font-size: 2rem;
    }

    .table-container {
        padding: 1rem;
    }
}

/* Google Sheets Styles */
.sheets-controls {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.connect-btn, .refresh-btn {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.add-game-btn {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.add-game-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(46, 204, 113, 0.3);
}

.connect-btn:hover, .refresh-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #2980b9, #3498db);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.3);
}

.refresh-btn:disabled {
    background: #95a5a6;
    cursor: not-allowed;
    opacity: 0.6;
}

.add-game-btn:disabled {
    background: #95a5a6;
    cursor: not-allowed;
    opacity: 0.6;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.games-actions, .new-games-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.export-btn, .view-new-btn, .clear-btn {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    font-size: 0.8rem;
}

.view-new-btn {
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
}

.clear-btn {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.export-btn:hover:not(:disabled), .view-new-btn:hover:not(:disabled), .clear-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.export-btn:disabled, .view-new-btn:disabled {
    background: #95a5a6;
    cursor: not-allowed;
    opacity: 0.6;
}

.game-info {
    background: rgba(46, 204, 113, 0.1);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid #27ae60;
}

.game-info p {
    margin: 0;
    color: #2c3e50;
}

.sync-instructions {
    background: rgba(52, 152, 219, 0.1);
    padding: 20px;
    border-radius: 12px;
    margin-top: 20px;
    border-left: 4px solid #3498db;
}

.sync-instructions h4 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.sync-instructions ol {
    margin: 0;
    padding-left: 20px;
    color: #2c3e50;
}

.sync-instructions li {
    margin-bottom: 8px;
    line-height: 1.5;
}

.game-card.new-game {
    background: linear-gradient(135deg, #e8f8f5, #d5f4e6);
    border: 2px solid #27ae60;
    position: relative;
}

.game-card.new-game::before {
    content: "NEW";
    position: absolute;
    top: -5px;
    right: -5px;
    background: #e74c3c;
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: bold;
}

.remove-game-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(231, 76, 60, 0.8);
    color: white;
    border: none;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    font-size: 0.8rem;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.game-card.new-game:hover .remove-game-btn {
    display: flex;
}

.remove-game-btn:hover {
    background: rgba(231, 76, 60, 1);
    transform: scale(1.1);
}

.api-test-container {
    margin: 30px 0;
    background: rgba(255, 255, 255, 0.95);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.test-results {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #17a2b8;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    max-height: 300px;
    overflow-y: auto;
}

.test-results p {
    margin: 0;
    color: #495057;
}

.test-results .success {
    color: #28a745;
    font-weight: 600;
}

.test-results .error {
    color: #dc3545;
    font-weight: 600;
}

.test-results .info {
    color: #17a2b8;
    font-weight: 600;
}

.config-info {
    background: rgba(52, 152, 219, 0.1);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid #3498db;
}

.config-info ol {
    margin: 10px 0 0 20px;
    color: #2c3e50;
}

.config-info li {
    margin-bottom: 5px;
}

.status-container {
    margin: 20px 0;
}

.status-card {
    background: rgba(255, 255, 255, 0.95);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(10px);
}

.status-info {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: #2c3e50;
}

.status-info.success {
    color: #27ae60;
}

.status-info.error {
    color: #e74c3c;
}

.games-count {
    font-size: 0.9rem;
    color: #7f8c8d;
}

/* Test Log Container */
.test-log-container {
    margin: 20px 0;
}

.test-log-container h4 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.test-results {
    background: rgba(0, 0, 0, 0.9);
    color: #00ff00;
    padding: 15px;
    border-radius: 10px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #333;
}

.test-results p {
    margin: 5px 0;
    padding: 2px 0;
}

.test-results p.success {
    color: #00ff00;
}

.test-results p.error {
    color: #ff4444;
}

.test-results p.info {
    color: #00aaff;
}

.test-results p.warning {
    color: #ffaa00;
}

.games-list-container {
    margin: 20px 0;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

/* Simple Game Cards for Google Sheets */
.simple-game-card {
    background: white;
    padding: 12px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.2s ease;
    border: 1px solid #e0e0e0;
}

.simple-game-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.simple-game-name {
    font-weight: 600;
    color: #2c3e50;
    font-size: 1rem;
    margin-bottom: 8px;
    line-height: 1.3;
}

.simple-game-status {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
    color: white;
    background: #95a5a6;
}

/* Status Colors for Simple Cards */
.simple-game-status.status-continues {
    background: #3498db;
}

.simple-game-status.status-playing {
    background: #e74c3c;
}

.simple-game-status.status-completed {
    background: #27ae60;
}

.simple-game-status.status-not-started {
    background: #95a5a6;
}

.simple-game-status.status-planned {
    background: #f39c12;
}

.simple-game-status.status-not-released {
    background: #9b59b6;
}

.simple-game-status.status-on-hold {
    background: #e67e22;
}

.game-card {
    background: rgba(255, 255, 255, 0.95);
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    cursor: pointer;
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.game-card.selected {
    background: linear-gradient(135deg, #e8f8f5, #d5f4e6);
    border: 2px solid #27ae60;
}

.game-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

.game-name {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 5px;
}

.input-group small {
    display: block;
    margin-top: 5px;
    color: #7f8c8d;
    font-size: 0.8rem;
    font-style: italic;
}
 
/* API Games List Styles */
.api-game-item {
    margin-bottom: 10px;
    animation: slideInLeft 0.5s ease-out;
}

.game-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 15px 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.game-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
}

.game-icon-wrapper {
    background: linear-gradient(135deg, #3498db, #2980b9);
    border-radius: 10px;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 45px;
    height: 45px;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.game-icon {
    color: white;
    font-size: 1.2rem;
}

.game-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.game-name {
    font-weight: 600;
    font-size: 1.1rem;
    color: #2c3e50;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.game-meta {
    font-size: 0.85rem;
    color: #7f8c8d;
    font-weight: 500;
}

.game-status {
    display: flex;
    align-items: center;
    justify-content: center;
}

.status-icon {
    color: #27ae60;
    font-size: 1.1rem;
    filter: drop-shadow(0 1px 2px rgba(39, 174, 96, 0.3));
}

.no-games-message {
    text-align: center;
    padding: 40px 20px;
    color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    border: 1px dashed rgba(255, 255, 255, 0.3);
}

.no-games-message i {
    font-size: 3rem;
    margin-bottom: 15px;
    color: #95a5a6;
}

.no-games-message p {
    margin: 5px 0;
}

.no-games-message .sub-text {
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Quick Add Game Section */
.quick-add-container,
.add-game-container {
    margin: 20px 0;
    animation: slideInUp 0.6s ease-out;
}

.quick-add-card,
.add-game-card {
    background: rgba(255, 255, 255, 0.1);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.quick-add-card h3,
.add-game-card h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
    text-shadow: none;
}

/* Tab System */
.add-game-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
}

.tab-btn {
    background: rgba(255, 255, 255, 0.1);
    color: #2c3e50;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.tab-btn.active {
    background: linear-gradient(45deg, #3498db, #2980b9);
    color: white;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.tab-btn:hover:not(.active) {
    background: rgba(255, 255, 255, 0.2);
}

.add-tab {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.add-tab.active {
    display: block;
}

.quick-add-form {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.quick-input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.quick-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.3);
}

.quick-input:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.quick-add-btn {
    padding: 12px 20px;
    background: linear-gradient(45deg, #27ae60, #2ecc71);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.quick-add-btn:hover {
    background: linear-gradient(45deg, #229954, #27ae60);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(39, 174, 96, 0.4);
}

.quick-add-btn:active {
    transform: translateY(0);
}

.quick-add-info,
.add-info {
    color: rgba(44, 62, 80, 0.8);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.7);
    padding: 10px;
    border-radius: 8px;
    margin-top: 10px;
}

.quick-add-info i,
.add-info i {
    color: #3498db;
}

/* Games Statistics Section */
.games-stats-section {
    margin: 25px 0;
    animation: slideInUp 0.6s ease-out;
}

.games-stats-section h2 {
    color: #2c3e50;
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.3rem;
    font-weight: 600;
    text-shadow: none;
}

.games-stats-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 12px;
    max-width: 100%;
    margin: 0 auto;
    overflow-x: auto;
    padding-bottom: 10px;
    justify-content: center;
}

/* Responsive: Allow wrapping on very small screens */
@media (max-width: 600px) {
    .games-stats-grid {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* Games Overview - Compact Cards */
.games-stats-section .stat-card {
    background: white;
    border-radius: 10px;
    padding: 0.8rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    min-height: 100px;
    min-width: 140px;
    flex-shrink: 0;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.games-stats-section .stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--card-accent, #3498db);
    transition: height 0.3s ease;
}

.games-stats-section .stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.games-stats-section .stat-card:hover::before {
    height: 6px;
}

.games-stats-section .stat-icon {
    font-size: 1.8rem;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-bottom: 0.6rem;
    background: rgba(52, 152, 219, 0.1);
    color: var(--card-accent, #3498db);
}

.games-stats-section .stat-info h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.1rem;
    color: #2c3e50;
}

.games-stats-section .stat-info p {
    color: #7f8c8d;
    font-size: 0.75rem;
    font-weight: 500;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Status-specific colors for Games Overview */
.games-stats-section .stat-card.total-games {
    --card-accent: #3498db;
}

.games-stats-section .stat-card.total-games .stat-icon {
    background: rgba(52, 152, 219, 0.1);
    color: #3498db;
}

.games-stats-section .stat-card.status-continues {
    --card-accent: #f39c12;
}

.games-stats-section .stat-card.status-continues .stat-icon {
    background: rgba(243, 156, 18, 0.1);
    color: #f39c12;
}

.games-stats-section .stat-card.status-playing {
    --card-accent: #e74c3c;
}

.games-stats-section .stat-card.status-playing .stat-icon {
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
}

.games-stats-section .stat-card.status-not-started {
    --card-accent: #95a5a6;
}

.games-stats-section .stat-card.status-not-started .stat-icon {
    background: rgba(149, 165, 166, 0.1);
    color: #95a5a6;
}

.games-stats-section .stat-card.status-planned {
    --card-accent: #9b59b6;
}

.games-stats-section .stat-card.status-planned .stat-icon {
    background: rgba(155, 89, 182, 0.1);
    color: #9b59b6;
}

.games-stats-section .stat-card.status-not-released {
    --card-accent: #34495e;
}

.games-stats-section .stat-card.status-not-released .stat-icon {
    background: rgba(52, 73, 94, 0.1);
    color: #34495e;
}

.games-stats-section .stat-card.status-done {
    --card-accent: #27ae60;
}

.games-stats-section .stat-card.status-done .stat-icon {
    background: rgba(39, 174, 96, 0.1);
    color: #27ae60;
}

/* 
===============================================
ALTERNATIVE DESIGN OPTIONS - UNCOMMENT TO USE
===============================================

DESIGN OPTION 2: Neon Glow Cards
.stat-card.total-games {
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 100%);
    border: 2px solid #00d4ff;
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.4), 0 8px 32px rgba(0, 0, 0, 0.3);
}

.stat-card.status-continues {
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 100%);
    border: 2px solid #00ff88;
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.4), 0 8px 32px rgba(0, 0, 0, 0.3);
}

.stat-card.status-not-started {
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 100%);
    border: 2px solid #ff6b6b;
    box-shadow: 0 0 30px rgba(255, 107, 107, 0.4), 0 8px 32px rgba(0, 0, 0, 0.3);
}

.stat-card.status-planned {
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 100%);
    border: 2px solid #ffd93d;
    box-shadow: 0 0 30px rgba(255, 217, 61, 0.4), 0 8px 32px rgba(0, 0, 0, 0.3);
}

.stat-card.status-not-released {
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 100%);
    border: 2px solid #ff9ff3;
    box-shadow: 0 0 30px rgba(255, 159, 243, 0.4), 0 8px 32px rgba(0, 0, 0, 0.3);
}

.stat-card.status-done {
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 100%);
    border: 2px solid #a8ff35;
    box-shadow: 0 0 30px rgba(168, 255, 53, 0.4), 0 8px 32px rgba(0, 0, 0, 0.3);
}

DESIGN OPTION 3: Pastel Professional
.stat-card.total-games {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border: 2px solid #2196f3;
    box-shadow: 0 8px 32px rgba(33, 150, 243, 0.2);
}

.stat-card.status-continues {
    background: linear-gradient(135deg, #e8f5e8 0%, #c8e6c9 100%);
    border: 2px solid #4caf50;
    box-shadow: 0 8px 32px rgba(76, 175, 80, 0.2);
}

.stat-card.status-not-started {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    border: 2px solid #ff9800;
    box-shadow: 0 8px 32px rgba(255, 152, 0, 0.2);
}

.stat-card.status-planned {
    background: linear-gradient(135deg, #f3e5f5 0%, #e1bee7 100%);
    border: 2px solid #9c27b0;
    box-shadow: 0 8px 32px rgba(156, 39, 176, 0.2);
}

.stat-card.status-not-released {
    background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
    border: 2px solid #f44336;
    box-shadow: 0 8px 32px rgba(244, 67, 54, 0.2);
}

.stat-card.status-done {
    background: linear-gradient(135deg, #e0f2f1 0%, #b2dfdb 100%);
    border: 2px solid #009688;
    box-shadow: 0 8px 32px rgba(0, 150, 136, 0.2);
}

DESIGN OPTION 4: Gaming RGB Style
.stat-card.total-games {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    border: 2px solid #00ffff;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3), 0 8px 32px rgba(0, 0, 0, 0.2);
}

.stat-card.status-continues {
    background: linear-gradient(135deg, #134e5e 0%, #71b280 100%);
    border: 2px solid #00ff00;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.3), 0 8px 32px rgba(0, 0, 0, 0.2);
}

.stat-card.status-not-started {
    background: linear-gradient(135deg, #fc4a1a 0%, #f7b733 100%);
    border: 2px solid #ff4500;
    box-shadow: 0 0 20px rgba(255, 69, 0, 0.3), 0 8px 32px rgba(0, 0, 0, 0.2);
}

.stat-card.status-planned {
    background: linear-gradient(135deg, #8360c3 0%, #2ebf91 100%);
    border: 2px solid #ff00ff;
    box-shadow: 0 0 20px rgba(255, 0, 255, 0.3), 0 8px 32px rgba(0, 0, 0, 0.2);
}

.stat-card.status-not-released {
    background: linear-gradient(135deg, #d53369 0%, #daae51 100%);
    border: 2px solid #ff6b35;
    box-shadow: 0 0 20px rgba(255, 107, 53, 0.3), 0 8px 32px rgba(0, 0, 0, 0.2);
}

.stat-card.status-done {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: 2px solid #9d50bb;
    box-shadow: 0 0 20px rgba(157, 80, 187, 0.3), 0 8px 32px rgba(0, 0, 0, 0.2);
}
===============================================
*/

/* Game Manager Styles */
.manager-header {
    text-align: center;
    margin-bottom: 20px;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.manager-header h1 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.manager-header p {
    color: #7f8c8d;
    font-size: 1rem;
    margin-bottom: 15px;
}

.manager-controls {
    display: flex;
    justify-content: center;
    gap: 10px;
}

/* Simplified Game Status Container */
.games-status-container {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin: 20px 0;
}

.status-filter {
    display: flex;
    align-items: center;
    gap: 10px;
}

.status-filter select {
    padding: 8px 12px;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    cursor: pointer;
}

/* Game Status Grid */
.game-status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

/* Simplified Manager Cards */
.simple-manager-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
    overflow: hidden;
    transition: transform 0.2s ease;
}

.simple-manager-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.manager-card-content {
    padding: 20px;
}

.manager-game-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 10px 0;
}

.manager-game-status {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 500;
    color: white;
    margin-bottom: 15px;
}

.quick-status-change {
    margin-bottom: 15px;
}

.quick-status-change label {
    display: block;
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 5px;
}

.status-select {
    width: 100%;
    padding: 6px 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.85rem;
    background: white;
    cursor: pointer;
}

.status-select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.manager-game-actions {
    display: flex;
    gap: 8px;
}

.manager-edit-btn, .manager-delete-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.manager-edit-btn {
    background: #3498db;
    color: white;
}

.manager-edit-btn:hover {
    background: #2980b9;
}

.manager-delete-btn {
    background: #e74c3c;
    color: white;
}

.manager-delete-btn:hover {
    background: #c0392b;
}

/* Status colors for manager cards */
.manager-game-status.status-continues {
    background: #3498db;
}

.manager-game-status.status-playing {
    background: #e74c3c;
}

.manager-game-status.status-completed,
.manager-game-status.status-done {
    background: #27ae60;
}

.manager-game-status.status-not-started {
    background: #95a5a6;
}

.manager-game-status.status-planned {
    background: #f39c12;
}

.manager-game-status.status-not-released {
    background: #9b59b6;
}

.manager-game-status.status-on-hold {
    background: #e67e22;
}

/* API Error State */
.api-error-state {
    text-align: center;
    padding: 40px 20px;
    background: #f8f9fa;
    border-radius: 10px;
    border: 2px dashed #e0e0e0;
    margin: 20px 0;
}

.api-error-state i {
    font-size: 3rem;
    color: #e74c3c;
    margin-bottom: 20px;
}

.api-error-state h3 {
    color: #2c3e50;
    margin-bottom: 10px;
}

.api-error-state p {
    color: #7f8c8d;
    margin-bottom: 20px;
}

.retry-btn {
    background: #3498db;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.2s ease;
}

.retry-btn:hover {
    background: #2980b9;
}

.retry-btn i {
    margin-right: 5px;
    font-size: 1rem !important;
    color: white !important;
}

/* Modern Game Cards */
.modern-game-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
    transition: all 0.2s ease;
    overflow: hidden;
}

.modern-game-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.game-card-header {
    display: flex;
    align-items: center;
    padding: 15px;
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
}

.game-icon {
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    margin-right: 16px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.game-info {
    flex: 1;
    min-width: 0;
}

.game-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 8px 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.game-actions {
    display: flex;
    gap: 8px;
}

.action-btn {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.action-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.4);
}

.edit-btn:hover {
    background: linear-gradient(135deg, #2980b9, #1f4e79);
}

.game-card-body {
    padding: 15px;
}

.quick-status-section {
    margin-bottom: 0;
}

.quick-status-section label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #7f8c8d;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modern-status-select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    background: white;
    font-size: 0.9rem;
    color: #2c3e50;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
}

.modern-status-select:hover {
    border-color: #3498db;
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.15);
}

.modern-status-select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

/* Enhanced Status Badges */
.game-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Legacy Game Status Items - Keep for backward compatibility */
.game-status-item {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    animation: slideInUp 0.5s ease-out;
}

.edit-game-btn {
    background: linear-gradient(45deg, #3498db, #2980b9);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 6px 10px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.edit-game-btn:hover {
    background: linear-gradient(45deg, #2980b9, #1f5c8a);
    transform: translateY(-1px);
}

.game-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.status-Continues { background: linear-gradient(45deg, #f39c12, #e67e22); color: white; }
.status-Playing { background: linear-gradient(45deg, #e74c3c, #c0392b); color: white; }
.status-Not-Started { background: linear-gradient(45deg, #95a5a6, #7f8c8d); color: white; }
.status-Planned { background: linear-gradient(45deg, #9b59b6, #8e44ad); color: white; }
.status-Not-Released { background: linear-gradient(45deg, #e74c3c, #c0392b); color: white; }
.status-Done { background: linear-gradient(45deg, #27ae60, #229954); color: white; }

/* Quick Status Change */
.quick-status-change {
    margin-top: 10px;
}

.quick-status-select {
    width: 100%;
    padding: 8px 12px;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.quick-status-select:focus {
    outline: none;
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.3);
}

/* ============== WHEEL OF ITEMS STYLES ============== */

#wheelContent {
    background: #0a0e2e;
    min-height: 100vh;
    padding: 0;
    overflow: hidden;
    position: relative;
}

#wheelContent::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(2px 2px at 20px 30px, #ffffff, transparent),
        radial-gradient(2px 2px at 40px 70px, #ffffff, transparent),
        radial-gradient(1px 1px at 90px 40px, #ffffff, transparent),
        radial-gradient(1px 1px at 130px 80px, #ffffff, transparent),
        radial-gradient(2px 2px at 160px 30px, #ffffff, transparent),
        radial-gradient(1px 1px at 180px 90px, #ffffff, transparent),
        radial-gradient(2px 2px at 200px 50px, #ffffff, transparent),
        radial-gradient(1px 1px at 230px 20px, #ffffff, transparent),
        radial-gradient(2px 2px at 260px 70px, #ffffff, transparent),
        radial-gradient(1px 1px at 290px 40px, #ffffff, transparent);
    background-repeat: repeat;
    background-size: 300px 300px;
    animation: starField 20s linear infinite;
    pointer-events: none;
    opacity: 0.7;
}

@keyframes starField {
    0% { transform: translateY(0px); }
    100% { transform: translateY(-300px); }
}

.wheel-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

.wheel-header {
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
}

.wheel-header h1 {
    font-size: 3.5rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 1rem;
    text-shadow: 0 2px 20px rgba(255, 255, 255, 0.3);
    letter-spacing: -2px;
}

.wheel-header p {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 300;
    margin-bottom: 2rem;
}

.wheel-controls-top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.wheel-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.control-card {
    background: rgba(255, 255, 150, 0.05);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1.2rem;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.control-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 107, 53, 0.3);
    transform: translateY(-2px);
}

.control-card h3 {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    text-shadow: 0 0 10px rgba(255, 107, 53, 0.3);
}

.control-card h3 i {
    color: #ffd23f;
    font-size: 1em;
}

.add-controls {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.input-section {
    display: flex;
    gap: 0.5rem;
    align-items: stretch;
}

.item-input {
    flex: 1;
    padding: 14px 18px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.05);
    color: white;
    transition: all 0.3s ease;
    outline: none;
}

.item-input:focus {
    border-color: #ff6b35;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.2);
}

.item-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.add-item-btn {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    color: white;
    font-size: 1.4rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
}

.add-item-btn:hover {
    transform: translateY(-3px) scale(1.05);
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
}

.game-select {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.05);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
}

.game-select:focus {
    border-color: #ff6b35;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.2);
}

.game-select option {
    background: #1a1a2e;
    color: white;
}

.speed-section {
    text-align: center;
}

.speed-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.speed-label {
    font-weight: 600;
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 210, 63, 0.3);
}

.speed-value {
    background: linear-gradient(135deg, #06ffa5, #7209b7);
    color: white;
    padding: 15px;
    border-radius: 50%;
    font-weight: 700;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(6, 255, 165, 0.3);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.speed-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.speed-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.speed-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: scale(1.1);
}

.speed-btn:active {
    transform: scale(0.95);
}

.speed-btn.decrease:hover {
    background: rgba(255, 107, 53, 0.2);
    border-color: #ff6b35;
}

.speed-btn.increase:hover {
    background: rgba(6, 255, 165, 0.2);
    border-color: #06ffa5;
}

.wheel-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    position: relative;
}

.wheel-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wheel-frame {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    padding: 20px;
    box-shadow: 
        0 0 30px rgba(255, 255, 255, 0.1),
        inset 0 0 30px rgba(255, 255, 255, 0.05);
}

.wheel-center {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    box-shadow: 
        inset 0 0 40px rgba(0, 0, 0, 0.2),
        0 0 30px rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

/* Center dot on wheel */
.wheel-center::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    z-index: 10;
    box-shadow: 
        0 0 30px rgba(255, 107, 53, 0.6),
        inset 0 0 15px rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

#wheelCanvas {
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.3s ease;
    box-shadow: 
        0 15px 40px rgba(0, 0, 0, 0.4),
        inset 0 0 20px rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

#wheelCanvas:hover {
    transform: scale(1.02);
}

.wheel-result {
    position: absolute;
    top: -120px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 30;
    opacity: 0;
    transition: all 0.4s ease;
    pointer-events: none;
}

.wheel-result.show {
    opacity: 1;
    pointer-events: auto;
}

.winner-announcement {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 50%, #ffd23f 100%);
    color: #1a1a2e;
    padding: 25px 35px;
    border-radius: 25px;
    text-align: center;
    box-shadow: 
        0 15px 40px rgba(255, 107, 53, 0.4),
        0 0 60px rgba(247, 147, 30, 0.3),
        inset 0 2px 0 rgba(255, 255, 255, 0.3);
    border: 3px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(15px);
    min-width: 250px;
    position: relative;
    overflow: hidden;
}

.winner-announcement::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.winner-emoji {
    font-size: 2.5rem;
    margin-bottom: 8px;
    animation: bounce 1s infinite;
    display: block;
}

.winner-text {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 3px;
    opacity: 0.8;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.winner-name {
    font-size: 20px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}


.winner-trophy {
    font-size: 2rem;
    margin-bottom: 5px;
    animation: bounce 1s infinite;
}

.winner-text {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 2px;
    opacity: 0.9;
    margin-bottom: 5px;
}

.winner-name {
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@keyframes celebrateWinner {
    0% {
        transform: translateX(-50%) scale(0.5) rotateY(180deg);
        opacity: 0;
    }
    5% {
        transform: translateX(-50%) scale(1.1) rotateY(0deg);
        opacity: 1;
    }
    10% {
        transform: translateX(-50%) scale(1) rotateY(0deg);
        opacity: 1;
    }
    85% {
        transform: translateX(-50%) scale(1) rotateY(0deg);
        opacity: 1;
    }
    100% {
        transform: translateX(-50%) scale(0.8) rotateY(0deg);
        opacity: 0;
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.spin-button {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    border: none;
    padding: 20px 40px;
    border-radius: 25px;
    font-size: 1.3rem;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(231, 76, 60, 0.3);
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 220px;
    justify-content: center;
}

.spin-button:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(231, 76, 60, 0.4);
    background: linear-gradient(135deg, #c0392b, #e74c3c);
}

.spin-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.spin-button i {
    font-size: 1.2rem;
}
/* Mobile Responsiveness for Wheel */
@media (max-width: 768px) {
    .wheel-page {
        padding: 1rem;
    }
    
    .wheel-controls-top {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .wheel-header h1 {
        font-size: 2.5rem;
    }
    
    .wheel-header p {
        font-size: 1.1rem;
    }
    
    #wheelCanvas {
        width: 300px !important;
        height: 300px !important;
    }
    
    .wheel-frame {
        padding: 15px;
    }
    
    .control-card {
        padding: 1.5rem;
    }
    
    .input-section {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .add-item-btn {
        width: 100%;
        height: 48px;
    }
    
    .wheel-result {
        top: -100px;
    }
    
    .winner-announcement {
        padding: 20px 25px;
        min-width: 180px;
    }
    
    .winner-emoji {
        font-size: 2rem;
    }
    
    .winner-name {
        font-size: 18px;
    }
    
    .spin-button {
        padding: 20px 40px;
        font-size: 1.2rem;
        min-width: 200px;
    }
}

@media (max-width: 480px) {
    .wheel-page {
        padding: 0.5rem;
    }
    
    .wheel-header h1 {
        font-size: 2rem;
    }
    
    #wheelCanvas {
        width: 250px !important;
        height: 250px !important;
    }
    
    .wheel-frame {
        padding: 12px;
    }
    
    .control-card {
        padding: 1rem;
    }
    
    .spin-button {
        padding: 18px 35px;
        font-size: 1.1rem;
        min-width: 180px;
    }
    
    .wheel-result {
        top: -80px;
    }
    
    .winner-announcement {
        padding: 15px 20px;
        min-width: 150px;
    }
    
    .winner-emoji {
        font-size: 1.8rem;
    }
    
    .winner-name {
        font-size: 16px;
    }
}

