:root {
    --bg-dark: #121c16;
    --primary-green: #2ecc71;
    --light-green: #a8e6cf;
    --secondary-green: #27ae60;
    --dark-green: #1d3a2e;
    --text-primary: #f0fdf4;
    --text-secondary: #bbf7d0;
    --card-bg: rgba(22, 40, 30, 0.4);
    --border-color: rgba(168, 230, 207, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* Glassmorphism background container */
.container {
    position: relative;
    width: 100%;
    max-width: 480px;
    padding: 20px;
    z-index: 10;
}

.blur-bg {
    background: var(--card-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--border-color);
    border-radius: 32px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255,255,255,0.05);
}

.title {
    font-size: 1.25rem;
    font-weight: 300;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

/* Timer Display */
.timer-display {
    font-size: 6rem;
    font-weight: 600;
    line-height: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 50px;
    position: relative;
    text-shadow: 0 4px 20px rgba(46, 204, 113, 0.2);
}

.timer-display .colon {
    margin: 0 8px;
    opacity: 0.8;
    animation: blink 2s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* Controls */
.controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.btn {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    background: rgba(255,255,255,0.05);
    color: var(--text-primary);
}

.btn:active {
    transform: scale(0.92);
}

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

.primary-btn {
    background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
    color: #0f1a14;
    box-shadow: 0 8px 24px rgba(46, 204, 113, 0.3);
}

.primary-btn:hover:not(:disabled) {
    box-shadow: 0 12px 32px rgba(46, 204, 113, 0.4);
    transform: translateY(-2px);
}

.secondary-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.secondary-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.15);
}

.outline-btn {
    background: transparent;
    border: 1px solid var(--text-secondary);
    color: var(--text-secondary);
}

.outline-btn:hover:not(:disabled) {
    background: rgba(187, 247, 208, 0.1);
}

.icon {
    width: 24px;
    height: 24px;
}

/* Time Presets */
.time-presets {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 24px;
}

.preset-btn {
    background: rgba(168, 230, 207, 0.05);
    border: 1px solid rgba(168, 230, 207, 0.2);
    color: var(--text-secondary);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
}

.preset-btn:hover {
    background: rgba(168, 230, 207, 0.15);
    color: var(--text-primary);
}

/* Custom time input */
.custom-time {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.custom-time input {
    background: rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    color: var(--text-primary);
    width: 44px;
    height: 36px;
    text-align: center;
    font-size: 1rem;
    font-family: 'Outfit', sans-serif;
    outline: none;
    transition: border-color 0.2s;
}

.custom-time input:focus {
    border-color: var(--primary-green);
}

.custom-time input::-webkit-outer-spin-button,
.custom-time input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.custom-time input[type=number] {
    appearance: textfield;
}

.text-btn {
    background: none;
    border: none;
    color: var(--primary-green);
    cursor: pointer;
    font-weight: 600;
    margin-left: 8px;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.text-btn:hover {
    color: #4ade80;
}

/* Background Decorations (Blobs) */
.background-decorations {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100vw;
    height: 100vh;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: drift 20s infinite alternate ease-in-out;
}

.blob-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--primary-green), var(--dark-green));
    top: -100px;
    left: -100px;
}

.blob-2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, #0ea5e9, #064e3b); /* Adds a hint of cyan-green depth */
    bottom: -50px;
    right: -100px;
    animation-delay: -10s;
}

@keyframes drift {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(50px, 30px) scale(1.1); }
}

/* Complete Animation */
.timer-complete {
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
    0% { box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.4); }
    70% { box-shadow: 0 0 0 20px rgba(46, 204, 113, 0); }
    100% { box-shadow: 0 0 0 0 rgba(46, 204, 113, 0); }
}
