:root {
    --primary-color: #3498db;
    --primary-dark: #2980b9;
    --bg-color: #f4f7f6;
    --text-color: #2c3e50;
    --card-bg: #ffffff;
    --accent-color: #aed6f1;
    --danger-color: #e74c3c;
    --shadow: 0 4px 6px rgba(0,0,0,0.1);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.container {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    width: 100%;
    max-width: 400px;
    text-align: center;
}

header h1 {
    margin: 0;
    color: var(--primary-color);
}

header p {
    color: #7f8c8d;
    margin-bottom: 2rem;
}

.stats-card {
    margin-bottom: 2rem;
}

.progress-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.progress-circle {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: conic-gradient(var(--primary-color) 0deg, var(--accent-color) 0deg);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    transition: background 0.3s ease;
}

.progress-circle::after {
    content: '';
    position: absolute;
    width: 130px;
    height: 130px;
    background: var(--card-bg);
    border-radius: 50%;
}

#progressPercent {
    position: relative;
    z-index: 1;
    font-size: 1.5rem;
    font-weight: bold;
}

.intake-display {
    font-size: 1.2rem;
    font-weight: 600;
}

.controls {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.goal-setting {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.goal-setting input {
    width: 80px;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 5px;
}

button {
    cursor: pointer;
    border: none;
    border-radius: 5px;
    transition: opacity 0.2s;
}

button:active {
    transform: scale(0.98);
}

#saveGoalBtn {
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
}

.quick-add p {
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.button-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

.add-btn {
    background: var(--accent-color);
    color: var(--primary-dark);
    padding: 0.75rem;
    font-weight: bold;
    border: 1px solid var(--primary-color);
}

.add-btn:hover {
    background: var(--primary-color);
    color: white;
}

.custom-add {
    display: flex;
    gap: 0.5rem;
}

.custom-add input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 5px;
}

#addCustomBtn {
    background: var(--primary-color);
    color: white;
    padding: 0.75rem 1rem;
}

.danger-btn {
    background: transparent;
    color: var(--danger-color);
    border: 1px solid var(--danger-color);
    padding: 0.5rem;
    margin-top: 1rem;
}

.danger-btn:hover {
    background: var(--danger-color);
    color: white;
}