/****************************************
*            FitBite CSS                *
*         by: Stephen Young             *
*       Flathead Creative, LLC          *
****************************************/

body {
    margin: 0px;
    font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}

a {
    color: unset;
    text-decoration: unset;
}

button {
    font-family: inherit;
}

.hidden {
    display: none;
}

.text-align-left {
    text-align: left;
}

.text-align-center {
    text-align: center;
}


.text-align-right {
    text-align: right;
}

.green-outline {
    border: solid 0.8px rgb(22, 163, 74) !important;
}

.flex {
    display: flex;
}

.alert {
    max-width: 1100px;
    background: lightblue;
    width: 100%;
    text-align: center;
    padding: 10px;
    border-radius: 5px;
}

.alert-error {
    background: pink;   
}

.system-message {
    padding:10px;
    background:#d4edda;
    color:#155724;
    border:1px solid #c3e6cb;
    margin-bottom:15px;
    text-align: center;
}

.char-limit.over-limit {
    color: red;
    font-weight: 600;
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.submit-btn:disabled:hover {
    opacity: 0.6;
    cursor: not-allowed;
}

.green-btn {
    color: #f8fafc;
    border: none;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    padding: 8px 16px;
    border-radius: 8px;
    background-color: rgb(80, 173, 64);
    transition: all 0.15s;
}

.green-btn:hover {
    background-color: rgb(15, 23, 42);
}

header {
    padding: 24px 0px;
}

.header-inner {
    max-width: 1400px;
    width: 100%;
    margin: 0px auto;
    padding: 0px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
}

.logo {
    color: rgb(80 173 64);
    text-decoration: none;
    font-size: 30px;
    font-weight: 700;
    letter-spacing: -.025em;
    line-height: 2.25rem;
}

.header-right-mobile button {
    padding: 0px;
    cursor: pointer;
    background: none;
    border: none;
    color: rgb(80 173 64);
    box-sizing: content-box;
}

.header-right {
    display: none;
    position: relative;
}


a.login {
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.login-form {
  max-width: 360px;
  margin: 0px auto;
  padding: 32px;
  background: #fff;
  border: 1px solid #e3e3e3;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
  font-family: Arial, sans-serif;
}

.login-form h2 {
  text-align: center;
  color: #333;
  margin-bottom: 24px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.login-form label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: #444;
}

.login-form input[type="text"],
.login-form input[type="password"] {
  width: 100%;
  padding: 10px 12px;
  margin-bottom: 20px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 15px;
  box-sizing: border-box;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.login-form input[type="text"]:focus,
.login-form input[type="password"]:focus {
  border-color: rgb(80, 173, 64);
  box-shadow: 0 0 5px rgba(80, 173, 64, 0.3);
  outline: none;
}

/* Button styling from your base */
.btn.green.outline {
  color: rgb(80, 173, 64);
  font-weight: 700;
  font-size: 0.875rem;
  line-height: 1.25rem;
  padding: 10px 16px;
  border-radius: 6px;
  border: solid 0.8px rgb(80, 173, 64);
  cursor: pointer;
  transition: all 0.2s ease;
  background-color: transparent;
}

.btn.green.outline:hover {
  background-color: rgb(80, 173, 64);
  color: white;
  border-color: rgb(80, 173, 64);
  box-shadow: 0 0 6px rgba(80, 173, 64, 0.4);
}


a.btn.green.outline {
    color: rgb(80 173 64);
    font-weight: 700;
    font-size: .875rem;
    line-height: 1.25rem;
    padding: 8px 16px;
    border-radius: 6px;
    border: solid 0.8px rgb(80 173 64);
    cursor: pointer;
    margin-left: 4px;
    transition: all 0.15;
}

a.btn.green.outline:hover {
    color: #ffffff;
    background-color: rgb(80 173 64);
}

button.user-menu-button {
    padding: 0px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: transparent;
    border: none;
    cursor: pointer;
    color: rgb(9 194 116);
}

.user-menu {
    position: absolute;
    background: #ffffff;
    padding: 12px 4px;
    border-radius: 6px;
    min-width: 128px;
    width: 240px;
    left: -200px;
    top: 30px;
    box-shadow: 0 0 #0000, 0 0 #0000, 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);
    border: solid 0.8px rgb(226, 232, 240);
    z-index: 50;
}

.user-menu hr {
    width: 100%;
    height: 1px;
    background-color: #e2e8f0;
    border: none;
    margin: 8px 0px;
}

.user-menu-item.username {
    margin: 0px;
    font-size: 16px;
    box-sizing: border-box;
    color: rgb(9 194 116);
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    display: block;
    padding: 8px 16px;   
}

.user-menu-item {
    font-size: 14px;
    line-height: 20px;
    padding: 12px 16px;
    position: relative;
    cursor: pointer;
}

main {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: center;
    gap: 2.5rem;
    padding: 20px;
}

.search {
    max-width: 1360px;
    width: 100%;
    margin: 0px auto;
    padding: 0px;
}

.search form {
    background: #FFFFFF;
    width: 100%;
    padding: 0.75rem;
    border-width: 2px;
    gap: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
    flex-direction: row;
    border: solid 1.6px rgb(226, 232, 240);
    border-radius: 9999px;
}

.search form div {
    flex: 1 1 0%;
}

.search form div input {
    width: 100%;
    border: none !important;
    outline: none !important;
    font-size: 16px;
}

.text-\[\#468933\] {
    --tw-text-opacity: 1;
    color: rgb(70 137 51 / var(--tw-text-opacity));
    margin-left: 4px;
    display: none;
}

button.reset-btn {
    padding: 8px 16px;
    border-radius: 9999px;
    border: solid 0.8px rgb(226, 232, 240);
    background: #fff;
    box-shadow: 0 0 #0000, 0 0 #0000, 0 1px 2px 0 rgb(0 0 0 / .05);
    box-sizing: border-box;
    font-size: 14px;
    line-height: 20px;
    font-family: inherit;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
}

button.search-btn {
    padding: 8px 16px;
    border-radius: 9999px;
    border: none;
    box-shadow: 0 0 #0000, 0 0 #0000, 0 1px 2px 0 rgb(0 0 0 / .05);
    box-sizing: border-box;
    font-size: 14px;
    line-height: 20px;
    font-family: inherit;
    font-weight: 500;
    color: rgb(248, 250, 252);
    background: rgb(80, 173, 64);
    cursor: pointer;
    transition: all 0.15s;
}

button.reset-btn:hover {
   background: rgb(241, 245, 249);
}

button.search-btn:hover {
   background: rgba(15, 23, 42, 0.9);
}

.creator-grid {
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 1.25rem;
    display: grid;
    max-width: 1360px;
    width: 100%;
    box-sizing: border-box;
}

.creator-item {
    border-radius: 12px;
    overflow: hidden;
    border: solid 0.8px rgb(226, 232, 240);
    cursor: pointer;
    box-shadow: 0 0 #0000, 0 0 #0000, 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);
    transition-property: box-shadow;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 0.15s;
}

.creator-item:hover {
    border-radius: 12px;
    overflow: hidden;
    border: solid 0.8px rgb(226, 232, 240);
    cursor: pointer;
    box-shadow: 0 0 #0000, 0 0 #0000, 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);
}

.creator-item a {
    text-decoration: none;
    color: inherit;
}

.creator-item-top {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
}

.creator-item-top div {
    position: absolute;
    inset: 0px;
}

.creator-item-top img {
    object-fit: cover;
    object-position: top;
    width: 100%;
    height: 100%;
    max-width: 100%;
    display: block;
    vertical-align: middle;
}

.creator-item-top svg {
    right: 0.5rem;
    bottom: 0.5rem;
    position: absolute;
    display: block;
    vertical-align: middle;
}

.creator-item-bottom {
    padding: 1rem;
    display: flex;
    align-items: center;
}

.creator-item-bottom div {
    flex: 1 1 0%;
    display: flex;
    gap: .5rem;
    flex-direction: column;
}

.creator-item-bottom h3 {
    font-size: .875rem;
    font-weight: 700;
    margin: 0;
    box-sizing: border-box;
    line-height: 1.25rem;
} 

.creator-item-bottom p {
    color: rgb(75 85 99);
    font-size: .875rem;
    line-height: 1.25rem;
    margin: 0;
}

.creator-avatar-small {
    padding: 60px;
    background-position: center center;
    border-radius: 100%;
    border: 2px solid #cccccc;
    background-size: cover;
}

p.creator-btn {
    font-size: .875rem;
    line-height: 1.25rem;
    background-color: rgb(9 194 116);
    padding: 8px 12px;
    color: #fff;
    border-radius: 9999px;
}

.creator-item-plans {
  
}

.creator-item-plan {
    display: flex;
    padding: 16px 22px;
    align-items: center;
    gap: 16px;
    border-top: solid 0.8px rgb(226, 232, 240);
    text-decoration: none;
}

.creator-item-plan img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
}

.creator-item-plan h2 {
    font-size: 20px;
    font-weight: 700;
    color: rgb(2, 8, 23);
}

.creator-item-plan h2 {
    font-size: 20px;
    font-weight: 700;
}

.creator-item-plan p {
    color: rgb(75 85 99);
}


.tabpanel[data-tab-panel="meal"] .meal-header {
    display: flex;
    justify-content: flex-end;
    margin-top: 16px;
    margin-bottom: 16px;
}

.tabpanel[data-tab-panel="meal"] .meal-plans-empty {
    text-align: center;
    padding: 2.5rem 1rem;
}

.tabpanel[data-tab-panel="meal"] .empty-text {
    color: #6b7280; /* gray-500 */
    margin-bottom: 1rem;
}

.tabpanel[data-tab-panel="meal"] .create-btn {
    background-color: #22c55e; /* green-500 */
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 9999px; /* fully rounded */
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    transition: background-color 0.2s ease;
}

.creator-recipes {
    margin-top: calc(1rem * calc(1 - var(--tw-space-y-reverse)));
    margin-bottom: calc(1rem * var(--tw-space-y-reverse));
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .creator-recipes {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 768px) {
    .creator-recipes {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .creator-recipes {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

.creator-recipe {
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 0 #0000, 0 0 #0000, 0 1px 2px 0 rgb(0 0 0 / .05);
    background: #fff;
}

.creator-recipe-top {
    aspect-ratio: 16 / 9;
    position: relative;
}

.creator-recipe-top img {
    width: 100%;
    height: 100%;
    object-fit: contain;   
}

.creator-recipe-bottom {
    padding: 16px;
}

.creator-recipe-bottom h3 {
    margin: 0px;
    font-size: 18px;
    font-weight: 500;
    line-height: 28px;
    margin-bottom: auto;
}

a.creator-recipe-button {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: 8px 16px;
    color: rgb(22 163 74);
    border-radius: 6px;
    margin-top: 16px;
    box-sizing: border-box;
    background-color: transparent;
    transition: all 0.15s;
}

a.creator-recipe-button:hover {
   background-color: rgb(240 253 244);
}


/* Scope all styles to recipes tabpanel */
.tabpanel[data-tab-panel="recipes"] .recipes-wrapper {
    margin-top: 1rem;
}

.tabpanel[data-tab-panel="recipes"] .recipes-header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1rem;
}

.tabpanel[data-tab-panel="recipes"] .recipes-empty {
    text-align: center;
    padding: 2.5rem 1rem;
}

.tabpanel[data-tab-panel="recipes"] .empty-text {
    color: #6b7280; /* gray-500 */
    margin-bottom: 1rem;
}

.tabpanel[data-tab-panel="recipes"] .add-btn,
.tabpanel[data-tab-panel="recipes"] .create-btn {
    background-color: #22c55e; /* green-500 */
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 9999px; /* fully rounded */
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    transition: background-color 0.2s ease;
}

.tabpanel[data-tab-panel="recipes"] .add-btn:hover,
.tabpanel[data-tab-panel="recipes"] .create-btn:hover {
    background-color: #16a34a; /* green-600 */
}

.tabpanel[data-tab-panel="recipes"] .create-btn {
    margin: 0 auto;
}

.tabpanel[data-tab-panel="recipes"] .icon {
    width: 20px;
    height: 20px;
}

/* Top section layout */
.tabpanel[data-tab-panel="creator"] .creator-page-top {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
    position: relative;
}

@media (min-width: 768px) {
    .tabpanel[data-tab-panel="creator"] .creator-page-top {
        flex-direction: row;
    }
}

/* Right column */
.tabpanel[data-tab-panel="creator"] .creator-page-top-right {
    flex: 1;
    padding: 1rem;
    position: relative;
}

/* Edit button container */
.tabpanel[data-tab-panel="creator"] .creator-page-edit {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1rem;
}

/* Edit button itself */
.tabpanel[data-tab-panel="creator"] .edit-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    border-radius: 0.375rem;
    border: 1px solid #16a34a; /* green-600 */
    color: #16a34a;
    background: #fff;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.tabpanel[data-tab-panel="creator"] .edit-btn:hover {
    background: #f0fdf4; /* light green */
}


footer {
    position: absolute;
    width: 100%;
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
    background-color: rgb(9 194 116);
}

.footer-inner {
    max-width: 1400px;
    width: 100%;
    margin: 0px auto;
    padding: 0px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
    flex-direction: column;
}
 
a.footer-link {
    color: #FFFFFF;
}

.logo.invert {
    color: #fff;
}

.footer-right p {
    color: rgb(255, 255, 255);
    margin: 0px;
    line-height: 24px;
}

.footer-right {
    display: flex;
    flex-direction: row;
    gap: 2rem;
    box-sizing: border-box;
    align-items: center;
}

.footer-right > div {
    display: flex;
    padding: 1rem;
    justify-content: flex-start;
    align-items: flex-start;
    flex-direction: column;
    box-sizing: border-box;
}

.footer-right > div > div {
    display: flex;
    align-items: center;
    box-sizing: border-box;
    width: 100%;
}

.footer-right input {
    padding: 8px 16px;
    border-style: none;
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    border-radius: 8px 0px 0px 8px;
    width: 100%;
    margin: 0px;
    box-sizing: content-box;
    font-size-adjust: none;
    color: rgb(2, 8, 23);
    outline: none !important;
}

.footer-right button {
    color: rgb(255, 255, 255);
    background-color: rgb(9 194 116);
    padding-top: .5rem;
    padding-bottom: .5rem;
    padding-left: 1rem;
    padding-right: 1rem;
    font-size: 16px;
    border: none;
}

.mobile-menu-background {
    pointer-events: auto;   
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 50;
    background-color: #000c;
}

.mobile-menu {
    font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", Segoe UI Symbol, "Noto Color Emoji";
    position: fixed;
    background: #ffffff !important;
    top: 0;
    bottom: 0;
    right: 0;
    z-index: 50;
    height: 100%;
    width: 75%;
    gap: 1rem;
    border-left-width: 1px;
    background-color: hsl(var(--background));
    padding: 1.5rem;
    box-sizing: border-box;
    border-width: 0;
    border-style: solid;
    border-color: hsl(var(--border));
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter, -webkit-backdrop-filter;
    transition-timing-function: cubic-bezier(.4,0,.2,1);
    animation-timing-function: cubic-bezier(.4,0,.2,1);
    transition-duration: .5s;
    animation-name: enter;
    animation-duration: .5s;
    pointer-events: auto;   
}

.mobile-menu h2 {
    font-weight: 600;
    font-size: 1.125rem;
    line-height: 1.75rem;
    margin: 0; 
}

.mobile-menu-login {
    width: 100%;
    padding: 8px 16px;
    font-weight: 700;
    font-size: 14px;
    box-sizing: border-box;
    border-radius: 6px;
    border: none;
    box-shadow: 0 0 #0000, 0 0 #0000, 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);
    background-color: rgb(80 173 64);
    color: rgb(248, 250, 252);
    margin-top: 12px;
    height: 2.25rem;
    font-family: inherit;
}

.mobile-menu-bac {
    width: 100%;
    padding: 8px 16px;
    font-weight: 700;
    font-size: 14px;
    box-sizing: border-box;
    border-radius: 6px;
    border: solid 0.8px rgb(80, 173, 64);
    box-shadow: 0 0 #0000, 0 0 #0000, 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);
    background-color: rgb(255 255 255);
    color: rgb(80, 173, 64);
    margin-top: 15px;
    height: 2.25rem;
    font-family: inherit;
}

.mobile-menu hr {
    margin: 12px 0px 0px 0px;
    background-color: rgb(226 232 240);
    height: 1px;
    border: 0px;
}

.mobile-close {
    top: 1rem;
    right: 1rem;
    position: absolute;
    opacity: .7;
    cursor: pointer;
    padding: 0px;
    margin: 0px;
    border: 0px;
    background: none;
    margin-top: 0.75rem;
    color: rgb(2, 8, 23) !important;
    box-sizing: border-box;
}

.mobile-menu-background[data-state="open"] {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu-background[data-state="closed"] {
  opacity: 0;
  pointer-events: none;
}

.mobile-menu[data-state="open"] {
  transform: translateX(0);
}

.mobile-menu[data-state="closed"] {
  transform: translateX(100%);
}

.creator-container {
    width: 100%;
    max-width: 1400px;
}

.creator-container-edit {
    max-width: 1336px;
}

.creator-breadcrumb {
    margin-bottom: 1.5rem;
    color: rgb(75, 85, 99);
}

.creator-details-info {
    text-align: center;
    padding: 20px;
}

.creator-plan-grid {
    display: flex;
    flex-wrap: wrap;
}

.creator-plan-item {
    box-shadow: 0 0 #0000, 0 0 #0000, 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    max-width: 300px;
    margin: 10px;
    width: 100%;
}

.creator-plan-item-top {
    position: relative;
    height: 192px;
}

.creator-plan-item-top img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

.creator-plan-item-calories {
    top: .5rem;
    left: .5rem;
    position: absolute;
    padding: 4px 8px;
    color: #000;
    font-size: 14px;
    line-height: 20px;
    background-color: #fffc;
    border-radius: 4px;
}

.creator-plan-item-bottom {
    padding: 16px;
}

.creator-plan-item-bottom h3 {
    margin: 0px;
}

.creator-plan-item-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}


.creator-breadcrumb a {
    display: flex;
    align-items: center;
}

.creator {
    display: flex;
    gap: 1.5rem;
    flex-direction: column;
    margin-bottom: 2rem;
    box-sizing: border-box;
}

.creator-page-plan > div > div {
    display: flex;
    gap: 8px;
}

span.creator-tag {
    color: rgb(107 33 168);
    background-color: rgb(243 232 255);
    font-size: 14px;
    line-height: 20px;
    margin-bottom: 10px;
    padding: 4px 12px;
    border-radius: 9999px;
}

.creator-left {
    width: 100%;
}

.creator-left img {
    object-fit: cover;
    object-position: top;
    width: 100%;
    height: 390px;
    border-radius: 0.5rem;
    max-width: 100%;
    display: block;
    vertical-align: middle;
    box-shadow: 0 0 #0000, 0 0 #0000, 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);
}

.creator-right {
    width: 100%;
}

h1.creator-title {
    font-weight: 700;
    font-size: 1.5rem;
    line-height: 2rem;
    margin: 0;
    margin-bottom: .75rem;
}

.creator-social {
    display: flex;
    margin-bottom: 1.25rem;
    gap: 1.25rem;
}

.creator-social div {
    align-items: center;
    display: flex;
}

.creator-social a {
    display: flex;
    align-items: center;
    color: rgb(34 197 94);
    text-decoration: none;
}

.creator-social a:hover {
    display: flex;
    align-items: center;
    color: rgb(22 163 74);
    text-decoration: none;
}

.creator-social svg {
    width: 1.25rem;
    height: 1.25rem;
    margin-right: .5rem;
}

.creator-bio {
    padding: 1.5rem;
    background-color: rgb(249 250 251);
    border-radius: 0.5rem;
    margin-bottom: 1.25rem;
    color: rgb(55 65 81);
}

.creator-bio p {
    margin: 0px;
}

.creator-space {
    width: 100%;
    max-width: 1330px;
    box-sizing: border-box;
}

.creator-space > h1 {
    text-align: center;
    font-size: 30px;
    margin: 30px 0px 24px 0px;
}

.creator-space > div {
    padding: 32px;
    width: 100%;
    max-width: 1330px;
    background: rgb(248, 250, 250);
    box-sizing: border-box;
    border-radius: 6px;
}

.creator-space .tablist {
    text-align: center;
}

.creator-space .tablist button {
    background-color: #ffffff;
    margin: 2px;
    color: rgb(75 85 99);
    font-weight: 500;
    font-size: 14px;
    line-height: 20px;
    padding: 12px 32px;
    border-radius: 16px;
    border: none;
    font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", Segoe UI Symbol, "Noto Color Emoji";
    transition: all 0.15s;
}

.creator-space .tablist button:hover {
    background-color: rgb(248, 250, 250);
}

.creator-space .tablist button[aria-selected="true"] {
    background-color: rgb(230, 255, 242);
    color: rgb(2 8 23);
}

.creator-space .add-btn {
    padding: 8px 16px;
    border-radius: 9999px;
    cursor: pointer;
    background-color: rgb(34, 197, 94);
    font-size: 16px;
    color: #ffffff;
    border: none;
    font-weight: 400;
    font-family: inherit;
    transition: all 0.15s;
    display: flex;
    align-items: center;
    flex-direction: row;
    gap: 4px;
    margin-left: auto;
}

.creator-space .add-btn:hover {
    background-color: rgb(22 163 74);
}

.creator-meal-plan {
    background: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    width: 100%;
    box-shadow: 0 0 #0000, 0 0 #0000, 0 1px 2px 0 rgb(0 0 0 / .05);
    border-radius: 16px;
    overflow: hidden;
    margin-top: 20px;
}

.creator-meal-plan img {
    width: 112px;
    height: 112px;
    overflow: hidden;
    position: relative;
}

.creator-meal-plan-image {
    position: relative;
}

.creator-meal-plan-image div {
    position: absolute;
    right: 0;
    left: 0;
    bottom: 0;
    top: 84px;
    font-size: 14px;
    line-height: 20px;
    padding: 4px 12px;
    box-sizing: border-box;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
}

.creator-meal-plan-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 20px;
}

.creator-meal-plan-left .flex {
    gap: 24px;
    margin-bottom: 12px;
}

.creator-meal-plan-left h3 {
    font-weight: 600;
    font-size: 20px;
    line-height: 28px;
    margin: 0px;
}

.creator-meal-plan-left p {
    margin: 0px 0px 8px 0px;
    color: rgb(107 114 128);
    font-size: 14px;
    line-height: 20px;
}

.creator-meal-plan-left button {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    line-height: 20px;
    font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", Segoe UI Symbol, "Noto Color Emoji";
    color: rgb(9, 194, 116);
    background: none;
    border: none;
}

.creator-meal-plan-right {
    display: flex;
    gap: 12px;
}

.creator-meal-plan-right button, .creator-meal-plan-link {
    padding: 8px 16px;
    border-radius: 9999px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    gap: 8px;
    border: none;
    background: none;
    color: rgb(9, 194, 116);
    cursor: pointer;
}

.creator-meal-plan-right button #text {
    font-weight: 500;   
}

.creator-page-top {
    display: flex;
    flex-wrap: wrap;
    border-radius: 8px;
    overflow: clip;
    background: #fff;
    margin-top: 20px;
}

.creator-page-top-left, .creator-page-top-right {
    flex: 1;
}

.creator-page-top-left {
    height: 400px;
    position: relative;
    align-items: center;
    overflow: hidden;
}

.creator-page-top-left img {
    width: 100%;
    object-fit: cover;
    object-position: top;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.creator-page-top-right {
    padding: 32px;
}

.creator-page-top-right div {
    display: flex;
    gap: 8px;
}

.creator-page-plans {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.creator-page-plan {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 0 #0000, 0 0 #0000, 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);
    overflow: hidden;
}

.creator-page-plan > div {
    box-sizing: border-box;
    padding: 16px;
} 

.creator-page-plan a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgb(22, 163, 74);
    padding: 8px 16px;
    border-radius: 6px;
    border: solid 0.8px;
    justify-content: center;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.creator-order p {
    text-align: center;
    color: rgb(107 114 128);
    padding: 40px 0px 80px 0px;
}

@media (max-width: 480px) {
    .creator-meal-plan-content {
        flex-direction: column;
        gap: 12px;
    }
    
    .creator-meal-plan-left p {
        text-align: center;
    }
}

@media (max-width: 640px) {
    .creator-meal-plan-right {
        flex-direction: column;
        align-items: center;
    }
}

    
@media (max-width: 720px) {
    .creator-meal-plan-left .flex {
        flex-direction: column;
        gap: 12px
    }
}

@media (max-width: 768px) {
    
    .creator-page-top-left img {
        position: unset;
        transform: none; 
    }
}


@media (max-width: 912px) {
    .creator-meal-plan {
        flex-direction: column;
    }
    
    .creator-meal-plan img {
        width: 100%;
        object-fit: cover;
    }
    
    .creator-meal-plan-image {
        width: 100%;
    }
    
    .creator-meal-plan-content {
        justify-content: center;
        width: 100%;
        box-sizing: border-box;
    }
}

.creator-container .creator-form {
    background: #f9fafb;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.creator-container .progress-bar {
    background: #e5e7eb;
    border-radius: 999px;
    height: 10px;
    margin-bottom: 1.5rem;
}

.creator-container .progress-bar-fill {
    background: #f97316;
    height: 100%;
    border-radius: inherit;
    transition: width 0.5s ease-in-out;
}

.creator-container .form-step-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.creator-container .step-text {
    font-size: 0.875rem;
    color: #374151;
}

.creator-container .profile-step {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.creator-container .step-icon {
    position: relative;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.creator-container .image-upload-box {
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 10px;
    padding: 10px;
    text-align: center;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    box-sizing: border-box;
    margin-bottom: 16px;
}

.creator-container .image-preview {
    width: 95px;
    height: 95px;
    background-color: #eee;
    background-size: cover;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
    border-radius: 6px;
    font-size: 12px;
    color: #999;
}

input#recipe-image-input {
    width: 180px;
}

.creator-container .step-number {
    position: absolute;
    color: white;
    font-weight: bold;
}

.creator-container .form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.creator-container .form-group {
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    margin-bottom: 1rem;
}

.creator-container .form-label {
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
    color: #7E847C;
}

.creator-container .form-input {
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 0.5rem;
    width: 100%;
    box-sizing: border-box;
}

.creator-container .form-textarea {
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 0.5rem;
    width: 100%;
    min-height: 8rem;
}

.creator-container .form-select {
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 0.5rem;
    width: 100%;
}

.creator-container .handle-input {
    display: flex;
    align-items: center;
}

.creator-container .handle-prefix {
    background: #e5e7eb;
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-right: none;
    border-radius: 6px 0 0 6px;
    height: 16px;
    line-height: 16.8px;
}

.creator-container .handle-input input {
    border: 1px solid #ccc;
    border-left: none;
    border-radius: 0 6px 6px 0;
    padding: 0.5rem;
    width: 100%;
}

.creator-container .add-platform-btn {
    background: #09C274;
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 6px;
    cursor: pointer;
    margin-top: 1rem;
}

.creator-container .add-platform-btn:hover {
    background: #08a060;
}

.creator-container .tag-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.creator-container .tag-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 999px;
    padding: 0.4rem 0.8rem;
    cursor: pointer;
}

.creator-container .tag-option .tag-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #e5e7eb;
}

.creator-container .tag-option.selected .tag-indicator {
    background: #09C274;
}

.creator-container .custom-tag-section {
    display: flex;
    align-items: flex-end;
    gap: 0.5rem;
    margin-top: 1rem;
}

.custom-tag-section .form-group {
    flex: 1 1 0;
    margin: 0px;
}

.creator-container input[type="checkbox"]:checked + .tag-indicator {
    background: #09C274;
    border-color: rgb(22, 163, 74);
    color: #fff;
}

.creator-container input.tag-checkbox {
    display: none;
}

.creator-container .add-tag-btn {
    background: #09C274;
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 6px;
    cursor: pointer;
    border: none;
}

.creator-container .add-tag-btn:hover {
    background: #08a060;
}

.creator-container .selected-tags {
    margin-top: 1rem;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.creator-container .selected-tag {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    background: #e8f7f0;
    color: #09C274;
    border-radius: 999px;
    padding: 0.25rem 0.75rem;
}

.creator-container .remove-tag {
    background: none;
    border: none;
    cursor: pointer;
    color: #09C274;
}

.creator-container .remove-tag:hover {
    color: red;
}

.creator-container .form-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 2rem;
}

.creator-container .submit-btn {
    background: #09C274;
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 6px;
    cursor: pointer;
    border: none;
}

.creator-container .submit-btn:hover {
    background: #08a060;
}

.account-profile-padded {
    margin-bottom: 20px;
    padding: 10px;
}

.account-profile-padded-top {
    border-bottom: 1px solid #e9edf1;
    padding-bottom: 40px;
    margin-bottom: 40px;
}

.account-profile-padded div {
    margin-bottom: 25px;
}

.account-profile-info .card {
    display: flex;
}

.account-profile-info .card img {
    max-width: 60px;
}

.user-profile {
    width: 100%;
    background: rgb(249, 250, 251);
    padding: 40px;
    box-sizing: border-box;
    border-radius: 8px;
    max-width: 1360px;
}

.user-profile > div:not(:first-child) {
    margin: 16px 0px 0px 0px;
}

.user-profile h2 {
    margin: 0px;
}

p#undefined-form-item-description {
    font-size: 12.8px;
    margin: 0px;
}

.user-profile-locations {
    display: flex;
    gap: 16px;
    margin-bottom: 0px !important;
}

.user-profile-locations div {
    flex: 1; 
}

.user-profile input, .user-profile select {
    width: 100%;
    padding: 4px 12px;
    box-sizing: border-box;
    border-radius: 6px;
    border: solid 1px rgb(226 232 240);
    height: 36px;
    margin-top: 8px;
    background-color: #ffffff;
    font-size: 14px;
}

.user-profile input:disabled {
    cursor: not-allowed;
}

.user-profile button {
    margin-top: 16px;
}

.plan-wrapper {
    max-width: 1280px;
    width: 100%;
}

.edit-plan {
    width: 100%;
    max-width: 1300px;
    box-shadow: 0 0 #0000, 0 0 #0000, 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);
    border-radius: 16px;
    border: solid 1px rgb(226, 232, 240);
}

.edit-plan-inner {
    padding: 32px;
}

.edit-plan-recipe > div {
    display: flex;
    gap: 1.5rem;
}

.edit-plan-header-row button {
    color: rgb(15 23 42);
    font-weight: 500;
    font-size: 14px;
    line-height: 20px;
    padding: 8px 16px;
    box-sizing: border-box;
    display: flex;
    gap: 8px;
    border: solid 0.8px rgb(226, 232, 240);
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 0 #0000, 0 0 #0000, 0 1px 2px 0 rgb(0 0 0 / .05);
    align-items: center;
    transition: all 0.15s;
}

.edit-plan-header-row button:hover {
    color: rgb(15 23 42);
    background-color: rgb(241 245 249);
}



.edit-plan-recipe-left {
    width: 66.666667%;
    box-sizing: border-box;
}

.edit-plan-recipe-left-top {
    border: solid 1px rgb(226, 232, 240);
    border-radius: 8px;
    padding: 16px;
} 

.edit-plan-recipe-left-top > h3 {
    margin: 0px 0px 16px 0px;
} 

.edit-plan-recipe-left-top > div {
    color: rgb(107 114 128);
    text-align: center;
    padding: 24px 0px;
} 

.edit-plan-recipe-left-bottom {
    border: solid 1px rgb(226, 232, 240);
    border-radius: 8px;
    padding: 16px;
    margin-top: 24px;
}

.edit-plan-recipe-left-bottom svg {
    width: 16px;
    height: 16px;
}

button.icon-button-danger {
    color: rgb(239 68 68);
    padding: 0px 12px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    box-sizing: border-box;
    background: #fff;
    border: none;
    border-radius: 6px;
    transition: all 0.15s;
}

button.icon-button-danger:hover {
    color: rgb(15 23 42);
    background-color: rgb(241 245 249);
}

.edit-plan-recipe-left-bottom > div > div {
    border: solid 1px rgb(226, 232, 240);
    border-radius: 8px;
    padding: 16px;
}

.edit-plan-recipe-left-bottom > div > div > :first-child { 
    display: flex;
    justify-content: flex-end;
    margin-bottom: 12px;
}
    

.edit-plan-select-recipe {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.edit-plan-select-recipe button {
    width: 100%;
    padding: 4px 12px;
    box-sizing: border-box;
    border-radius: 6px;
    border: solid 1px rgb(226 232 240);
    height: 36px;
    margin-top: 8px;
    background-color: #ffffff;
    font-size: 14px;
    cursor: pointer;
    text-align: left;
}

.edit-plan-select-recipe div {
    position: relative;
}

div#edit-plan-meal-type, div#edit-plan-meal-days {
    position: absolute;
    width: 100%;
    padding: 4px 4px;
    box-sizing: border-box;
    border-radius: 6px;
    border: solid 1px rgb(226 232 240);
    height: 36px;
    margin-top: 4px;
    background-color: #ffffff;
    font-size: 14px;
    cursor: pointer;
    text-align: left;
    display: none;
    height: fit-content;
}

div#edit-plan-meal-type[data-state="true"], div#edit-plan-meal-days[data-state="true"] {
    display: block;
}

div#edit-plan-meal-type button {
    border: none;
    margin: 0px;
    border-radius: 3px;
}

