.pomo-container {
    padding-top: 120px;
    padding-bottom: 10rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
}

.pomo-header {
    text-align: center;
    max-width: 800px;
}

.pomo-header h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 2rem;
    color: white;
    letter-spacing: -1px;
}

.pomo-header p {
    font-size: 1.25rem;
    color: var(--text-light);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

.pomo-widget {
    background: var(--glass-surface);
    backdrop-filter: var(--glass-blur-heavy);
    -webkit-backdrop-filter: var(--glass-blur-heavy);
    border: 1px solid var(--glass-border);
    border-radius: 40px;
    padding: 4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3.5rem;
    width: 100%;
    max-width: 750px;
    position: relative;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.4), var(--glass-inner-glow);
}

.mode-selector {
    display: flex;
    gap: 0.6rem;
    background: rgba(0, 0, 0, 0.3);
    padding: 0.5rem;
    border-radius: 99px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.mode-btn {
    background: none;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 99px;
    color: var(--text-dim);
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--tr-spring);
}

.mode-btn.active {
    background: white;
    color: var(--bg-main);
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.timer-box {
    position: relative;
    width: 320px;
    height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.timer-circle {
    width: 100%;
    height: 100%;
    position: absolute;
    transform: rotate(-90deg);
}

.timer-circle circle {
    fill: none;
    stroke-width: 8;
    stroke-linecap: round;
}

.timer-circle circle.bg {
    stroke: rgba(255, 255, 255, 0.03);
}

.timer-circle circle.progress {
    stroke: var(--primary);
    stroke-dashoffset: 0;
    stroke-width: 6;
    transition: stroke-dashoffset 1s ease-out;
}

.timer-display {
    font-size: 6.5rem;
    font-weight: 800;
    color: white;
    font-family: 'Outfit', sans-serif;
    letter-spacing: -3px;
    z-index: 2;
}

.timer-display:hover {
    transform: scale(1.02);
}

.pomo-controls {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.running-controls {
    display: none;
    gap: 1rem;
}

.control-btn {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    border: 1px solid var(--border-bright);
    background: rgba(255, 255, 255, 0.03);
    color: white;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--tr-spring);
}

.control-btn:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.08);
}

.control-btn.play {
    width: 180px;
    background: var(--primary);
    border: none;
    font-weight: 800;
    font-size: 1.1rem;
    gap: 12px;
    box-shadow: 0 10px 25px var(--primary-glow);
}

.control-btn.play:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px var(--primary-glow);
}

.pomo-widget.timer-running {
    border-color: rgba(99, 102, 241, 0.3);
}

@keyframes activeGlow {
    from { box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5), 0 0 60px rgba(99, 102, 241, 0.1); }
    to { box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5), 0 0 100px rgba(99, 102, 241, 0.3); }
}

.pomo-log {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.log-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    transition: var(--tr-normal);
}

.log-item:hover {
    background: rgba(255, 255, 255, 0.04);
}

.log-item .value {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    display: block;
    margin-bottom: 0.2rem;
    font-family: 'Outfit', sans-serif;
}

.log-item .label {
    font-size: 0.8rem;
    color: var(--text-dim);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
}

/* Active State Pulsing */
.timer-box.timer-running {
    animation: pomo-pulse 2s infinite ease-in-out;
}

@keyframes pomo-pulse {
    0% { transform: scale(1); filter: drop-shadow(0 0 0 rgba(99, 102, 241, 0)); }
    50% { transform: scale(1.02); filter: drop-shadow(0 0 30px rgba(99, 102, 241, 0.2)); }
    100% { transform: scale(1); filter: drop-shadow(0 0 0 rgba(99, 102, 241, 0)); }
}

/* Virtual Focus Tree */
.virtual-tree-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    background: rgba(16, 185, 129, 0.05);
    border: 1px solid rgba(16, 185, 129, 0.2);
    padding: 1.5rem;
    border-radius: 20px;
    width: 100%;
    margin-top: -1.5rem;
    margin-bottom: 0.5rem;
    transition: var(--tr-spring);
    position: relative;
    overflow: hidden;
}

.virtual-tree-container::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at center, rgba(16, 185, 129, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.virtual-tree-container.growing {
    border-color: rgba(16, 185, 129, 0.5);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.1);
    animation: pulse-grow 2s infinite ease-in-out;
}

@keyframes pulse-grow {
    0% { box-shadow: 0 0 10px rgba(16, 185, 129, 0.1); }
    50% { box-shadow: 0 0 25px rgba(16, 185, 129, 0.3); }
    100% { box-shadow: 0 0 10px rgba(16, 185, 129, 0.1); }
}

