.tutorial-link {
    display: inline-block;
    margin-top: 15px;
    color: var(--primary-color);
    font-weight: 500;
    border-bottom: 1px solid transparent;
}

.tutorial-link:hover {
    border-bottom-color: var(--primary-color);
}

.water-app {
    max-width: 600px;
    margin: 0 auto;
}

.progress-section {
    background-color: var(--white);
    border-radius: 16px;
    padding: 30px;
    box-shadow: var(--shadow);
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 40px;
}

.water-glass {
    width: 120px;
    height: 180px;
    background: linear-gradient(to bottom, #E1F5FE, #B3E5FC);
    border-radius: 10px 10px 30px 30px;
    position: relative;
    overflow: hidden;
    border: 3px solid #81D4FA;
    flex-shrink: 0;
}

.water-fill {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 0%;
    background: linear-gradient(to bottom, #4FC3F7, #0288D1);
    transition: height 0.5s ease;
    overflow: hidden;
}

.water-wave {
    position: absolute;
    top: -10px;
    left: -50%;
    width: 200%;
    height: 20px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120'%3E%3Cpath fill='%2329B6F6' d='M0,60 C150,120 350,0 600,60 C850,120 1050,0 1200,60 L1200,120 L0,120 Z'/%3E%3C/svg%3E");
    background-size: 600px 20px;
    animation: wave 3s linear infinite;
}

@keyframes wave {
    0% { transform: translateX(0); }
    100% { transform: translateX(-300px); }
}

.water-percentage {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.progress-info {
    flex: 1;
    text-align: center;
}

.current-intake {
    margin-bottom: 10px;
}

.intake-value {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.intake-unit {
    font-size: 1.5rem;
    color: #64748B;
}

.goal-text {
    font-size: 1rem;
    color: #64748B;
}

.goal-value {
    font-weight: 600;
    color: var(--text-color);
}

.quick-add-section {
    background-color: var(--white);
    border-radius: 16px;
    padding: 25px;
    box-shadow: var(--shadow);
    margin-bottom: 25px;
}

.quick-add-section h3 {
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 20px;
    text-align: center;
}

.quick-add-buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.quick-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 15px 10px;
    background-color: var(--accent-color);
    border-radius: 12px;
    transition: var(--transition);
}

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

.quick-btn svg {
    width: 24px;
    height: 24px;
}

.quick-btn span {
    font-weight: 600;
    font-size: 0.9rem;
}

.custom-add {
    display: flex;
    gap: 12px;
}

.custom-add input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 1rem;
    color: var(--text-color);
}

.custom-add input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.settings-section {
    background-color: var(--white);
    border-radius: 16px;
    padding: 25px;
    box-shadow: var(--shadow);
    margin-bottom: 25px;
}

.settings-section h3 {
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 20px;
    text-align: center;
}

.goal-setting {
    display: flex;
    align-items: center;
    gap: 20px;
}

.goal-setting input[type="range"] {
    flex: 1;
    height: 8px;
    -webkit-appearance: none;
    background: var(--border-color);
    border-radius: 4px;
    outline: none;
}

.goal-setting input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    background: var(--primary-color);
    border-radius: 50%;
    cursor: pointer;
}

.goal-display {
    min-width: 100px;
    text-align: right;
}

.goal-amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.history-section {
    background-color: var(--white);
    border-radius: 16px;
    padding: 25px;
    box-shadow: var(--shadow);
}

.history-section h3 {
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 20px;
}

.history-list {
    max-height: 200px;
    overflow-y: auto;
    margin-bottom: 20px;
}

.empty-history {
    text-align: center;
    color: #64748B;
    padding: 20px;
}

.history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background-color: var(--bg-color);
    border-radius: 8px;
    margin-bottom: 8px;
}

.history-item:last-child {
    margin-bottom: 0;
}

.history-time {
    font-size: 0.9rem;
    color: #64748B;
}

.history-amount {
    font-weight: 600;
    color: var(--primary-color);
}

.reset-day-btn {
    width: 100%;
}

@media (max-width: 768px) {
    .progress-section {
        flex-direction: column;
        gap: 25px;
    }

    .quick-add-buttons {
        grid-template-columns: repeat(2, 1fr);
    }

    .intake-value {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .water-glass {
        width: 100px;
        height: 150px;
    }

    .custom-add {
        flex-direction: column;
    }

    .custom-add .btn {
        width: 100%;
    }

    .goal-setting {
        flex-direction: column;
        gap: 15px;
    }

    .goal-display {
        text-align: center;
    }
}
