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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    max-width: 500px;
    width: 100%;
}

h1 {
    text-align: center;
    color: #333;
    margin-bottom: 30px;
}

.timer-section {
    text-align: center;
    margin-bottom: 30px;
}

.state-indicator {
    font-size: 18px;
    color: #666;
    margin-bottom: 20px;
}

#pomodoro-count {
    margin-left: 10px;
    color: #999;
}

.timer-display {
    font-size: 72px;
    font-weight: bold;
    color: #333;
    margin: 20px 0;
    font-variant-numeric: tabular-nums;
}

body.focus .timer-display { color: #e74c3c; }
body.shortBreak .timer-display { color: #27ae60; }
body.longBreak .timer-display { color: #3498db; }

.controls {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 30px;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
    background: #f0f0f0;
    color: #333;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

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

.btn-primary:hover {
    background: #5568d3;
}

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

.panel-toggles {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 20px;
}

.panel {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    margin-top: 20px;
}

.panel h2 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #333;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #666;
}

.form-group input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
}

.stats-controls {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.btn-small {
    padding: 8px 16px;
    font-size: 14px;
}

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

#stats-content {
    color: #333;
}

.day-stat {
    margin-bottom: 15px;
    padding: 10px;
    background: white;
    border-radius: 8px;
}

.day-stat h3 {
    font-size: 16px;
    margin-bottom: 8px;
}

.hour-bar {
    display: flex;
    align-items: center;
    margin: 5px 0;
    font-size: 14px;
}

.hour-label {
    width: 60px;
    color: #666;
}

.bar-container {
    flex: 1;
    height: 20px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    background: #667eea;
    transition: width 0.3s;
}

.bar-value {
    margin-left: 10px;
    color: #666;
    min-width: 50px;
}
