* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

:root {
    --primary-color: #420690;
    --primary-light: #6428b0;
    --primary-dark: #2a0460;
    --text-light: #ffffff;
    --text-dark: #888888;
    --background-dark: #121212;
    --background-darker: #0a0a0a;
    --card-bg: #1a1a1a;
    --input-bg: #252525;
    --background-light: #2a2a2a;
    --error-color: #ff3b5c;
    --water-color: #007bff;
    --water-light: #66b0ff;
    --bottle-color: rgba(255, 255, 255, 0.2);
    --glass-color: rgba(255, 255, 255, 0.15);
}

body {
    background-color: var(--background-dark);
    color: var(--text-light);
    line-height: 1.6;
}

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

header {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 30px 20px;
    text-align: center;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

h1, h2, h3 {
    color: var(--primary-light);
}

header h1, header h2 {
    color: var(--text-light);
}

section {
    background-color: var(--card-bg);
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.drinks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.drink-card {
    background-color: var(--background-light);
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s, box-shadow 0.3s;
}

.drink-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
}

.drink-card h3 {
    margin-bottom: 10px;
    color: var(--primary-light);
}

.drink-card p {
    color: var(--text-light);
}

.info-text {
    margin-top: 8px;
    font-size: 0.95em;
    color: var(--primary-light);
    background-color: rgba(66, 6, 144, 0.1);
    padding: 5px;
    border-radius: 4px;
}

button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 15px;
    transition: background-color 0.3s;
}

button:hover {
    background-color: var(--primary-light);
}

.calculator-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 500px;
    margin: 0 auto;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

label {
    font-weight: bold;
    color: var(--text-light);
}

input {
    padding: 12px;
    border: 2px solid #444;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s;
    background-color: var(--input-bg);
    color: var(--text-light);
}

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

.results-section {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.results-section h2 {
    color: var(--text-light);
}

.results {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 20px;
    border-radius: 8px;
    margin-top: 15px;
}

.water-recommendation {
    font-size: 1.2em;
    margin-top: 15px;
    padding: 10px;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 5px;
}

.water-recommendation strong {
    color: #ffffff;
    font-size: 1.2em;
}

.error {
    color: var(--error-color);
    font-weight: bold;
    background-color: rgba(0, 0, 0, 0.3);
    padding: 10px;
    border-radius: 5px;
    border-left: 4px solid var(--error-color);
}

/* Visualization styles */
.visualization-container {
    margin-top: 25px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.visualization-explanation {
    text-align: center;
    margin-bottom: 15px;
    font-style: italic;
    background-color: rgba(0, 0, 0, 0.3);
    padding: 10px;
    border-radius: 5px;
}

.visualization-section {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 15px;
    border-radius: 8px;
}

.container-info {
    text-align: center;
    margin-top: 15px;
    font-weight: bold;
}

.visualization-section h4 {
    color: var(--text-light);
    margin-bottom: 15px;
    text-align: center;
}

.bottles-container, .glasses-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    min-height: 100px;
}

/* Water bottle styles */
.water-bottle {
    width: 40px;
    height: 100px;
    position: relative;
    background-color: var(--bottle-color);
    border-radius: 5px 5px 20px 20px;
    overflow: hidden;
    display: inline-block;
    transition: transform 0.3s ease;
}

.water-bottle:hover {
    transform: translateY(-5px);
}

.bottle-cap {
    width: 24px;
    height: 12px;
    background-color: var(--primary-light);
    border-radius: 4px 4px 0 0;
    position: absolute;
    top: -2px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.bottle-water {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: linear-gradient(to bottom, var(--water-light), var(--water-color));
    transition: height 1s ease-out;
    border-radius: 0 0 20px 20px;
    position: relative;
    overflow: hidden;
}

.bottle-water::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 200%;
    height: 10px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: water-ripple 3s infinite linear;
}

.water-bottle.full .bottle-water {
    height: 85%;
    animation: water-wave 2s infinite ease-in-out;
}

/* Water glass styles */
.water-glass {
    width: 50px;
    height: 60px;
    position: relative;
    background-color: var(--glass-color);
    border-radius: 5px 5px 25px 25px;
    overflow: hidden;
    display: inline-block;
    transition: transform 0.3s ease;
}

.water-glass:hover {
    transform: translateY(-5px);
}

.glass-water {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: linear-gradient(to bottom, var(--water-light), var(--water-color));
    transition: height 1s ease-out;
    border-radius: 0 0 20px 20px;
    position: relative;
    overflow: hidden;
}

.glass-water::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 200%;
    height: 6px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: water-ripple 2s infinite linear;
}

.water-glass.full .glass-water {
    height: 90%;
    animation: water-wave 2s infinite ease-in-out;
}

/* Water animations */
@keyframes water-wave {
    0%, 100% {
        border-radius: 0 0 20px 20px;
    }
    50% {
        border-radius: 0 0 15px 25px;
    }
}

@keyframes water-ripple {
    from {
        transform: translateX(-50%);
    }
    to {
        transform: translateX(0);
    }
}

footer {
    text-align: center;
    margin-top: 30px;
    padding: 20px;
    color: var(--text-light);
    font-style: italic;
}

@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .drinks-grid {
        grid-template-columns: 1fr;
    }
    
    header {
        padding: 20px 10px;
    }
    
    .visualization-container {
        flex-direction: column;
    }
} 