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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    color: white;
    margin-bottom: 40px;
    padding: 20px 0;
}

header h1 {
    font-size: 3em;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

header p {
    font-size: 1.2em;
    opacity: 0.9;
}

main {
    display: grid;
    gap: 20px;
}

section {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

h2 {
    color: #667eea;
    margin-bottom: 20px;
    font-size: 1.8em;
}

.fasting-tracker {
    text-align: center;
}

.time-display {
    font-size: 4em;
    font-weight: bold;
    color: #667eea;
    margin: 30px 0;
    font-variant-numeric: tabular-nums;
}

.controls {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 6px;
    font-size: 1em;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary {
    background: #667eea;
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background: #5568d3;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: #f093fb;
    color: white;
}

.btn-secondary:hover:not(:disabled) {
    background: #e077e0;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(240, 147, 251, 0.4);
}

.btn-tertiary {
    background: #4ecdc4;
    color: white;
}

.btn-tertiary:hover:not(:disabled) {
    background: #3db8b0;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(78, 205, 196, 0.4);
}

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

.stat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.stat-card {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    border-left: 4px solid #667eea;
}

.stat-card h3 {
    color: #667eea;
    margin-bottom: 10px;
    font-size: 0.9em;
    text-transform: uppercase;
}

.stat-card p {
    font-size: 2em;
    font-weight: bold;
    color: #333;
    font-variant-numeric: tabular-nums;
}

.info {
    background: #f0f4ff;
    border-left: 4px solid #667eea;
}

.info p {
    line-height: 1.6;
    color: #555;
}

footer {
    text-align: center;
    color: white;
    padding: 20px 0;
    margin-top: 40px;
    font-size: 0.9em;
}

@media (max-width: 600px) {
    header h1 {
        font-size: 2em;
    }

    .time-display {
        font-size: 2.5em;
    }

    section {
        padding: 20px;
    }

    .stat-grid {
        grid-template-columns: 1fr;
    }

    .controls {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }
}