body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

/*ingredient page css*/

.container {
    margin: 0 auto;
}

.header {
    display: flex;
    align-items: center; /* vertically center the text next to the image */
    gap: 20px; /* spacing between image and text */
    margin-bottom: 20px;
}

#ingredientImage {
    width: 150px; /* fixed width for consistency */
    height: 150px;
    object-fit: cover; /* crop or scale the image neatly */
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.header-text h1 {
    margin: 0 0 10px 0;
}

.header-text p {
    margin: 4px 0;
}

.card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0px 4px 20px rgba(0,0,0,0.06);
}

h1 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 2rem;
    font-weight: 600;
}

h3 {
    margin-top: 30px;
    margin-bottom: 10px;
    font-size: 1.2rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 4px;
}

p {
    margin: 6px 0;
}

strong {
    font-weight: 600;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 30px;
    margin-top: 20px;
}


/*END OF EXP*/

/*indentation for form*/
.form-group {
    margin-top: 24px;
}

/* Top Tabs */
.top-tabs {
    display: flex;
    background-color: #333;
}

.top-tabs button {
    padding: 14px 20px;
    cursor: pointer;
    background-color: #333;
    color: white;
    border: none;
    outline: none;
}

.top-tabs button.active {
    background-color: #fff;
    color: #333;
    font-weight: bold;
}

/* Tab Content */
.tab-content {
    display: none;
    padding: 20px;
}

.tab-content.active {
    display: block;
}

/* Subtabs */
.subtabs {
    display: flex;
    margin-bottom: 10px;
}

.subtabs button {
    padding: 8px 12px;
    cursor: pointer;
    border: 1px solid #aaa;
    border-bottom: none;
    background-color: #eee;
    margin-right: 2px;
}

.subtabs button.active {
    background-color: #fff;
    font-weight: bold;
}

.subtab-content {
    border: 1px solid #aaa;
    padding: 10px;
}

/* Dropdown */
.dropdown {
    position: relative;
    display: inline-block;
    margin-top: 10px;
}

.dropbtn {
    padding: 10px 20px;
    cursor: pointer;
    border: 1px solid #333;
    background-color: #eee;
}

.dropdown-content {
    display: none;
    position: absolute;
    min-width: 160px;
    border: 1px solid #aaa;
    background-color: #f9f9f9;
    z-index: 1;
}

.dropdown-content a {
    display: block;
    padding: 10px;
    text-decoration: none;
    color: black;
}

.dropdown-content a:hover {
    background-color: #ddd;
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* Search bar */
#searchInput {
    padding: 6px;
    margin-top: 10px;
    margin-bottom: 10px;
    width: 200px;
}


#searchList {
    list-style: none;
    padding-left: 0;
    max-height: 400px; /* optional, scroll if too many items */
    overflow-y: auto;
    border: 1px solid #ccc;
    border-radius: 4px;
}

#searchList li {
    padding: 6px;
    border-bottom: 1px solid #eee;
}

#searchList li:hover {
    background-color: #f0f0f0;
}

/* ingredient list */
#ingredientList {
    /*delete these two next lines if want pure list*/
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.ingredient-item {
    margin: 8px 0;
}

.ingredient-btn {
    display: flex;
    align-items: center;
    gap: 10px;

    padding: 12px 16px;

    background: #f4f4f4;
    border: 1px solid #ccc;
    border-radius: 10px;

    font-size: 1.1rem;
    cursor: pointer;

    transition: background 0.2s, transform 0.2s;
}

.ingredient-btn:hover {
    background: #eaeaea;
    transform: translateY(-2px);
}

.ingredient-icon {
    width: 32px;
    height: 32px;
    object-fit: cover;
    border-radius: 6px;
}

.category-header {
    width: 100%;
    flex-basis: 100%;

    font-weight: bold;
    margin-top: 16px;
    padding: 6px 0;

    border-bottom: 1px solid #ccc;
    list-style: none;

    pointer-events: none;
}

/*add ingredient css*/

.flavor-ingredient-row {
    display: flex;
    gap: 8px;
    margin-top: 8px;
    margin-bottom: 8px;
    align-items: center;
}

.ingredient-select,
.unit-select,
.ingredient-amount {
    padding: 4px 8px;
}

.remove-ingredient-btn {
    background: transparent;
    border: none;
    font-size: 1.2rem;
    color: red;
    cursor: pointer;
}

.unit-select {
    min-width: 80px;
    width: auto; /* or fixed pixel width */
}
.unit-select option[disabled] {
    color: #888;
}

.ingredient-dropdown{
    max-width: 300px;
}

.vendor-dropdown {
    max-width: 300px;
}
.vendor-dropdown li:hover {
    background: #f0f0f0;
}

/* Toasts */
.toast-container {
    position: fixed;
    right: 12px;
    bottom: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 2000;
}
.toast {
    min-width: 200px;
    max-width: 320px;
    padding: 10px 12px;
    border-radius: 8px;
    color: white;
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
    font-weight: 600;
}
.toast--success { background: #15803d; }
.toast--error { background: #b91c1c; }
.toast--info { background: #0369a1; }

/*ingredient.html*/
.button-group {
    margin-bottom: 8px;
}

.pricing-section {
    margin-bottom: 1rem;
}

.pricing-section h4 {
    margin-bottom: 0.25rem;
    font-weight: 600;
}

/* Flavor ingredient links */
#flavorIngredients a.ing-link {
    color: #0a58ca;
    text-decoration: underline;
}
