:root {
    --primary: #6F4E37;
    --secondary: #C4A484;
    --light: #F5F5DC;
    --dark: #3E2723;
    --accent: #D2B48C;
    --text: #333333;
    --white: #FFFFFF;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--light);
    color: var(--text);
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.container {
    max-width: 800px;
    width: 100%;
    background-color: var(--white);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-top: 30px;
    margin-bottom: 30px;
}

header {
    text-align: center;
    margin-bottom: 30px;
}

h1 {
    color: var(--primary);
    margin-bottom: 10px;
    font-size: 2.2rem;
}

.subtitle {
    color: var(--secondary);
    font-size: 1.1rem;
}

.calculator {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

@media (max-width: 768px) {
    .calculator {
        grid-template-columns: 1fr;
    }
}

.input-section, .result-section {
    background-color: var(--light);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark);
}

input, select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--secondary);
    border-radius: 8px;
    font-size: 1rem;
    margin: 2px;
    transition: all 0.3s;
    background-color: var(--white);
}

input:focus, select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(111, 78, 55, 0.2);
}

.btn {
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s;
    width: 100%;
    margin-top: 10px;
}

.btn:hover {
    background-color: var(--dark);
    transform: translateY(-2px);
}

.btn:active {
    transform: translateY(0);
}

.result-card {
    background-color: var(--white);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    border-left: 5px solid var(--primary);
}

.result-title {
    font-size: 1.1rem;
    color: var(--primary);
    margin-bottom: 10px;
    font-weight: 600;
}

.result-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
}

.result-unit {
    font-size: 1rem;
    color: var(--secondary);
    margin-left: 5px;
}

.tips-section {
    margin-top: 30px;
    padding: 20px;
    background-color: var(--accent);
    border-radius: 10px;
}

.tips-title {
    color: var(--dark);
    margin-bottom: 15px;
    font-size: 1.2rem;
    font-weight: 600;
}

.tips-list {
    list-style-type: none;
}

.tips-list li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 25px;
}

.tips-list li::before {
    content: "•";
    color: var(--primary);
    font-size: 1.5rem;
    position: absolute;
    left: 0;
    top: -5px;
}

.brew-methods {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.method-btn {
    background-color: var(--white);
    border: 2px solid var(--secondary);
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.method-btn:hover, .method-btn.active {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
}

.visual-ratio {
    height: 10px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 5px;
    margin: 15px 0;
    position: relative;
}

.visual-ratio::after {
    content: "";
    position: absolute;
    top: -5px;
    bottom: -5px;
    width: 2px;
    background-color: var(--dark);
    left: 50%;
    transform: translateX(-50%);
}

.ratio-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--secondary);
}

footer {
    text-align: center;
    margin-top: 30px;
    color: var(--secondary);
    font-size: 0.9rem;
}

.toggle-container {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.toggle-btn {
    padding: 10px 20px;
    background-color: var(--light);
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.toggle-btn:first-child {
    border-radius: 8px 0 0 8px;
}

.toggle-btn:last-child {
    border-radius: 0 8px 8px 0;
}

.toggle-btn.active {
    background-color: var(--primary);
    color: white;
}