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

:root {
    /* Light Theme Colors */
    --bg-primary: #f0f2f5;
    --bg-secondary: #ffffff;
    --bg-tertiary: #e3e8ef;
    --text-primary: #2d3748;
    --text-secondary: #4a5568;
    --text-accent: #3182ce;
    --border-color: #e2e8f0;
    --shadow-light: rgba(0, 0, 0, 0.05);
    --shadow-medium: rgba(0, 0, 0, 0.1);
    --shadow-heavy: rgba(0, 0, 0, 0.2);
    
    /* Gaming Colors */
    --neon-blue: #00d4ff;
    --neon-purple: #8b5cf6;
    --neon-pink: #ec4899;
    --neon-green: #10b981;
    --neon-orange: #f59e0b;
    --neon-red: #ef4444;
    
    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
}

/* Dark Theme Colors */
.dark-theme {
    --bg-primary: #0f0f23;
    --bg-secondary: #1a1a2e;
    --bg-tertiary: #16213e;
    --text-primary: #ffffff;
    --text-secondary: #cbd5e0;
    --text-accent: #00d4ff;
    --border-color: #2d3748;
    --shadow-light: rgba(0, 0, 0, 0.3);
    --shadow-medium: rgba(0, 0, 0, 0.5);
    --shadow-heavy: rgba(0, 0, 0, 0.7);
    --glass-bg: rgba(0, 0, 0, 0.2);
    --glass-border: rgba(255, 255, 255, 0.1);
}

body {
    font-family: 'Exo 2', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    transition: all 0.3s ease;
}

/* Welcome Screen */
.welcome-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease;
}

.welcome-screen.active {
    opacity: 1;
    visibility: visible;
}

.welcome-content {
    text-align: center;
    z-index: 2;
}

.logo-container {
    margin-bottom: 2rem;
}

.logo-glow {
    width: 120px;
    height: 120px;
    margin: 0 auto;
    background: linear-gradient(45deg, var(--neon-blue), var(--neon-purple));
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.5);
    animation: logoFloat 3s ease-in-out infinite;
}

.logo-glow i {
    font-size: 3rem;
    color: white;
    animation: logoSpin 4s linear infinite;
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes logoSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.welcome-title {
    font-family: 'Orbitron', monospace;
    font-size: 3rem;
    font-weight: 900;
    color: white;
    margin-bottom: 1rem;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
    animation: titleGlow 2s ease-in-out infinite alternate;
}

@keyframes titleGlow {
    from { text-shadow: 0 0 20px rgba(255, 255, 255, 0.5); }
    to { text-shadow: 0 0 30px rgba(0, 212, 255, 0.8); }
}

.welcome-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 3rem;
    animation: fadeInUp 1s ease 0.5s both;
}

.start-btn {
    position: relative;
    background: linear-gradient(45deg, var(--neon-blue), var(--neon-purple));
    border: none;
    padding: 1rem 3rem;
    border-radius: 50px;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
    animation: fadeInUp 1s ease 1s both;
}

.start-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3);
}

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

.start-btn:hover .btn-glow {
    left: 100%;
}

.welcome-bg-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(236, 72, 153, 0.1) 0%, transparent 50%);
    animation: welcomeBgFloat 10s ease-in-out infinite;
}

@keyframes welcomeBgFloat {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -30px) rotate(120deg); }
    66% { transform: translate(-20px, 20px) rotate(240deg); }
}

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

/* Main App Layout */
.main-app {
    display: none;
    min-height: 100vh;
}

.main-app.active {
    display: block;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    z-index: 1000;
    transition: all 0.3s ease;
}

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

