* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    /* Elegant white to green gradient for natural calm and focus */
    background: linear-gradient(135deg, 
        #ffffff 0%,     /* Pure white for clarity */
        #f8fdf9 20%,    /* Very light green tint */
        #ecf7ed 40%,    /* Soft green whisper */
        #d4e8d6 60%,    /* Gentle green harmony */
        #b8daba 80%,    /* Medium green balance */
        #9ccb9e 100%    /* Soft sage green grounding */
    );
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Helvetica Neue', Arial, sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    color: #1d1d1f;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    position: relative;
}

/* Optional: Add subtle animated background for enhanced meditation effect */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        circle at 20% 80%, 
        rgba(156, 203, 158, 0.08) 0%, 
        transparent 50%
    ),
    radial-gradient(
        circle at 80% 20%, 
        rgba(212, 232, 214, 0.12) 0%, 
        transparent 50%
    );
    pointer-events: none;
    z-index: -1;
    animation: gentleFlow 30s ease-in-out infinite;
}

@keyframes gentleFlow {
    0%, 100% {
        opacity: 0.8;
        transform: translateY(0px);
    }
    33% {
        opacity: 1;
        transform: translateY(-5px);
    }
    66% {
        opacity: 0.9;
        transform: translateY(3px);
    }
}

/* Evening/Night mode color scheme */
@media (prefers-color-scheme: dark) {
    body {
        background: linear-gradient(135deg, 
            #1a1f1b 0%,     /* Very dark green-black */
            #2d3a2f 20%,    /* Dark forest */
            #3e4f42 40%,    /* Deep green-gray */
            #4f6353 60%,    /* Muted forest green */
            #607764 80%,    /* Soft dark green */
            #718b75 100%    /* Sage green for grounding */
        );
    }
    
    body::before {
        background: radial-gradient(
            circle at 20% 80%, 
            rgba(113, 139, 117, 0.1) 0%, 
            transparent 50%
        ),
        radial-gradient(
            circle at 80% 20%, 
            rgba(96, 119, 100, 0.08) 0%, 
            transparent 50%
        );
    }
}

.timer-container {
    position: fixed;
    top: 2rem;
    left: 2rem;
    z-index: 1000;
}