.virtual-tree-container.withered {
    background: rgba(239, 68, 68, 0.05);
    border-color: rgba(239, 68, 68, 0.4);
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.1);
}

.virtual-tree-container.withered::before {
    background: radial-gradient(circle at center, rgba(239, 68, 68, 0.08) 0%, transparent 70%);
}

.virtual-tree-container.grown {
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.2);
    border-color: #10b981;
    background: rgba(16, 185, 129, 0.1);
}

.tree-stage {
    font-size: 3.5rem;
    line-height: 1;
    filter: drop-shadow(0 10px 15px rgba(0,0,0,0.3));
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.3s ease;
}

.tree-stage.animate {
    transform: scale(1.3) rotate(3deg);
}

.virtual-tree-container.withered .tree-stage {
    filter: drop-shadow(0 5px 10px rgba(239, 68, 68, 0.2)) grayscale(0.5);
}

.tree-status {
    font-weight: 700;
    color: var(--text-light);
    font-size: 1.1rem;
    margin-top: 0.3rem;
    z-index: 1;
}

.virtual-tree-container.withered .tree-status {
    color: #ef4444;
}

.forest-stats {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(0,0,0,0.4);
    padding: 0.4rem 0.8rem;
    border-radius: 99px;
    font-size: 0.95rem;
    font-weight: 800;
    color: white;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(255,255,255,0.1);
    z-index: 2;
    backdrop-filter: blur(5px);
}

/* New Pomodoro Enhancements */
.pomo-top-actions {
    position: absolute;
    top: 2rem;
    right: 2rem;
    left: 2rem;
    display: flex;
    justify-content: space-between;
    z-index: 10;
}

.icon-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    color: var(--text-dim);
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--tr-normal);
}

.icon-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-2px);
}

.tab-counter {
    position: absolute;
    bottom: 2rem;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #ef4444;
    padding: 0.5rem 1rem;
    border-radius: 99px;
    font-size: 0.85rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--tr-normal);
}

/* Modal Styling */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(2, 4, 10, 0.85);
    backdrop-filter: blur(12px) saturate(180%);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 2rem;
    animation: fadeIn 0.3s ease-out;
}

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

.modal-content {
    background: var(--glass-surface-heavy);
    backdrop-filter: var(--glass-blur-heavy);
    -webkit-backdrop-filter: var(--glass-blur-heavy);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: 3.5rem;
    width: 100%;
    max-width: 550px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 50px 120px rgba(0, 0, 0, 0.8), var(--glass-inner-glow);
    animation: modalIn 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.modal-content::-webkit-scrollbar {
    width: 4px;
}

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

.modal-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

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

.modal-content h3 {
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    color: white;
    display: flex;
    align-items: center;
    gap: 15px;
}

.modal-content h3 i {
    color: var(--primary);
    filter: drop-shadow(0 0 8px var(--primary-glow));
}

.setting-item {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.setting-item label {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 600;
}

.setting-item input, .setting-item select {
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.1rem 1.4rem;
    border-radius: 16px;
    color: white;
    font-size: 1rem;
    outline: none;
    transition: var(--tr-spring);
    font-family: inherit;
}

.setting-item input:focus, .setting-item select:focus {
    border-color: var(--primary);
    background: rgba(15, 23, 42, 0.6);
    box-shadow: 0 0 0 4px var(--primary-glow);
    transform: translateY(-2px);
}

.primary-btn {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    padding: 1.2rem;
    border-radius: 16px;
    font-weight: 800;
    font-size: 1.1rem;
    cursor: pointer;
    margin-top: 1.5rem;
    transition: var(--tr-spring);
    box-shadow: 0 10px 20px var(--primary-glow);
}

.primary-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 30px var(--primary-glow);
}

.secondary-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    padding: 0.8rem 1.2rem;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--tr-normal);
}

.secondary-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-color: var(--primary);
}

.close-modal {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--tr-normal);
}

.close-modal:hover {
    background: #ef4444;
    color: white;
    transform: rotate(90deg);
}

/* Zen Mode */
.zen-mode-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at center, #1e293b 0%, #0f172a 100%);
    z-index: 2000;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.zen-timer {
    font-size: clamp(8rem, 20vw, 18rem);
    font-weight: 900;
    color: white;
    font-family: 'Outfit', sans-serif;
    z-index: 2002;
    text-shadow: 0 0 80px rgba(99, 102, 241, 0.4);
    letter-spacing: -5px;
    animation: zen-float 6s infinite ease-in-out;
}

