/* Global Styles */
:root {
    --primary-color: #3498db;
    --secondary-color: #2ecc71;
    --accent-color: #e74c3c;
    --background-color: #f9f9f9;
    --card-background: #ffffff;
    --text-color: #333333;
    --border-radius: 10px;
    --box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

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

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

/* Header Styles */
header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background-color: var(--primary-color);
    color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

/* Drink Buttons Section */
.drink-buttons {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.drink-button {
    flex: 1;
    min-width: 250px;
    background-color: var(--card-background);
    border-radius: var(--border-radius);
    padding: 20px;
    text-align: center;
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease;
}

.drink-button:hover {
    transform: translateY(-5px);
}

#coke-zero {
    border-top: 5px solid #e74c3c;
}

#fanta-zero {
    border-top: 5px solid #f39c12;
}

#sparkling-water {
    border-top: 5px solid #3498db;
}

.drink-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

#coke-zero .drink-icon {
    color: #e74c3c;
}

#fanta-zero .drink-icon {
    color: #f39c12;
}

#sparkling-water .drink-icon {
    color: #3498db;
}

.drink-button h2 {
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.drink-button p {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.add-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.add-btn:hover {
    background-color: #2980b9;
}

/* Summary Section */
.summary-section {
    background-color: var(--card-background);
    border-radius: var(--border-radius);
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: var(--box-shadow);
}

.summary-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.toggle-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
}

input:checked + .slider {
    background-color: var(--secondary-color);
}

input:focus + .slider {
    box-shadow: 0 0 1px var(--secondary-color);
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

/* Summary Table */
#summary-table {
    width: 100%;
    border-collapse: collapse;
}

#summary-table th, #summary-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

#summary-table th {
    background-color: #f2f2f2;
}

#summary-table tr:hover {
    background-color: #f5f5f5;
}

/* Stats Section */
.stats-section {
    background-color: var(--card-background);
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: var(--box-shadow);
}

.stats-section h2 {
    margin-bottom: 20px;
}

.stats-content {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
}

.stat-item {
    flex: 1;
    min-width: 200px;
    text-align: center;
    padding: 15px;
    background-color: #f2f2f2;
    border-radius: var(--border-radius);
}

.stat-item h3 {
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.stat-item p {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .drink-buttons {
        flex-direction: column;
    }
    
    .drink-button {
        width: 100%;
    }
    
    .summary-header {
        flex-direction: column;
        gap: 15px;
    }
    
    .stats-content {
        flex-direction: column;
    }
}