div#edit-plan-meal-type button:hover, div#edit-plan-meal-type button[data-state="active"] {
    background: #F1F5F9;
}

.edit-plan-recipe-right {
    width: 33.333333%;
    border: solid 1px rgb(226, 232, 240);
    border-radius: 8px;
    padding: 16px;
    box-sizing: border-box;
}

.edit-plan-recipe-right-inner > h3 {
    color: rgb(2, 8, 23);
    font-size: 18px;
    font-weight: 600;
    line-height: 28px;
}

.edit-meal-plan-macros {
    margin-top: 24px;
}

.edit-meal-plan-macros h4 {
    margin: 0px 0px 8px 0px;
    font-size: 16px;
    line-height: 24px;
    font-weight: 500;
}

.edit-meal-plan-macros div {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.edit-meal-plan-macros span {
    padding: 4px 8px;
    font-size: 12px;
    line-height: 16px;
}

.edit-meal-plan-meal-types {
    margin-bottom: 24px;
}

.edit-meal-plan-meal-types span {
    padding: 4px 8px;
    color: rgb(22, 101, 52);
    background: rgb(220, 252, 231);
    border-radius: 4px;
    font-size: 12px;
    line-height: 16px;   
}

.edit-meal-plan-meal-types h4 {
    margin: 0px 0px 8px 0px;
    font-size: 16px;
    line-height: 24px;
    font-weight: 500;
}

.edit-meal-plan-days {
  
}

.edit-meal-plan-days > h4 {
    margin: 0px;
    font-size: 16px;
    line-height: 24px;
    font-weight: 500;
}

.edit-meal-plan-days > div {
  
}

.edit-meal-plan-day {
    padding: 8px;
    background-color: rgb(249 250 251);
    border-radius: 4px;
    border: solid 0.8px rgb(226, 232, 240);
    box-sizing: border-box;
    margin-top: 8px;
}

.edit-meal-plan-day > :nth-child(1) {
    color: rgb(2, 8, 23);
    font-weight: 500;
    font-size: 14px;
    line-height: 20px;
    margin-bottom: 4px;
}

.edit-meal-plan-day > :nth-child(2) {
    color: rgb(37 99 235);
    font-weight: 500;
    font-size: 12px;
    line-height: 16px;
}

.edit-meal-plan-ingredients {
    margin-top: 24px;
}

.edit-meal-plan-ingredients h4 {
    margin: 0px 0px 8px 0px;
    font-size: 16px;
    line-height: 24px;
    font-weight: 500;
}

.edit-meal-plan-ingredients div {
    color: rgb(107 114 128);
    font-size: 14px;
    line-height: 20px;
    text-align: center;
    padding: 16px 0px;
}

.edit-plan-details {
    margin-bottom: 32px;
}

.edit-plan-details > h3 {
    font-weight: 600;
    font-size: 18px;
    line-height: 28px;
    margin: 0px 0px 16px 0px;
}

form.edit-plan-details-form {
    padding: 16px;
}

.edit-plan-details-form > div > div {
    margin-bottom: 16px;
}

.edit-plan-image-container {
    padding: 16px;
    display: flex;
    gap: 16px;
    border: solid 1px rgb(226, 232, 240);
    border-radius: 8px;
    align-items: center;
}

.edit-plan-image-preview {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    background-color: rgb(243 244 246);
    border-radius: 4px;
}

.edit-plan-image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.edit-plan-image-uploader {
    flex-grow: 1;
    display: flex;
    align-items: center;
    gap: 8px;
}

.edit-plan-image-uploader button {
    background: none;
    text-decoration: underline;
    font-weight: 500;
    cursor: pointer;
    font-size: 16px;
    font-family: inherit;
    border: none;
    color: rgb(34, 197, 94);
    transition: all 0.15s;
}

.edit-plan-image-uploader span {
    color: rgb(156 163 175);
    font-size: 14px;
    line-height: 20px;
}

.edit-plan-image-uploader button:hover {
    color: rgb(22 163 74);
}

.edit-plan label {
    width: 100%;
    display: block;
    line-height: 1;
    font-weight: 500;
    font-size: 14px;
    color: rgb(126 132 124);
    box-sizing: border-box;
    margin-bottom: 8px;
}

label.edit-plan-image-input {
    background: none;
    text-decoration: underline;
    font-weight: 500;
    cursor: pointer;
    font-size: 16px;
    font-family: inherit;
    border: none;
    color: rgb(34, 197, 94);
    transition: all 0.15s;
}

label.edit-plan-image-input:hover {
    color: rgb(22 163 74);
}
    
.edit-plan input, .edit-plan textarea {
    width: 100%;
    padding: 4px 12px;
    box-sizing: border-box;
    border-radius: 6px;
    border: solid 1px rgb(226 232 240);
    height: 36px;
    margin-top: 8px;
    background-color: #ffffff;
    font-size: 14px;
}

.edit-plan-bio-container {
    position: relative;
}

.edit-plan-bio-container div {
    position: absolute;
    right: 8px;
    bottom: 8px;
}

.edit-plan textarea {
    height: 100px;
}

.edit-plan-selected-allergens {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.edit-plan-selected-allergen {
    display: flex;
    background-color: rgb(229 231 235);
    border-radius: 9999px;
    gap: 4px;
    align-items: center;
    padding: 4px 12px;
    box-sizing: border-box;
    width: fit-content;
}

.edit-plan-selected-allergen p {
    margin: 0px;
    color: rgb(55 65 81);
    font-size: 12px;
    line-height: 16px;
}

.edit-plan-selected-allergen button {
    color: rgb(107 114 128);
    background: none;
    border: none;
    padding: 0px;
    cursor: pointer;
}

.edit-plan-selected-allergen button:hover {
    color: rgb(55 65 81);
}

.edit-plan-allergens {
    margin: 30px 0px;
}

.edit-meal-plan-allergens {
    display: flex;
    gap: 8px;
    flex-direction: column;
    flex-wrap: nowrap;
}

.edit-meal-plan-allergen {
    display: flex;
    align-items: center;
    gap: 12px;
}

.edit-meal-plan-allergen button {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    border: solid 0.8px rgb(15, 23, 42);
    background: transparent;
    box-sizing: border-box;
    padding: 0px;
    color: #fff;
}

.edit-meal-plan-allergen button {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    border: solid 0.8px rgb(15, 23, 42);
    background: transparent;
    box-sizing: border-box;
    padding: 0px;
    color: #fff;
}

.edit-meal-plan-allergen button[data-state="true"] {
    background-color: #0f172a;
}

.edit-meal-plan-allergen p {
    margin: 0px;
    font-size: 14px;
    font-weight: 400;
    color: rgb(55, 65, 81);
}

.edit-plan-allergens > div > button[data-state="true"] {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

div#edit-plan-allergens-dropdown {
    display: none;
    padding: 12px;
    border: solid 1px rgb(226 232 240);
    border-top-width: 0px;
    border-bottom-left-radius: 6px;
    border-bottom-right-radius: 6px;
    transition: all 0.15s;
}

div#edit-plan-allergens-dropdown[data-state="true"] {
    display: block;
}

.edit-meal-plan-custom-allergens {
    display: flex;
    align-items: center;
    gap: 8px;
}

button#edit-meal-plan-add-allergen {
    color: rgb(15 23 42);
    background-color: #ffffff;
    box-shadow: 0 0 #0000, 0 0 #0000, 0 1px 2px 0 rgb(0 0 0 / .05);
    font-size: 12px;
    line-height: 16px;
    text-align: center;
    font-weight: 500;
    padding: 0px 12px;
    box-sizing: border-box;
    height: 32px;
    width: 48px;
    border: solid 1px #e2e8f0;
    border-radius: 6px;
    margin-top: 8px;
}

