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

body {
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    height: 100vh;
    overflow: hidden;
}

.container {
    display: flex;
    height: 100vh;
}

/* Left Panel - Noise Tracker */
.left-panel {
    width: 50%;
    background: white;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 40px;
    position: relative;
}

.noise-display {
    text-align: center;
    margin-top: 60px;
}

.zen-controls {
    text-align: center;
    margin-bottom: 40px;
}

.awake-time-selector {
    margin-bottom: 20px;
}

.awake-time-selector label {
    display: block;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 8px;
    font-weight: 500;
}

.awake-time-selector select {
    background: white;
    border: 1px solid #ddd;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 0.9rem;
    color: #333;
    cursor: pointer;
}

.ratio-display {
    margin-bottom: 40px;
}

.ratio-number {
    font-size: 4rem;
    font-weight: 300;
    color: #1a1a1a;
    line-height: 1;
    margin-bottom: 10px;
}


.ratio-label {
    font-size: 1rem;
    color: #666;
    letter-spacing: 2px;
    font-weight: 500;
}

.time-display {
    margin-bottom: 30px;
}

.time-spent {
    font-size: 2.5rem;
    font-weight: 300;
    color: #1a1a1a;
    line-height: 1;
    margin-bottom: 10px;
    font-family: 'SF Mono', Monaco, 'Cascadia Code', monospace;
}


.time-label {
    font-size: 0.9rem;
    color: #666;
    letter-spacing: 1px;
    font-weight: 500;
}

/* Noise Button */
.noise-btn {
    background: #1a1a1a;
    border: 1px solid #333;
    color: white;
    padding: 20px 40px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: 500;
    letter-spacing: 2px;
    min-width: 120px;
}

.noise-btn:hover {
    background: #333;
    border-color: #555;
}

.button-group {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.refresh-btn {
    background: #666;
    border: 1px solid #888;
    color: white;
    padding: 20px 40px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: 500;
    letter-spacing: 2px;
    min-width: 120px;
}

.refresh-btn:hover {
    background: #777;
    border-color: #999;
}

/* Blocks Display */
.blocks-display {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #333;
}

.blocks-container {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.block-group {
    flex: 1;
    text-align: center;
}

.block-label {
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 10px;
    letter-spacing: 1px;
    font-weight: 500;
}

.blocks {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    justify-content: center;
}

.block {
    width: 12px;
    height: 12px;
    border-radius: 2px;
}

.noise-block {
    background: #1a1a1a;
}

.signal-block {
    background: #ffd700;
}



/* Right Panel - Task Planner */
.right-panel {
    width: 50%;
    background: #1a1a1a;
    color: white;
    padding: 40px;
    display: flex;
    flex-direction: column;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid #333;
}

.header h1 {
    font-size: 2rem;
    font-weight: 300;
    letter-spacing: 2px;
}

.date {
    font-size: 1rem;
    color: #888;
    font-weight: 300;
}

.task-input-section {
    margin-bottom: 30px;
}

.input-container {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

#taskInput {
    flex: 1;
    background: #2a2a2a;
    border: 1px solid #444;
    color: white;
    padding: 15px 20px;
    font-size: 1rem;
    border-radius: 8px;
    outline: none;
}

#taskInput:focus {
    border-color: #ffd700;
}

#taskInput::placeholder {
    color: #666;
}

#addTaskBtn {
    background: #333;
    border: 1px solid #555;
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.2rem;
    min-width: 50px;
}


#addTaskBtn:hover {
    background: #444;
    border-color: #666;
}


.tasks-container {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 30px;
}

.task-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.task-item {
    background: #2a2a2a;
    border: 1px solid #444;
    padding: 15px 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
}


.task-item:hover {
    background: #333;
    border-color: #555;
}

.task-item.signal-task {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #1a1a1a;
    border-color: #ffd700;
    font-weight: 500;
}

.task-item.signal-task:hover {
    background: linear-gradient(135deg, #ffed4e, #ffd700);
}

.task-item.noise-task {
    background: #1a1a1a;
    color: white;
    border-color: #333;
    font-weight: 500;
}

.task-item.noise-task:hover {
    background: #333;
    border-color: #555;
}


.task-text {
    flex: 1;
    font-size: 1rem;
}

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

.signal-toggle {
    background: none;
    border: 1px solid #666;
    color: #666;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.2s;
}

.signal-toggle:hover {
    border-color: #888;
    color: #888;
}

.signal-toggle.active {
    background: #ffd700;
    border-color: #ffd700;
    color: #1a1a1a;
    font-weight: 500;
}

.delete-btn {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 5px;
    transition: color 0.2s;
}

.delete-btn:hover {
    color: #ff4444;
}



/* Zen Mode Overlay */
.zen-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: white;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
}

.zen-overlay.active {
    display: flex;
}

.zen-content {
    text-align: center;
    max-width: 600px;
    width: 100%;
    padding: 40px;
}

.zen-ratio {
    margin-bottom: 60px;
}

.zen-ratio-number {
    font-size: 6rem;
    font-weight: 300;
    color: #1a1a1a;
    line-height: 1;
    margin-bottom: 20px;
}

.zen-ratio-label {
    font-size: 1.5rem;
    color: #666;
    letter-spacing: 3px;
    font-weight: 500;
}

.zen-timer {
    margin-bottom: 60px;
}

.zen-time {
    font-size: 4rem;
    font-weight: 300;
    color: #1a1a1a;
    line-height: 1;
    margin-bottom: 20px;
    font-family: 'SF Mono', Monaco, 'Cascadia Code', monospace;
}

.zen-label {
    font-size: 1.2rem;
    color: #666;
    letter-spacing: 2px;
    font-weight: 500;
}

.zen-blocks {
    margin-bottom: 60px;
}

.zen-block-group {
    margin-bottom: 30px;
}

.zen-block-label {
    font-size: 1rem;
    color: #888;
    margin-bottom: 15px;
    letter-spacing: 2px;
    font-weight: 500;
}

.zen-blocks-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.zen-block {
    width: 20px;
    height: 20px;
    border-radius: 3px;
}

.zen-noise-block {
    background: #1a1a1a;
}

.zen-signal-block {
    background: #ffd700;
}

.exit-noise-btn {
    background: #1a1a1a;
    border: 1px solid #333;
    color: white;
    padding: 15px 30px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 1px;
}

.exit-noise-btn:hover {
    background: #333;
    border-color: #555;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }
    
    .left-panel,
    .right-panel {
        width: 100%;
        height: 50vh;
    }
    
    .left-panel {
        padding: 20px;
    }
    
    .right-panel {
        padding: 20px;
    }
    
    .ratio-number {
        font-size: 3rem;
    }
    
    .time-spent {
        font-size: 2rem;
    }
}