.sidebar-toggle {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.sidebar-toggle:hover {
    background: var(--glass-bg);
    color: var(--neon-blue);
}

.app-title {
    font-family: 'Orbitron', monospace;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

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

.digital-clock {
    font-family: 'Orbitron', monospace;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--neon-blue);
    background: var(--glass-bg);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    border: 1px solid var(--glass-border);
}

.theme-toggle {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    padding: 0.5rem;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 45px;
    height: 45px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.theme-toggle:hover {
    background: var(--neon-blue);
    color: white;
    transform: rotate(180deg);
}

/* Sidebar Navigation */
.sidebar {
    position: fixed;
    top: 70px;
    left: 0;
    width: 280px;
    height: calc(100vh - 70px);
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    border-right: 1px solid var(--glass-border);
    padding: 2rem 0;
    transform: translateX(0);
    transition: all 0.3s ease;
    z-index: 999;
}

.sidebar.collapsed {
    transform: translateX(-100%);
}

.sidebar-header {
    padding: 0 2rem;
    margin-bottom: 2rem;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Orbitron', monospace;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--neon-blue);
}

.sidebar-nav {
    list-style: none;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-secondary);
}

.nav-item:hover {
    background: var(--glass-bg);
    color: var(--neon-blue);
    transform: translateX(10px);
}

.nav-item.active {
    background: linear-gradient(90deg, var(--neon-blue), var(--neon-purple));
    color: white;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
    border-radius: 0 25px 25px 0;
}

.nav-item i {
    font-size: 1.2rem;
    width: 20px;
}

/* Main Content */
.main-content {
    margin-left: 280px;
    margin-top: 70px;
    padding: 2rem;
    min-height: calc(100vh - 70px);
    transition: margin-left 0.3s ease;
}

.sidebar.collapsed + .main-content {
    margin-left: 0;
}

/* Sections */
.section {
    display: none;
    position: relative;
    overflow: hidden;
}

.section.active {
    display: block;
    animation: sectionFadeIn 0.5s ease;
}

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

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

.section-header h2 {
    font-family: 'Orbitron', monospace;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.dashboard-card {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.dashboard-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px var(--shadow-heavy);
    border-color: var(--neon-blue);
}

.dashboard-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--neon-blue), var(--neon-purple));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.dashboard-card:hover::before {
    transform: scaleX(1);
}

.card-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    background: linear-gradient(45deg, var(--neon-blue), var(--neon-purple));
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 2rem;
}

.dashboard-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.dashboard-card p {
    color: var(--text-secondary);
}

/* Dashboard Background Animation */
.dashboard-bg-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(0, 212, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(139, 92, 246, 0.05) 0%, transparent 50%);
    animation: dashboardFloat 15s ease-in-out infinite;
    z-index: -1;
}

@keyframes dashboardFloat {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(20px, -20px); }
}

/* Day Planner Styles */
.planner-content {
    max-width: 800px;
    margin: 0 auto;
}

.add-task-form {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
}

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

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

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

.form-group input,
.form-group select {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    background: var(--glass-bg);
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--neon-blue);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

.add-task-btn {
    width: 100%;
    background: linear-gradient(45deg, var(--neon-blue), var(--neon-purple));
    border: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.add-task-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 212, 255, 0.3);
}

.tasks-container {
    display: grid;
    gap: 1rem;
}

.task-item {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    animation: taskSlideIn 0.5s ease;
}

@keyframes taskSlideIn {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.task-info h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.task-time {
    color: var(--neon-blue);
    font-weight: 600;
}

.task-actions button {
    background: var(--neon-red);
    border: none;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.task-actions button:hover {
    transform: scale(1.1);
}

.floating-clock {
    position: fixed;
    top: 100px;
    right: 2rem;
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 1rem;
    text-align: center;
    z-index: 500;
    animation: clockFloat 3s ease-in-out infinite;
}

@keyframes clockFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.clock-display {
    font-family: 'Orbitron', monospace;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--neon-blue);
    margin-bottom: 0.5rem;
}

.current-task-name {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Planner Background Animation */
.planner-bg-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="2" fill="rgba(0,212,255,0.1)"><animateTransform attributeName="transform" type="translate" values="0,0; 20,-20; -10,30; 0,0" dur="10s" repeatCount="indefinite"/></circle></svg>'),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><rect x="45" y="45" width="10" height="10" fill="rgba(139,92,246,0.1)"><animateTransform attributeName="transform" type="rotate" values="0 50 50; 360 50 50" dur="15s" repeatCount="indefinite"/></rect></svg>');
    background-size: 100px 100px, 150px 150px;
    animation: plannerBgMove 20s linear infinite;
    z-index: -1;
}

@keyframes plannerBgMove {
    from { background-position: 0% 0%, 100% 100%; }
    to { background-position: 100% 100%, 0% 0%; }
}

/* Water Reminder Styles */
.water-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
    align-items: center;
}

.water-glass-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.water-glass {
    position: relative;
    width: 200px;
    height: 300px;
    border: 4px solid var(--neon-blue);
    border-radius: 0 0 50px 50px;
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    overflow: hidden;
    animation: glassGlow 3s ease-in-out infinite alternate;
}

@keyframes glassGlow {
    from { box-shadow: 0 0 20px rgba(0, 212, 255, 0.3); }
    to { box-shadow: 0 0 30px rgba(0, 212, 255, 0.6); }
}