button#edit-meal-plan-add-allergen:hover {
    background-color: rgb(241 245 249);
}

.tag-grid {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

button.edit-meal-plan-tag {
    padding: 8px 16px;
    box-sizing: border-box;
    font-size: 14px;
    line-height: 20px;
    font-weight: 500;
    border-radius: 9999px;
    border: solid 0.8px rgb(217, 214, 255);
    color: rgb(55 65 81);
    box-shadow: 0 0 #0000, 0 0 #0000, 0 1px 2px 0 rgb(0 0 0 / .05);
    background-color: transparent;
    transition: all 0.15s;
}

button.edit-meal-plan-tag[data-state="false"]:hover {
    color: rgb(53, 63, 79);
    background-color: rgba(241, 245, 249, 1);
}

button.edit-meal-plan-tag[data-state="true"] {
    color: #000;
    background-color: rgb(217, 214, 255);
}

.edit-meal-plan-add-tag-container {
    display: flex;
    align-items: center;
    gap: 8px;   
}

button#edit-meal-plan-add-tag {
    font-size: 12px;
    line-height: 16px;
    font-weight: 500;
    padding: 0px 12px;
    height: 32px;
    white-space: nowrap;
    border-radius: 6px;
    border: solid 0.8px rgb(226, 232, 240);
    background: #fff;
    color: rgb(15, 23, 42);
    transition: all 0.15s;
    margin-top: 8px;
}