.timer-card {
    background: rgba(255, 255, 255, 0.85);
    border: none;
    border-radius: 24px;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    backdrop-filter: blur(25px) saturate(180%);
    box-shadow: 
        0 8px 40px rgba(156, 203, 158, 0.18),
        0 2px 8px rgba(156, 203, 158, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    border: 0.5px solid rgba(156, 203, 158, 0.25);
    overflow: hidden;
    min-width: 240px;
    transition: all 0.4s cubic-bezier(0.4, 0.0, 0.2, 1);
}

/* Dimmed timer during active session */
.timer-card.dimmed {
    background: rgba(255, 255, 255, 0.4);
    border-color: rgba(156, 203, 158, 0.15);
    box-shadow: 
        0 4px 20px rgba(156, 203, 158, 0.08),
        0 1px 4px rgba(156, 203, 158, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    opacity: 0.7;
}

.timer-card.compact {
    min-width: 100px;
    border-radius: 16px;
    transform: scale(0.8);
    transform-origin: top left;
}

.timer-header {
    width: 100%;
    padding: 16px 20px 0;
    display: flex;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.timer-card.compact .timer-header {
    padding: 8px 12px 0;
    opacity: 0;
    height: 0;
    overflow: hidden;
    padding-top: 0;
    padding-bottom: 0;
}

.timer-display-container {
    padding: 24px 20px;
    width: 100%;
    display: flex;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.timer-card.compact .timer-display-container {
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 12px;
    position: relative;
}

.timer-card.compact .timer-display-container:hover {
    background: rgba(156, 203, 158, 0.08);
    transform: scale(1.02);
}

.timer-card.compact .timer-display-container:active {
    transform: scale(0.98);
}

.timer-display {
    font-size: 56px;
    font-weight: 200;
    color: #1d1d1f;
    font-variant-numeric: tabular-nums;
    letter-spacing: -2px;
    font-family: -apple-system-font, -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
    line-height: 1;
    transition: all 0.4s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.timer-card.compact .timer-display {
    font-size: 28px;
    font-weight: 400;
    letter-spacing: -0.5px;
}

.timer-card.compact .timer-display:hover {
    color: #007aff;
}

/* Add subtle pulse animation to indicate interactivity */
.timer-card.compact .timer-display-container::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    background: rgba(0, 122, 255, 0.4);
    border-radius: 50%;
    animation: compactPulse 2s ease-in-out infinite;
}

@keyframes compactPulse {
    0%, 100% { 
        opacity: 0.4;
        transform: translateY(-50%) scale(1);
    }
    50% { 
        opacity: 0.8;
        transform: translateY(-50%) scale(1.2);
    }
}

.timer-duration-selector {
    display: flex;
    align-items: center;
}

.timer-input-group {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(156, 203, 158, 0.12);
    border-radius: 12px;
    padding: 8px 12px;
    border: none;
    position: relative;
}

.timer-input {
    background: none;
    border: none;
    font-size: 15px;
    font-weight: 500;
    color: #1d1d1f;
    outline: none;
    width: 32px;
    text-align: center;
    -moz-appearance: textfield;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
}

.timer-input::-webkit-outer-spin-button,
.timer-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.timer-input:disabled {
    color: #8e8e93;
    cursor: not-allowed;
}

.timer-input-label {
    font-size: 15px;
    color: #6e6e73;
    font-weight: 500;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
}

.timer-arrows {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-left: 4px;
}

.timer-arrow {
    background: none;
    border: none;
    cursor: pointer;
    padding: 2px 3px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6e6e73;
    transition: all 0.15s ease;
    outline: none;
    width: 20px;
    height: 16px;
}

.timer-arrow:hover {
    background: rgba(156, 203, 158, 0.15);
    color: #4a6b4f;
    transform: translateY(-0.5px);
}

.timer-arrow:active {
    transform: translateY(0);
    background: rgba(156, 203, 158, 0.2);
}

.timer-arrow:disabled {
    color: #c7c7cc;
    cursor: not-allowed;
    opacity: 0.5;
}

.timer-arrow:disabled:hover {
    background: none;
    transform: none;
}

.timer-arrow svg {
    transition: all 0.15s ease;
}

.timer-arrow:hover svg {
    transform: scale(1.1);
}

.timer-controls {
    width: 100%;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    background: rgba(156, 203, 158, 0.06);
    border-top: 0.5px solid rgba(156, 203, 158, 0.18);
    transition: all 0.4s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.timer-card.compact .timer-controls {
    display: none;
}

.timer-button {
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0.0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    outline: none;
}

.timer-button-primary {
    width: 64px;
    height: 64px;
    background: #007aff;
    color: white;
    box-shadow: 
        0 4px 16px rgba(0, 122, 255, 0.3),
        0 1px 2px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.timer-button-secondary {
    width: 48px;
    height: 48px;
    background: rgba(156, 203, 158, 0.18);
    color: #4a6b4f;
    transition: all 0.4s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.timer-card.compact .timer-button-primary {
    width: 48px;
    height: 48px;
}

.timer-card.compact .timer-button-secondary {
    width: 36px;
    height: 36px;
}

.timer-card.compact .timer-button-primary svg,
.timer-card.compact .timer-button-secondary svg {
    transform: scale(0.8);
}

.timer-button-primary:hover {
    background: #0056d3;
    transform: translateY(-1px);
    box-shadow: 
        0 6px 20px rgba(0, 122, 255, 0.4),
        0 2px 4px rgba(0, 0, 0, 0.1);
}

.timer-button-secondary:hover {
    background: rgba(156, 203, 158, 0.28);
    color: #2d4a33;
}

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

.timer-button:disabled {
    background: #d1d1d6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    color: #8e8e93;
}

.timer-finished {
    animation: gentlePulse 2s infinite;
    color: #34c759;
}

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

.floating-input-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    width: min(90vw, 420px);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.15s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.floating-input-container.visible {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

#floatingInput {
    padding: 1.25rem 2rem;
    font-size: 18px;
    font-weight: 300;
    border: none;
    border-radius: 20px;
    width: 100%;
    text-align: center;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px) saturate(180%);
    outline: none;
    transition: all 0.15s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #1d1d1f;
    -webkit-user-select: text;
    user-select: text;
    -webkit-appearance: none;
    appearance: none;
}

#floatingInput:focus {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2), 0 0 0 1px #007aff;
}

#floatingInput::placeholder {
    color: #86868b;
    font-weight: 300;
}

.input-hint {
    text-align: center;
    color: #86868b;
    font-size: 13px;
    font-weight: 400;
    margin-top: 1rem;
    opacity: 0.8;
}

.circle-container {
    position: relative;
    width: min(45vh, 360px);
    height: min(45vh, 360px);
    margin: 0;
    flex-shrink: 0;
}

.circle {
    width: 100%;
    height: 100%;
    border: 2px solid #d2d2d7;
    border-radius: 50%;
    position: relative;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(20px);
    box-shadow: inset 0 0 60px rgba(255, 255, 255, 0.8), 
                0 8px 32px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.circle:hover {
    transform: scale(1.02);
    box-shadow: inset 0 0 80px rgba(255, 255, 255, 0.9), 
                0 12px 40px rgba(0, 0, 0, 0.12);
}

.circle:active {
    transform: scale(0.98);
    transition: all 0.1s ease;
}

/* Dark circle when timer is running */
.circle.inactive {
    border-color: #8e8e93;
    background: rgba(45, 45, 47, 0.7);
    box-shadow: inset 0 0 60px rgba(0, 0, 0, 0.3), 
                0 8px 32px rgba(0, 0, 0, 0.15);
}

.circle.inactive:hover {
    transform: scale(1.02);
    border-color: #a8a8a8;
    background: rgba(55, 55, 57, 0.8);
    box-shadow: inset 0 0 80px rgba(0, 0, 0, 0.4), 
                0 12px 40px rgba(0, 0, 0, 0.2);
}

.circle.inactive:active {
    transform: scale(0.98);
    transition: all 0.1s ease;
}

.center-dot {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 12px;
    background: #1d1d1f;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    transition: all 0.4s ease;
}

/* Light dot when timer is running */
.circle.inactive .center-dot {
    background: #f2f2f7;
    box-shadow: 0 4px 16px rgba(255, 255, 255, 0.4),
                0 0 0 1px rgba(255, 255, 255, 0.8);
}

/* Floating thoughts around the circle */
.floating-thoughts {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
}

.floating-thought {
    position: absolute;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(156, 203, 158, 0.3);
    border-radius: 16px;
    padding: 8px 12px;
    font-size: 13px;
    color: #1d1d1f;
    backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 4px 20px rgba(156, 203, 158, 0.15);
    max-width: 160px;
    pointer-events: auto;
    cursor: pointer;
    transition: all 0.3s ease;
    transform-origin: center;
    line-height: 1.3;
    font-weight: 400;
    word-wrap: break-word;
    hyphens: auto;
    opacity: 0;
    animation: fadeInThought 0.5s ease-out forwards;
}

@keyframes fadeInThought {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.floating-thought:hover {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(156, 203, 158, 0.5);
    transform: translate(-50%, -50%) scale(1.05);
    box-shadow: 0 6px 25px rgba(156, 203, 158, 0.2);
    z-index: 10;
}

.floating-thought.completed {
    background: rgba(52, 199, 89, 0.1);
    border-color: rgba(52, 199, 89, 0.3);
    opacity: 0.7;
    text-decoration: line-through;
}

.floating-thought .remove-btn {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 18px;
    height: 18px;
    background: rgba(255, 99, 99, 0.9);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 12px;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: all 0.2s ease;
}

.floating-thought:hover .remove-btn {
    display: flex;
}

.floating-thought .remove-btn:hover {
    background: rgba(255, 99, 99, 1);
    transform: scale(1.1);
}

/* Mobile thoughts container */
.mobile-thoughts-container {
    width: min(90vw, 400px);
    max-height: 60vh;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(156, 203, 158, 0.25);
    border-radius: 20px;
    backdrop-filter: blur(25px) saturate(180%);
    box-shadow: 
        0 8px 32px rgba(156, 203, 158, 0.18),
        0 2px 8px rgba(156, 203, 158, 0.1);
    overflow: hidden;
    display: none; /* Hidden by default, shown on mobile */
    flex-direction: column;
    transition: all 0.4s ease;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

/* Dimmed state for mobile container during timer */
.mobile-thoughts-container.dimmed {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(156, 203, 158, 0.1);
    box-shadow: 
        0 4px 16px rgba(156, 203, 158, 0.05),
        0 1px 4px rgba(156, 203, 158, 0.03);
    opacity: 0.6;
}

.mobile-thoughts-container.dimmed .mobile-thought-item {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(156, 203, 158, 0.08);
    opacity: 0.5;
}

.mobile-thoughts-container.dimmed .mobile-thought-item:hover {
    background: rgba(255, 255, 255, 0.35);
    border-color: rgba(156, 203, 158, 0.12);
    opacity: 0.7;
}

.mobile-thoughts-container.dimmed .mobile-thought-text {
    opacity: 0.6;
}

.mobile-thoughts-container.dimmed .mobile-thought-checkbox {
    background: rgba(255, 255, 255, 0.5);
    border-color: rgba(156, 203, 158, 0.3);
    opacity: 0.6;
}

.mobile-thoughts-container.dimmed .mobile-remove-btn {
    opacity: 0.4;
}

.mobile-thoughts-list {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 8px;
    -webkit-overflow-scrolling: touch;
}

.mobile-thought-item {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(156, 203, 158, 0.2);
    border-radius: 12px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s ease;
    font-size: 14px;
    color: #1d1d1f;
}

.mobile-thought-item:hover {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(156, 203, 158, 0.4);
}

.mobile-thought-item.completed {
    opacity: 0.6;
    text-decoration: line-through;
}

.mobile-thought-checkbox {
    appearance: none;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(156, 203, 158, 0.5);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s ease;
    position: relative;
}

.mobile-thought-checkbox:checked {
    background: #34c759;
    border-color: #34c759;
}

.mobile-thought-checkbox:checked::after {
    content: '✓';
    position: absolute;
    top: -2px;
    left: 1px;
    color: white;
    font-size: 10px;
    font-weight: bold;
}

.mobile-thought-text {
    flex: 1;
    line-height: 1.3;
}

.mobile-remove-btn {
    background: none;
    border: none;
    color: #8e8e93;
    font-size: 14px;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.mobile-remove-btn:hover {
    background: rgba(255, 99, 99, 0.1);
    color: #ff6363;
}

/* ToDo Sidebar */
.thoughts-sidebar {
    position: fixed;
    top: 2rem;
    right: 2rem;
    width: 320px;
    max-height: calc(100vh - 4rem);
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(156, 203, 158, 0.25);
    border-radius: 20px;
    backdrop-filter: blur(25px) saturate(180%);
    box-shadow: 
        0 8px 32px rgba(156, 203, 158, 0.18),
        0 2px 8px rgba(156, 203, 158, 0.1);
    z-index: 1000;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.4s ease;
}

/* Dimmed state during timer */
.thoughts-sidebar.dimmed {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(156, 203, 158, 0.1);
    box-shadow: 
        0 4px 16px rgba(156, 203, 158, 0.05),
        0 1px 4px rgba(156, 203, 158, 0.03);
    opacity: 0.6;
}

/* Individual todo items even darker when sidebar is dimmed */
.thoughts-sidebar.dimmed .todo-item {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(156, 203, 158, 0.08);
    opacity: 0.5;
}

.thoughts-sidebar.dimmed .todo-item:hover {
    background: rgba(255, 255, 255, 0.35);
    border-color: rgba(156, 203, 158, 0.12);
    opacity: 0.7;
}

/* Dimmed todo text and controls */
.thoughts-sidebar.dimmed .todo-text {
    opacity: 0.6;
}

.thoughts-sidebar.dimmed .todo-checkbox {
    background: rgba(255, 255, 255, 0.5);
    border-color: rgba(156, 203, 158, 0.3);
    opacity: 0.6;
}

.thoughts-sidebar.dimmed .remove-todo {
    opacity: 0.4;
}

.thoughts-list {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
}

.todo-item {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(156, 203, 158, 0.2);
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 8px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    transition: all 0.2s ease;
    font-size: 14px;
    color: #1d1d1f;
    position: relative;
}

.todo-item:hover {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(156, 203, 158, 0.4);
    transform: translateX(-2px);
}

.todo-checkbox {
    appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(156, 203, 158, 0.5);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    margin-top: 1px;
    flex-shrink: 0;
    transition: all 0.2s ease;
    position: relative;
}

.todo-checkbox:hover {
    border-color: rgba(156, 203, 158, 0.8);
    background: rgba(255, 255, 255, 1);
}

.todo-checkbox:checked {
    background: #34c759;
    border-color: #34c759;
}

.todo-checkbox:checked::after {
    content: '✓';
    position: absolute;
    top: -2px;
    left: 1px;
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.todo-text {
    flex: 1;
    line-height: 1.4;
    transition: all 0.3s ease;
}

.todo-item.completed .todo-text {
    text-decoration: line-through;
    opacity: 0.6;
    color: #8e8e93;
}

.remove-todo {
    background: none;
    border: none;
    color: #8e8e93;
    font-size: 16px;
    cursor: pointer;
    padding: 0;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
    flex-shrink: 0;
    opacity: 0.7;
}

.remove-todo:hover {
    background: rgba(255, 99, 99, 0.1);
    color: #ff6363;
    opacity: 1;
}

/* Drag and Drop Styles */
.drag-handle {
    color: #8e8e93;
    font-size: 12px;
    cursor: grab;
    padding: 2px;
    user-select: none;
    opacity: 0.5;
    transition: opacity 0.2s ease;
    flex-shrink: 0;
}

.todo-item:hover .drag-handle {
    opacity: 1;
}

.drag-handle:active {
    cursor: grabbing;
}

.todo-item.dragging {
    transform: rotate(3deg);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    z-index: 1000;
}

.todo-item.drag-over-top {
    border-top: 3px solid #34c759;
    margin-top: 6px;
}

.todo-item.drag-over-bottom {
    border-bottom: 3px solid #34c759;
    margin-bottom: 6px;
}

.todo-item[draggable="true"] {
    cursor: move;
}

.todo-item.completed[draggable="true"] {
    cursor: default;
}

.todo-item.completed .drag-handle {
    opacity: 0.3;
    cursor: default;
}

/* Help Icon */
.help-icon {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(156, 203, 158, 0.25);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(25px) saturate(180%);
    box-shadow: 
        0 8px 32px rgba(156, 203, 158, 0.18),
        0 2px 8px rgba(156, 203, 158, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    z-index: 1000;
}

.help-icon:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-2px);
    box-shadow: 
        0 12px 40px rgba(156, 203, 158, 0.22),
        0 4px 12px rgba(156, 203, 158, 0.12);
}

.help-icon-text {
    font-size: 24px;
    font-weight: bold;
    color: #007aff;
    line-height: 1;
}

/* Help Modal */
.help-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    backdrop-filter: blur(8px);
}

.help-modal.visible {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-out;
}

.help-modal-content {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 0;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: slideIn 0.3s ease-out;
}

.help-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.5);
}

.help-modal-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #1d1d1f;
}

.help-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #6e6e73;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.help-modal-close:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #1d1d1f;
}

.help-modal-body {
    padding: 2rem;
    overflow-y: auto;
    max-height: calc(80vh - 100px);
}

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

.help-section:last-child {
    margin-bottom: 0;
}

.help-section h4 {
    margin: 0 0 0.5rem 0;
    font-size: 16px;
    font-weight: 600;
    color: #1d1d1f;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.help-section p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: #6e6e73;
}

.help-section strong {
    color: #1d1d1f;
}

@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);
    }
}

