/**
 * Pomodoro Timer - Productivity Enhancement Application
 * 
 * Developer: Molla Samser (Founder, RSK World)
 * Designer: Rima Khatun (Designer & Tester, RSK World)
 * Website: https://rskworld.in/
 * Contact: +91 93305 39277 | hello@rskworld.in | support@rskworld.in
 * Location: Nutanhat, Mongolkote, Purba Burdwan, West Bengal, India - 713147
 * Year: 2026
 * 
 * Description: Master your time management with our feature-rich Pomodoro Timer application. 
 * Customize work and break intervals, track sessions, receive audio notifications, view 
 * productivity statistics, and integrate with your task management workflow.
 * 
 * Technologies: JavaScript, Timers, Audio Notifications, Time Tracking, Focus Techniques, Session Management
 * Keywords: pomodoro timer, time management, productivity, focus technique, work life balance, 
 * session tracking, productivity statistics, timer app, focus timer, break reminders
 * SEO: 100% optimized with paid keywords for maximum visibility
 */

/* CSS Variables for Theming */
:root {
    --primary-color: #FF6B6B;
    --secondary-color: #4ECDC4;
    --accent-color: #FFD93D;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --text-primary: #212529;
    --text-secondary: #6c757d;
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-tertiary: #e9ecef;
    --border-color: #dee2e6;
    --shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'Roboto Mono', Consolas, Monaco, 'Courier New', monospace;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --border-radius: 0.75rem;
    --border-radius-lg: 1.25rem;
    --border-radius-xl: 1.5rem;
    --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    --gradient-secondary: linear-gradient(135deg, var(--accent-color), var(--info-color));
}

/* Dark Theme */
[data-theme="dark"] {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #0dcaf0;
    --light-color: #212529;
    --dark-color: #f8f9fa;
    --text-primary: #f8f9fa;
    --text-secondary: #adb5bd;
    --bg-primary: #1a1a1a;
    --bg-secondary: #2d2d2d;
    --border-color: #495057;
}

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

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

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    transition: var(--transition);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

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

/* Header */
.header {
    background: linear-gradient(135deg, var(--primary-color), var(--info-color));
    color: white;
    padding: 1.5rem 0;
    box-shadow: var(--shadow);
}

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

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

.logo i {
    font-size: 2rem;
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 600;
    margin: 0;
}