button#edit-meal-plan-add-tag:hover {
    background: rgb(241, 245, 249);
}

.edit-plan-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 24px;
    padding-top: 24px;
}

.edit-plan-footer button {
    padding: 8px 16px;
    font-weight: 500;
    font-size: 14px;
    line-height: 20px;
    font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", Segoe UI Symbol, "Noto Color Emoji";
    border-radius: 6px;
}

.edit-plan-footer :nth-child(1) {
    border: solid 0.8px #e2e8f0;
    background: #fff;
    color: rgb(2, 8, 23);
    transition: all 0.15s
}

.edit-plan-footer :nth-child(1):hover {
    background: rgb(241, 245, 249);
    color: rgb(15, 23 42);
}

.edit-plan-footer :nth-child(2) {
    border: none;
    background: rgb(34, 197, 94);
    color: rgb(248, 250, 252);
    transition: all 0.15s
}

.edit-plan-footer :nth-child(2):hover {
    background: rgb(22, 163, 74);
}



.edit-plan .tag-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.edit-plan .tag-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 999px;
    padding: 0.4rem 0.8rem;
    cursor: pointer;
    width: fit-content;
    box-sizing: border-box;
    line-height: normal;
    font-size: 16px;
    color: #000;
}

.edit-plan .tag-option .tag-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #e5e7eb;
}