/* Export Modal */
.export-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    backdrop-filter: blur(8px);
}

.export-modal.visible {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-out;
}

.export-modal-content {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 0;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: slideIn 0.3s ease-out;
}

.export-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.5);
}

.export-modal-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #1d1d1f;
}

.export-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #6e6e73;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.export-modal-close:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #1d1d1f;
}

.export-modal-body {
    padding: 2rem;
    overflow-y: auto;
    max-height: calc(80vh - 100px);
}

.export-description {
    margin: 0 0 1.5rem 0;
    font-size: 16px;
    line-height: 1.5;
    color: #1d1d1f;
    text-align: center;
}

.export-preview {
    background: rgba(156, 203, 158, 0.1);
    border: 1px solid rgba(156, 203, 158, 0.25);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 2rem;
    max-height: 200px;
    overflow-y: auto;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', monospace;
    font-size: 14px;
    line-height: 1.6;
    color: #1d1d1f;
    white-space: pre-wrap;
    -webkit-overflow-scrolling: touch;
}

.export-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.export-btn {
    border: none;
    border-radius: 12px;
    padding: 14px 20px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    outline: none;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Helvetica Neue', Arial, sans-serif;
}

.export-btn-primary {
    background: #007aff;
    color: white;
    box-shadow: 0 4px 16px rgba(0, 122, 255, 0.3);
}