.water-level {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(180deg, var(--neon-blue), var(--neon-purple));
    transition: height 1s ease;
    height: 0%;
}

.glass-rim {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    height: 20px;
    background: var(--neon-blue);
    border-radius: 20px;
}

.water-bubbles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.bubble {
    position: absolute;
    width: 15px;
    height: 15px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: bubbleFloat 4s ease-in-out infinite;
}

.bubble:nth-child(1) {
    left: 20%;
    animation-delay: 0s;
}

.bubble:nth-child(2) {
    left: 50%;
    animation-delay: 1s;
}

.bubble:nth-child(3) {
    left: 80%;
    animation-delay: 2s;
}

@keyframes bubbleFloat {
    0% {
        bottom: -20px;
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        bottom: 100%;
        opacity: 0;
    }
}

.water-controls {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
}

.water-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat {
    text-align: center;
    background: var(--glass-bg);
    padding: 1rem;
    border-radius: 15px;
    border: 1px solid var(--glass-border);
}

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

.stat-value {
    font-family: 'Orbitron', monospace;
    font-size: 2rem;
    font-weight: 700;
    color: var(--neon-blue);
}

.reminder-settings {
    margin-bottom: 2rem;
}

.reminder-settings label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.water-actions {
    display: grid;
    gap: 1rem;
}

.drink-btn,
.reminder-btn,
.reset-btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.drink-btn {
    background: linear-gradient(45deg, var(--neon-blue), var(--neon-purple));
    color: white;
}

.reminder-btn {
    background: linear-gradient(45deg, var(--neon-green), var(--neon-blue));
    color: white;
}

.reset-btn {
    background: var(--glass-bg);
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
}

.drink-btn:hover,
.reminder-btn:hover,
.reset-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px var(--shadow-medium);
}

/* Water Background Animation */
.water-bg-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(16, 185, 129, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
    animation: waterWave 8s ease-in-out infinite;
    z-index: -1;
}

@keyframes waterWave {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-20px) rotate(120deg); }
    66% { transform: translateY(10px) rotate(240deg); }
}

/* Study Library Styles */
.library-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.language-card {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.5s ease;
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
}

.language-card:hover {
    transform: translateY(-15px) rotateX(10deg) rotateY(5deg);
    box-shadow: 
        0 25px 50px var(--shadow-heavy),
        0 0 30px rgba(0, 212, 255, 0.3);
    border-color: var(--neon-blue);
}

.language-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, var(--neon-blue), var(--neon-purple));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.language-card:hover::before {
    opacity: 0.1;
}

.card-image {
    width: 100px;
    height: 100px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(45deg, var(--neon-blue), var(--neon-purple));
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 3rem;
    transition: all 0.3s ease;
}

.language-card:hover .card-image {
    transform: scale(1.1) rotateY(180deg);
    background: linear-gradient(45deg, var(--neon-purple), var(--neon-pink));
}

.language-card h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.language-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.study-btn {
    background: var(--glass-bg);
    border: 1px solid var(--neon-blue);
    color: var(--neon-blue);
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.study-btn:hover {
    background: var(--neon-blue);
    color: white;
    transform: scale(1.05);
}

/* Library Background Animation */
.library-bg-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><text x="10" y="20" font-family="monospace" font-size="8" fill="rgba(0,212,255,0.1)" opacity="0.5">{"code":"learn"}</text><animateTransform attributeName="transform" type="translate" values="0,0; 100,-50; 0,0" dur="20s" repeatCount="indefinite"/></svg>'),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><text x="60" y="80" font-family="monospace" font-size="6" fill="rgba(139,92,246,0.1)" opacity="0.3">function(){}</text><animateTransform attributeName="transform" type="translate" values="0,0; -80,30; 0,0" dur="15s" repeatCount="indefinite"/></svg>');
    background-size: 200px 200px, 300px 300px;
    animation: codeFloat 25s linear infinite;
    z-index: -1;
}

@keyframes codeFloat {
    from { background-position: 0% 0%, 100% 100%; }
    to { background-position: 100% 100%, 0% 0%; }
}

/* Focus Mode Styles */
.focus-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.timer-container {
    margin-bottom: 3rem;
}

.timer-circle {
    position: relative;
    width: 300px;
    height: 300px;
    margin: 0 auto;
}

.timer-svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.timer-bg,
.timer-progress {
    fill: none;
    stroke-width: 8;
}

.timer-bg {
    stroke: var(--glass-border);
}