.header-info {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Main Content */
.main {
    flex: 1;
    padding: 2rem 0;
}

/* Timer Section */
.timer-section {
    margin-bottom: 4rem;
}

.timer-container {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

/* Timer Display */
.timer-display {
    margin-bottom: 3rem;
}

.timer-circle {
    position: relative;
    display: inline-block;
    margin-bottom: 2rem;
}

.progress-ring {
    transform: rotate(-90deg);
}

.progress-ring-background {
    fill: none;
    stroke: var(--border-color);
    stroke-width: 8;
}

.progress-ring-progress {
    fill: none;
    stroke: var(--primary-color);
    stroke-width: 8;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.3s ease;
    stroke-dasharray: 879.645;
    stroke-dashoffset: 0;
}

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

.timer-time {
    font-size: 3.5rem;
    font-weight: 700;
    font-family: var(--font-mono);
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    line-height: 1;
}

.timer-session {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.timer-count {
    font-size: 0.9rem;
    color: var(--text-secondary);
    opacity: 0.8;
}

/* Timer Controls */
.timer-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    min-width: 120px;
    justify-content: center;
}

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

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

.btn-primary:hover:not(:disabled) {
    background-color: #0056b3;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

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

.btn-secondary:hover:not(:disabled) {
    background-color: #545b62;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

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

.btn-danger:hover:not(:disabled) {
    background-color: #c82333;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

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

.btn-info:hover:not(:disabled) {
    background-color: #138496;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* Quick Settings */
.quick-settings {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    background-color: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
}

.setting-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
}

.setting-group label {
    font-weight: 500;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.form-select, .form-input {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-size: 0.9rem;
    transition: var(--transition);
}

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

/* Features Section */
.features-section {
    margin-bottom: 4rem;
}

.features-section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
    color: var(--text-primary);
}

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

.feature-card {
    background-color: var(--bg-secondary);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.feature-card i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

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

/* Statistics Section */
.stats-section {
    margin-bottom: 4rem;
}

.stats-section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
    color: var(--text-primary);
}

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

.stat-card {
    background-color: var(--bg-secondary);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-family: var(--font-mono);
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.chart-card {
    background-color: var(--bg-secondary);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
}

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

/* Settings Section */
.settings-section {
    margin-bottom: 4rem;
}

.settings-section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
    color: var(--text-primary);
}

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

.setting-card {
    background-color: var(--bg-secondary);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
}

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

.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding: 0.5rem 0;
}

.setting-item label {
    font-weight: 500;
    color: var(--text-secondary);
    margin-right: 1rem;
}

/* Toggle Switch */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--secondary-color);
    transition: var(--transition);
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: var(--transition);
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--primary-color);
}

input:checked + .slider:before {
    transform: translateX(26px);
}

/* Footer */
.footer {
    background-color: var(--dark-color);
    color: white;
    padding: 3rem 0 1rem;
    margin-top: auto;
}

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

.footer-section h3 {
    margin-bottom: 1rem;
    color: white;
}

.footer-section p {
    color: #adb5bd;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #adb5bd;
    text-decoration: none;
    transition: var(--transition);
}

.footer-section a:hover {
    color: white;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 0.5rem;
    }
    
    .header-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .logo h1 {
        font-size: 1.5rem;
    }
    
    .timer-time {
        font-size: 2.5rem;
    }
    
    .timer-controls {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 200px;
    }
    
    .quick-settings {
        flex-direction: column;
        gap: 1rem;
    }
    
    .features-grid,
    .stats-grid,
    .settings-grid {
        grid-template-columns: 1fr;
    }
    
    .charts-container {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .timer-time {
        font-size: 2rem;
    }
    
    .timer-circle svg {
        width: 250px;
        height: 250px;
    }
    
    .progress-ring-background,
    .progress-ring-progress {
        stroke-width: 6;
    }
    
    .feature-card,
    .stat-card,
    .setting-card,
    .chart-card {
        padding: 1.5rem;
    }
}

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

.timer-circle.running {
    animation: pulse 2s infinite;
}

/* Focus Mode */
.focus-mode {
    background-color: #1a1a1a;
    color: #f8f9fa;
}

.focus-mode .timer-section {
    margin: 0;
    padding: 2rem 0;
}

.focus-mode .features-section,
.focus-mode .stats-section,
.focus-mode .settings-section,
.focus-mode .header,
.focus-mode .footer {
    display: none;
}

/* Compact Mode */
.compact-mode .timer-time {
    font-size: 2.5rem;
}

.compact-mode .timer-circle svg {
    width: 250px;
    height: 250px;
}

.compact-mode .quick-settings {
    padding: 1rem;
}

.compact-mode .features-section,
.compact-mode .stats-section,
.compact-mode .settings-section {
    display: none;
}

/* Utility Classes */
.text-primary { color: var(--primary-color) !important; }
.text-secondary { color: var(--secondary-color) !important; }
.text-success { color: var(--success-color) !important; }
.text-danger { color: var(--danger-color) !important; }
.text-warning { color: var(--warning-color) !important; }
.text-info { color: var(--info-color) !important; }

.bg-primary { background-color: var(--primary-color) !important; }
.bg-secondary { background-color: var(--secondary-color) !important; }
.bg-success { background-color: var(--success-color) !important; }
.bg-danger { background-color: var(--danger-color) !important; }
.bg-warning { background-color: var(--warning-color) !important; }
.bg-info { background-color: var(--info-color) !important; }

.text-center { text-align: center !important; }
.text-left { text-align: left !important; }
.text-right { text-align: right !important; }

.d-none { display: none !important; }
.d-block { display: block !important; }
.d-flex { display: flex !important; }
.d-grid { display: grid !important; }

.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 0.25rem !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.mb-5 { margin-bottom: 3rem !important; }

.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 0.25rem !important; }
.mt-2 { margin-top: 0.5rem !important; }
.mt-3 { margin-top: 1rem !important; }
.mt-4 { margin-top: 1.5rem !important; }
.mt-5 { margin-top: 3rem !important; }

.p-0 { padding: 0 !important; }
.p-1 { padding: 0.25rem !important; }
.p-2 { padding: 0.5rem !important; }

/* New Features Styles */

/* AI Assistant */
.ai-assistant {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 350px;
    max-height: 500px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    overflow: hidden;
    transition: var(--transition);
}

.ai-assistant.minimized {
    height: 60px;
}

.ai-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: var(--gradient-primary);
    color: white;
}

.ai-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.ai-body {
    padding: 1rem;
    max-height: 400px;
    overflow-y: auto;
}

.ai-suggestions {
    margin-bottom: 1rem;
}

.ai-suggestion {
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    margin-bottom: 0.5rem;
}

.ai-suggestion.urgent {
    border-color: var(--danger-color);
    background: rgba(220, 53, 69, 0.1);
}

.ai-chat {
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
}

.ai-messages {
    max-height: 200px;
    overflow-y: auto;
    margin-bottom: 1rem;
}