.edit-plan .tag-option.selected .tag-indicator {
    background: #09C274;
}

.edit-plan .custom-tag-section {
    display: flex;
    align-items: flex-end;
    gap: 0.5rem;
    margin-top: 1rem;
}

.edit-plan .form-group {
    flex: 1 1 0;
    margin: 0px;
}

.edit-plan input[type="checkbox"]:checked + .tag-indicator {
    background: #09C274;
    border-color: rgb(22, 163, 74);
    color: #fff;
}

.edit-plan input.tag-checkbox {
    display: none;
}

.edit-plan .add-tag-btn {
    background: #09C274;
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 6px;
    cursor: pointer;
    border: none;
}

.edit-plan .add-tag-btn:hover {
    background: #08a060;
}

.edit-plan .add-allergen-btn {
    background: #09C274;
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 6px;
    cursor: pointer;
    border: none;
}

.edit-plan .add-allergen-btn:hover {
    background: #08a060;
}

.edit-plan .selected-tags {
    margin-top: 1rem;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.edit-plan .selected-tag {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    background: #e8f7f0;
    color: #09C274;
    border-radius: 999px;
    padding: 0.25rem 0.75rem;
}

.top-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 350px;  
    margin-bottom: 30px;
}

.top-wrapper-text {
    color: #FFFFFF;
    text-shadow: 0px 0px 1px #AAAAAA;
    max-width: 480px;
    width: 100%;
    text-align: center;
    background: #50ad41d1;
    padding: 20px;
    border-radius: 5px;
}

