:root {
    --primary-color: #6a9146; /* avocado */
    --secondary-color: #BF372A; /* tomato */
    --quaternary-color:  #735070; /* red onion */
    --tertiary-color: #4861a8; /* blueberry */
    --off-white-color: #f4f4f4; /* garlic */
    --white-color: #F4F9FF;
    --text-color: #333;
    --light-text-color: #666;
    --boder-color: #d2d2d2;
    --body-background-color: var(--off-white-color);
    --font-family: Tahoma, sans-serif;
    --font-logo: Poppins, sans-serif;
    --font-input: Courier, serif;
    --alert-warning-color: var(--secondary-color);
    --alert-warning-background: var(--off-white-color);
    --alert-warning-border: var(--secondary-color);
    --alert-success-color: var(--quaternary-color);
    --alert-success-background: var(--off-white-color);
    --alert-success-border: var(--quaternary-color);
    --alert-chat-color: var(--tertiary-color);
    --alert-chat-background: var(--off-white-color);
    --alert-chat-border: var(--tertiary-color);
}

/* Base styles */
body {
    font-family: var(--font-family);
    margin: 30px;
    padding: 0;
    padding-left: 200px;
    background-color: var(--body-background-color);
}

.container {
    width: 80%;
    margin: auto;
    overflow: hidden;
}

.brand {
    display: flex;
    align-items: center;
}

.brand-logo {
    height: 70px;
    width: auto;
    margin: 0 5px;
}

.brand-name {
    font-family: var(--font-logo);
    font-size: 20px;
    font-weight: normal;
}

/* Header styles */
header {
    background: var(--primary-color);
    color: var(--white-color);
    padding-top: 10px;
    min-height: 50px;
    border-bottom: 3px solid var(--secondary-color);
    position: fixed;
    width: 100%;
    z-index: 10;
    margin-bottom: 5px;
}

header a {
    color: var(--white-color);
    text-decoration: none;
    text-transform: uppercase;
    font-size: 16px;
}

header li {
    float: left;
    display: inline;
    padding: 0 20px;
}

header nav {
    float: right;
    margin-top: 10px;
}

header .highlight, header .current a {
    color: var(--secondary-color);
    font-weight: bold;
}

header a:hover {
    color: #cccccc;
    font-weight: bold;
}

/* Typography */
h1 {
    font-size: 22px;
    line-height: 25px;
    font-weight: bold;
    color: var(--text-color);
    text-transform: uppercase;
}

h2 {
    font-size: 18px;
    line-height: 20px;
    margin-top: 10px;
    font-weight: bold;
    color: var(--text-color);
}

h3 {
    font-size: 14px;
    line-height: 16px;
    margin-top: 10px;
    font-weight: bold;
    color: var(--text-color);
}

p, .cuisine-container {
    font-size: 16px;
    line-height: 22px;
    margin-top: 10px;
    margin-bottom: 5px;
    color: var(--text-color);
    color: var(--light-text-color);
}

.footer-container {
    background-color: var(--off-white-color); 
    padding: 20px; 
    text-align: left; 
    margin-top: 30px; 
    border-top: 1px solid var(--light-text-color);
}


.footer-container p {
    font-size: 13px;
    margin-top: 5px;
}

.footer-links a {
    color: var(--primary-color);
    text-decoration: none;
    margin: 0 10px;
}

.footer-links a:hover {
    color: var(--tertiary-color);
    text-decoration: underline;
}


/* Button styles */
button, .secondary-button {
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 8px 16px;
    margin: 5px;
    border: none;
    cursor: pointer;
    text-align: center;
    display: inline-block;
    font-size: 16px;
    transition-duration: 0.4s;
    text-decoration: none;
    border-radius: 8px;
    text-transform: lowercase;
    height: 38px
}

button:hover {
    background-color: var(--secondary-color);
}

.secondary-button {
    background-color: var(--light-text-color);
    padding: 3px 8px;
    font-size: 13px;
    height: 20px;
}

.button-group {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    margin-bottom: 5px;
}

.big-button {
    background-color: var(--tertiary-color);
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    width: 400px;
    min-height: 70px;
    padding: 6px 16px;
    text-align: left;
    border-radius: 8px;
    overflow: hidden;
}

.big-button .big-button-name {
    font-size: 18px;
    font-weight: bold;
}

.big-button .big-button-description {
    font-size: 14px;
}

.big-button-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: start;
    max-width: 860px;
}


.feedback-container .box-textarea {
    margin-bottom: 0px;
}



/* List styles */
ul {
    list-style-type: none;
    margin: 0 0 10px 15px;
    padding: 0;
}

li {
    margin: 0;
    padding: 0;
    margin-bottom: 3px;
}

ul li p {
    margin: 0;
}

/* Form elements */
textarea {
    margin-top: 5px;
    margin-bottom: 5px;
}

