@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;700&display=swap');

:root {
    --bg-gradient: radial-gradient(circle at 50% 50%, #15162a 0%, #07080e 100%);
    --panel-bg: rgba(255, 255, 255, 0.03);
    --panel-border: rgba(255, 255, 255, 0.08);
    --panel-hover: rgba(255, 255, 255, 0.06);
    
    --primary: #64ffda;
    --primary-glow: rgba(100, 255, 218, 0.4);
    --primary-bg: rgba(100, 255, 218, 0.08);
    
    --secondary: #b57cff;
    --secondary-glow: rgba(181, 124, 255, 0.4);
    --secondary-bg: rgba(181, 124, 255, 0.08);

    --accent-cyan: #00f0ff;
    --accent-coral: #ff6b6b;
    --accent-amber: #ffd166;
    
    --text-main: #f5f5f7;
    --text-muted: #8a8a93;
    --text-dark: #121214;
    
    --sidebar-width: 280px;
    --header-height: 70px;
    --transition-speed: 0.3s;
    --blur-strength: 16px;
}

/* Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Plus Jakarta Sans', sans-serif;
    -webkit-font-smoothing: antialiased;
}

body {
    background: var(--bg-gradient);
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
    display: flex;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Glass Panel Template */
.glass-panel {
    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
    backdrop-filter: blur(var(--blur-strength));
    -webkit-backdrop-filter: blur(var(--blur-strength));
    border-radius: 16px;
    transition: all var(--transition-speed) ease;
}
.glass-panel:hover {
    border-color: rgba(255, 255, 255, 0.12);
}

/* Layout Scaffold */
.app-container {
    display: flex;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 10;
}

/* Sidebar Styling */
.sidebar {
    width: var(--sidebar-width);
    background: rgba(7, 8, 14, 0.6);
    border-right: 1px solid var(--panel-border);
    display: flex;
    flex-direction: column;
    height: 100%;
    z-index: 100;
    flex-shrink: 0;
}

.sidebar-brand {
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--panel-border);
}

.brand-logo {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    box-shadow: 0 0 15px var(--primary-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: var(--text-dark);
}

.brand-name {
    font-size: 18px;
    font-weight: 700;
    background: linear-gradient(to right, #fff, var(--text-muted));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 0.5px;
}

.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.nav-group-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 10px 12px 6px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    border-radius: 10px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.nav-item:hover {
    color: var(--text-main);
    background: var(--panel-hover);
}

.nav-item.active {
    color: var(--primary);
    background: var(--primary-bg);
    border-color: rgba(100, 255, 218, 0.2);
    box-shadow: 0 0 10px rgba(100, 255, 218, 0.05);
}

.nav-icon {
    font-size: 16px;
}

.sidebar-profile {
    padding: 16px;
    border-top: 1px solid var(--panel-border);
    background: rgba(0, 0, 0, 0.2);
}

.profile-card {
    display: flex;
    align-items: center;
    gap: 12px;
}

.profile-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--panel-border);
    object-fit: cover;
    background: #25263a;
}

.profile-info {
    flex: 1;
    min-width: 0;
}

.profile-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.profile-status {
    font-size: 11px;
    color: var(--text-muted);
}

.btn-auth {
    width: 100%;
    margin-top: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--panel-border);
    color: var(--text-main);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.btn-auth:hover {
    background: var(--primary-bg);
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: 0 0 10px var(--primary-glow);
}

/* Main Dashboard Panel */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

/* Top Header Bar */
.top-header {
    height: var(--header-height);
    padding: 0 30px;
    border-bottom: 1px solid var(--panel-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(7, 8, 14, 0.4);
    flex-shrink: 0;
}

.header-title {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.header-meta {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-status-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-muted);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ff6b6b;
}

.status-dot.online {
    background: var(--primary);
    box-shadow: 0 0 8px var(--primary);
}

/* Tab Content View Container */
.tab-viewport {
    flex: 1;
    padding: 30px;
    overflow-y: auto;
    position: relative;
}

.tab-pane {
    display: none;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    height: 100%;
    flex-direction: column;
}

.tab-pane.active {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

/* Grid Dashboard Modules Layout */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.module-card {
    padding: 24px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.module-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-main);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 8px;
}

.module-icon {
    color: var(--secondary);
}

/* 1. World Clock Tab styles */
.clocks-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 16px;
}

.clock-widget {
    text-align: center;
    padding: 30px;
}

.clock-widget .city-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 4px;
}

.clock-widget .timezone-offset {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 16px;
    text-transform: uppercase;
}

.clock-widget .clock-time {
    font-family: 'JetBrains Mono', monospace;
    font-size: 38px;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 0 10px rgba(255,255,255,0.05);
}

.clock-widget .clock-date {
    font-size: 13px;
    color: var(--primary);
    margin-top: 8px;
    font-weight: 500;
}