.top-wrapper-text i {
    font-size: 32px;
}

@media (max-width: 640px) {
    .edit-plan .custom-tag-section {
        flex-direction: column;
    }
    
    .edit-plan .form-group {
        width: 100%;
    }
    
    .edit-plan .add-allergen-btn {
        width: 100%;
    }
    
    .edit-plan .add-tag-btn {
        width: 100%;
    }
}


@media (min-width: 640px) {
    .creator-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 768px) {
    .footer-inner {
        flex-direction: row;
    }
    
    .header-right-mobile {
        display: none;
    }
    
    .header-right {
        display: flex;
    }
    
    .text-\[\#468933\] {
        display: block;
    }
    
    .creator {
        flex-direction: row;
    }
    
    .creator-left {
        width: 50%;
    }
    
    .creator-right {
        width: 50%;
    }
}

@media (min-width: 1024px) {
    .creator-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/*
element.style {
    padding: 8px 16px;
    border-style: none;
    font-size: 16px;
    font-weight: 400;
    border-radius: 8px 0px 0px 8px;
    width: 100%;
    margin: 0px;
    box-sizing: content-box;
    font-size-adjust: none;
}
*/

/* Plans */

.meal-plan-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  background: #fff;
  padding: 1rem;
  border-radius: 8px;
  max-width: 1280px;
  margin: 2rem auto;
}

