/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: 
        radial-gradient(circle at 20% 50%, rgba(120, 119, 198, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(120, 219, 255, 0.05) 0%, transparent 50%),
        linear-gradient(135deg, #050505 0%, #0a0a0a 50%, #030303 100%);
    color: #ffffff;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
    position: relative;
    animation: backgroundPulse 8s ease-in-out infinite;
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.01) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(255, 255, 255, 0.005) 0%, transparent 50%);
    pointer-events: none;
    animation: backgroundShift 15s ease-in-out infinite;
}

body::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 60% 20%, rgba(120, 119, 198, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 20% 80%, rgba(255, 119, 198, 0.06) 0%, transparent 40%),
        radial-gradient(circle at 80% 60%, rgba(120, 219, 255, 0.07) 0%, transparent 40%);
    pointer-events: none;
    animation: colorFlow 12s ease-in-out infinite;
}

@keyframes backgroundPulse {
    0%, 100% { 
        filter: brightness(1) hue-rotate(0deg);
    }
    25% { 
        filter: brightness(1.05) hue-rotate(5deg);
    }
    50% { 
        filter: brightness(0.98) hue-rotate(0deg);
    }
    75% { 
        filter: brightness(1.02) hue-rotate(-3deg);
    }
}

@keyframes backgroundShift {
    0%, 100% { 
        opacity: 1;
        transform: rotate(0deg);
    }
    33% { 
        opacity: 0.8;
        transform: rotate(0.5deg);
    }
    66% { 
        opacity: 0.9;
        transform: rotate(-0.3deg);
    }
}

@keyframes colorFlow {
    0%, 100% { 
        opacity: 0.6;
        transform: translateX(0px) translateY(0px);
    }
    25% { 
        opacity: 0.8;
        transform: translateX(8px) translateY(-3px);
    }
    50% { 
        opacity: 0.4;
        transform: translateX(-4px) translateY(6px);
    }
    75% { 
        opacity: 0.7;
        transform: translateX(3px) translateY(-8px);
    }
}

/* Main Header */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    min-height: 64px;
}

/* Header Left - Achievement Icon */
.header-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 40px;
}

/* Header Center */
.header-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Header Right */
.header-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 40px;
}

/* Logo Icon */
.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.logo-icon:hover {
    transform: scale(1.05);
    color: #ffffff;
}

.logo-icon svg {
    width: 24px;
    height: 24px;
}

