:root {
    --cream: #f1ebe2;
    --dark-grey: #2f2c29;
    --black: black;
    --light-grey: #e4e4e4;
    --white: white;
}

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

body {
    font-family: 'Conso', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--cream);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark-grey);
}

.container {
    background: var(--white);
    border: 1px solid var(--black);
    border-radius: 8px;
    padding: 2.5rem 2rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    width: 500px;
    height: 500px;
    text-align: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
}

header {
    margin-bottom: 0.75rem;
}

h1 {
    font-size: 1.75rem;
    font-weight: 300;
    color: var(--dark-grey);
    margin-bottom: 0.25rem;
    line-height: 1.2;
}

.subtitle {
    color: var(--dark-grey);
    font-size: 0.75rem;
    font-weight: 300;
}

.timer-container {
    margin-bottom: 0.75rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.timer-display {
    margin-bottom: 1.25rem;
}

.time {
    font-size: 3rem;
    font-weight: 300;
    color: var(--dark-grey);
    font-variant-numeric: tabular-nums;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.timer-label {
    font-size: 0.875rem;
    color: var(--dark-grey);
    font-weight: 300;
}

.controls {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.btn {
    padding: 0.5rem 1rem;
    border: 1px solid var(--black);
    border-radius: 0;
    font-size: 0.75rem;
    font-weight: 300;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    text-align: center;
    white-space: nowrap;
    justify-content: center;
    align-items: center;
    display: inline-block;
    position: relative;
}

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

.btn-primary {
    background: var(--dark-grey);
    color: var(--cream);
    border: 1px solid var(--black);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background: var(--cream);
    color: var(--dark-grey);
    border: 1px solid var(--black);
}

.btn-secondary:hover:not(:disabled) {
    background: var(--light-grey);
    transform: translateY(-1px);
}

.dropdown-container {
    margin-bottom: 1.25rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.dropdown {
    width: 120px;
    padding: 0.5rem;
    border: 1px solid var(--black);
    background: var(--cream);
    color: var(--dark-grey);
    font-size: 0.75rem;
    font-weight: 300;
    font-family: inherit;
    cursor: pointer;
    text-align: center;
}

.dropdown:focus {
    outline: none;
    border-color: var(--black);
}

.dropdown option {
    background: var(--white);
    color: var(--dark-grey);
}

.stats-display {
    margin-bottom: 0;
    margin-top: auto;
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: center;
}

.stat-item {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--dark-grey);
    font-weight: 300;
}

.stat-number {
    font-size: 1rem;
    color: var(--dark-grey);
    font-weight: 700;
}

footer {
    color: var(--dark-grey);
    font-size: 0.625rem;
    font-weight: 300;
    margin-top: 0.25rem;
}

/* Animation for timer completion */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.time.completed {
    animation: pulse 0.5s ease-in-out;
    color: var(--dark-grey);
}

/* Responsive design */
@media (max-width: 600px) {
    body {
        padding: 1rem;
        min-height: 100vh;
        align-items: flex-start;
        justify-content: center;
    }
    
    .container {
        width: 100%;
        height: auto;
        min-height: 90vh;
        max-width: 100%;
        max-height: none;
        padding: 1.5rem 1rem;
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        gap: 1rem;
    }
    
    header {
        margin-bottom: 0.5rem;
    }
    
    h1 {
        font-size: 1.5rem;
        margin-bottom: 0.25rem;
    }
    
    .subtitle {
        font-size: 0.7rem;
    }
    
    .timer-container {
        margin-bottom: 0.5rem;
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 1rem;
    }
    
    .timer-display {
        margin-bottom: 1rem;
    }
    
    .time {
        font-size: 2.25rem;
        margin-bottom: 0.25rem;
    }
    
    .timer-label {
        font-size: 0.8rem;
    }
    
    .controls {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
        margin-bottom: 1rem;
        width: 100%;
    }
    
    .btn {
        width: 100%;
        max-width: 200px;
        padding: 0.75rem 1rem;
        font-size: 0.8rem;
    }
    
    .dropdown-container {
        margin-bottom: 1rem;
        width: 100%;
        display: flex;
        justify-content: center;
    }
    
    .dropdown {
        width: 100%;
        max-width: 200px;
        font-size: 0.8rem;
        padding: 0.75rem;
    }
    
    .stats-display {
        margin-bottom: 0;
        gap: 1.5rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .stat-item {
        min-width: 80px;
    }
    
    .stat-label {
        font-size: 0.7rem;
    }
    
    .stat-number {
        font-size: 0.9rem;
    }
    
    footer {
        font-size: 0.6rem;
        margin-top: 0.5rem;
        text-align: center;
    }
}

/* Extra small devices */
@media (max-width: 400px) {
    body {
        padding: 0.5rem;
    }
    
    .container {
        padding: 1rem 0.75rem;
        min-height: 95vh;
    }
    
    h1 {
        font-size: 1.25rem;
    }
    
    .time {
        font-size: 2rem;
    }
    
    .btn {
        max-width: 180px;
        padding: 0.6rem 0.8rem;
        font-size: 0.75rem;
    }
    
    .dropdown {
        max-width: 180px;
        padding: 0.6rem;
        font-size: 0.75rem;
    }
    
    .stats-display {
        gap: 1rem;
    }
    
    .stat-item {
        min-width: 70px;
    }
} 