.export-btn-primary:hover {
    background: #0056d3;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 122, 255, 0.4);
}

.export-btn-secondary {
    background: rgba(156, 203, 158, 0.18);
    color: #4a6b4f;
}

.export-btn-secondary:hover {
    background: rgba(156, 203, 158, 0.28);
    color: #2d4a33;
}

.export-btn-tertiary {
    background: rgba(0, 0, 0, 0.05);
    color: #6e6e73;
}

.export-btn-tertiary:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #1d1d1f;
}

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

    .export-btn:disabled {
    background: #d1d1d6;
    color: #8e8e93;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Export Actions Bar */
.export-actions-bar {
    padding: 1rem;
    border-top: 1px solid rgba(156, 203, 158, 0.2);
    background: rgba(255, 255, 255, 0.5);
    display: flex;
    gap: 8px;
    transition: all 0.3s ease;
}

.mobile-export-actions {
    padding: 0.75rem;
}

.export-action-btn {
    border: none;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    outline: none;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Helvetica Neue', Arial, sans-serif;
    flex: 1;
    background: rgba(0, 122, 255, 0.1);
    color: #007aff;
}

.export-action-btn:hover {
    background: rgba(0, 122, 255, 0.2);
    transform: translateY(-1px);
}

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

.mobile-export-btn {
    font-size: 12px;
    padding: 6px 10px;
}



/* Responsive adjustments */
@media (max-width: 768px) {
    body {
        padding: 0.5rem;
        justify-content: flex-start;
        padding-top: 1rem;
        overflow-y: auto;
    }
    
    .timer-container {
        position: fixed;
        top: 1rem;
        left: 1rem;
        transform: scale(0.9);
        z-index: 1000;
    }
    
    .help-icon {
        position: fixed;
        bottom: 1rem;
        right: 1rem;
        width: 44px;
        height: 44px;
        z-index: 1000;
    }
    
    .help-icon-text {
        font-size: 20px;
    }
    
    .circle-container {
        width: min(40vh, 280px);
        height: min(40vh, 280px);
        margin-top: 6rem;
        flex-shrink: 0;
    }
    
    .thoughts-sidebar {
        /* Hide sidebar on mobile */
        display: none !important;
    }
    
    .mobile-thoughts-container {
        /* Show mobile container on mobile */
        display: flex !important;
        max-height: 50vh;
    }
    
    .floating-thoughts {
        /* Hide floating thoughts on mobile in favor of mobile container */
        display: none;
    }
    
    .thoughts-list {
        padding: 0.75rem;
    }
    
    #floatingInput {
        font-size: 16px; /* Prevent zoom on iOS */
        -webkit-user-select: text;
        -webkit-touch-callout: default;
    }
}