.box-textarea, .box-textarea-big {
    font: var(--font-input);
    font-size: 16px;
    width: calc(1ch * 70);
    height: calc(1.1em * 4);
    max-width: 100%;
    border-radius: 8px;    
    padding: 5px 5px;
}

.box-textarea-big {
  height: calc(4.0em * 4)
}

.ingredient-line {
  display: flex;
  align-items: left;
  justify-content: flex-start;
  margin-bottom: 5px;
}


.input-group, .input-group-input {
    font: var(--font-input);
    display: flex;
    font-size: 16px;
    width: calc(1ch * 30);
    height: auto;
    margin-bottom: 3px;
    white-space: nowrap;
    border-radius: 5px;
    max-width: 80%;
    padding: 3px 5px;
    align-items: center;
}

.input-group-input, .input-group-name, .input-group-quantity, .input-group-unit {
    display: inline-block;
    margin-right: 5px
}

.input-group label {
    margin-right: 5px;
}

.input-group-name {
    max-width: 150px;
}

.input-group-quantity {
    max-width: 40px;
}

.input-group-unit {
    max-width: 90px;
}


/* Miscellaneous styles */
.elegant-line {
    border: 0;  /* Removes the default border of the hr element */
    height: 1px;  /* Adjust this to change the thickness of the line */
    background: linear-gradient(to right, 
                                var(--light-text-color) 25%, 
                                transparent 50%, 
                                transparent 100%);  /* Adjusted gradient effect */
}

.cuisine-container {
    display: flex;
    flex-wrap: wrap;
}

.cuisine-option {
    margin-right: 0.25em;
    margin-bottom: 0.5em;
    white-space: nowrap;
}

/* Style for good and bad picks */
.good-pick, .bad-pick {
    color: var(--light-text-color);
    font-style: italic;
    display: flex;
    align-items: center;
}

.good-pick img, .bad-pick img {
    margin-right: 10px;
}

/* Use visibility and opacity for transitions */
.overlay, .loader-container {
    visibility: hidden; /* Instead of display: none; */
    transition: visibility 0s linear;
}

