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

:root {
    /* Ocean Theme (Default) */
    --primary-color: #4A90E2;
    --secondary-color: #7ED321;
    --accent-color: #F5A623;
    --background-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --surface-color: rgba(255, 255, 255, 0.1);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.8);
    --shadow-color: rgba(0, 0, 0, 0.2);
    --border-color: rgba(255, 255, 255, 0.2);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--background-gradient);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    transition: all 0.3s ease;
}

.app-container {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Background Elements */
.background-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.floating-shapes {
    position: relative;
    width: 100%;
    height: 100%;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    animation: float 6s ease-in-out infinite;
}

.shape-1 {
    width: 80px;
    height: 80px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 120px;
    height: 120px;
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.shape-3 {
    width: 60px;
    height: 60px;
    bottom: 20%;
    left: 20%;
    animation-delay: 4s;
}

.shape-4 {
    width: 100px;
    height: 100px;
    top: 40%;
    right: 30%;
    animation-delay: 1s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 3rem;
    z-index: 10;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.logo i {
    font-size: 1.8rem;
    color: var(--accent-color);
}

.header-controls {
    display: flex;
    gap: 1rem;
}

.theme-toggle, .settings-btn {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.75rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.theme-toggle:hover, .settings-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--shadow-color);
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    position: relative;
    z-index: 5;
}

.timer-container {
    text-align: center;
    max-width: 500px;
    width: 100%;
}

/* Weather Display */
.weather-display {
    margin-bottom: 2rem;
    opacity: 0.8;
}

.weather-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: var(--surface-color);
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    display: inline-flex;
}

.weather-icon {
    font-size: 1.2rem;
    color: var(--accent-color);
}

.weather-temp {
    font-weight: 600;
    font-size: 1.1rem;
}

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

/* Timer Circle */
.timer-circle {
    position: relative;
    width: 300px;
    height: 300px;
    margin: 0 auto 2rem;
}

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

.progress-ring-circle {
    stroke-dasharray: 879.6;
    stroke-dashoffset: 879.6;
    transition: stroke-dashoffset 1s ease-in-out;
    stroke: var(--primary-color);
    filter: drop-shadow(0 0 10px rgba(74, 144, 226, 0.5));
}

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

.timer-mode {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.timer-display {
    font-size: 4rem;
    font-weight: 300;
    line-height: 1;
    margin-bottom: 0.5rem;
    font-variant-numeric: tabular-nums;
}

.timer-session {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 400;
}

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

.control-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.control-btn.primary {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 8px 25px rgba(74, 144, 226, 0.4);
}

.control-btn.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(74, 144, 226, 0.6);
}

.control-btn.secondary {
    background: var(--surface-color);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.control-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Mode Selector */
.mode-selector {
    display: flex;
    background: var(--surface-color);
    border-radius: 15px;
    padding: 0.5rem;
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    gap: 0.5rem;
}

.mode-btn {
    flex: 1;
    padding: 0.75rem 1rem;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.mode-btn.active {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
}

.mode-btn:hover:not(.active) {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

/* Settings Panel */
.settings-panel {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: var(--surface-color);
    backdrop-filter: blur(20px);
    border-left: 1px solid var(--border-color);
    transition: right 0.3s ease;
    z-index: 1000;
    overflow-y: auto;
}

.settings-panel.open {
    right: 0;
}

.settings-content {
    padding: 2rem;
}

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

.settings-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
}

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

.close-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

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

.settings-section h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

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

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

.setting-item input[type="number"] {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    font-size: 1rem;
}

.setting-item input[type="number"]:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.2);
}

/* Theme Grid */
.theme-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    max-height: 300px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.theme-grid::-webkit-scrollbar {
    width: 6px;
}

.theme-grid::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.theme-grid::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 3px;
}

.theme-grid::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

.theme-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    padding: 0.75rem 0.5rem;
    border: 2px solid transparent;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.85rem;
    min-height: 70px;
}

.theme-option.active {
    border-color: var(--primary-color);
    background: rgba(74, 144, 226, 0.1);
}

.theme-option:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.theme-option span {
    font-size: 0.75rem;
    font-weight: 500;
    text-align: center;
    line-height: 1.2;
}

