:root {
    --bg: #f8fafc;
    --card-bg: #ffffff;
    --blue-grad: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    --red-grad: linear-gradient(135deg, #ef4444 0%, #f43f5e 100%);
    --text-main: #1e293b;
    --text-sub: #64748b;
    --shadow: 0 20px 40px rgba(0,0,0,0.06);
    --accent: #6366f1;
}

body { font-family: 'Poppins', sans-serif; background-color: var(--bg); color: var(--text-main); display: flex; justify-content: center; align-items: center; min-height: 100vh; margin: 0; }
.app-shell { width: 380px; height: 680px; background: var(--card-bg); border-radius: 40px; box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; position: relative; }

/* Navigation Tabs */
.tab-nav { display: flex; padding: 20px 25px; gap: 12px; background: #fff; border-bottom: 1px solid #f1f5f9; }
.tab-btn { flex: 1; padding: 12px; border: none; background: #f1f5f9; border-radius: 14px; color: var(--text-sub); font-weight: 600; font-size: 0.75rem; cursor: pointer; transition: all 0.2s; }
.tab-btn.active { background: var(--text-main); color: white; box-shadow: 0 4px 12px rgba(0,0,0,0.1); }

.content-area { padding: 0 25px 25px; flex-grow: 1; display: none; flex-direction: column; overflow-y: auto; }
.content-area.active { display: flex; }

/* Timer Core */
.timer-circle { width: 220px; height: 220px; border-radius: 50%; display: flex; flex-direction: column; justify-content: center; align-items: center; background: white; box-shadow: 15px 15px 35px rgba(0,0,0,0.03); border: 8px solid #f8fafc; margin: 40px auto 0; position: relative; }
.timer-val { font-size: 3.5rem; font-weight: 800; -webkit-background-clip: text; -webkit-text-fill-color: transparent; transition: all 0.3s ease; }
.timer-blue { background-image: var(--blue-grad); }
.timer-red { background-image: var(--red-grad); }

/* Task & Setup UI Elements */
.todo-input-group { background: #f1f5f9; border-radius: 20px; display: flex; align-items: center; padding: 6px 6px 6px 18px; margin-bottom: 20px; }
.todo-input-group input { border: none; background: transparent; outline: none; flex: 1; font-family: inherit; font-size: 0.9rem; }
.task-item { background: white; padding: 14px; border-radius: 16px; margin-bottom: 10px; display: flex; align-items: center; gap: 12px; border: 1px solid #f1f5f9; cursor: pointer; }
.task-item.done span { color: #cbd5e1; text-decoration: line-through; }

.setup-group { margin-bottom: 20px; }
.setup-group-title { font-size: 0.7rem; text-transform: uppercase; font-weight: 800; color: #a1a1aa; border-bottom: 1px solid #f1f5f9; padding-bottom: 8px; margin-bottom: 12px; letter-spacing: 1px; }
.config-row { margin-bottom: 10px; }
.config-row label { display: block; font-size: 0.8rem; font-weight: 600; color: var(--text-sub); margin-bottom: 4px; }
.config-row input, .config-row select { width: 100%; padding: 10px; border-radius: 10px; border: 1px solid #e2e8f0; background: #f8fafc; font-family: inherit; box-sizing: border-box; }
.check-row { display: flex; align-items: center; gap: 12px; padding: 8px 0; cursor: pointer; font-size: 0.85rem; font-weight: 500; }
.check-row input { width: 18px; height: 18px; accent-color: var(--accent); }

/* Range Slider Styling */
input[type="range"] { height: 6px; -webkit-appearance: none; background: #e2e8f0; border-radius: 50%; outline: none; padding: 0; border: none; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; background: var(--accent); border-radius: 50%; cursor: pointer; transition: 0.2s ease; }

/* Action Buttons */
.btn-play { padding: 18px; border-radius: 20px; border: none; background: var(--blue-grad); color: white; font-weight: 600; cursor: pointer; margin-top: 20px; }
.btn-restart { background: none; border: none; color: #ef4444; font-weight: 600; cursor: pointer; margin-top: 15px; font-size: 0.75rem; }

/* New About Button Styling */
.btn-about { background: none; border: none; color: var(--text-sub); font-size: 0.65rem; font-weight: 600; cursor: pointer; margin-top: 10px; text-decoration: underline; transition: opacity 0.2s; }
.btn-about:hover { opacity: 0.7; }

.btn-reset-settings { width: 100%; padding: 12px; background: #fee2e2; color: #ef4444; border: 2px dashed #fca5a5; border-radius: 14px; font-weight: 700; font-size: 0.75rem; cursor: pointer; margin-top: 10px; transition: all 0.2s; }
.btn-reset-settings:hover { background: #fecaca; }

/* Custom Modal Styling */
.modal-overlay { 
    position: absolute; top:0; left:0; width:100%; height:100%; 
    background: rgba(15, 23, 42, 0.4); backdrop-filter: blur(5px);
    display: none; justify-content: center; align-items: center; z-index: 2000;
}
.modal-box { 
    background: white; padding: 30px; border-radius: 32px; width: 85%; 
    text-align: center; box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15); 
    max-width: 320px;
    box-sizing: border-box;
    overflow-wrap: break-word;
}

/* Professional About Dialog Structure */
.about-container { 
    display: flex; 
    flex-direction: column; 
    gap: 24px; /* Increased gap to space the items out */
    margin-top: 15px; 
}
.about-row { 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    gap: 10px; /* Space between label and pill */
}
.about-label { 
    font-size: 0.6rem; 
    text-transform: uppercase; 
    letter-spacing: 2px; 
    font-weight: 800; 
    color: #94a3b8; 
}

/* Interactive About Pills with Icon Focus */
.about-link {
    background: #f8fafc;
    color: var(--text-main);
    padding: 14px 20px;
    border-radius: 16px;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #f1f5f9;
    width: 100%;
    box-sizing: border-box;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

/* Awesome Font Icon Styling */
.about-link i {
    color: var(--accent);
    font-size: 1.2rem; /* Made slightly larger for impact */
    transition: transform 0.3s ease;
}

.about-link:hover {
    background: white;
    color: var(--accent);
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.1);
}

.about-link:hover i {
    transform: scale(1.1);
}

.modal-actions { display: flex; gap: 12px; margin-top: 24px; }
.btn-modal-primary { flex: 1; padding: 14px; border-radius: 16px; border: none; background: var(--red-grad); color: white; font-weight: 700; cursor: pointer; font-size: 0.8rem; }
.btn-modal-secondary { flex: 1; padding: 14px; border-radius: 16px; border: 1px solid #e2e8f0; background: #f8fafc; color: var(--text-sub); font-weight: 700; cursor: pointer; font-size: 0.8rem; }

/* Animations */
.beeping { animation: pulseRed 0.5s infinite; }
@keyframes pulseRed { 50% { opacity: 0.5; } }