.exit-zen {
    position: absolute;
    bottom: 5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    color: var(--text-dim);
    padding: 1.2rem 2.5rem;
    border-radius: 99px;
    cursor: pointer;
    font-weight: 700;
    font-size: 1rem;
    transition: var(--tr-normal);
    z-index: 2002;
}

.exit-zen:hover {
    background: var(--primary);
    color: white;
    transform: scale(1.1);
}

.zen-bg-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(99, 102, 241, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(139, 92, 246, 0.1) 0%, transparent 40%);
    animation: zen-pulse 10s infinite alternate ease-in-out;
}

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

@keyframes zen-pulse {
    0% { opacity: 0.4; transform: scale(1); }
    100% { opacity: 0.8; transform: scale(1.1); }
}


/* Task Integration Styles - Re-imagined as a real To-Do List */
.pomo-tasks {
    width: 100%;
    max-width: 700px;
}

.tasks-card {
    padding: 2.5rem;
    border-radius: 28px;
    background: var(--glass-surface);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: relative;
    overflow: hidden;
}

.tasks-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    opacity: 0.8;
}

.tasks-card h3 {
    margin: 0;
    color: white;
    font-size: 1.4rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 12px;
}

.tasks-card h3 i {
    color: var(--primary);
}

.task-input-group {
    display: flex;
    gap: 0.8rem;
    background: rgba(0, 0, 0, 0.2);
    padding: 0.4rem;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.task-input-group input {
    flex: 1;
    background: none;
    border: none;
    padding: 1rem 1.5rem;
    color: white;
    font-size: 1rem;
    outline: none;
}

.add-task-btn {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: var(--primary);
    color: white;
    border: none;
    cursor: pointer;
    transition: var(--tr-spring);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.add-task-btn:hover {
    transform: scale(1.05);
    background: var(--primary-light);
    box-shadow: 0 5px 15px var(--primary-glow);
}

.tasks-list-container {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 5px;
}

.pomo-task-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.pomo-task-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1.1rem 1.4rem;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: var(--tr-normal);
    animation: slideIn 0.4s ease-out;
}

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

.pomo-task-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateX(-5px);
}

.pomo-task-item.completed {
    opacity: 0.6;
}

.pomo-task-item.completed .task-text {
    text-decoration: line-through;
    color: var(--text-dim);
}

.task-check {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--tr-normal);
}

.pomo-task-item.completed .task-check {
    background: var(--accent);
    border-color: var(--accent);
}

.task-check i {
    font-size: 0.7rem;
    color: white;
    display: none;
}

.pomo-task-item.completed .task-check i {
    display: block;
}

.task-text {
    flex: 1;
    font-size: 1rem;
    color: var(--text-light);
    font-weight: 500;
}

.task-delete {
    color: var(--text-muted);
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    opacity: 0;
    transition: var(--tr-normal);
}

.pomo-task-item:hover .task-delete {
    opacity: 1;
}

.task-delete:hover {
    color: #ef4444;
}

.empty-tasks {
    color: var(--text-muted);
    font-style: italic;
    text-align: center;
    padding: 2rem;
}

.tasks-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.85rem;
    color: var(--text-muted);
}

.text-btn {
    background: none;
    border: none;
    color: var(--text-dim);
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
}

.text-btn:hover {
    color: var(--primary);
}

@media (max-width: 768px) {
    .pomo-container { padding-top: 100px; padding-bottom: 8rem; gap: 2rem; }
    .pomo-header h1 { font-size: 2.2rem; }
    .pomo-header p { font-size: 1.1rem; }
    
    .pomo-widget { padding: 2.5rem 1.5rem; gap: 2.5rem; border-radius: 32px; }
    .timer-box { width: 260px; height: 260px; }
    .timer-display { font-size: 5rem; letter-spacing: -2px; }
    
    .mode-btn { padding: 0.7rem 1.2rem; font-size: 0.85rem; }
    .control-btn.play { width: 140px; font-size: 1rem; }
    
    .pomo-log { grid-template-columns: 1fr; gap: 1rem; }
    .log-item { padding: 1.5rem; }
    .log-item .value { font-size: 2rem; }
    
    .zen-timer { font-size: 6rem; }
    .modal-content { padding: 2rem 1.5rem; }
}

@media (max-width: 480px) {
    .pomo-header h1 { font-size: 1.8rem; }
    .timer-box { width: 220px; height: 220px; }
    .timer-display { font-size: 4rem; }
    .mode-selector { gap: 0.4rem; padding: 0.4rem; }
    .mode-btn { padding: 0.6rem 0.8rem; font-size: 0.8rem; }
    .control-btn { width: 56px; height: 56px; }
    .control-btn.play { width: 120px; }
}