.theme-preview {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

/* Theme Selector */
.theme-selector {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    background: var(--surface-color);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 1.5rem;
    z-index: 1000;
    transition: transform 0.3s ease;
    max-width: 500px;
    width: 90%;
    max-height: 70vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.theme-selector.open {
    transform: translate(-50%, -50%) scale(1);
}

.theme-selector-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.theme-selector-header h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.close-theme-btn {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.1rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: background 0.3s ease;
}

.close-theme-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.theme-options {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
    overflow-y: auto;
    padding-right: 0.5rem;
    max-height: 60vh;
}

.theme-options::-webkit-scrollbar {
    width: 6px;
}

.theme-options::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.theme-options::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 3px;
}

.theme-options::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

.theme-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    padding: 0.75rem 0.5rem;
    border: 2px solid transparent;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-primary);
    font-size: 0.85rem;
    min-height: 70px;
}

.theme-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.theme-btn span {
    font-size: 0.75rem;
    font-weight: 500;
    text-align: center;
    line-height: 1.2;
}

/* Checkbox Styles */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    font-weight: 400;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    position: relative;
    transition: all 0.3s ease;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

/* Theme Variations */
[data-theme="ocean"] {
    --primary-color: #4A90E2;
    --secondary-color: #7ED321;
    --accent-color: #F5A623;
    --background-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

[data-theme="sunset"] {
    --primary-color: #FF6B6B;
    --secondary-color: #4ECDC4;
    --accent-color: #FFE66D;
    --background-gradient: linear-gradient(135deg, #ff9a9e 0%, #fecfef 50%, #fecfef 100%);
}

[data-theme="forest"] {
    --primary-color: #2ECC71;
    --secondary-color: #3498DB;
    --accent-color: #F39C12;
    --background-gradient: linear-gradient(135deg, #134e5e 0%, #71b280 100%);
}

[data-theme="night"] {
    --primary-color: #9B59B6;
    --secondary-color: #E74C3C;
    --accent-color: #F1C40F;
    --background-gradient: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
}

[data-theme="aurora"] {
    --primary-color: #00D4AA;
    --secondary-color: #FF6B9D;
    --accent-color: #C44569;
    --background-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
}

[data-theme="minimal"] {
    --primary-color: #2C3E50;
    --secondary-color: #34495E;
    --accent-color: #E74C3C;
    --background-gradient: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    --text-primary: #2C3E50;
    --text-secondary: #7F8C8D;
    --surface-color: rgba(255, 255, 255, 0.8);
    --border-color: rgba(44, 62, 80, 0.2);
    --shadow-color: rgba(0, 0, 0, 0.1);
}


[data-theme="rain"] {
    --primary-color: #607D8B;
    --secondary-color: #90A4AE;
    --accent-color: #FFC107;
    --background-gradient: linear-gradient(135deg, #37474f 0%, #546e7a 100%);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.8);
    --surface-color: rgba(255, 255, 255, 0.1);
    --border-color: rgba(255, 255, 255, 0.2);
    --shadow-color: rgba(0, 0, 0, 0.3);
}

[data-theme="stars"] {
    --primary-color: #9C27B0;
    --secondary-color: #E91E63;
    --accent-color: #FFD700;
    --background-gradient: linear-gradient(135deg, #0c1445 0%, #1a237e 100%);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.8);
    --surface-color: rgba(255, 255, 255, 0.1);
    --border-color: rgba(255, 255, 255, 0.2);
    --shadow-color: rgba(0, 0, 0, 0.5);
}

[data-theme="cherry-blossom"] {
    --primary-color: #E91E63;
    --secondary-color: #F06292;
    --accent-color: #FFB74D;
    --background-gradient: linear-gradient(135deg, #fce4ec 0%, #f8bbd9 100%);
    --text-primary: #C2185B;
    --text-secondary: #AD1457;
    --surface-color: rgba(255, 255, 255, 0.8);
    --border-color: rgba(233, 30, 99, 0.3);
    --shadow-color: rgba(233, 30, 99, 0.2);
}

[data-theme="ocean-waves"] {
    --primary-color: #0277BD;
    --secondary-color: #0288D1;
    --accent-color: #FFC107;
    --background-gradient: linear-gradient(135deg, #0277bd 0%, #01579b 100%);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.8);
    --surface-color: rgba(255, 255, 255, 0.1);
    --border-color: rgba(255, 255, 255, 0.2);
    --shadow-color: rgba(0, 0, 0, 0.3);
}

[data-theme="autumn"] {
    --primary-color: #FF6F00;
    --secondary-color: #FF8F00;
    --accent-color: #FFD54F;
    --background-gradient: linear-gradient(135deg, #FF6F00 0%, #E65100 50%, #FF8F00 100%);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.9);
    --surface-color: rgba(255, 255, 255, 0.15);
    --border-color: rgba(255, 255, 255, 0.3);
    --shadow-color: rgba(0, 0, 0, 0.4);
}

[data-theme="spring"] {
    --primary-color: #4CAF50;
    --secondary-color: #8BC34A;
    --accent-color: #FFEB3B;
    --background-gradient: linear-gradient(135deg, #4CAF50 0%, #8BC34A 50%, #C8E6C9 100%);
    --text-primary: #1B5E20;
    --text-secondary: #2E7D32;
    --surface-color: rgba(255, 255, 255, 0.8);
    --border-color: rgba(76, 175, 80, 0.3);
    --shadow-color: rgba(76, 175, 80, 0.2);
}

[data-theme="summer"] {
    --primary-color: #FF9800;
    --secondary-color: #FFC107;
    --accent-color: #FF5722;
    --background-gradient: linear-gradient(135deg, #FF9800 0%, #FFC107 50%, #FF5722 100%);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.9);
    --surface-color: rgba(255, 255, 255, 0.2);
    --border-color: rgba(255, 255, 255, 0.3);
    --shadow-color: rgba(0, 0, 0, 0.3);
}

[data-theme="winter"] {
    --primary-color: #2196F3;
    --secondary-color: #03A9F4;
    --accent-color: #E1F5FE;
    --background-gradient: linear-gradient(135deg, #2196F3 0%, #03A9F4 50%, #E1F5FE 100%);
    --text-primary: #01579B;
    --text-secondary: #0277BD;
    --surface-color: rgba(255, 255, 255, 0.9);
    --border-color: rgba(33, 150, 243, 0.3);
    --shadow-color: rgba(33, 150, 243, 0.2);
}

[data-theme="galaxy"] {
    --primary-color: #9C27B0;
    --secondary-color: #673AB7;
    --accent-color: #E91E63;
    --background-gradient: linear-gradient(135deg, #0D47A1 0%, #1A237E 50%, #4A148C 100%);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.8);
    --surface-color: rgba(255, 255, 255, 0.1);
    --border-color: rgba(255, 255, 255, 0.2);
    --shadow-color: rgba(0, 0, 0, 0.6);
}

[data-theme="neon"] {
    --primary-color: #00E676;
    --secondary-color: #00BCD4;
    --accent-color: #FF4081;
    --background-gradient: linear-gradient(135deg, #000000 0%, #1A1A1A 50%, #000000 100%);
    --text-primary: #00E676;
    --text-secondary: #00BCD4;
    --surface-color: rgba(0, 230, 118, 0.1);
    --border-color: rgba(0, 230, 118, 0.5);
    --shadow-color: rgba(0, 230, 118, 0.3);
}

[data-theme="vintage"] {
    --primary-color: #8D6E63;
    --secondary-color: #A1887F;
    --accent-color: #D7CCC8;
    --background-gradient: linear-gradient(135deg, #8D6E63 0%, #A1887F 50%, #D7CCC8 100%);
    --text-primary: #3E2723;
    --text-secondary: #5D4037;
    --surface-color: rgba(255, 255, 255, 0.8);
    --border-color: rgba(141, 110, 99, 0.3);
    --shadow-color: rgba(141, 110, 99, 0.2);
}

[data-theme="cyberpunk"] {
    --primary-color: #00FFFF;
    --secondary-color: #FF00FF;
    --accent-color: #FFFF00;
    --background-gradient: linear-gradient(135deg, #0A0A0A 0%, #1A0033 50%, #000000 100%);
    --text-primary: #00FFFF;
    --text-secondary: #FF00FF;
    --surface-color: rgba(0, 255, 255, 0.1);
    --border-color: rgba(0, 255, 255, 0.5);
    --shadow-color: rgba(0, 255, 255, 0.3);
}

[data-theme="lavender"] {
    --primary-color: #9C27B0;
    --secondary-color: #BA68C8;
    --accent-color: #E1BEE7;
    --background-gradient: linear-gradient(135deg, #9C27B0 0%, #BA68C8 50%, #E1BEE7 100%);
    --text-primary: #4A148C;
    --text-secondary: #6A1B9A;
    --surface-color: rgba(255, 255, 255, 0.8);
    --border-color: rgba(156, 39, 176, 0.3);
    --shadow-color: rgba(156, 39, 176, 0.2);
}

[data-theme="emerald"] {
    --primary-color: #00C853;
    --secondary-color: #4CAF50;
    --accent-color: #8BC34A;
    --background-gradient: linear-gradient(135deg, #00C853 0%, #4CAF50 50%, #8BC34A 100%);
    --text-primary: #1B5E20;
    --text-secondary: #2E7D32;
    --surface-color: rgba(255, 255, 255, 0.9);
    --border-color: rgba(0, 200, 83, 0.3);
    --shadow-color: rgba(0, 200, 83, 0.2);
}

[data-theme="coral"] {
    --primary-color: #FF5722;
    --secondary-color: #FF7043;
    --accent-color: #FFAB91;
    --background-gradient: linear-gradient(135deg, #FF5722 0%, #FF7043 50%, #FFAB91 100%);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.9);
    --surface-color: rgba(255, 255, 255, 0.2);
    --border-color: rgba(255, 255, 255, 0.3);
    --shadow-color: rgba(0, 0, 0, 0.3);
}

[data-theme="midnight"] {
    --primary-color: #3F51B5;
    --secondary-color: #5C6BC0;
    --accent-color: #9C27B0;
    --background-gradient: linear-gradient(135deg, #0D47A1 0%, #1A237E 50%, #4A148C 100%);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.8);
    --surface-color: rgba(255, 255, 255, 0.1);
    --border-color: rgba(255, 255, 255, 0.2);
    --shadow-color: rgba(0, 0, 0, 0.5);
}

[data-theme="golden"] {
    --primary-color: #FFD700;
    --secondary-color: #FFC107;
    --accent-color: #FF8F00;
    --background-gradient: linear-gradient(135deg, #FFD700 0%, #FFC107 50%, #FF8F00 100%);
    --text-primary: #B8860B;
    --text-secondary: #DAA520;
    --surface-color: rgba(255, 255, 255, 0.9);
    --border-color: rgba(255, 215, 0, 0.3);
    --shadow-color: rgba(255, 215, 0, 0.2);
}

[data-theme="rose"] {
    --primary-color: #E91E63;
    --secondary-color: #F06292;
    --accent-color: #F8BBD9;
    --background-gradient: linear-gradient(135deg, #E91E63 0%, #F06292 50%, #F8BBD9 100%);
    --text-primary: #AD1457;
    --text-secondary: #C2185B;
    --surface-color: rgba(255, 255, 255, 0.8);
    --border-color: rgba(233, 30, 99, 0.3);
    --shadow-color: rgba(233, 30, 99, 0.2);
}

[data-theme="mint"] {
    --primary-color: #00BCD4;
    --secondary-color: #4DD0E1;
    --accent-color: #B2EBF2;
    --background-gradient: linear-gradient(135deg, #00BCD4 0%, #4DD0E1 50%, #B2EBF2 100%);
    --text-primary: #00695C;
    --text-secondary: #00838F;
    --surface-color: rgba(255, 255, 255, 0.9);
    --border-color: rgba(0, 188, 212, 0.3);
    --shadow-color: rgba(0, 188, 212, 0.2);
}

[data-theme="peach"] {
    --primary-color: #FF7043;
    --secondary-color: #FFAB91;
    --accent-color: #FFE0B2;
    --background-gradient: linear-gradient(135deg, #FF7043 0%, #FFAB91 50%, #FFE0B2 100%);
    --text-primary: #D84315;
    --text-secondary: #E64A19;
    --surface-color: rgba(255, 255, 255, 0.9);
    --border-color: rgba(255, 112, 67, 0.3);
    --shadow-color: rgba(255, 112, 67, 0.2);
}

[data-theme="indigo"] {
    --primary-color: #3F51B5;
    --secondary-color: #5C6BC0;
    --accent-color: #9FA8DA;
    --background-gradient: linear-gradient(135deg, #3F51B5 0%, #5C6BC0 50%, #9FA8DA 100%);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.9);
    --surface-color: rgba(255, 255, 255, 0.1);
    --border-color: rgba(255, 255, 255, 0.2);
    --shadow-color: rgba(0, 0, 0, 0.3);
}

[data-theme="turquoise"] {
    --primary-color: #00BCD4;
    --secondary-color: #26C6DA;
    --accent-color: #80DEEA;
    --background-gradient: linear-gradient(135deg, #00BCD4 0%, #26C6DA 50%, #80DEEA 100%);
    --text-primary: #00695C;
    --text-secondary: #00838F;
    --surface-color: rgba(255, 255, 255, 0.9);
    --border-color: rgba(0, 188, 212, 0.3);
    --shadow-color: rgba(0, 188, 212, 0.2);
}

[data-theme="crimson"] {
    --primary-color: #DC143C;
    --secondary-color: #E91E63;
    --accent-color: #F8BBD9;
    --background-gradient: linear-gradient(135deg, #DC143C 0%, #E91E63 50%, #F8BBD9 100%);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.9);
    --surface-color: rgba(255, 255, 255, 0.2);
    --border-color: rgba(255, 255, 255, 0.3);
    --shadow-color: rgba(0, 0, 0, 0.4);
}

[data-theme="silver"] {
    --primary-color: #9E9E9E;
    --secondary-color: #BDBDBD;
    --accent-color: #E0E0E0;
    --background-gradient: linear-gradient(135deg, #9E9E9E 0%, #BDBDBD 50%, #E0E0E0 100%);
    --text-primary: #424242;
    --text-secondary: #616161;
    --surface-color: rgba(255, 255, 255, 0.9);
    --border-color: rgba(158, 158, 158, 0.3);
    --shadow-color: rgba(158, 158, 158, 0.2);
}

[data-theme="copper"] {
    --primary-color: #B87333;
    --secondary-color: #CD7F32;
    --accent-color: #D2B48C;
    --background-gradient: linear-gradient(135deg, #B87333 0%, #CD7F32 50%, #D2B48C 100%);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.9);
    --surface-color: rgba(255, 255, 255, 0.2);
    --border-color: rgba(255, 255, 255, 0.3);
    --shadow-color: rgba(0, 0, 0, 0.3);
}

[data-theme="amethyst"] {
    --primary-color: #9C27B0;
    --secondary-color: #BA68C8;
    --accent-color: #E1BEE7;
    --background-gradient: linear-gradient(135deg, #4A148C 0%, #7B1FA2 50%, #9C27B0 100%);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.9);
    --surface-color: rgba(255, 255, 255, 0.1);
    --border-color: rgba(255, 255, 255, 0.2);
    --shadow-color: rgba(0, 0, 0, 0.4);
}

[data-theme="jade"] {
    --primary-color: #00C853;
    --secondary-color: #4CAF50;
    --accent-color: #A5D6A7;
    --background-gradient: linear-gradient(135deg, #1B5E20 0%, #2E7D32 50%, #4CAF50 100%);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.9);
    --surface-color: rgba(255, 255, 255, 0.1);
    --border-color: rgba(255, 255, 255, 0.2);
    --shadow-color: rgba(0, 0, 0, 0.3);
}

[data-theme="ruby"] {
    --primary-color: #E91E63;
    --secondary-color: #F06292;
    --accent-color: #F8BBD9;
    --background-gradient: linear-gradient(135deg, #B71C1C 0%, #D32F2F 50%, #E91E63 100%);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.9);
    --surface-color: rgba(255, 255, 255, 0.1);
    --border-color: rgba(255, 255, 255, 0.2);
    --shadow-color: rgba(0, 0, 0, 0.4);
}

[data-theme="sapphire"] {
    --primary-color: #2196F3;
    --secondary-color: #42A5F5;
    --accent-color: #90CAF9;
    --background-gradient: linear-gradient(135deg, #0D47A1 0%, #1565C0 50%, #2196F3 100%);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.9);
    --surface-color: rgba(255, 255, 255, 0.1);
    --border-color: rgba(255, 255, 255, 0.2);
    --shadow-color: rgba(0, 0, 0, 0.4);
}

/* Theme Preview Colors */
.theme-preview.ocean { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.theme-preview.sunset { background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%); }
.theme-preview.forest { background: linear-gradient(135deg, #134e5e 0%, #71b280 100%); }
.theme-preview.night { background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%); }
.theme-preview.aurora { background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%); }
.theme-preview.minimal { background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%); }
.theme-preview.rain { background: linear-gradient(135deg, #37474f 0%, #546e7a 100%); }
.theme-preview.stars { background: linear-gradient(135deg, #0c1445 0%, #1a237e 100%); }
.theme-preview.cherry-blossom { background: linear-gradient(135deg, #fce4ec 0%, #f8bbd9 100%); }
.theme-preview.ocean-waves { background: linear-gradient(135deg, #0277bd 0%, #01579b 100%); }
.theme-preview.autumn { background: linear-gradient(135deg, #FF6F00 0%, #E65100 50%, #FF8F00 100%); }
.theme-preview.spring { background: linear-gradient(135deg, #4CAF50 0%, #8BC34A 50%, #C8E6C9 100%); }
.theme-preview.summer { background: linear-gradient(135deg, #FF9800 0%, #FFC107 50%, #FF5722 100%); }
.theme-preview.winter { background: linear-gradient(135deg, #2196F3 0%, #03A9F4 50%, #E1F5FE 100%); }
.theme-preview.galaxy { background: linear-gradient(135deg, #0D47A1 0%, #1A237E 50%, #4A148C 100%); }
.theme-preview.neon { background: linear-gradient(135deg, #000000 0%, #1A1A1A 50%, #000000 100%); }
.theme-preview.vintage { background: linear-gradient(135deg, #8D6E63 0%, #A1887F 50%, #D7CCC8 100%); }
.theme-preview.cyberpunk { background: linear-gradient(135deg, #0A0A0A 0%, #1A0033 50%, #000000 100%); }
.theme-preview.lavender { background: linear-gradient(135deg, #9C27B0 0%, #BA68C8 50%, #E1BEE7 100%); }
.theme-preview.emerald { background: linear-gradient(135deg, #00C853 0%, #4CAF50 50%, #8BC34A 100%); }
.theme-preview.coral { background: linear-gradient(135deg, #FF5722 0%, #FF7043 50%, #FFAB91 100%); }
.theme-preview.midnight { background: linear-gradient(135deg, #0D47A1 0%, #1A237E 50%, #4A148C 100%); }
.theme-preview.golden { background: linear-gradient(135deg, #FFD700 0%, #FFC107 50%, #FF8F00 100%); }
.theme-preview.rose { background: linear-gradient(135deg, #E91E63 0%, #F06292 50%, #F8BBD9 100%); }
.theme-preview.mint { background: linear-gradient(135deg, #00BCD4 0%, #4DD0E1 50%, #B2EBF2 100%); }
.theme-preview.peach { background: linear-gradient(135deg, #FF7043 0%, #FFAB91 50%, #FFE0B2 100%); }
.theme-preview.indigo { background: linear-gradient(135deg, #3F51B5 0%, #5C6BC0 50%, #9FA8DA 100%); }
.theme-preview.turquoise { background: linear-gradient(135deg, #00BCD4 0%, #26C6DA 50%, #80DEEA 100%); }
.theme-preview.crimson { background: linear-gradient(135deg, #DC143C 0%, #E91E63 50%, #F8BBD9 100%); }
.theme-preview.silver { background: linear-gradient(135deg, #9E9E9E 0%, #BDBDBD 50%, #E0E0E0 100%); }
.theme-preview.copper { background: linear-gradient(135deg, #B87333 0%, #CD7F32 50%, #D2B48C 100%); }
.theme-preview.amethyst { background: linear-gradient(135deg, #4A148C 0%, #7B1FA2 50%, #9C27B0 100%); }
.theme-preview.jade { background: linear-gradient(135deg, #1B5E20 0%, #2E7D32 50%, #4CAF50 100%); }
.theme-preview.ruby { background: linear-gradient(135deg, #B71C1C 0%, #D32F2F 50%, #E91E63 100%); }
.theme-preview.sapphire { background: linear-gradient(135deg, #0D47A1 0%, #1565C0 50%, #2196F3 100%); }

/* PWA Install Button */
.install-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: 1rem;
}

.install-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
}

.install-btn i {
    font-size: 0.9rem;
}

/* Status Messages */
.status-message {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    z-index: 1000;
    animation: slideDown 0.3s ease;
}

.status-message.success {
    background: #4CAF50;
    color: white;
}

.status-message.warning {
    background: #FF9800;
    color: white;
}

.status-message.error {
    background: #F44336;
    color: white;
}

@keyframes slideDown {
    from {
        transform: translateX(-50%) translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
}

/* Mobile Viewport Optimization */
:root {
    --vh: 1vh;
}

.app-container {
    min-height: 100vh;
    min-height: calc(var(--vh, 1vh) * 100);
}

/* Creator Credit */
.creator-credit {
    position: fixed;
    bottom: 20px;
    right: 20px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    opacity: 0.7;
    z-index: 100;
    transition: opacity 0.3s ease;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
}

.creator-credit:hover {
    opacity: 1;
}

.creator-name {
    font-weight: 600;
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(74, 144, 226, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .header {
        padding: 1.5rem 2rem;
    }
    
    .main-content {
        padding: 1rem;
    }
    
    .timer-circle {
        width: 250px;
        height: 250px;
    }
    
    .timer-display {
        font-size: 3rem;
    }
    
    .settings-panel {
        width: 100%;
        right: -100%;
    }
    
    .theme-selector {
        width: 90%;
        max-width: 400px;
    }
    
    .theme-options {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .creator-credit {
        bottom: 15px;
        right: 15px;
        font-size: 0.75rem;
    }
    
    .install-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
        margin-left: 0.5rem;
    }
    
    .status-message {
        top: 15px;
        padding: 0.6rem 1.2rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .timer-circle {
        width: 200px;
        height: 200px;
    }
    
    .timer-display {
        font-size: 2.5rem;
    }
    
    .timer-controls {
        gap: 1rem;
    }
    
    .control-btn {
        width: 50px;
        height: 50px;
        font-size: 1rem;
    }
}

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

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

.pulse {
    animation: pulse 2s infinite;
}

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

/* Overlay */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.overlay.show {
    opacity: 1;
    visibility: visible;
}

/* Animation Containers - Hidden by default */
.rain-container,
.stars-container,
.cherry-blossom-container,
.ocean-waves-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

/* Show animations based on theme */
[data-theme="rain"] .rain-container,
[data-theme="stars"] .stars-container,
[data-theme="cherry-blossom"] .cherry-blossom-container,
[data-theme="ocean-waves"] .ocean-waves-container {
    opacity: 1;
    visibility: visible;
}




/* Rain Animation */
.rain-drop {
    position: absolute;
    width: 2px;
    height: 20px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.2));
    animation: rainfall linear infinite;
}

.rain-drop:nth-child(1) { left: 5%; animation-duration: 0.8s; animation-delay: 0s; }
.rain-drop:nth-child(2) { left: 15%; animation-duration: 1.2s; animation-delay: 0.2s; }
.rain-drop:nth-child(3) { left: 25%; animation-duration: 0.9s; animation-delay: 0.4s; }
.rain-drop:nth-child(4) { left: 35%; animation-duration: 1.1s; animation-delay: 0.1s; }
.rain-drop:nth-child(5) { left: 45%; animation-duration: 0.7s; animation-delay: 0.3s; }
.rain-drop:nth-child(6) { left: 55%; animation-duration: 1.3s; animation-delay: 0.5s; }
.rain-drop:nth-child(7) { left: 65%; animation-duration: 0.8s; animation-delay: 0.2s; }
.rain-drop:nth-child(8) { left: 75%; animation-duration: 1.0s; animation-delay: 0.4s; }
.rain-drop:nth-child(9) { left: 85%; animation-duration: 1.1s; animation-delay: 0.1s; }
.rain-drop:nth-child(10) { left: 95%; animation-duration: 0.9s; animation-delay: 0.3s; }
.rain-drop:nth-child(11) { left: 10%; animation-duration: 1.2s; animation-delay: 0.6s; }
.rain-drop:nth-child(12) { left: 20%; animation-duration: 0.8s; animation-delay: 0.2s; }
.rain-drop:nth-child(13) { left: 30%; animation-duration: 1.0s; animation-delay: 0.4s; }
.rain-drop:nth-child(14) { left: 40%; animation-duration: 1.3s; animation-delay: 0.1s; }
.rain-drop:nth-child(15) { left: 50%; animation-duration: 0.7s; animation-delay: 0.5s; }
.rain-drop:nth-child(16) { left: 60%; animation-duration: 1.1s; animation-delay: 0.3s; }
.rain-drop:nth-child(17) { left: 70%; animation-duration: 0.9s; animation-delay: 0.2s; }
.rain-drop:nth-child(18) { left: 80%; animation-duration: 1.2s; animation-delay: 0.4s; }
.rain-drop:nth-child(19) { left: 90%; animation-duration: 0.8s; animation-delay: 0.1s; }
.rain-drop:nth-child(20) { left: 8%; animation-duration: 1.0s; animation-delay: 0.3s; }

@keyframes rainfall {
    0% {
        transform: translateY(-100vh);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh);
        opacity: 0;
    }
}

/* Stars Animation */
.star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: white;
    border-radius: 50%;
    animation: twinkle 2s infinite;
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.8);
}

.star:nth-child(1) { left: 10%; top: 20%; animation-delay: 0s; }
.star:nth-child(2) { left: 20%; top: 15%; animation-delay: 0.2s; }
.star:nth-child(3) { left: 30%; top: 25%; animation-delay: 0.4s; }
.star:nth-child(4) { left: 40%; top: 10%; animation-delay: 0.6s; }
.star:nth-child(5) { left: 50%; top: 30%; animation-delay: 0.8s; }
.star:nth-child(6) { left: 60%; top: 18%; animation-delay: 1s; }
.star:nth-child(7) { left: 70%; top: 22%; animation-delay: 1.2s; }
.star:nth-child(8) { left: 80%; top: 12%; animation-delay: 1.4s; }
.star:nth-child(9) { left: 90%; top: 28%; animation-delay: 1.6s; }
.star:nth-child(10) { left: 15%; top: 35%; animation-delay: 1.8s; }
.star:nth-child(11) { left: 25%; top: 8%; animation-delay: 0.1s; }
.star:nth-child(12) { left: 35%; top: 32%; animation-delay: 0.3s; }
.star:nth-child(13) { left: 45%; top: 14%; animation-delay: 0.5s; }
.star:nth-child(14) { left: 55%; top: 26%; animation-delay: 0.7s; }
.star:nth-child(15) { left: 65%; top: 16%; animation-delay: 0.9s; }
.star:nth-child(16) { left: 75%; top: 24%; animation-delay: 1.1s; }
.star:nth-child(17) { left: 85%; top: 6%; animation-delay: 1.3s; }
.star:nth-child(18) { left: 95%; top: 34%; animation-delay: 1.5s; }
.star:nth-child(19) { left: 5%; top: 19%; animation-delay: 1.7s; }
.star:nth-child(20) { left: 12%; top: 29%; animation-delay: 1.9s; }

@keyframes twinkle {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}

/* Cherry Blossom Animation */
.cherry-blossom {
    position: absolute;
    width: 8px;
    height: 8px;
    background: radial-gradient(circle, #ffb3d1 0%, #ff8fab 50%, #ff69b4 100%);
    border-radius: 50% 0;
    animation: cherryBlossomFall linear infinite;
    transform: rotate(45deg);
}

.cherry-blossom:nth-child(1) { left: 10%; animation-duration: 8s; animation-delay: 0s; }
.cherry-blossom:nth-child(2) { left: 20%; animation-duration: 10s; animation-delay: 1s; }
.cherry-blossom:nth-child(3) { left: 30%; animation-duration: 7s; animation-delay: 2s; }
.cherry-blossom:nth-child(4) { left: 40%; animation-duration: 9s; animation-delay: 0.5s; }
.cherry-blossom:nth-child(5) { left: 50%; animation-duration: 6s; animation-delay: 1.5s; }
.cherry-blossom:nth-child(6) { left: 60%; animation-duration: 8s; animation-delay: 3s; }
.cherry-blossom:nth-child(7) { left: 70%; animation-duration: 11s; animation-delay: 0.8s; }
.cherry-blossom:nth-child(8) { left: 80%; animation-duration: 9s; animation-delay: 2.5s; }
.cherry-blossom:nth-child(9) { left: 90%; animation-duration: 7s; animation-delay: 1.2s; }
.cherry-blossom:nth-child(10) { left: 15%; animation-duration: 10s; animation-delay: 4s; }

@keyframes cherryBlossomFall {
    0% {
        transform: translateY(-100vh) rotate(45deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(405deg);
        opacity: 0;
    }
}

/* Ocean Waves Animation */
.wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200%;
    height: 100px;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.3));
    border-radius: 50%;
    animation: waveMotion 4s ease-in-out infinite;
}

.wave-1 {
    animation-delay: 0s;
    opacity: 0.7;
}

.wave-2 {
    animation-delay: 1s;
    opacity: 0.5;
    height: 80px;
}

.wave-3 {
    animation-delay: 2s;
    opacity: 0.3;
    height: 60px;
}

@keyframes waveMotion {
    0%, 100% {
        transform: translateX(-50%) translateY(0) rotate(0deg);
    }
    50% {
        transform: translateX(-50%) translateY(-20px) rotate(180deg);
    }
}