.ai-message {
    margin-bottom: 0.5rem;
    padding: 0.5rem;
    border-radius: var(--border-radius);
}

.ai-message.user-message {
    background: var(--primary-color);
    color: white;
    margin-left: 2rem;
}

.ai-message.ai-response {
    background: var(--bg-secondary);
    margin-right: 2rem;
}

.ai-input-area {
    display: flex;
    gap: 0.5rem;
}

.ai-input-area input {
    flex: 1;
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
}

/* Focus Music Player */
.focus-music-player {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 300px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    overflow: hidden;
}

.focus-music-player.minimized {
    height: 60px;
}

.playlist-select {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
}

.track-list {
    max-height: 200px;
    overflow-y: auto;
    margin-bottom: 1rem;
}

.track-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    border-radius: var(--border-radius);
    margin-bottom: 0.25rem;
    transition: var(--transition);
}

.track-item:hover {
    background: var(--bg-secondary);
}

.track-item.playing {
    background: var(--gradient-primary);
    color: white;
}

.now-playing {
    margin-bottom: 1rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
}

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

.volume-control {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.visualizer-container {
    height: 100px;
    margin-bottom: 1rem;
}

.music-settings {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

/* Gamification System */
.gamification-panel {
    max-width: 800px;
    margin: 2rem auto;
    background: var(--bg-primary);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: var(--gradient-primary);
    color: white;
}

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

.level-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-weight: bold;
}

.exp-bar {
    width: 100px;
    height: 8px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    overflow: hidden;
}

.exp-fill {
    height: 100%;
    background: white;
    transition: width 0.3s ease;
}

.panel-tabs {
    display: flex;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
}

.tab-btn {
    flex: 1;
    padding: 1rem;
    border: none;
    background: transparent;
    cursor: pointer;
    transition: var(--transition);
}

.tab-btn.active {
    background: var(--bg-primary);
    border-bottom: 2px solid var(--primary-color);
}

.tab-content {
    padding: 2rem;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

.achievements-grid {
    display: grid;
    gap: 2rem;
}

.achievement-category h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

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

.achievement-card {
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.achievement-card.unlocked {
    border-color: var(--success-color);
    background: rgba(40, 167, 69, 0.1);
}

.achievement-card.locked {
    opacity: 0.6;
}

.achievement-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.achievement-progress {
    margin: 0.5rem 0;
}

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

.reward-card {
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    text-align: center;
    transition: var(--transition);
}

.reward-card.unlocked {
    border-color: var(--success-color);
}

.reward-card.cant-afford {
    opacity: 0.6;
}

.leaderboard-list {
    display: grid;
    gap: 0.5rem;
}

.leaderboard-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
}

.leaderboard-item.top-1 {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: white;
}

.leaderboard-item.top-2 {
    background: linear-gradient(135deg, #C0C0C0, #808080);
    color: white;
}

.leaderboard-item.top-3 {
    background: linear-gradient(135deg, #CD7F32, #8B4513);
    color: white;
}

.profile-container {
    text-align: center;
}

.profile-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.profile-avatar {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
}

.level-indicator {
    position: absolute;
    bottom: -5px;
    right: -5px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-item {
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
}

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

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

.badges-collection {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.badge-item {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

/* Voice Controller */
.voice-controller {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 300px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    overflow: hidden;
}

.voice-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
}

.status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--text-secondary);
}

.status-indicator.listening {
    background: var(--success-color);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.voice-btn {
    width: 100%;
    padding: 0.75rem;
    border: none;
    border-radius: var(--border-radius);
    background: var(--gradient-primary);
    color: white;
    cursor: pointer;
    transition: var(--transition);
}

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

.commands-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.commands-list li {
    padding: 0.5rem;
    border-left: 3px solid var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.speech-settings {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.setting-item input[type="range"] {
    width: 100px;
}

/* Advanced Analytics */
.advanced-analytics {
    max-width: 1200px;
    margin: 2rem auto;
    background: var(--bg-primary);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.analytics-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: var(--gradient-primary);
    color: white;
}

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

.period-selector {
    padding: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--border-radius);
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.analytics-summary {
    padding: 2rem;
    background: var(--bg-secondary);
}

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

.summary-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--bg-primary);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
}

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

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

.card-change {
    font-size: 0.9rem;
}

.card-change.positive {
    color: var(--success-color);
}

.card-change.negative {
    color: var(--danger-color);
}

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

.chart-container {
    background: var(--bg-primary);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.analytics-insights {
    padding: 2rem;
    background: var(--bg-secondary);
}

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

.insight-card {
    padding: 1rem;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--info-color);
}

.insight-card.positive {
    border-left-color: var(--success-color);
    background: rgba(40, 167, 69, 0.1);
}

.insight-card.negative {
    border-left-color: var(--danger-color);
    background: rgba(220, 53, 69, 0.1);
}

.insight-card.neutral {
    border-left-color: var(--warning-color);
    background: rgba(255, 193, 7, 0.1);
}

.insight-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.insight-action {
    font-size: 0.9rem;
    font-weight: bold;
    color: var(--primary-color);
}

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

.detail-section {
    background: var(--bg-primary);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.performance-hours {
    display: grid;
    gap: 0.5rem;
    margin-top: 1rem;
}

.hour-bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hour-label {
    width: 60px;
    font-size: 0.9rem;
}

.hour-progress {
    flex: 1;
    height: 20px;
    background: var(--bg-tertiary);
    border-radius: 10px;
    overflow: hidden;
}

.hour-fill {
    height: 100%;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

.patterns-list,
.recommendations-list {
    list-style: none;
    padding: 0;
    margin-top: 1rem;
}

.patterns-list li,
.recommendations-list li {
    padding: 0.75rem;
    border-left: 3px solid var(--primary-color);
    margin-bottom: 0.5rem;
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
}

/* Achievement Notifications */
.achievement-notification {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2000;
    pointer-events: none;
}

.achievement-popup {
    background: var(--gradient-primary);
    color: white;
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 1rem;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease;
}

.achievement-notification.show .achievement-popup {
    opacity: 1;
    transform: scale(1);
}

.achievement-popup .achievement-icon {
    font-size: 3rem;
}

.points-earned {
    display: block;
    font-weight: bold;
    color: var(--accent-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .ai-assistant,
    .focus-music-player,
    .voice-controller {
        position: relative;
        width: 100%;
        margin: 1rem 0;
        bottom: auto;
        right: auto;
        left: auto;
    }
    
    .gamification-panel,
    .advanced-analytics {
        margin: 1rem;
    }
    
    .summary-cards {
        grid-template-columns: 1fr;
    }
    
    .analytics-charts {
        grid-template-columns: 1fr;
    }
    
    .insights-grid {
        grid-template-columns: 1fr;
    }
}

/* New Features Section */
.new-features-section {
    padding: 4rem 0;
    background: var(--bg-secondary);
}

.features-tabs {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.features-tabs .tab-btn {
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--border-color);
    background: var(--bg-primary);
    border-radius: 2rem;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}

.features-tabs .tab-btn:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.features-tabs .tab-btn.active {
    background: var(--gradient-primary);
    color: white;
    border-color: var(--primary-color);
}

.features-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.feature-pane {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.feature-pane.active {
    display: block;
}

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

.feature-overview {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-primary);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.feature-overview h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.feature-overview p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    max-width: 600px;
}

.feature-actions {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}

.feature-highlights {
    background: var(--bg-primary);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
}

.feature-highlights ul {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.feature-highlights li {
    padding: 0.75rem;
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-color);
    transition: var(--transition);
}

.feature-highlights li:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-sm);
}

.p-3 { padding: 1rem !important; }
.p-4 { padding: 1.5rem !important; }
.p-5 { padding: 3rem !important; }

/* Enhanced Modals */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-out;
}

.modal.active {
    display: flex;
    animation: slideIn 0.4s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { 
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    to { 
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-content {
    background: var(--bg-primary);
    border-radius: var(--border-radius-xl);
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 
        0 20px 25px -5px rgba(0, 0, 0, 0.1),
        0 10px 10px -5px rgba(0, 0, 0, 0.04),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: modalSlideIn 0.3s ease-out;
}

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

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 2rem 1rem 2rem;
    border-bottom: 1px solid var(--border-color);
    background: linear-gradient(135deg, var(--bg-primary), var(--bg-secondary));
    border-radius: var(--border-radius-xl) var(--border-radius-xl) 0 0;
}

.modal-header h2 {
    margin: 0;
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-header h2 i {
    color: var(--primary-color);
}

.btn-close {
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    font-size: 1.25rem;
    cursor: pointer;
    color: var(--text-secondary);
    padding: 0.5rem;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    position: relative;
}

.btn-close:hover {
    background: var(--danger-color);
    color: white;
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
    border-color: var(--danger-color);
}

.modal-body {
    padding: 2rem;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    padding: 1.5rem 2rem 2rem 2rem;
    border-top: 1px solid var(--border-color);
    background: var(--bg-secondary);
    border-radius: 0 0 var(--border-radius-xl) var(--border-radius-xl);
}

/* Enhanced Form Styles */
.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

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

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(255, 107, 107, 0.1);
    transform: translateY(-2px);
}

.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover {
    border-color: var(--accent-color);
}

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

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 9L2 5h8z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.color-inputs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.color-inputs .form-group {
    margin-bottom: 0;
}

.color-inputs input[type="color"] {
    width: 100%;
    height: 60px;
    border-radius: var(--border-radius-lg);
    cursor: pointer;
    border: 3px solid var(--border-color);
    transition: all 0.3s ease;
}

.color-inputs input[type="color"]:hover {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.theme-preview {
    margin: 2rem 0;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-color);
}

.theme-preview h3 {
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-size: 1.1rem;
}

.preview-card {
    padding: 1.5rem;
    background: var(--bg-primary);
    border-radius: var(--border-radius-lg);
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.preview-card h4 {
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    font-size: 1.1rem;
}

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

.preview-card .btn {
    margin: 0 0.25rem;
}

/* Enhanced File Input */
.file-input-group {
    margin: 2rem 0;
    text-align: center;
    padding: 2rem;
    background: var(--bg-secondary);
    border-radius: var(--border-radius-lg);
    border: 2px dashed var(--border-color);
    transition: all 0.3s ease;
}

.file-input-group:hover {
    border-color: var(--primary-color);
    background: rgba(255, 107, 107, 0.05);
}

.file-input-group input[type="file"] {
    display: none;
}

.file-input-group label {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--gradient-primary);
    color: white;
    border-radius: var(--border-radius-lg);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    box-shadow: var(--shadow-md);
}

.file-input-group label:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.import-instructions {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.1), rgba(78, 205, 196, 0.1));
    border-radius: var(--border-radius-lg);
    border-left: 4px solid var(--info-color);
}

.import-instructions p {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.import-instructions p:last-child {
    margin-bottom: 0;
    font-weight: 600;
    color: var(--info-color);
}

.import-preview {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: var(--border-radius-lg);
    min-height: 120px;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
}

.import-preview.has-content {
    justify-content: flex-start;
    align-items: flex-start;
}

/* Enhanced Tasks Container */
#tasks-container {
    position: fixed;
    top: 100px;
    right: 20px;
    width: 380px;
    max-height: 550px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-xl);
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    z-index: 1500;
    overflow: hidden;
    animation: slideInRight 0.4s ease-out;
    transform-origin: top right;
}

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

.tasks-header {
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--gradient-primary), var(--accent-color));
    color: white;
    position: relative;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.tasks-header h3 {
    margin: 0 0 1rem 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.tasks-header .btn-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: white;
    font-size: 1.1rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.tasks-header .btn-close:hover {
    background: rgba(220, 53, 69, 0.8);
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border-color: rgba(220, 53, 69, 0.8);
}

.task-filters {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.task-filter {
    padding: 0.5rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 2rem;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.task-filter:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.task-filter.active {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

#task-search {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: var(--border-radius-lg);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

#task-search::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

#task-search:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

#tasks-list {
    max-height: 350px;
    overflow-y: auto;
    padding: 1rem;
    background: var(--bg-primary);
}

#tasks-list::-webkit-scrollbar {
    width: 6px;
}

#tasks-list::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

#tasks-list::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

#tasks-list::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}

#task-stats {
    padding: 1rem;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Current Task Display */
#current-task-display {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-primary);
    color: white;
    padding: 1rem 2rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    z-index: 1500;
    text-align: center;
}

#current-task-display h4 {
    margin: 0 0 0.5rem 0;
}

.current-task-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.task-progress {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.task-progress .progress-bar {
    width: 100px;
    height: 6px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
    overflow: hidden;
}

.task-progress .progress-fill {
    height: 100%;
    background: white;
    transition: width 0.3s ease;
}

/* Task Items */
.task-item {
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
    padding: 1rem;
    margin-bottom: 0.5rem;
    border-left: 4px solid var(--primary-color);
    transition: var(--transition);
}

.task-item:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-sm);
}

.task-item.completed {
    border-left-color: var(--success-color);
    opacity: 0.7;
}

.task-item.current {
    border-left-color: var(--accent-color);
    background: rgba(255, 217, 61, 0.1);
}

.task-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.task-title {
    margin: 0;
    font-weight: 500;
    color: var(--text-primary);
}

.task-priority {
    padding: 0.25rem 0.5rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
}

.task-priority.low {
    background: var(--success-color);
    color: white;
}

.task-priority.medium {
    background: var(--warning-color);
    color: white;
}

.task-priority.high {
    background: var(--danger-color);
    color: white;
}

.task-priority.urgent {
    background: var(--dark-color);
    color: white;
}

.task-description {
    margin: 0.5rem 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.task-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.task-category {
    padding: 0.25rem 0.5rem;
    background: var(--bg-tertiary);
    border-radius: var(--border-radius);
}

.task-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.task-actions .btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
}

.no-tasks {
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
}

/* Responsive Design for Mobile */
@media (max-width: 768px) {
    #tasks-container {
        position: relative;
        top: auto;
        right: auto;
        width: 100%;
        margin: 1rem 0;
    }
    
    #current-task-display {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        margin: 1rem;
    }
    
    .modal-content {
        width: 95%;
        margin: 1rem;
    }
}