.achievement-icon {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.achievement-icon svg {
    display: none;
}

.achievement-icon svg {
    color: #666666;
    transition: all 0.3s ease;
}

.achievement-counter {
    color: #666666;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

/* Active state when achievement is unlocked */
.achievement-icon.active svg {
    color: #ffffff;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.3));
}

.achievement-icon.active .achievement-counter {
    color: #ffffff;
}

.achievement-icon:hover {
    background: rgba(255, 255, 255, 0.05);
}

.technique-dropdown {
    position: relative;
    z-index: 1000;
}

.technique-title {
    background: none;
    border: none;
    color: #a3a3a3;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 18px;
    font-weight: 400;
    letter-spacing: 0.06em;
    text-transform: none;
    padding: 0.5rem 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 320px;
    justify-content: center;
}

.technique-title:hover {
    color: #ffffff;
}

.technique-subtitle {
    color: #a3a3a3;
    font-weight: 400;
}

.technique-title svg {
    transition: transform 0.3s ease;
    color: #a3a3a3;
}

.technique-dropdown.open .technique-title svg {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    margin-top: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    min-width: 380px;
}

.technique-dropdown.open .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-item {
    padding: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.dropdown-item:first-child {
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.dropdown-item:last-child {
    border-bottom: none;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.item-title {
    color: #ffffff;
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 0.25rem;
}

.item-description {
    color: #d1d1d1;
    font-size: 14px;
    font-weight: 400;
    margin-bottom: 0.5rem;
}

.item-link {
    margin-top: 0.25rem;
}

.learn-more-link {
    color: #78dbff;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.learn-more-link:hover {
    color: #ffffff;
    text-decoration: underline;
}

.item-content {
    flex: 0 1 auto;
    max-width: 200px;
    min-width: 0;
}

.item-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.item-badge.free {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.item-badge.locked {
    background: rgba(107, 114, 128, 0.2);
    color: #9ca3af;
    border: 1px solid rgba(107, 114, 128, 0.3);
}

.item-badge.locked span {
    color: #9ca3af;
}

/* Container */
.container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 600px;
    padding: 0;
    position: relative;
    z-index: 10;
    margin-top: 6rem;
}

/* Timer Container */
.timer-container {
    position: relative;
    width: 400px;
    height: 400px;
    margin-bottom: 2rem;
}

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

.progress-segment {
    stroke-width: 4;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.work-segment {
    stroke: url(#liquidGlassOverlay);
}

.break-segment {
    stroke: url(#liquidGlassOverlay);
}

.long-break-segment {
    stroke: url(#liquidGlassOverlay);
}

.progress-overlay {
    stroke-width: 4;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke: url(#liquidGlassOverlay);
}

.progress-indicator { 
    stroke-width: 3;
    fill: none;
    stroke: url(#liquidGlassOverlay);
    transition: stroke-dashoffset 0.3s ease;
}

/* Timer Content */
.timer-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 20;
}

.time {
    font-size: 4.5rem;
    font-weight: 300;
    color: #ffffff;
    margin-bottom: 0.5rem;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}


.session-info {
    font-size: 0.875rem;
    color: #a3a3a3;
    font-weight: 400;
}

.current-task {
    font-size: 18px;
    color: #78dbff;
    font-weight: 500;
    margin-top: 0.5rem;
    text-align: center;
    opacity: 0.9;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.current-task:hover {
    opacity: 1;
    background: rgba(120, 219, 255, 0.1);
    transform: translateY(-1px);
}

/* Footer */
.timer-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    padding: 1.5rem 2rem;
}

.start-btn {
    background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
    color: #000000;
    border: none;
    border-radius: 100px;
    padding: 1rem;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 
        0 4px 16px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    text-transform: none;
    letter-spacing: normal;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.start-btn:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 6px 20px rgba(255, 255, 255, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.start-btn:active {
    transform: translateY(0);
    box-shadow: 
        0 2px 8px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.start-btn.running {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #ffffff;
    box-shadow: none;
    backdrop-filter: blur(10px);
}

.start-btn.running:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

.nav-btn {
    background: none;
    border: none;
    color: #ffffff;
    border-radius: 50%;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.nav-btn:active {
    transform: translateY(0);
}

.nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: none;
}

.nav-btn:disabled:hover {
    background: none;
    transform: none;
}

.music-btn {
    background: none;
    border: none;
    color: #ffffff;
    border-radius: 50%;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.music-btn:active {
    transform: translateY(0);
}

.music-btn.playing {
    color: #78dbff;
}

.music-btn.playing:hover {
    background: rgba(120, 219, 255, 0.1);
}

.task-btn {
    background: none;
    border: none;
    color: #ffffff;
    border-radius: 50%;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.task-btn:active {
    transform: translateY(0);
}

.task-btn.active {
    color: #78dbff;
}

.task-btn.active:hover {
    background: rgba(120, 219, 255, 0.1);
}

.start-btn .play-icon {
    transition: all 0.3s ease;
    color: #000000;
    stroke: #000000;
}

.start-btn .pause-icon {
    display: none;
    transition: all 0.3s ease;
    color: #ffffff;
    stroke: #ffffff;
}

.start-btn.running .play-icon {
    display: none;
}

.start-btn.running .pause-icon {
    display: block;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    .timer-container {
        width: 320px;
        height: 320px;
    }
    
    .time {
        font-size: 3.5rem;
    }
    
    .technique-title {
        min-width: 280px;
        font-size: 16px;
        height: auto;
        display: flex;
        align-items: center;
    }
    
    .dropdown-menu {
        min-width: 320px;
    }
    
    .main-header {
        padding: 8px 12px;
        min-height: 56px;
    }
    
    .header-left {
        min-height: 36px;
    }
    
    .header-center {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        display: flex;
        align-items: center;
        justify-content: center;
        max-width: 200px;
    }
    
    .header-right {
        min-height: 36px;
    }
    
    .technique-dropdown {
        height: auto;
        display: flex;
        align-items: center;
    }
    
    .auth-container {
        gap: 0.5rem;
        min-height: 36px;
    }
    
    .user-profile-container {
        min-height: 36px;
    }
    
    .logo-icon {
        width: 24px;
        height: 24px;
    }
    
    .logo-icon svg {
        width: 24px;
        height: 24px;
    }
    
    .login-button {
        font-size: 12px;
        padding: 0.375rem 0.75rem;
    }
    
    .signup-button {
        display: none;
    }
    
    .achievement-icon {
        gap: 0.2rem;
        padding: 0.2rem 0.4rem;
        min-width: fit-content;
    }
    
    .achievement-counter {
        font-size: 14px;
        font-weight: 600;
    }
    
    .timer-footer {
        gap: 0.5rem;
        padding: 1rem 16px;
        margin-top: 1.5rem;
        width: 100%;
        box-sizing: border-box;
        justify-content: space-between;
    }
    
    .start-btn {
        width: 56px;
        height: 56px;
        padding: 0.75rem;
    }
    
    .nav-btn, .music-btn, .task-btn {
        width: 56px;
        height: 56px;
    }
}

/* Welcome Modal */
.welcome-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(8px);
}

.welcome-modal {
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 2rem;
    max-width: 400px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.welcome-modal-title {
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-align: center;
}

.welcome-modal-message {
    color: #a3a3a3;
    font-size: 0.9rem;
    margin: 0 0 2rem 0;
    text-align: center;
    line-height: 1.5;
    font-weight: 400;
}

.welcome-modal-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
    width: 100%;
}

.welcome-modal-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    width: 100%;
}

.welcome-modal-btn-primary {
    background: #ffffff;
    color: #000000;
}

.welcome-modal-btn-primary:hover {
    background: #f0f0f0;
}

.welcome-modal-btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.welcome-modal-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.welcome-modal-footer {
    margin-top: 1rem;
    text-align: center;
}

.welcome-modal-link {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: underline;
    cursor: pointer;
    font-size: 0.875rem;
    transition: color 0.2s ease;
}

.welcome-modal-link:hover {
    color: rgba(255, 255, 255, 1);
}

/* Logout Confirmation Modal */
.logout-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(8px);
}

.logout-modal {
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 2rem;
    max-width: 400px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.logout-modal-title {
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-align: center;
}

.logout-modal-message {
    color: #a3a3a3;
    font-size: 0.9rem;
    margin: 0 0 2rem 0;
    text-align: center;
    line-height: 1.5;
    font-weight: 400;
}

.logout-modal-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
}

.logout-modal-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    width: 100%;
}

.logout-modal-btn-primary {
    background: #ffffff;
    color: #000000;
}

.logout-modal-btn-primary:hover {
    background: #f0f0f0;
}

.logout-modal-btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.logout-modal-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

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

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

/* Hide Clerk development banner */
[data-clerk-banner] {
    display: none !important;
}

/* Additional banner hiding */
.clerk-banner,
[data-clerk-banner],
.clerk-development-banner,
[data-clerk-development-banner] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
}

/* Auth Container */
.auth-container {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    min-height: 40px;
}

/* User Profile */
.user-profile-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 40px;
}

.user-profile-button {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

.user-profile-button img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.user-profile-dropdown {
    position: absolute;
    top: 100%;
    right: 16px;
    z-index: 1000;
}

.user-dropdown-menu {
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    min-width: 240px;
    overflow: hidden;
    margin-top: 0.5rem;
}

.user-info {
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.05);
}

.user-email {
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    margin: 0;
}

.dropdown-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    justify-content: space-between;
}

.dropdown-item:first-child {
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.dropdown-item:last-child {
    border-bottom: none;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.dropdown-item span {
    color: #ffffff;
    font-weight: 500;
    font-size: 14px;
    flex: 1;
    text-align: left;
}

.dropdown-icon {
    margin-right: 12px;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    color: #ffffff;
}

.dropdown-chevron {
    margin-left: auto;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    color: #ffffff;
}

.dropdown-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    margin: 0;
}

.logout-button {
    width: 100%;
    background: none;
    border: none;
    color: #ffffff;
    padding: 0.5rem 0.75rem;
    text-align: left;
    cursor: pointer;
    border-radius: 8px;
}

.logout-button:hover {
    background: rgba(255, 255, 255, 0.1);
}
.login-button {
    background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
    border: none;
    color: #000000;
    border-radius: 50px;
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    box-shadow: 
        0 2px 8px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.login-button:hover {
    background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
    transform: translateY(-1px);
    box-shadow: 
        0 4px 12px rgba(255, 255, 255, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.login-button:active {
    transform: translateY(0);
    box-shadow: 
        0 2px 8px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.signup-button {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    border-radius: 50px;
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    font-size: 14px;
    font-weight: 500;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.signup-button:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.signup-button:active {
    transform: translateY(0);
}


/* User Section */
.user-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.user-avatar-large {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #ffffff;
}

.user-info {
    flex: 1;
}

.user-name {
    color: #ffffff;
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0 0 0.25rem 0;
}

.user-email {
    color: #a3a3a3;
    font-size: 0.875rem;
    margin: 0;
}

/* Benefits Section */
.benefits-section {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.benefits-section h3 {
    color: #ffffff;
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0 0 1rem 0;
}

.benefits-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.benefit-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.benefit-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(34, 197, 94, 0.1);
    border-radius: 8px;
    color: #22c55e;
    flex-shrink: 0;
}

.benefit-content {
    flex: 1;
}

.benefit-title {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.25rem 0;
}

.benefit-description {
    color: #a3a3a3;
    font-size: 0.875rem;
    margin: 0;
}

/* Auth Buttons */
.auth-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    font-size: 0.875rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
}

.auth-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.auth-btn:active {
    transform: translateY(0);
}

.sign-up-btn {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    border-color: rgba(34, 197, 94, 0.3);
    color: #ffffff;
    font-weight: 600;
}

.sign-up-btn:hover {
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
    border-color: rgba(34, 197, 94, 0.5);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

.sign-out-btn {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

.sign-out-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.5);
    color: #ffffff;
}

/* Audio elements */
audio {
    display: none;
}

/* Account Requirement Indicators */
.dropdown-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    border-radius: 0;
    gap: 0.75rem;
    justify-content: space-between;
}

.item-content {
    flex: 0 1 auto;
    max-width: 200px;
    min-width: 0;
}

.item-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex-shrink: 0;
    width: fit-content;
}

.item-badge.free {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.item-badge.locked {
    background: rgba(163, 163, 163, 0.2);
    color: #a3a3a3;
    border: 1px solid rgba(163, 163, 163, 0.3);
}

.dropdown-item.requires-account {
    opacity: 0.7;
    position: relative;
}

.dropdown-item.requires-account .item-title {
    color: #a3a3a3;
}

.dropdown-item.requires-account .item-description {
    color: #666666;
}

.dropdown-item.requires-account:hover {
    background: rgba(255, 255, 255, 0.05);
    opacity: 0.8;
}

.dropdown-item.requires-account:hover .item-badge.locked {
    background: rgba(163, 163, 163, 0.3);
    color: #d1d1d1;
}

/* Authenticated user state - hide all badges when authenticated */
.authenticated-user .dropdown-item.requires-account {
    opacity: 1;
}

.authenticated-user .dropdown-item.requires-account .item-title {
    color: #ffffff;
}

.authenticated-user .dropdown-item.requires-account .item-description {
    color: #d1d1d1;
}

.authenticated-user .item-badge.locked {
    display: none;
}

.authenticated-user .item-badge.free {
    display: none;
}

/* Hide FREE badge for guest users - it's redundant */
.item-badge.free {
    display: none;
}

/* Selected technique indicator */
.dropdown-item.selected::after {
    content: '✓';
    color: #ffffff;
    font-weight: bold;
    font-size: 14px;
    margin-left: auto;
}

.authenticated-user .dropdown-item.selected::after {
    content: '✓';
    color: #ffffff;
    font-weight: bold;
    font-size: 14px;
    margin-left: auto;
}

/* Technique Info Modal */
.technique-info-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    animation: fadeIn 0.2s ease-out;
}

.technique-info-modal {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 2.5rem;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    backdrop-filter: blur(20px);
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    animation: slideIn 0.3s ease-out;
    position: relative;
    /* Custom scrollbar for desktop */
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}

.technique-info-modal::-webkit-scrollbar {
    width: 6px;
}

.technique-info-modal::-webkit-scrollbar-track {
    background: transparent;
}

.technique-info-modal::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.technique-info-modal::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

.close-technique-info-x {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
    padding: 0;
}

.close-technique-info-x svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
}

.close-technique-info-x:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: scale(1.1);
}

.technique-info-modal h3 {
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 1.5rem 0;
    text-align: center;
    letter-spacing: -0.02em;
    line-height: 1.3;
}

.technique-description {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    margin: 0 0 1.5rem 0;
    line-height: 1.6;
    font-weight: 400;
}

.technique-video {
    margin: 0 0 1.5rem 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
}

.technique-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 12px;
}

.technique-benefits h4 {
    color: #ffffff;
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0 0 1rem 0;
}

.technique-benefits ul {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    margin: 0 0 2rem 0;
    padding-left: 1.5rem;
    line-height: 1.6;
}

.technique-benefits li {
    margin-bottom: 0.5rem;
}

.close-technique-info {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    color: #000000;
    border: none;
    border-radius: 12px;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

.close-technique-info:hover {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
}

/* Responsive styles for technique info modal */
@media (max-width: 768px) {
    .technique-info-modal {
        max-width: 95%;
        padding: 1.5rem;
        max-height: 95vh;
    }
    
    .technique-info-modal h3 {
        font-size: 1.25rem;
    }
    
    .technique-description {
        font-size: 0.9rem;
    }
    
    .technique-benefits ul {
        font-size: 0.85rem;
    }
    
    .close-technique-info {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* Celebration Modal Styles */
.celebration-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.celebration-modal {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    animation: slideIn 0.4s ease;
}

.celebration-content {
    color: white;
}

.celebration-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    animation: bounce 0.6s ease;
}

.celebration-content h2 {
    font-size: 2rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.celebration-content p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.celebration-close-btn {
    background: #333;
    border: 1px solid #555;
    color: white;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.celebration-close-btn:hover {
    background: #444;
    border-color: #666;
    transform: translateY(-2px);
}

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

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

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-20px);
    }
    60% {
        transform: translateY(-10px);
    }
}

/* Custom Timer Modal Styles */
.custom-timer-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.custom-timer-modal {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 0;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    animation: slideIn 0.4s ease;
}

.custom-timer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 30px 20px 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.custom-timer-header h3 {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.close-custom-timer-x {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
}

.close-custom-timer-x svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
}

.close-custom-timer-x:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: scale(1.1);
}

.custom-timer-content {
    padding: 30px;
}

.custom-timer-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

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

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

.error-message {
    color: #ff6b6b;
    font-size: 0.8rem;
    margin-top: 4px;
    font-weight: 500;
}

.form-group input.error {
    border-color: #ff6b6b;
    background-color: rgba(255, 107, 107, 0.1);
}

.form-group label {
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
}

.form-group input {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 12px 16px;
    color: white;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.form-group input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.15);
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.form-group small {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
}


.custom-timer-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 20px 30px 30px 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    position: sticky;
    bottom: 0;
    background: #1a1a1a;
    z-index: 10;
}

.custom-timer-btn {
    flex: 1;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.custom-timer-btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.custom-timer-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

.custom-timer-btn-primary {
    background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
    color: #000000;
    border: none;
    font-weight: 600;
}

.custom-timer-btn-primary:hover {
    background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
    transform: translateY(-1px);
    box-shadow: 
        0 4px 12px rgba(255, 255, 255, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.custom-timer-btn-primary:active {
    transform: translateY(0);
    box-shadow: 
        0 2px 8px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.custom-timer-btn-primary:disabled {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.3);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.custom-timer-btn-primary:disabled:hover {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.3);
    transform: none;
    box-shadow: none;
}

/* Upgrade Modal */
.upgrade-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    backdrop-filter: blur(8px);
}

.upgrade-modal {
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 2rem;
    max-width: 400px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.close-upgrade-x {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: #ffffff;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: background-color 0.2s ease;
}

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

.upgrade-content {
    text-align: center;
    padding: 1rem 0;
}

.upgrade-icon {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.upgrade-icon svg {
    color: #78dbff;
    opacity: 1;
}

.upgrade-content h3 {
    color: white;
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 1rem 0;
}

.upgrade-content p {
    color: #888;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0 0 2rem 0;
}

.upgrade-features {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    text-align: left;
}

.upgrade-feature {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    color: #d4d4d4;
    font-size: 0.9rem;
}

.upgrade-feature-icon {
    margin-top: 2px;
    color: #9ca3af;
    flex-shrink: 0;
}

.upgrade-feature-text {
    line-height: 1.4;
}

.upgrade-required-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
}

.upgrade-required-buttons .upgrade-btn {
    background: #78dbff;
    color: #1a1a1a;
    border: none;
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.upgrade-required-buttons .upgrade-btn:hover {
    background: #5bc5ff;
}

.upgrade-required-buttons .cancel-btn {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.upgrade-required-buttons .cancel-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Settings Modal */
.settings-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.settings-modal {
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 0;
    max-width: 680px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.close-settings-x {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: #ffffff;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: background-color 0.2s ease;
}

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

.settings-content h2 {
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 2rem;
}

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

.settings-section h3 {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 0.5rem;
}

.settings-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.settings-info {
    flex: 1;
}

.settings-label {
    color: #ffffff;
    font-weight: 500;
    font-size: 1rem;
    display: block;
    margin-bottom: 0.25rem;
}

.settings-description {
    color: #d1d1d1;
    font-size: 0.9rem;
    display: block;
}

.settings-reset-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.settings-reset-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Sound Controls */
.sound-controls {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.sound-select {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #ffffff;
    padding: 0.5rem;
    font-size: 0.9rem;
    width: 100%;
}

.sound-select:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.4);
}

.sound-volume-control {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #ffffff;
    font-size: 0.9rem;
}

.volume-slider {
    flex: 1;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    outline: none;
    -webkit-appearance: none;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    background: #ffffff;
    border-radius: 50%;
    cursor: pointer;
}

.volume-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: #ffffff;
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

#volumeValue {
    min-width: 3rem;
    text-align: right;
    font-weight: 500;
}

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

.sound-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    flex: 1;
}

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

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

.play-btn {
    background: rgba(34, 197, 94, 0.2);
    border-color: rgba(34, 197, 94, 0.4);
}

.play-btn:hover {
    background: rgba(34, 197, 94, 0.3);
}

.pause-btn {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.4);
}

.pause-btn:hover {
    background: rgba(239, 68, 68, 0.3);
}

/* Pro Account Badge */
.pro-badge {
    background: linear-gradient(135deg, #78dbff 0%, #5bc5ff 100%);
    color: #1a1a1a;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    margin-left: auto;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* User info with Pro badge */
.user-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.user-email {
    flex: 1;
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Focus Stats Modal */
.focus-stats-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    backdrop-filter: blur(8px);
}

.focus-stats-modal {
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 2rem 3rem;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.focus-stats-modal h3 {
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-align: center;
}

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

.stat-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
}

.stat-value {
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.stat-label {
    color: #a3a3a3;
    font-size: 0.8rem;
    font-weight: 500;
}

.close-focus-stats {
    width: 100%;
    background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
    color: #000000;
    border: none;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.close-focus-stats:hover {
    background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
    transform: translateY(-1px);
}

.close-focus-stats-x {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: #a3a3a3;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.close-focus-stats-x:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

.close-focus-stats-x svg {
    width: 20px;
    height: 20px;
}

/* Login Required Modal Styles */
.login-required-content {
    text-align: center;
    padding: 1rem 0;
}

.login-icon {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-icon svg {
    color: #888;
    opacity: 0.7;
}

.login-required-content h3 {
    color: white;
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 1rem 0;
}

.login-required-content p {
    color: #888;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0 0 2rem 0;
}

.login-required-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
}

.login-required-buttons .login-btn {
    background: #ffffff;
    color: #000000;
    border: none;
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.login-required-buttons .login-btn:hover {
    background: #f0f0f0;
}

.login-required-buttons .cancel-btn {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.login-required-buttons .cancel-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Integration Modal Styles */
.integration-section {
    margin-top: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.02);
}

.integration-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1.5rem;
}

.integration-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
}

.integration-title h4 {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 4px 0;
}

.integration-title p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin: 0;
}

.integration-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.token-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.token-section label {
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 500;
}

.token-section input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 12px;
    color: #ffffff;
    font-size: 0.9rem;
    width: 100%;
}

.token-section input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.08);
}

.token-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 8px;
}

.btn-primary, .btn-secondary, .btn-success, .btn-focus {
    padding: 8px 16px;
    border-radius: 6px;
    border: none;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
    background: rgba(255, 255, 255, 0.15);
}

.btn-secondary {
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
}

.btn-success {
    background: #10b981;
    color: #ffffff;
}

.btn-success:hover {
    background: #059669;
}

.btn-focus {
    background: #3b82f6;
    color: #ffffff;
    font-size: 0.85rem;
    padding: 6px 12px;
}

.btn-focus:hover {
    background: #2563eb;
}

.tasks-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tasks-header {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.tasks-header h5 {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
}

.tasks-subtitle {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    margin: 8px 0 0 0;
    padding: 4px 0;
}

.connection-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 8px;
}

.integration-status {
    display: none; /* Hide transparent status badges */
    justify-content: flex-end;
    margin-bottom: 8px;
}

.status-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
    font-weight: 500;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    white-space: nowrap;
}

.integration-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
    margin-top: 8px;
}

.integration-controls {
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
}

.integration-controls .integration-status {
    position: absolute;
    top: 0;
    right: 0;
    margin: 0;
    display: none; /* Hide transparent status badges */
}

/* Todoist Connection Modal - Uses existing logout modal styles */

/* Feedback Modal Styles */
.feedback-form {
    margin-top: 20px;
}

.feedback-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    min-height: 100px;
    margin-bottom: 20px;
}

.feedback-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.feedback-form textarea:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.08);
}

.feedback-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.tasks-list {
    max-height: 300px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.task-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
}

.task-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
}

.task-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.task-title {
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.3;
}

.task-project {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
}

.task-actions {
    display: flex;
    align-items: center;
}

.empty-state {
    text-align: center;
    padding: 2rem;
    color: rgba(255, 255, 255, 0.6);
}

.empty-icon {
    font-size: 2rem;
    margin-bottom: 12px;
}

.empty-text {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 4px;
    color: #ffffff;
}

.empty-subtext {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

/* Responsive Focus Stats Modal */
@media (max-width: 768px) {
    .focus-stats-modal {
        width: 95%;
        padding: 1.5rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .stat-item {
        padding: 0.75rem;
    }
    
    .stat-value {
        font-size: 1.25rem;
    }
    
}

/* Responsive Custom Timer Modal */
@media (max-width: 768px) {
    .custom-timer-modal {
        width: 95%;
        max-height: 95vh;
    }
    
    .custom-timer-content {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px;
    }
    
    .custom-timer-header {
        padding: 20px 20px 15px 20px;
    }
    
    .custom-timer-actions {
        padding: 15px 20px 20px 20px;
        flex-direction: column;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .custom-timer-btn {
        width: 100%;
    }
}

/* Ambient Sounds Modal */
.ambient-sounds-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(8px);
}

.ambient-sounds-modal {
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 2rem;
    max-width: 400px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.ambient-sounds-modal h3 {
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-align: center;
}

.ambient-sounds-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.sound-controls {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.sound-selector {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sound-selector label {
    color: #ffffff;
    font-weight: 500;
    font-size: 0.9rem;
}

.sound-selector select {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #ffffff;
    padding: 0.75rem;
    font-size: 0.9rem;
}

.volume-control {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.volume-control label {
    color: #ffffff;
    font-weight: 500;
    font-size: 0.9rem;
}

.volume-control input[type="range"] {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.2);
    outline: none;
    -webkit-appearance: none;
}

.volume-control input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #ffffff;
    cursor: pointer;
}

.volume-control span {
    color: #a3a3a3;
    font-size: 0.8rem;
    text-align: center;
}

.sound-actions {
    display: flex;
    gap: 0.75rem;
}

.ambient-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    flex: 1;
}

.ambient-btn.primary {
    background: #ffffff;
    color: #000000;
}

.ambient-btn.primary:hover {
    background: #f0f0f0;
}

.ambient-btn.secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.ambient-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.close-ambient-sounds-x {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: #a3a3a3;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.close-ambient-sounds-x:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

.close-ambient-sounds-x svg {
    width: 20px;
    height: 20px;
}

/* Settings Modal with Tabs */
.settings-container {
    display: flex;
    height: 100%;
    min-height: 500px;
    max-height: 80vh;
}

.settings-nav {
    width: 220px;
    background: rgba(255, 255, 255, 0.05);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex-shrink: 0;
}

.settings-nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: #a3a3a3;
    cursor: pointer;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.settings-nav-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
}

.settings-nav-item.active {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border-left-color: #ffffff;
}

.settings-nav-item span {
    font-size: 0.9rem;
    font-weight: 500;
}

.settings-content {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
    min-width: 0;
}

.settings-tab {
    display: none;
}

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

.settings-tab h3 {
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 2rem;
}

.settings-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.settings-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.settings-label-group {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.settings-label {
    color: #ffffff;
    font-weight: 500;
    font-size: 0.9rem;
}

.settings-description {
    color: #a3a3a3;
    font-size: 0.8rem;
}

.settings-select {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: #ffffff;
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
    min-width: 120px;
}

.settings-toggle {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.settings-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.2);
    transition: 0.3s;
    border-radius: 24px;
}

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

input:checked + .toggle-slider {
    background-color: #ffffff;
}

input:checked + .toggle-slider:before {
    transform: translateX(20px);
}

.settings-export-btn {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.4);
    border-radius: 6px;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.settings-export-btn:hover {
    background: rgba(34, 197, 94, 0.3);
    border-color: rgba(34, 197, 94, 0.6);
}

/* View Mode Toggle Buttons */
.view-mode-buttons {
    display: flex;
    gap: 0.5rem;
}

.view-mode-btn {
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    color: #a3a3a3;
    min-width: 60px;
}

.view-mode-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.view-mode-btn.active {
    background: #ffffff;
    color: #000000;
    border-color: #ffffff;
}

.view-mode-btn.active:hover {
    background: #f0f0f0;
}

.view-mode-actions {
    margin-top: 1rem;
    display: flex;
    justify-content: flex-end;
}

.apply-view-mode-btn {
    background: #ffffff;
    color: #000000;
    border: none;
    border-radius: 6px;
    padding: 0.5rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.apply-view-mode-btn:hover {
    background: #f0f0f0;
}

.apply-view-mode-btn:disabled {
    background: rgba(255, 255, 255, 0.3);
    color: rgba(0, 0, 0, 0.5);
    cursor: not-allowed;
}

/* Responsive Settings Modal */
@media (max-width: 768px) {
    .settings-modal {
        max-width: 95%;
        width: 95%;
    }
    
    .settings-container {
        flex-direction: column;
        min-height: auto;
    }
    
    .settings-nav {
        width: 100%;
        flex-direction: row;
        padding: 0.5rem;
        overflow-x: auto;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .settings-nav-item {
        flex-shrink: 0;
        border-left: none;
        border-bottom: 3px solid transparent;
    }
    
    .settings-nav-item.active {
        border-left-color: transparent;
        border-bottom-color: #ffffff;
    }
    
    .settings-content {
        padding: 1.5rem;
    }
}

/* Ambient Sounds Controls */
.ambient-controls {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 1rem;
}

.ambient-selector,
.ambient-volume {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.ambient-selector label,
.ambient-volume label {
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 500;
}

.ambient-selector select {
    background: #2a2a2a;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #ffffff;
    padding: 0.75rem;
    font-size: 0.9rem;
    transition: border-color 0.2s;
}

.ambient-selector select:focus {
    outline: none;
    border-color: #007AFF;
}

.ambient-volume {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.ambient-volume input[type="range"] {
    width: 100%;
    height: 6px;
    background: #2a2a2a;
    border-radius: 3px;
    outline: none;
    -webkit-appearance: none;
}

.ambient-volume input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    background: #007AFF;
    border-radius: 50%;
    cursor: pointer;
}

/* New Lofi Music Controls */
.lofi-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.lofi-header h4 {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

.toggle-container {
    display: flex;
    align-items: center;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

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

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #2a2a2a;
    transition: .4s;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

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

input:checked + .toggle-slider {
    background-color: #ffffff;
}

input:checked + .toggle-slider:before {
    transform: translateX(26px);
    background-color: #000000;
}

.preview-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.preview-btn {
    background: #ffffff;
    color: #000000;
    border: none;
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.preview-btn:hover {
    background: #f0f0f0;
}

.preview-btn:disabled {
    background: rgba(255, 255, 255, 0.1);
    color: #666666;
    cursor: not-allowed;
}

.ambient-volume input[type="range"]:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.ambient-volume input[type="range"]::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: #007AFF;
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

.ambient-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1rem;
}

/* New Task Modal Styles */
.tasks-header {
    text-align: center;
    margin-bottom: 1rem;
}

.tasks-header h3 {
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

.tasks-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    font-weight: 400;
    margin: 0.25rem 0 0 0;
}

.tasks-menu {
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.tasks-menu:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.tasks-divider {
    height: 1px;
    background-color: rgba(255, 255, 255, 0.2);
    margin-bottom: 1rem;
}

.tasks-list {
    max-height: 400px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 1rem;
}

.task-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.2s;
}

.task-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
}

.task-item.selected {
    border-left: 4px solid #78dbff;
}

/* Preserve selected blue accent on hover */
.task-item.selected:hover {
    border-left-color: #78dbff;
}

.task-progress {
    display: flex;
    align-items: center;
    margin-left: auto;
    margin-right: 12px;
}

.progress-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    font-weight: 500;
}

.task-checkbox {
    position: relative;
}

.task-checkbox input[type="checkbox"] {
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: all 0.2s;
}

.task-checkbox input[type="checkbox"]:checked {
    background: #78dbff;
    border-color: #78dbff;
}

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

.task-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.task-title {
    color: #ffffff;
    font-size: 16px;
    font-weight: 500;
}

.task-sessions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sessions-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.sessions-control {
    display: flex;
    align-items: center;
    gap: 4px;
}

.sessions-btn {
    width: 24px;
    height: 24px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.2s;
}

.sessions-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.sessions-count {
    min-width: 20px;
    text-align: center;
    font-weight: 500;
    color: #ffffff;
}

.task-menu {
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.task-menu:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

.add-task-section {
    margin-bottom: 1rem;
}

.add-task-btn {
    width: 100%;
    padding: 16px;
    border: 2px dashed rgba(255, 255, 255, 0.3);
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.2s;
}

.add-task-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.add-task-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.5);
    color: #ffffff;
}

.import-task-btn {
    width: 100%;
    padding: 16px;
    border: 2px solid rgba(120, 219, 255, 0.3);
    background: rgba(120, 219, 255, 0.1);
    color: #78dbff;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.2s;
    margin-top: 8px;
}

.import-task-btn:hover {
    background: rgba(120, 219, 255, 0.2);
    border-color: rgba(120, 219, 255, 0.5);
    color: #ffffff;
}

/* Inline Add Task Form */
.add-task-form {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

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

.add-task-form .form-group:last-of-type {
    margin-bottom: 1rem;
}

.add-task-form label {
    display: block;
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
}

.add-task-form input[type="text"] {
    width: 100%;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #ffffff;
    font-size: 16px;
    box-sizing: border-box;
}

.add-task-form input[type="text"]:focus {
    outline: none;
    border-color: #78dbff;
}

.add-task-form .pomodoros-control {
    display: flex;
    align-items: center;
    gap: 8px;
}

.add-task-form .pomodoros-btn {
    width: 32px;
    height: 32px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.add-task-form .pomodoros-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.add-task-form .pomodoros-control input[type="number"] {
    width: 60px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: #ffffff;
    text-align: center;
    /* Hide native number input spinners */
    -moz-appearance: textfield;
}

.add-task-form .pomodoros-control input[type="number"]::-webkit-outer-spin-button,
.add-task-form .pomodoros-control input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.add-task-form .form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Delete Task Button Styles */
#deleteTask {
    background: none !important;
    border: none !important;
    padding: 0 !important;
    color: rgba(255, 255, 255, 0.6) !important;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    min-height: 42px !important;
}

#deleteTask:hover {
    background: rgba(255, 59, 48, 0.1) !important;
    color: #ff3b30 !important;
    border: 1px solid rgba(255, 59, 48, 0.2) !important;
    transform: scale(1.05);
}

#deleteTask:active {
    transform: scale(0.95);
}


/* Empty state styles */
.empty-state {
    text-align: center;
    padding: 2rem;
    color: #666;
}

.empty-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.empty-text {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.empty-subtext {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
}

/* Current Task Banner Styles */
.current-task-banner {
    background: rgba(120, 219, 255, 0.1);
    border: 1px solid rgba(120, 219, 255, 0.2);
    border-radius: 12px;
    padding: 16px;
    margin: 16px 0;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.current-task-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.current-task-icon {
    width: 32px;
    height: 32px;
    background: rgba(120, 219, 255, 0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #78dbff;
}

.current-task-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.current-task-title {
    color: #ffffff;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.2;
}

.current-task-progress {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.task-sessions-info {
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
    font-weight: 500;
}

.change-task-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 8px;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.change-task-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

/* Task Tabs Styles */
.task-tabs {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.task-tabs-left {
    display: flex;
    gap: 8px;
}

.task-tabs-right {
    display: flex;
    align-items: center;
    position: relative;
}

.task-tab {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    padding: 12px 16px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
}

.task-tab:hover {
    color: rgba(255, 255, 255, 0.8);
}

.task-tab.active {
    color: #78dbff;
    border-bottom-color: #78dbff;
}

/* Task Options Button */
.task-options-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    padding: 8px;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.task-options-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
}

/* Task Options Dropdown */
.task-options-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    min-width: 200px;
}

.task-options-menu {
    padding: 8px 0;
}

.task-option-item {
    width: 100%;
    background: none;
    border: none;
    color: #ffffff;
    padding: 12px 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    transition: background-color 0.2s;
    text-align: left;
}

.task-option-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.task-option-item svg {
    flex-shrink: 0;
}

/* Todoist Projects Modal Styles */
.todoist-projects-container {
    margin: 1.5rem 0;
}

.loading-state {
    text-align: center;
    padding: 2rem;
    color: rgba(255, 255, 255, 0.6);
}

.loading-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top: 3px solid #78dbff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.todoist-projects-list {
    max-height: 400px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.todoist-project-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.todoist-project-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
}

.todoist-project-item.selected {
    background: rgba(120, 219, 255, 0.1);
    border-color: rgba(120, 219, 255, 0.3);
}

.project-checkbox {
    position: relative;
    flex-shrink: 0;
}

.project-checkbox-input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.project-checkbox-label {
    display: block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    background: transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.project-checkbox-input:checked + .project-checkbox-label {
    background: #78dbff;
    border-color: #78dbff;
}

.project-checkbox-input:checked + .project-checkbox-label::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 6px;
    height: 10px;
    border: solid #1a1a1a;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.project-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.project-name {
    color: #ffffff;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.3;
}

.project-tasks-count {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

.todoist-import-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.todoist-import-actions .btn-primary:disabled {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.3);
    cursor: not-allowed;
}

/* Todoist Tasks Modal Styles */
.todoist-tasks-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.todoist-project-section {
    border-radius: 8px;
    overflow: hidden;
}

.todoist-project-section.inbox-section {
    /* Removed border and background for cleaner look */
}

.project-header {
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(120, 219, 255, 0.2);
}

.project-title {
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

.project-task-count {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    font-weight: 500;
}

.project-tasks {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.todoist-task-item {
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.todoist-task-item:last-child {
    border-bottom: none;
}

.todoist-task-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.todoist-task-item.selected {
    background: rgba(120, 219, 255, 0.1);
}

.task-checkbox {
    position: relative;
    flex-shrink: 0;
}

.task-checkbox-input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.task-checkbox-label {
    display: block;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 3px;
    background: transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.task-checkbox-input:checked + .task-checkbox-label {
    background: #78dbff;
    border-color: #78dbff;
}

.task-checkbox-input:checked + .task-checkbox-label::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 5px;
    height: 8px;
    border: solid #1a1a1a;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.task-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.task-content {
    color: #ffffff;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
}

.task-due {
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    font-style: italic;
}

.empty-state {
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    padding: 2rem;
    font-style: italic;
}

/* Task Management Styles */
.task-menu-dropdown {
    position: absolute;
    top: 40px;
    right: 20px;
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 8px 0;
    min-width: 200px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 1000;
}

.task-menu-item {
    padding: 12px 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #ffffff;
    transition: background-color 0.2s;
}

.task-menu-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Add Task Modal Styles */
.add-task-modal-content {
    padding: 0;
}

.task-form {
    margin: 1.5rem 0;
}

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

.task-form label {
    display: block;
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
}

.task-form input[type="text"] {
    width: 100%;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #ffffff;
    font-size: 16px;
}

.task-form input[type="text"]:focus {
    outline: none;
    border-color: #78dbff;
}

.pomodoros-control {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pomodoros-btn {
    width: 32px;
    height: 32px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.pomodoros-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.pomodoros-control input[type="number"] {
    width: 60px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: #ffffff;
    text-align: center;
}

.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-primary, .btn-secondary {
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.btn-primary {
    background: #78dbff;
    color: #000;
}

.btn-primary:hover {
    background: #5bc0de;
}

.btn-primary:disabled {
    background: rgba(120, 219, 255, 0.3);
    cursor: not-allowed;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Import Modal Styles */
.import-modal {
    max-width: 600px;
    max-height: 80vh;
}

.import-modal-content {
    padding: 0;
}

.search-section {
    margin-bottom: 1.5rem;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.7);
}

.search-box input {
    flex: 1;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 14px;
}

.search-box input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.projects-section {
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: 1.5rem;
}

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

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 8px;
}

.project-header h4 {
    color: #ffffff;
    font-size: 16px;
    font-weight: 500;
    margin: 0;
}

.task-count {
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
}

.project-tasks {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.import-task-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.import-task-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
}

.import-task-item input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #78dbff;
}

.import-task-item .task-content {
    flex: 1;
    color: #ffffff;
    font-size: 14px;
}

.import-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.loading, .error {
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    padding: 2rem;
}

/* Task Source Indicator */
.task-source {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 500;
    margin-left: 8px;
    text-transform: uppercase;
}

.task-source.local {
    background: rgba(120, 219, 255, 0.2);
    color: #78dbff;
    border: 1px solid rgba(120, 219, 255, 0.3);
}

/* Background Music Modal - Redesigned */
.background-music-modal {
    max-width: 480px;
    padding: 2rem;
}

.modal-header {
    text-align: center;
    margin-bottom: 2rem;
}

.modal-header h3 {
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
}

.modal-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin: 0;
}

.music-controls {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.music-section {
}

.music-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
}

.music-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.music-icon {
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.music-details h4 {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 4px 0;
}

.music-details p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    margin: 0;
}

.toggle-container {
    display: flex;
    align-items: center;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 28px;
}

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

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.2);
    transition: 0.3s;
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: #ffffff;
    transition: 0.3s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

input:checked + .toggle-slider {
    background-color: #ffffff;
    border-color: #ffffff;
}

input:checked + .toggle-slider:before {
    transform: translateX(24px);
}

.volume-section {
}

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

.volume-label {
    color: #ffffff;
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.volume-value {
    color: #e5e5e5;
    font-size: 0.9rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.08);
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.volume-control {
    position: relative;
}

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

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ffffff;
    cursor: pointer;
    border: 2px solid #ffffff;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.volume-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ffffff;
    cursor: pointer;
    border: 2px solid #ffffff;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.volume-slider:hover::-webkit-slider-thumb {
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2), 0 2px 4px rgba(0, 0, 0, 0.2);
}

.volume-slider:focus::-webkit-slider-thumb {
    box-shadow: 0 0 0 2px rgba(120, 219, 255, 0.5), 0 0 0 1px rgba(0, 0, 0, 0.2), 0 2px 4px rgba(0, 0, 0, 0.2);
}

.volume-slider:hover::-moz-range-thumb {
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2), 0 2px 4px rgba(0, 0, 0, 0.2);
}

.volume-slider:focus::-moz-range-thumb {
    box-shadow: 0 0 0 2px rgba(120, 219, 255, 0.5), 0 0 0 1px rgba(0, 0, 0, 0.2), 0 2px 4px rgba(0, 0, 0, 0.2);
}

.preview-section {
    display: flex;
    justify-content: center;
}

.preview-btn {
    background: #78dbff;
    color: #000000;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 120px;
    justify-content: center;
}

.preview-btn:hover {
    background: #5bc0de;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(120, 219, 255, 0.3);
}

.preview-btn:active {
    transform: translateY(0);
}

/* Spotify Section in Background Music Modal */

/* Pro Upgrade Banner in Tasks Modal */
.pro-upgrade-banner {
    background: linear-gradient(135deg, rgba(120, 219, 255, 0.1), rgba(120, 219, 255, 0.05));
    border: 1px solid rgba(120, 219, 255, 0.2);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.pro-banner-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pro-banner-icon {
    color: #78dbff;
    flex-shrink: 0;
}

.pro-banner-text h4 {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 4px 0;
}

.pro-banner-text p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    margin: 0;
}

.pro-banner-btn {
    background: #78dbff;
    color: #1a1a1a;
    border: none;
    border-radius: 6px;
    padding: 8px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-left: auto;
    flex-shrink: 0;
}

.pro-banner-btn:hover {
    background: #5bc5ff;
    transform: translateY(-1px);
}

/* Drag and Drop Styles */
.task-item {
    cursor: move;
    transition: all 0.2s ease;
}

.task-item.dragging {
    opacity: 0.5;
    transform: rotate(5deg);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    z-index: 1000;
}

.task-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
}