/* Add a class to control visibility */
.visible {
    visibility: visible;
    opacity: 1;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.loader-container {
    display: flex;
    position: fixed;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    align-items: center;
    justify-content: center;
    z-index: 1001;
}

.loader {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  margin: auto; 
  width: 250px;
  height: 250px;
  background-size: contain;
}

.loader1, .loader2, .loader3, .loader4 {
  visibility: hidden; /* Start with all loaders hidden */
  animation: heartbeat 1.2s infinite;
}

@keyframes heartbeat {
    0% {transform: scale(1);}
    10% {transform: scale(1.1);}
    20% {transform: scale(1);}
    30% {transform: scale(1.1);}
    40% {transform: scale(1);}
    100% {transform: scale(1);}
}

.loader1 { background: url('/static/images/creating_results.svg'); 
          background-repeat: no-repeat;
          background-position: center center;
          background-size: contain; }
.loader2 { background: url('/static/images/based_on.svg'); 
          background-repeat: no-repeat;
          background-position: center center;
          background-size: contain; }
.loader3 { background: url('/static/images/your_tastes.svg'); 
          background-repeat: no-repeat;
          background-position: center center;
          background-size: contain; }
.loader4 { background: url('/static/images/hang_tight.svg');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: contain; }


.hidden {
    visibility: hidden;
}

.alert-warning, .alert-success, .alert-chat{
    padding: 10px;
    margin-bottom: 15px;
    border: 2px solid transparent;
    border-radius: 8px;
    width: calc(1ch * 70);
    max-width: 94%;
}

.alert-warning {
    color: var(--alert-warning-color);
    background-color: var(--alert-warning-background);
    border-color: var(--alert-warning-border);
}

.alert-success {
    color: var(--alert-success-color);
    background-color: var(--alert-success-background);
    border-color: var(--alert-success-border);
}

.alert-chat {
  color: var(--alert-chat-color);
  background-color: var(--alert-chat-background);
  border-color: var(--alert-chat-border);
}

.recipe-desc {
    margin-top: 0;
}

.desktop-menu ul, .mobile-menu .menu {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.desktop-menu ul li, .mobile-menu .menu li {
    margin-bottom: 0px;    /* Provide vertical spacing between items */
}

.desktop-menu ul li a, .mobile-menu .menu li a {
    display: block;
    color: var(--white-color);
    padding: 6px 16px;
    text-decoration: none;
    text-transform: uppercase;
}

/* Recipe image upload styles */
.images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.images-grid img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.image-container {
    border: 1px solid var(--border-color);
    padding: 10px;
    border-radius: 4px;
}

.image-recipe-link {
    display: block; 
    margin-bottom: 10px;
}

.image-status {
  font-size: 0.9em;
  margin-top: 4px;
}

.image-status.processing {
  color: #999;
}

.image-status.error {
  color: #c00;
}

.image-status.clarify {
  color: #d88a00;
}

.clarify-button {
  margin-top: 4px;
  font-size: 0.8em;
}

.form-container {
    margin: 20px 0;
    padding: 20px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
}

/* Modal styles for image expansion */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal.show {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    max-width: none;
    max-height: none;
    width: 70%;
    height: auto;
    object-fit: contain;
    cursor: grab;
    transition: transform 0.2s ease;
    user-select: none;
    -webkit-user-drag: none;
}

.modal-content.zoomed {
    max-width: none;
    max-height: none;
    width: 100%;
    height: auto;
}

.image-container img {
    cursor: pointer;
    transition: transform 0.2s;
}

.image-container img:hover {
    transform: scale(1.05);
}

/* picture upload look and feel */
.file-input-wrapper {
    margin-bottom: 15px;
}

.input-group {
    display: flex;
    align-items: center;
    gap: 10px;  /* Space between label and button */
}

.custom-file-label {
    display: inline-block;
    padding: 8px 16px;
    background-color: var(--primary-color);  /* Using your theme's primary color */
    color: var(--white-color);  /* Assuming you want white text */
    border: 1px solid var(--border-color);
    border-radius: 4px;
    cursor: pointer;
}

.custom-file-label:hover {
    background-color: var(--secondary-color);
}

.selected-files {
    margin: 10px 0;
    color: var(--text-color);
    font-style: italic;
}


.desktop-menu ul li a:hover, .mobile-menu .menu li a:hover, .mobile-menu .menu .current {
    background-color: var(--secondary-color);
}

.desktop-menu {
    display: block;
    position: fixed;
    left: 0;
    top: 0;
    padding-top: 30px;
    width: 200px;
    background-color: var(--primary-color);
    height: 100%;
    z-index: 1;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 50px;
    line-height: 50px;
    background-color: var(--primary-color);
    color: var(--white-color);
    z-index: 1;
}

.mobile-menu .menu-icon {
    cursor: pointer;
    position: absolute;
    left: 10px;
    top: 9px;
    color: var(--white-color);
}

.mobile-menu .menu {
    display: none;
    position: absolute;
    top: 50px;
    left: 0;
    width: 100%;
    background-color: var(--primary-color);
    z-index: 1;
}

.mobile-menu .menu.show {
    display: block;
}


/* Styles for draggable buttons */
.draggable {
    cursor: grab;
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 8px 16px;
    margin: 5px;
    border: 1px solid var(--boder-color);
    border-radius: 8px;
    display: inline-block;
    user-select: none;
    text-align: center;
    font-size: 16px;
    transition: background-color 0.3s;
}

.draggable:active {
    cursor: grabbing;
}

.draggable:hover {
    background-color: var(--secondary-color);
}

/* Styles for dropzone */
.droppable {
    border: 2px dashed #ccc;
    padding: 20px;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f9f9f9;
    transition: background-color 0.3s;
}

.droppable.dragover {
    background-color: var(--light-text-color);
    border-color: var(--secondary-color);
}

/* Responsive styles */
@media (max-width: 600px) {
    .mobile-menu .menu li a {
        padding: 0px 16px;
    }
    body {
        margin-left: 15px;
        margin-right: 15px;
        padding-top: 40px;
        padding-left: 0;
    }

    .box-textarea {
      max-width: 94%;
    }

    .brand-name {
        color: var(--text-color);
    }

    header {
        padding-top: 15px;
        min-height: 50px;
    }

    header a {
        font-size: 14px;
    }

    .brand-logo {
        height: 50px;
        margin-left: 50px;
    }

    h1 {
        font-size: 25px;
        line-height: 30px;
    }

    h2 {
        font-size: 20px;
        line-height: 18px;
    }

    p {
        font-size: 16px;
        line-height: 18px;
    }

    ul {
        margin-left: 0;
    }

    li {
      margin-bottom: 5px;
    }

    button {
        padding: 3px 5px;
        font-size: 14px;
        border-radius: 8px;
        margin: 3px;
        min-width: 80px;
    }

    .input-group {
        flex-direction: column;
        width: 100%;
        align-items: flex-start;
    }

    .input-group label {
        margin: 0px;  /* Adds space between sections. Adjust as needed. */
        width: 100%;
        display: block;
    }

   .input-group-input {
        max-width: 95%;
    }

    .big-button {
        padding: 5px 10px;
        width: auto;
        height: auto;
        flex-direction: column;
    }

    .big-button .big-button-name {
        font-size: 18px;
    }

    .big-button .big-button-description {
        font-size: 16px;
        font-weight: normal;
    }


    .alert-warning, .alert-success, .alert-chat {
        padding: 5px;
        margin-bottom: 10px;
    }

    .desktop-menu {
        display: none;
    }

    .mobile-menu {
        display: block;
    }
}