/* 2. Stopwatch Tab styles */
.stopwatch-display {
    font-family: 'JetBrains Mono', monospace;
    font-size: 64px;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
    margin: 20px 0;
    text-align: center;
}

.controls-row {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 24px;
}

.btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--panel-border);
    color: var(--text-main);
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn:hover {
    background: var(--panel-hover);
    border-color: rgba(255, 255, 255, 0.2);
}

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

.btn-primary:hover {
    background: var(--primary);
    color: var(--text-dark);
    box-shadow: 0 0 15px var(--primary-glow);
}

.btn-danger {
    background: rgba(255, 107, 107, 0.1);
    border-color: var(--accent-coral);
    color: var(--accent-coral);
}

.btn-danger:hover {
    background: var(--accent-coral);
    color: #fff;
    box-shadow: 0 0 15px rgba(255, 107, 107, 0.4);
}

.laps-container {
    max-height: 250px;
    overflow-y: auto;
    border: 1px solid var(--panel-border);
    border-radius: 8px;
    padding: 10px;
}

.lap-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
}

/* 3. Countdown Timer styles */
.timer-presets {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    margin-bottom: 20px;
}

.preset-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--panel-border);
    color: var(--text-muted);
    padding: 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.preset-btn:hover {
    border-color: var(--secondary);
    color: var(--secondary);
}

.timer-input-group {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.input-field {
    flex: 1;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--panel-border);
    border-radius: 8px;
    color: #fff;
    padding: 10px 14px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease;
}

.input-field:focus {
    border-color: var(--primary);
}

/* 4. Smart Alarm styles */
.alarm-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 16px;
    max-height: 300px;
    overflow-y: auto;
    padding-right: 4px;
}

.alarm-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--panel-border);
    border-radius: 12px;
}

.alarm-time {
    font-family: 'JetBrains Mono', monospace;
    font-size: 24px;
    font-weight: 700;
}

.alarm-meta {
    display: flex;
    flex-direction: column;
}

.alarm-label {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

.switch {
    position: relative;
    display: inline-block;
    width: 44px;
    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: rgba(255, 255, 255, 0.1);
    transition: .4s;
    border-radius: 34px;
    border: 1px solid var(--panel-border);
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

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

input:checked + .slider:before {
    transform: translateX(20px);
    background-color: var(--primary);
}

/* 5. Pomodoro Focus styles */
.pomodoro-ring {
    position: relative;
    width: 220px;
    height: 220px;
    margin: 0 auto 24px;
}

.progress-ring-circle {
    transition: stroke-dashoffset 0.35s;
    transform: rotate(-90deg);
    transform-origin: 50% 50%;
}

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

.pomo-time {
    font-family: 'JetBrains Mono', monospace;
    font-size: 38px;
    font-weight: 700;
    color: #fff;
}

.pomo-state-label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-top: 4px;
}

.pomo-modes {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
}

.pomo-mode-btn {
    background: none;
    border: 1px solid var(--panel-border);
    color: var(--text-muted);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pomo-mode-btn.active {
    background: var(--secondary-bg);
    color: var(--secondary);
    border-color: var(--secondary);
}

/* 6. Calendar styles */
.calendar-widget {
    max-width: 600px;
    margin: 0 auto;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
    text-align: center;
}

.cal-day-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    padding: 8px 0;
}

.cal-cell {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.03);
    position: relative;
    transition: all 0.2s ease;
}

.cal-cell:hover {
    background: var(--panel-hover);
    border-color: rgba(255, 255, 255, 0.1);
}

.cal-cell.today {
    border-color: var(--primary);
    color: var(--primary);
    font-weight: 700;
}

.cal-cell.other-month {
    opacity: 0.3;
}

.cal-cell.selected {
    background: var(--primary-bg);
    border-color: var(--primary);
    color: var(--primary);
}

.event-dot {
    width: 4px;
    height: 4px;
    background-color: var(--secondary);
    border-radius: 50%;
    position: absolute;
    bottom: 4px;
}

.events-list-panel {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--panel-border);
}

.event-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 6px;
    margin-bottom: 6px;
    font-size: 13px;
}

/* 7. Todo List styles */
.todo-container {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.todo-input-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.todo-filters {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.filter-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.filter-btn.active {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-main);
}

.todo-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow-y: auto;
    flex: 1;
}

.todo-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--panel-border);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.todo-item:hover {
    border-color: rgba(255,255,255,0.12);
}