/* iPad and Android tablet optimization */
@media (min-width: 768px) and (max-width: 1024px) {
    body {
        padding: 1rem;
    }
    
    .timer-container {
        top: 1.5rem;
        left: 1.5rem;
    }
    
    .circle-container {
        width: min(42vh, 340px);
        height: min(42vh, 340px);
    }
    
    .help-icon {
        bottom: 1.5rem;
        right: 1.5rem;
    }
}
    
/* Large screens optimization - MacBook and Desktop */
@media (min-width: 1025px) {
    .circle-container {
        width: min(60vh, 600px);
        height: min(60vh, 600px);
    }
}

/* Landscape orientation for tablets */
@media (orientation: landscape) and (max-height: 768px) {
    .timer-container {
        top: 1rem;
        left: 1rem;
        transform: scale(0.85);
    }
    
    .circle-container {
        width: min(35vh, 300px);
        height: min(35vh, 300px);
    }
    

    
    .help-icon {
        bottom: 1rem;
        right: 1rem;
        width: 44px;
        height: 44px;
    }
}

/* High-DPI displays (Retina, high-res Android) */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .center-dot {
        width: 10px;
        height: 10px;
        box-shadow: 0 3px 12px rgba(0, 0, 0, 0.2);
    }
    
    .circle {
        border-width: 1.5px;
    }
}

/* Ensure no overflow on any device */
@media (max-height: 600px) {
    body {
        padding: 0.25rem;
    }
    
    .timer-container {
        transform: scale(0.8);
    }
    
    .circle-container {
        width: min(30vh, 200px);
        height: min(30vh, 200px);
    }
    

} 