.timer-progress {
    stroke: url(#timerGradient);
    stroke-linecap: round;
    stroke-dasharray: 283;
    stroke-dashoffset: 283;
    transition: stroke-dashoffset 1s linear;
}

.timer-display {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.timer-time {
    font-family: 'Orbitron', monospace;
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.timer-mode {
    font-size: 1.2rem;
    color: var(--neon-blue);
    font-weight: 600;
}

.timer-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.timer-btn {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    padding: 1rem 2rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

.timer-btn.start-btn:hover {
    background: var(--neon-green);
    color: white;
    border-color: var(--neon-green);
}

.timer-btn.pause-btn:hover {
    background: var(--neon-orange);
    color: white;
    border-color: var(--neon-orange);
}

.timer-btn.reset-btn:hover {
    background: var(--neon-red);
    color: white;
    border-color: var(--neon-red);
}

.timer-settings {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
}

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

/* Focus Background Animation */
.focus-bg-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 50% 50%, rgba(0, 212, 255, 0.05) 0%, transparent 70%),
        radial-gradient(circle at 30% 70%, rgba(139, 92, 246, 0.05) 0%, transparent 70%),
        radial-gradient(circle at 70% 30%, rgba(16, 185, 129, 0.05) 0%, transparent 70%);
    animation: focusPulse 6s ease-in-out infinite;
    z-index: -1;
}

@keyframes focusPulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}

/* Games Section Styles */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.game-slot {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.5s ease;
    position: relative;
    overflow: hidden;
}

.game-slot:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 20px 40px var(--shadow-heavy);
    border-color: var(--neon-purple);
}

.game-slot::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, var(--neon-purple), var(--neon-pink));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.game-slot:hover::before {
    opacity: 0.1;
}

.game-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(45deg, var(--neon-purple), var(--neon-pink));
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 2.5rem;
    transition: all 0.3s ease;
}

.game-slot:hover .game-icon {
    transform: scale(1.1) rotateZ(10deg);
    background: linear-gradient(45deg, var(--neon-pink), var(--neon-blue));
}

.game-slot h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.game-slot p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.play-btn {
    background: var(--glass-bg);
    border: 1px solid var(--neon-purple);
    color: var(--neon-purple);
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.play-btn:hover {
    background: var(--neon-purple);
    color: white;
    transform: scale(1.05);
}

/* Games Background Animation */
.games-bg-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 20%, rgba(236, 72, 153, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(0, 212, 255, 0.1) 0%, transparent 50%);
    animation: gamesFloat 12s ease-in-out infinite;
    z-index: -1;
}

@keyframes gamesFloat {
    0%, 100% { transform: rotate(0deg) scale(1); }
    33% { transform: rotate(120deg) scale(1.1); }
    66% { transform: rotate(240deg) scale(0.9); }
}

/* Notification System */
.notification-container {
    position: fixed;
    top: 100px;
    right: 2rem;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.notification {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 1rem 1.5rem;
    min-width: 300px;
    display: flex;
    align-items: center;
    gap: 1rem;
    animation: notificationSlideIn 0.5s ease;
    border-left: 4px solid var(--neon-blue);
}

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

.notification.success {
    border-left-color: var(--neon-green);
}

.notification.warning {
    border-left-color: var(--neon-orange);
}

.notification.error {
    border-left-color: var(--neon-red);
}

.notification-icon {
    font-size: 1.5rem;
    color: var(--neon-blue);
}

.notification.success .notification-icon {
    color: var(--neon-green);
}

.notification.warning .notification-icon {
    color: var(--neon-orange);
}

.notification.error .notification-icon {
    color: var(--neon-red);
}

.notification-content h4 {
    margin-bottom: 0.25rem;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.notification-content p {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        transform: translateX(-100%);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .header {
        padding: 0 1rem;
    }
    
    .app-title {
        display: none;
    }
    
    .water-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .timer-settings {
        grid-template-columns: 1fr;
    }
    
    .timer-controls {
        flex-direction: column;
        align-items: center;
    }
    
    .timer-circle {
        width: 250px;
        height: 250px;
    }
    
    .timer-time {
        font-size: 2rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .welcome-title {
        font-size: 2rem;
    }
    
    .notification {
        min-width: calc(100vw - 4rem);
    }
    
    .floating-clock {
        position: relative;
        right: auto;
        margin: 1rem 0;
    }
}

/* SVG Gradient Definition */
svg defs {
    display: none;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-tertiary);
}

::-webkit-scrollbar-thumb {
    background: var(--neon-blue);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--neon-purple);
}