.todo-checkbox {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    border: 2px solid var(--panel-border);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.todo-checkbox.checked {
    background: var(--primary);
    border-color: var(--primary);
}

.todo-checkbox.checked:before {
    content: "✓";
    color: var(--text-dark);
    font-size: 11px;
    font-weight: 800;
}

.todo-text {
    flex: 1;
    font-size: 14px;
    color: var(--text-main);
}

.todo-item.completed .todo-text {
    text-decoration: line-through;
    color: var(--text-muted);
}

.todo-meta {
    display: flex;
    align-items: center;
    gap: 8px;
}

.priority-tag {
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 700;
    text-transform: uppercase;
}

.priority-high {
    background: rgba(255, 107, 107, 0.15);
    color: var(--accent-coral);
}

.priority-medium {
    background: rgba(255, 209, 102, 0.15);
    color: var(--accent-amber);
}

.priority-low {
    background: rgba(100, 255, 218, 0.15);
    color: var(--primary);
}

.btn-icon {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: color 0.2s ease;
}

.btn-icon:hover {
    color: var(--accent-coral);
}

/* 8. Habit Tracker styles */
.habit-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.habit-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--panel-border);
    border-radius: 12px;
}

.habit-details {
    flex: 1;
}

.habit-name {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 2px;
}

.habit-streak {
    font-size: 11px;
    color: var(--primary);
    font-weight: 600;
}

.habit-week-grid {
    display: flex;
    gap: 6px;
}

.habit-day-dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1.5px solid var(--panel-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
}

.habit-day-dot.completed {
    background: var(--primary-bg);
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: 0 0 8px var(--primary-glow);
}

/* 9. Analytics/Stats styles */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.stat-card {
    padding: 20px;
    text-align: center;
}

.stat-num {
    font-size: 32px;
    font-weight: 800;
    color: var(--primary);
    margin: 8px 0;
}

.stat-lbl {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
}

.chart-panel {
    min-height: 250px;
    display: flex;
    align-items: flex-end;
    gap: 12px;
    padding: 20px;
    border: 1px solid var(--panel-border);
    border-radius: 12px;
    justify-content: space-around;
}

.chart-bar-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    height: 100%;
    justify-content: flex-end;
}

.chart-bar {
    width: 70%;
    background: linear-gradient(to top, var(--secondary-bg), var(--secondary));
    border-radius: 6px 6px 0 0;
    transition: height 0.5s ease;
    position: relative;
}

.chart-bar:hover {
    background: linear-gradient(to top, var(--primary-bg), var(--primary));
    box-shadow: 0 0 10px var(--primary-glow);
}

.chart-bar-val {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 11px;
    font-weight: 700;
}

.chart-label {
    font-size: 10px;
    color: var(--text-muted);
    margin-top: 8px;
    text-transform: uppercase;
}

/* 10. Timezone Converter styles */
.converter-row {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 16px;
}

.timezone-slider-card {
    padding: 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--panel-border);
    border-radius: 12px;
}

.slider-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 14px;
}

.slider-control {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.1);
    outline: none;
}

.slider-control::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    box-shadow: 0 0 8px var(--primary);
}

/* 11. Focus Sound Generator styles */
.sounds-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
}

.sound-card {
    padding: 20px;
    text-align: center;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.sound-card.active {
    border-color: var(--primary);
    background: var(--primary-bg);
}

.sound-card .icon {
    font-size: 28px;
}

.sound-volume {
    width: 80%;
    margin-top: 8px;
}

/* 12. Journal styles */
.journal-editor {
    display: flex;
    flex-direction: column;
    gap: 16px;
    height: 100%;
}

.journal-textarea {
    flex: 1;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--panel-border);
    border-radius: 12px;
    color: #fff;
    padding: 20px;
    font-size: 15px;
    line-height: 1.6;
    resize: none;
    outline: none;
}

.journal-textarea:focus {
    border-color: var(--secondary);
}

/* 13. Time Log styles */
.timelog-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 300px;
    overflow-y: auto;
    margin-top: 16px;
}

.timelog-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--panel-border);
    border-radius: 8px;
}

.category-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 6px;
}

/* 14. Day Schedule Planner styles */
.schedule-timeline {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 16px;
}

.timeline-hour {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 8px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.hour-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    width: 60px;
    color: var(--text-muted);
}

.hour-content {
    flex: 1;
    background: rgba(255, 255, 255, 0.01);
    border: 1px dashed rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 10px;
    min-height: 40px;
    transition: all 0.2s ease;
}

.hour-content.filled {
    background: var(--secondary-bg);
    border: 1px solid rgba(181, 124, 255, 0.2);
    color: #fff;
    font-weight: 500;
}

/* 15. Quotes & Affirmations styles */
.quote-card {
    padding: 40px;
    text-align: center;
    max-width: 600px;
    margin: 40px auto;
}

.quote-card .quote-text {
    font-size: 20px;
    font-weight: 500;
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 20px;
}

.quote-card .quote-author {
    font-size: 13px;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

/* 16. Settings styles */
.settings-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 500px;
}

.settings-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.settings-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
}

