.meal-section-title {
    font-size: 1.2rem;
}
/* Common Styles for Buttons, Input Fields, and Pills */
.tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}
.tag {
    margin-bottom: 10px;
}
/* General Button Styles */
.btn {
    border-color: #d1b38a;
    color: #4b3621;
    background-color: rgba(255, 255, 255, 0.5);
    padding: 6px 20px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 38px;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.btn.active {
    background-color: #7c5e36;
    border-color: rgba(255, 255, 255, 0.5);
    color: #fff;
}

.btn:hover {
    background-color: #7c5e36;
    color: #fff;
}

/* Pill Button Styles */
.btn-pill {
    border-radius: 50px;
    padding: 8px 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 38px;
    font-size: 0.9rem;
    text-align: center;
    flex-shrink: 0;
}

.btn-pill.active {
    background-color: #7c5e36;
    color: #fff;
}

/* Add Ingredient Button Styles */
.add-btn {
    background-color: #7c5e36;
    color: white;
    border-radius: 50%;
    margin-left: 10px;
    margin-right: 10px;
    padding: 0;
    font-size: small;
    height: 25px;
    width: 25px;
}

/* Explore & Surprise Me Button Styles */
.explore-btn {
    background-color: #7c5e36;
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    white-space: nowrap;
    flex-shrink: 0;
}

.btn-primary {
    background-color: #7c5e36;
    color: white;
}
.btn-secondary {
    background-color: #d1b38a;
    color: #7c5e36;
}
/* Input Field Styles */
.form-control {
    width: 90%;
    height: 38px;
    display: inline-block;
    padding: 0 10px;
    border: 1px solid #d1b38a;
    font-size: 0.9rem;
    background-color: rgba(255, 255, 255, 0.5);
}

input.extra::placeholder, .ingredient-input-field::placeholder {
    color: rgba(0, 0, 0, 0.3);
}

/* Extra Text Area Styling */
input.extra, textarea.extra {
    width: 90%;
    padding: 10px;
    font-size: 0.9rem;
    border: 1px solid #d1b38a;
    outline: none;
    box-shadow: none;
    background: #fbf5ec;
}

/* Portion Counter Styling */
.portion-counter-group {
    display: flex;
    align-items: center;
    border: 1px solid #d1b38a;
    border-radius: 50px;
    overflow: hidden;
    height: 38px;
    flex-shrink: 0;
    width: 50%;
}

#portionCounter {
    background: #fbf5ec;
}
.portion-counter-group button {
    background-color: #7c5e36;
    color: white;
    border: none;
    padding: 0 20px;
    cursor: pointer;
    font-size: 0.9rem;
    height: 38px;
    flex: 0 0 auto;
}

.portion-counter-group input {
    text-align: center;
    border: none!important;
    outline: none;
    font-size: 0.9rem;
    height: 38px;
    width: 50px;
    flex: 0 0 auto;
}

.portion-counter-group button:hover {
    background-color: #7c5e36;
    color: #fff;
}

/* Responsive Styles for Smaller Screens */
@media (max-width: 768px) {
    .btn-pill {
        width: 100%;
        max-width: none;
        margin-bottom: 10px;
    }

    .explore-btn {
        width: 60%;
        padding: 15px 20px;
        font-size: 1rem;
    }

    .portion-counter-group {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .explore-btn {
        padding: 15px;
        border-radius: 8px;
    }

    input.extra {
        width: 100%;
    }

    .portion-counter-group {
        width: 100%;
    }
}