/* Theme Selector Panel */
.theme-selector-panel {
    position: fixed;
    top: 100px;
    left: 20px;
    width: 350px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    z-index: 1500;
    overflow: hidden;
}

.theme-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--gradient-primary);
    color: white;
}

.theme-options {
    padding: 1rem;
}

.preset-themes h4 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.theme-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.theme-option {
    text-align: center;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.theme-option:hover {
    background: var(--bg-secondary);
    transform: translateY(-2px);
}

.theme-preview {
    width: 60px;
    height: 40px;
    border-radius: var(--border-radius);
    margin: 0 auto 0.5rem;
    border: 2px solid var(--border-color);
}

.light-preview { background: linear-gradient(135deg, #FF6B6B, #4ECDC4); }
.dark-preview { background: linear-gradient(135deg, #1A1A1A, #2D2D2D); }
.ocean-preview { background: linear-gradient(135deg, #006BA6, #0496FF); }
.forest-preview { background: linear-gradient(135deg, #2D6A4F, #52B788); }
.sunset-preview { background: linear-gradient(135deg, #FF6B35, #F77F00); }
.classic-preview { background: linear-gradient(135deg, #FF6B6B, #4ECDC4); }

.theme-controls {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Enhanced Gamification Panel */
.gamification-panel {
    position: fixed;
    top: 50px;
    right: 20px;
    width: 450px;
    max-height: 85vh;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-xl);
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    z-index: 1500;
    overflow: hidden;
    animation: slideInRight 0.4s ease-out;
    transform-origin: top right;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
    background: linear-gradient(135deg, var(--gradient-primary), var(--accent-color));
    color: white;
    position: relative;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.panel-header h2 {
    margin: 0;
    flex: 1;
    font-size: 1.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.panel-header h2 i {
    font-size: 1.8rem;
    color: #FFD700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.panel-header .btn-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: white;
    font-size: 1.2rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.panel-header .btn-close:hover {
    background: rgba(220, 53, 69, 0.8);
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border-color: rgba(220, 53, 69, 0.8);
}

.user-level {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: auto;
    margin-right: 3rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.75rem 1.25rem;
    border-radius: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.level-badge {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 1.5rem;
    font-weight: bold;
    font-size: 0.9rem;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.exp-bar {
    width: 120px;
    height: 10px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.exp-fill {
    height: 100%;
    background: linear-gradient(90deg, #FFD700, #FFA500);
    transition: width 0.5s ease;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.exp-text {
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.panel-tabs {
    display: flex;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    overflow-x: auto;
}

.panel-tabs .tab-btn {
    flex: 1;
    padding: 1rem;
    border: none;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    white-space: nowrap;
    position: relative;
}

.panel-tabs .tab-btn:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.panel-tabs .tab-btn.active {
    background: var(--bg-primary);
    color: var(--primary-color);
    border-bottom: 3px solid var(--primary-color);
    font-weight: 600;
}

.panel-tabs .tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-color);
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
}

.tab-content {
    max-height: 60vh;
    overflow-y: auto;
    background: var(--bg-primary);
}

.tab-content::-webkit-scrollbar {
    width: 8px;
}

.tab-content::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

.tab-content::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

.tab-content::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}

.tab-pane {
    display: none;
    padding: 2rem;
    animation: fadeInUp 0.3s ease-out;
}

.tab-pane.active {
    display: block;
}

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

.achievements-grid {
    display: grid;
    gap: 1rem;
}

.achievement-category h3 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    font-size: 1rem;
}

.category-achievements {
    display: grid;
    gap: 0.5rem;
}

.achievement-card {
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.achievement-card.unlocked {
    border-color: var(--success-color);
    background: rgba(40, 167, 69, 0.1);
}

.achievement-card.locked {
    opacity: 0.6;
}

.achievement-icon {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.achievement-progress {
    margin: 0.25rem 0;
}

.rewards-grid {
    display: grid;
    gap: 0.5rem;
}

.reward-card {
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    text-align: center;
    transition: var(--transition);
}

.reward-card.unlocked {
    border-color: var(--success-color);
}

.reward-card.cant-afford {
    opacity: 0.6;
}

.leaderboard-list {
    display: grid;
    gap: 0.5rem;
}

.leaderboard-item {
    display: flex;
    align-items: center;
    padding: 0.5rem;
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
}

.leaderboard-item.top-1 {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: white;
}

.leaderboard-item.top-2 {
    background: linear-gradient(135deg, #C0C0C0, #808080);
    color: white;
}

.leaderboard-item.top-3 {
    background: linear-gradient(135deg, #CD7F32, #8B4513);
    color: white;
}

.rank {
    font-weight: bold;
    margin-right: 1rem;
    min-width: 30px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
}

.user-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.75rem;
}

.user-score {
    font-weight: bold;
}

/* Profile Styles */
.profile-container {
    text-align: center;
}

.profile-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
}

.profile-avatar {
    position: relative;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.level-indicator {
    position: absolute;
    bottom: -5px;
    right: -5px;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: bold;
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.stat-item {
    padding: 0.75rem;
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
}

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

.stat-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.badges-collection {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.badge-item {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.75rem;
}

/* Enhanced Analytics Panel */
.advanced-analytics {
    position: fixed;
    top: 50px;
    left: 20px;
    width: 500px;
    max-height: 90vh;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-xl);
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    z-index: 1500;
    overflow: hidden;
    animation: slideInLeft 0.4s ease-out;
    transform-origin: top left;
}

@keyframes slideInLeft {
    from { 
        opacity: 0;
        transform: translateX(-100px) scale(0.95);
    }
    to { 
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

.analytics-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
    background: linear-gradient(135deg, var(--gradient-primary), var(--accent-color));
    color: white;
    position: relative;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.analytics-header h2 {
    margin: 0;
    flex: 1;
    font-size: 1.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.analytics-header h2 i {
    font-size: 1.8rem;
    color: #4ECDC4;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.analytics-header .btn-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: white;
    font-size: 1.2rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.analytics-header .btn-close:hover {
    background: rgba(220, 53, 69, 0.8);
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border-color: rgba(220, 53, 69, 0.8);
}

.analytics-controls {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-left: auto;
    margin-right: 3rem;
}

.period-selector {
    padding: 0.75rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--border-radius-lg);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
}

.period-selector:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

.period-selector:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

.analytics-header .btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 0.75rem 1.25rem;
    border-radius: var(--border-radius-lg);
    font-weight: 500;
    transition: all 0.3s ease;
}

.analytics-header .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

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

.summary-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.summary-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--bg-primary);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.summary-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.card-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
}

.card-content h3 {
    margin: 0 0 0.5rem 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

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

.card-change {
    font-size: 0.8rem;
    font-weight: 500;
}

.card-change.positive {
    color: var(--success-color);
}

.card-change.negative {
    color: var(--danger-color);
}

.analytics-charts {
    padding: 2rem;
    max-height: 400px;
    overflow-y: auto;
    background: var(--bg-primary);
}

.analytics-charts::-webkit-scrollbar {
    width: 8px;
}

.analytics-charts::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

.analytics-charts::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

.chart-container {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.chart-container:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.chart-container h3 {
    margin: 0 0 1rem 0;
    font-size: 1.1rem;
    color: var(--text-primary);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.chart-container h3 i {
    color: var(--primary-color);
    font-size: 1rem;
}

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

.analytics-insights h3 {
    margin: 0 0 1.5rem 0;
    font-size: 1.2rem;
    color: var(--text-primary);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.analytics-insights h3 i {
    color: var(--accent-color);
    font-size: 1.1rem;
}

.insights-grid {
    display: grid;
    gap: 1rem;
}

.insight-card {
    padding: 1.5rem;
    border-radius: var(--border-radius-lg);
    border-left: 4px solid var(--info-color);
    font-size: 0.9rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.insight-card:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-sm);
}

.insight-card.positive {
    border-left-color: var(--success-color);
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.05), rgba(40, 167, 69, 0.02));
}

.insight-card.negative {
    border-left-color: var(--danger-color);
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.05), rgba(220, 53, 69, 0.02));
}

.insight-card h4 {
    margin: 0 0 0.5rem 0;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1rem;
}

.insight-card p {
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.5;
}

.analytics-details {
    padding: 1rem;
    max-height: 200px;
    overflow-y: auto;
}

.detail-section {
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
}

.detail-section h3 {
    margin: 0 0 0.5rem 0;
    font-size: 0.875rem;
    color: var(--text-primary);
}

.performance-hours {
    display: grid;
    gap: 0.25rem;
}

.hour-bar {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.hour-label {
    width: 40px;
    font-size: 0.75rem;
}

.hour-progress {
    flex: 1;
    height: 15px;
    background: var(--bg-tertiary);
    border-radius: 7px;
    overflow: hidden;
}

.hour-fill {
    height: 100%;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

.patterns-list,
.recommendations-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.patterns-list li,
.recommendations-list li {
    padding: 0.5rem;
    border-left: 3px solid var(--primary-color);
    margin-bottom: 0.25rem;
    background: var(--bg-primary);
    border-radius: var(--border-radius);
    font-size: 0.8rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .gamification-panel,
    .advanced-analytics,
    .theme-selector-panel,
    .ai-assistant-panel,
    .music-player-panel,
    .voice-controller-panel {
        position: relative;
        top: auto;
        right: auto;
        left: auto;
        width: 100%;
        margin: 1rem 0;
        max-height: none;
    }
    
    .summary-cards {
        grid-template-columns: 1fr;
    }
    
    .profile-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* AI Assistant Panel */
.ai-assistant-panel {
    position: fixed;
    top: 100px;
    left: 20px;
    width: 400px;
    max-height: 600px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-xl);
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    z-index: 1500;
    overflow: hidden;
    animation: slideInLeft 0.4s ease-out;
    transform-origin: top left;
}

.ai-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, #FF6B6B, #4ECDC4);
    color: white;
}

.ai-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ai-controls {
    display: flex;
    gap: 0.5rem;
}

.btn-minimize {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn-minimize:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.ai-content {
    padding: 1.5rem;
    max-height: 450px;
    overflow-y: auto;
}

.ai-suggestions {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: var(--border-radius-lg);
    border-left: 4px solid var(--primary-color);
}

.ai-chat {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.ai-messages {
    max-height: 250px;
    overflow-y: auto;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: var(--border-radius-lg);
}

.ai-message {
    margin-bottom: 1rem;
    padding: 0.75rem;
    border-radius: var(--border-radius);
}

.ai-message.user-message {
    background: var(--primary-color);
    color: white;
    margin-left: 2rem;
}

.ai-message.ai-response {
    background: var(--accent-color);
    color: white;
    margin-right: 2rem;
}

.ai-input-area {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.ai-input-area input {
    flex: 1;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    font-size: 0.9rem;
}

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

/* Music Player Panel */
.music-player-panel {
    position: fixed;
    top: 100px;
    right: 20px;
    width: 450px;
    max-height: 650px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-xl);
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    z-index: 1500;
    overflow: hidden;
    animation: slideInRight 0.4s ease-out;
    transform-origin: top right;
}

.music-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, #4ECDC4, #44A08D);
    color: white;
}

.music-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.music-controls {
    display: flex;
    gap: 0.5rem;
}

.music-content {
    padding: 1.5rem;
    max-height: 500px;
    overflow-y: auto;
}

.playlist-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.playlist-header h4 {
    margin: 0;
    color: var(--text-primary);
}

.playlist-header select {
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background: var(--bg-primary);
}

.playlist-tracks {
    margin-bottom: 2rem;
    max-height: 200px;
    overflow-y: auto;
}

.track-item {
    padding: 0.75rem;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.track-item:hover {
    background: var(--bg-secondary);
}

.track-item.playing {
    background: rgba(78, 205, 196, 0.1);
    border-left: 3px solid var(--accent-color);
}

.music-player {
    text-align: center;
}

.now-playing h4 {
    margin: 0 0 0.5rem 0;
    color: var(--text-primary);
}

.track-info {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.music-visualizer {
    height: 80px;
    background: var(--bg-secondary);
    border-radius: var(--border-radius-lg);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

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

.volume-control {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    color: var(--text-secondary);
}

.volume-control input[type="range"] {
    width: 150px;
}

/* Voice Controller Panel */
.voice-controller-panel {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 380px;
    max-height: 500px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-xl);
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    z-index: 1500;
    overflow: hidden;
    animation: slideInUp 0.4s ease-out;
}

@keyframes slideInUp {
    from { 
        opacity: 0;
        transform: translateY(100px) scale(0.95);
    }
    to { 
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.voice-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.voice-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.voice-controls {
    display: flex;
    gap: 0.5rem;
}

.voice-content {
    padding: 1.5rem;
    max-height: 350px;
    overflow-y: auto;
}

.voice-status {
    margin-bottom: 1.5rem;
    text-align: center;
}

.status-indicator {
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: var(--border-radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--text-secondary);
}

.status-indicator.active {
    background: rgba(40, 167, 69, 0.1);
    color: var(--success-color);
}

.voice-commands {
    margin-bottom: 1.5rem;
}

.voice-commands h4 {
    margin: 0 0 1rem 0;
    color: var(--text-primary);
}

.voice-commands ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.voice-commands li {
    padding: 0.5rem;
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.voice-settings h4 {
    margin: 0 0 1rem 0;
    color: var(--text-primary);
}

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

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

.setting-group input[type="range"] {
    width: 100%;
}