/* Modal Alerter styling for alarms/timers triggers */
.alert-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(7, 8, 14, 0.85);
    backdrop-filter: blur(12px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.alert-overlay.active {
    display: flex;
    opacity: 1;
}

.alert-modal {
    width: 320px;
    padding: 30px;
    text-align: center;
    animation: scaleUp 0.3s ease;
}

@keyframes scaleUp {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.alert-title {
    font-size: 24px;
    font-weight: 800;
    color: var(--accent-coral);
    margin-bottom: 12px;
}

.alert-desc {
    font-size: 14px;
    color: var(--text-main);
    margin-bottom: 24px;
}

/* Mobile Drawer Toggle & Overlay */
.menu-toggle-btn {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 24px;
    cursor: pointer;
    padding: 4px;
    align-items: center;
    justify-content: center;
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 150;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.sidebar-overlay.active {
    opacity: 1;
    pointer-events: all;
}

/* Mobile Responsiveness */
@media (max-width: 900px) {
    /* Main Layout Shifts */
    .app-container {
        flex-direction: row; /* Keep horizontal flow, overlay takes sidebar */
    }
    
    .menu-toggle-btn {
        display: flex; /* Show hamburger on mobile */
    }
    
    /* Sidebar as a Drawer */
    .sidebar {
        position: fixed;
        left: -280px; /* Hidden offscreen */
        top: 0;
        width: 280px;
        height: 100vh;
        z-index: 200;
        background: rgba(7, 8, 14, 0.96);
        box-shadow: 5px 0 25px rgba(0, 0, 0, 0.5);
        transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        border-right: 1px solid var(--panel-border);
        border-bottom: none; /* Override previous */
    }
    
    .sidebar.menu-open {
        left: 0; /* Slide in drawer */
    }
    
    .sidebar-nav {
        flex-direction: column; /* Keep vertical layout */
        overflow-y: auto;
        padding: 16px 12px;
        gap: 6px;
    }
    
    .nav-group-label {
        display: block; /* Show labels */
    }
    
    .sidebar-profile {
        display: block; /* Show profile inside drawer */
    }
    
    .top-header {
        padding: 0 20px;
    }
    
    .tab-viewport {
        padding: 20px 16px;
    }
    
    /* Scaling adjustments for very small screens */
    .giant-clock {
        font-size: 54px; /* Shrink clock on mobile */
    }
    .minimal-quote {
        font-size: 15px; /* Shrink quote text */
    }
    .shower-warning {
        font-size: 16px; /* Shrink warning text */
        letter-spacing: 2px;
    }
    .minimal-clock-screen {
        padding: 0 6vw; /* Tighter padding */
    }
    
    /* Optimize feature components for mobile width */
    .dashboard-grid {
        grid-template-columns: 1fr; /* Single column */
        gap: 16px;
    }
    .timer-presets {
        grid-template-columns: repeat(5, 1fr); /* Keep presets row */
    }
    .sounds-grid {
        grid-template-columns: 1fr; /* Stack sounds list */
        gap: 12px;
    }
    .calendar-widget {
        max-width: 100%;
    }
    .cal-cell {
        font-size: 11px;
    }
}

/* Minimal Clock Screen */
.minimal-clock-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0 10vw;
    background: radial-gradient(circle at 50% 50%, #15162a 0%, #07080e 100%);
    color: var(--text-main);
    z-index: 50;
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 1;
    transform: scale(1);
}

.minimal-clock-screen.hidden {
    opacity: 0;
    pointer-events: none;
    transform: scale(0.96);
}

.clock-info-container {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
    max-width: 60%;
}

.minimal-quote {
    font-size: 18px;
    font-weight: 500;
    font-style: italic;
    color: var(--secondary);
    text-shadow: 0 0 15px var(--secondary-glow);
    margin-bottom: 20px;
    line-height: 1.5;
    word-wrap: break-word;
}

.shower-warning {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 4px;
    color: var(--accent-coral);
    text-shadow: 0 0 15px rgba(255, 107, 107, 0.6);
    margin-bottom: 20px;
    text-transform: uppercase;
    animation: pulseGlow 2s infinite ease-in-out;
}

.giant-clock {
    font-family: 'JetBrains Mono', monospace;
    font-size: 76px;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.2);
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.giant-date {
    font-size: 14px;
    color: var(--text-muted);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.three-dots-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--panel-border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--text-muted);
    font-size: 24px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.three-dots-btn:hover {
    color: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 0 15px var(--primary-glow);
    background: var(--primary-bg);
    transform: scale(1.05);
}

/* Dashboard screen hide/show states */
.app-container.dashboard-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: scale(1.05);
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.5s;
}

.app-container.dashboard-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
    transform: scale(1);
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.5s;
}

@keyframes pulseGlow {
    0%, 100% { opacity: 0.8; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.03); }
}