/* === Header Layout === */
.meal-plan-header {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
@media (min-width: 1024px) {
    .meal-plan-header {
        flex-direction: row;
    }
    
    .meal-plan-image {
        max-width: 40%; 
    }
}

.meal-plan-image {
  position: relative;
  width: 100%;
}
.meal-plan-image img {
  width: 100%;
  height: 292px;
  object-fit: cover;
  border-radius: 24px;
}
.plan-info {
  position: absolute;
  bottom: 0px;
  left: 0;
  right: 0;
  background: #fff;
  padding: 1.5rem;
  border-radius: 16px;
  max-width: 400px;
  margin: 0 auto;
}

.plan-info h2 {
    font-size: 20px;
}

.plan-stats {
  display: flex;
  gap: 0.5rem;
}
.plan-stats .calories {
  background: #D9D6FF;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: bold;
}
.plan-stats .weekly {
  color: #666;
}

.meal-plan-details {
  flex: 1;
}

.meal-plan-details .buttons {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}   

.meal-plan-details .buttons button {
    background: #fff;
    line-height: 24px;
}

.details-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}
.details-header h2 {
  font-weight: bold;
  font-size: 1.125rem;
}
.details-header a {
  color: #666;
}

/* === Buttons === */
.btn {
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-weight: 600;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.btn-primary {
  border: 2px solid #09C274;
  color: #09C274;
}
.btn-primary:hover {
  background: #09C274 !important;
  color: #fff;
}
button, .btn {
    cursor: pointer;
}
.btn svg path {
    fill: currentColor; 
}
.btn-primary:hover svg {
  color: #fff !important;
}
.btn-disabled {
  border: 2px solid #ccc;
  color: #ccc;
  cursor: not-allowed;
}
.btn-order {
    background: #09C274;
    color: #fff;
    width: 100%;
    height: 48px;
    padding: 0.75rem;
    border-radius: 12px;
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 16px;
    font-weight: 500;
    border: none;
    box-sizing: border-box;
}

/* === About Cards === */
.about-card {
  border-radius: 12px;
  padding: 1.5rem;
}

.about-card.green { background: #4DE54A; }
.about-card.blue {
    background: #F2F6FB; 
    margin-top: 30px;
}
.about-card .about-header {
  display: flex;
  justify-content: space-between;
  font-weight: bold;
  color: #444;
}
.about-card p { color: #444; margin-top: 1rem; }

/* === Nutrition Cards === */
/*
.nutrition-cards {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
}
*/
.nutrition-cards {
    display: flex;
    gap: 1rem;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-around;
    width: 100%;
}

.nutrition-card {
  flex: 0 0 240px;
  height: 150px;
  border-radius: 12px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}
.nutrition-card .card-header { margin-bottom: 1rem; }
.nutrition-card .label { font-size: 0.75rem; color: #777; }
.nutrition-card .value { font-weight: bold; font-size: 0.875rem; }

.nutrition-card.calories { background: #09C274; color: #fff; }
.nutrition-card.carbs { background: #F2F6FB; }
.nutrition-card.protein { background: #4DE54A; }
.nutrition-card.fats { background: #D9D6FF; }

/* === Allergens & Items === */
.allergens .title {
  font-weight: bold;
  margin-bottom: 0.5rem;
}
.allergens .list {
  font-size: 0.875rem;
  margin-bottom: 1rem;
}
.allergens .note {
    color: #09C274;
    font-size: 0.875rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}
.items-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.item {
  padding: 0.5rem;
  border-radius: 6px;
  cursor: pointer;
}
.item:hover { background: #fff9e6; }



/*** Admin ***/
/* Admin Dashboard Wrapper */
.admin-dashboard {
  font-family: Arial, sans-serif;
  background: #f9fbfd;
  padding: 20px;
}

/* Tabs */
.admin-dashboard .tabs {
  display: flex;
  margin-bottom: 20px;
}

.admin-dashboard .tab {
  padding: 12px 20px;
  cursor: pointer;
  border: none;
  background: none;
  font-weight: bold;
  color: #555;
  transition: color 0.2s;
}

.admin-dashboard .tab.active {
  color: rgb(9 194 116);
  border-bottom: 3px solid rgb(9 194 116);
}

/* Section container */
.admin-dashboard .section {
  display: none;
}

.admin-dashboard .section.active {
  display: block;
}

/* Table styles */
.admin-dashboard table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  border-radius: 8px;
  overflow: hidden;
}

.admin-dashboard th, 
.admin-dashboard td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid #eee;
}

.admin-dashboard th {
  background: #f0f4f8;
  font-weight: bold;
  color: #444;
}

.admin-dashboard tr:hover {
  background: #f9f9ff;
}

/* Buttons */
.admin-dashboard .btn {
  padding: 6px 12px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  font-size: 14px;
}

.admin-dashboard .btn-publish {
  background: #28a745;
  color: white;
}

.admin-dashboard .btn-unpublish {
  background: #ffc107;
  color: black;
}

.admin-dashboard .btn-edit {
  background: #007bff;
  color: white;
}

.admin-dashboard .btn-delete {
  background: #dc3545;
  color: white;
}

/* Messages area */
.admin-dashboard .messages {
  display: flex;
  gap: 20px;
}

.admin-dashboard .messages .inbox,
.admin-dashboard .messages .sent {
  flex: 1;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  padding: 15px;
}

.admin-dashboard .messages h3 {
  margin-top: 0;
  font-size: 16px;
  border-bottom: 1px solid #eee;
  padding-bottom: 8px;
}

/* Creator header (title + add button) */
.admin-dashboard .creator-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.admin-dashboard .btn-add-creator {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 6px 12px;
  font-size: 14px;
  border-radius: 6px;
  border: 1px solid #16a34a; /* green border */
  color: #16a34a;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.admin-dashboard .btn-add-creator:hover {
  background: #f0fdf4; /* light green background on hover */
}

/* Actions buttons container */
.admin-dashboard .action-buttons {
  display: flex;
  gap: 8px; 
  flex-wrap: wrap; 
}

.admin-dashboard .action-buttons .btn {
  flex: 1; 
  min-width: 80px; 
  text-align: center;
}

/* Main container */
.recipe-wrapper {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0px;
    font-family: Arial, sans-serif;
    color: #333;
    box-sizing: border-box;
}

.recipe-view-top {
    display: flex;
    flex-wrap: wrap;
}

.recipe-view-top-l {
    flex: 0 0 40%;
    overflow: clip;
    border-radius: 16px;
    margin-bottom: 20px;
}

.recipe-view-top-l img {
    width: 100%;
}

.recipe-view-top-r {
    flex: 0 0 60%;
    padding-left: 12px;
    box-sizing: border-box;
}

.recipe-wrapper .recipe-view .tag-btn {
    padding: 5px 10px;
    border-radius: 20px;
    border: 1px solid #09c274;
    background-color: #09c274;
    font-size: 12px;
    cursor: pointer;
    color: #fff;
}

.recipe-view-ingredient-l {
    display: flex;
    align-items: center;
    gap: 8px;
}

.recipe-view-ingredient-l h4 {
    margin: 0px;
}

.recipe-view-ingredient-l p {
    margin: 0px;
}

.recipe-view-ingredient-r {
    display: flex;
    align-items: center;
    gap: 8px;
}

.recipe-view-ingredient {
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    background: aliceblue;
    padding: 8px 12px;
    box-sizing: border-box;
    border-radius: 6px;
    flex-wrap: wrap;
    gap: 8px;
}

.recipe-view-ingredients {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.recipe-view-instructions {
    background-color: #fff;
    border: 1px solid #ccc;
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
}

/* Headings */
.recipe-wrapper h1 {
    font-size: 2em;
    margin-bottom: 20px;
}

.recipe-wrapper h2 {
    font-size: 1.5em;
    margin-bottom: 15px;
}

/* Alerts */
.recipe-wrapper .alert {
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}
.recipe-wrapper .alert-error {
    background-color: #fdd;
    border: 1px solid #f99;
    color: #900;
}

/* Form wrapper */
.recipe-wrapper .recipe-form {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
}

/* Form header */
.recipe-wrapper .form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.recipe-wrapper .form-actions .btn-save {
    background-color: #28a745;
    color: #fff;
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}
.recipe-wrapper .form-actions .btn-save:hover {
    background-color: #218838;
}

/* Form body layout */
.recipe-wrapper .form-body {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

/* Sidebar (image upload) */
.recipe-wrapper .form-sidebar {
    width: 120px;
}
.recipe-wrapper .image-upload-box {
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 10px;
    padding: 10px;
    text-align: center;
}
.recipe-wrapper .image-preview {
    width: 95px;
    height: 95px;
    background-color: #eee;
    background-size: cover;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
    border-radius: 6px;
    font-size: 12px;
    color: #999;
}

/* Main form content */
.recipe-wrapper .form-main {
    flex: 1;
}
.recipe-wrapper .form-row {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}
.recipe-wrapper .input-text,
.recipe-wrapper .input-select,
.recipe-wrapper .input-number,
.recipe-wrapper .input-textarea {
    width: 100%;
    padding: 8px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 14px;
    box-sizing: border-box;
}
.recipe-wrapper .input-textarea.large {
    min-height: 150px;
    resize: vertical;
}

/* Form sections */
.recipe-wrapper .form-section {
    margin-bottom: 20px;
}
.recipe-wrapper .meal-types {
    display: flex;
    flex-wrap: wrap;
    row-gap: 10px;
    column-gap: 5px;
}

.recipe-wrapper .tag-btn {
    padding: 5px 10px;
    border-radius: 20px;
    border: 1px solid #ccc;
    background-color: #f0f0f0;
    font-size: 12px;
    cursor: pointer;
}

.meal-types input[type="checkbox"] {
    display: none;
}

/*
.recipe-wrapper .tag-btn:hover {
    background-color: #e0e0e0;
}
*/

.meal-types input[type="checkbox"]:checked + .tag-btn {
    background: rgb(22, 163, 74);
    border-color: rgb(22, 163, 74);
    color: #fff;
}

.meal-types label input[type="checkbox"]:checked + .tag-btn:hover {
    background: rgb(21, 128, 61);           
    border-color: rgb(21, 128, 61);
}

.meal-types .tag-btn {
    
}

/* Grid layout for macros */
.recipe-wrapper .grid-4 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}
.recipe-wrapper .grid-4 div {
    display: flex;
    flex-direction: column;
}
.recipe-wrapper .note {
    font-size: 12px;
    color: #666;
    margin-top: 4px;
}

/* Buttons inside form sections */
#ingredients {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 20px;
}


.recipe-wrapper .btn-add {
    padding: 6px 12px;
    border: none;
    background-color: #007bff;
    color: #fff;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
}
.recipe-wrapper .btn-add:hover {
    background-color: #0069d9;
}

/* Recipe view (read-only) */
.recipe-wrapper .recipe-view {
    background-color: #fff;
    border: 1px solid #ccc;
    padding: 15px;
    border-radius: 8px;
}

@media (max-width: 768px) {
    .recipe-view-top {
        flex-direction: column;
    }
    
    .recipe-view-top-r {
        padding-left: 0px;
    }
    
    .recipe-wrapper .form-body {
        flex-direction: column;
    }
    
    .recipe-wrapper .form-row {
        flex-direction: column;
    }
    
    .recipe-wrapper .grid-4 {
        grid-template-columns: repeat(1, 1fr);
    }
}


/* ===== Ingredients Section ===== */
.ingredients-section {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  font-family: sans-serif;
}

/* ===== Ingredient Card ===== */
#add-ingredients {
    margin-top: 20px;
}

.ingredient-card {
  background: #fff;
  border: 1px solid #e5e7eb; /* gray-200 */
  border-radius: 0.5rem;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* ===== Field Groups ===== */
.ingredient-fields,
.ingredient-measurements {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.ingredient-field,
.ingredient-measurement {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.ingredient-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: #4b5563; /* gray-600 */
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

/* ===== Inputs ===== */
.ingredient-input,
.ingredient-select {
  height: 2.25rem;
  border: 1px solid #d1d5db; /* gray-300 */
  border-radius: 0.375rem;
  padding: 0 0.75rem;
  font-size: 0.875rem;
  color: #111827; /* gray-900 */
  background: #fff;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.ingredient-input:focus,
.ingredient-select:focus {
  outline: none;
  border-color: #10b981; /* green-500 */
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.3);
}

.small-input {
  width: 5rem;
  box-sizing: border-box;
}

.ingredient-select {
  height: 2.5rem;
}

/* ===== Measurement Layout ===== */
.measurement-inputs {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

/* ===== Ingredients ======*/

.recipe-wrapper #ingredients {
    display: flex;
    flex-direction: unset;
    flex-wrap: wrap;
}

.recipe-wrapper #ingredients {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
    align-items: center;
}

.ingredient {
    box-sizing: border-box;
    max-width: 340px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    padding: 24px;
}

.ingredient h3 {
    margin: 0px;
}

.ingredient-edit {
  background: #10b981; /* green-500 */
  color: #fff;
  border: none;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  cursor: pointer;
  transition: background 0.2s;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.ingredient-edit:hover {
  background: #059669; /* green-600 */
}

.ingredient-delete {
  background: transparent;
  border: none;
  color: #ef4444; /* red-500 */
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}

.ingredient-delete:hover {
  color: #b91c1c; /* red-700 */
  background: rgba(239, 68, 68, 0.1);
}

@media (min-width: 640px) {
    .recipe-wrapper #ingredients {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 1024px) {
    .recipe-wrapper #ingredients {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

/* ===== Macros ===== */
.ingredient-macros {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
    .ingredient-fields, 
    .ingredient-measurements {
        grid-template-columns: 1fr 1fr;
    }
    
    .ingredient-macros {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 768px) {
    .ingredient-macros {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .ingredient-macros {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.macro-field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.macro-label {
  font-size: 0.75rem;
  color: #6b7280; /* gray-500 */
}

/* ===== Buttons ===== */
.ingredient-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}

.ingredient-remove {
  background: transparent;
  border: none;
  color: #ef4444; /* red-500 */
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.25rem 0.75rem;
  border-radius: 0.375rem;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}

.ingredient-remove:hover {
  color: #b91c1c; /* red-700 */
  background: rgba(239, 68, 68, 0.1);
}

.ingredient-save {
  background: #10b981; /* green-500 */
  color: #fff;
  border: none;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  cursor: pointer;
  transition: background 0.2s;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.ingredient-save:hover {
  background: #059669; /* green-600 */
}

/* Add Ingredient Button */
.ingredient-add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: #3b82f6; /* blue-500 */
  color: #fff;
  border: none;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  cursor: pointer;
  transition: background 0.2s;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.ingredient-add:hover {
  background: #2563eb; /* blue-600 */
}

/* ===== Tip Section ===== */
.ingredients-tip {
  font-size: 0.875rem;
  color: #4b5563; /* gray-600 */
}

.tip-title {
  font-weight: 600;
}

/* ===== Icons ===== */
.icon {
  width: 0.75rem;
  height: 0.75rem;
}

.info-icon .icon {
  color: #9ca3af; /* gray-400 */
  cursor: help;
}

