/*This is used to import google font*/
@import url('https://fonts.googleapis.com/css2?family=Afacad+Flux:wght@100..1000&family=Fredoka:wght@300..700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&family=Luckiest+Guy&display=swap');

/*Added css stock*/
:root {
    --dark-brown: #48201a;
    --wood-color: #7e492e;
    --brown: #b25627;
    --light-brown: #da9747;
    --lightest-brown: #edb868;
    --beige: #ffd89c;
    --fredoka: "Fredoka", sans-serif;
}

/* Added body styling*/
body {
    overflow: auto;
    overflow-x: hidden;
    width: 100%;
    box-sizing: border-box;
    font-family: var(--fredoka);
}

.gifmodal {
    background-color: transparent; 
    border: none;
}

.loadBonbonGif {
    width: 270px; height: 200px;
    padding-left: 50px;
}

.loadDots {
    width: 180px; height: 100px;
}

.modal-backdrop {
    background-color: black !important;
}

#gifModal-backdrop, .gifmodal-backdrop{
    background-color: black !important;
    opacity: 1 !important;
}

@media (max-width: 761px) and (max-height: 658px){
    .loadBonbonGif {
        width: 230px; height: 180px;
        padding-left: 30px;
    }

    .loadDots {
        width: 160px; height: 80px;
    }
}

.nav-logo {
    height: 50px;
    width: 179px;
    margin-left: 30px;
}

.custom-navbar-link {
    color: var(--dark-brown) !important;
    font-size: 1.25rem !important; 
    font-weight: bold !important;
    text-decoration: none !important; 
}

.custom-navbar-link:hover {
    color: var(--brown) !important; 
}

.active {
    color: var(--brown); 
}

.dropdown-menu {
    background-color: var(--dark-brown);
    min-width: 120px !important;
}

.dropdown-item {
    color: var(--light-brown);
    font-size: 1rem ; 
    text-align: start;
}

.dropdown-item:hover {
    background-color: var(--lightest-brown);
    color:var(--dark-brown);
}

#user-menu, #edit-menu, #logout-menu, #owner-menu, #staff-menu, #customer-menu {
    display: none;
}

#user-menu li p {
    padding-left: 16px;
    color: var(--light-brown);
    font-weight: 500;
}

.hero {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 482px;
    background-color: var(--lightest-brown);
    width: 100%;
}

.break-spacer {
    height: 72px; /* Adjust spacing as needed */
}

.hero-text {
    justify-content: center;
}

.hero-img {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-right: 60px;
} 

.hero-img img {
    max-width: 100%;
    height: auto;
    object-fit: contain; /* Ensures the image maintains its aspect ratio */
}

.hero h1 {
    font-family: var(--fredoka);
    font-weight: bold;
    color: var(--dark-brown);
    font-size: 70px; /* Resize the font size with viewport width */
    margin: 0;
}

.subtext {
    font-family: var(--fredoka);
    font-weight: normal;
    color: var(--dark-brown);
    font-size: 35px;
}

.subtext1 {
    font-style: italic;
    font-size: 20px;
}

.hero-icon {
    margin-right: 15px;
}

.hero-icon:hover, .hero-last:hover {
    fill: var(--wood-color);
}

.buynow {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.buynow a {
    background-color: var(--dark-brown);
    height: 40px;
    border-radius: 20px;
}

.buynow button {
    color: var(--lightest-brown);
    font-family: var(--fredoka);
    font-size: 20px;
    align-items: start;
    font-weight: 600;
    bottom: 0;
}

.buynow a:hover {
    background-color: var(--brown);
}

.buynow button:hover {
    color: var(--dark-brown);
}

.promotion {
    background-color: var(--wood-color);
    height: 90px;
    color: var(--lightest-brown);
}

.promotion h1 a {
    color: var(--lightest-brown);
    text-decoration: none;
    font-style: italic;
    font-weight: bold;
}

.shadow {
    background-color: var(--light-brown) !important; 
    width: 260px; 
    height: 240px; 
    top: 20px; 
    border-radius: 30px;
}

.who-img {
    position: relative; 
    border-radius: 30px;
    width: 280px; 
    height: 240px; 
}

.who-head {
    font-family: var(--fredoka);
    color: var(--dark-brown);
    font-weight: bold;
    font-size: 30px;
}

.who-desc {
    font-size: 20px;
    color: var(--dark-brown);
    font-family: var(--fredoka);
}

.header h1,
.heading h1 {
    font-size: 10vh;
    font-family: var(--fredoka);
    font-weight: bold;
    color: var(--dark-brown);
}

.header h2 {
    font-size: 6vh;
    font-family: var(--fredoka);
    font-weight: bold;
    color: var(--dark-brown);
}

.line {
    height: 4px; 
    background-color: 
    var(--dark-brown); 
    opacity: 1; 
    margin-left: auto; 
    margin-right: auto;
}

.bestseller {
    background-color: var(--lightest-brown);
    width: 100%;
}

.best-img {
    width: 287px;
    height: 250px;
}

.best-desc {
    font-family: var(--fredoka);
    color: var(--dark-brown);
}

.checkout-btn {
    display: flex;
    justify-content: center;
}

.best-btn {
    background-color: var(--dark-brown);
    color: #fff;
    font-size: 20px;
    font-family: var(--fredoka);
    border-radius: 30px;
    font-weight: 500;
}

.branches {
    width: 100vw;
}

.carousel-item img {
    height: 500px;
    width: 1000px;
}

.carousel-control-prev-icon, .carousel-control-next-icon {
    filter: invert(1);
}

.carousel-caption {
    background-color: rgba(0, 0, 0, 0.6);
    padding: 15px;
    border-radius: 8px;
    color: #fff;
    display: block;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: var(--light-brown) !important;  /* Set your desired color */
    filter: none !important;  /* Remove the inversion effect */
}

.carousel-control-prev:hover .carousel-control-prev-icon,
.carousel-control-next:hover .carousel-control-next-icon {
    background-color: var(--dark-brown) !important; /* Hover color */
}

/*TESTIMONIALS*/
.testimonials {
    height: auto;
    background-color: var(--lightest-brown);
    color:var(--dark-brown);
    margin: 0 auto 0 auto;
    display: flex;
    justify-content: center;
    text-align: center;
    padding: 0; border: 0;
}

.wrapper {
    width: 1000px;
    color: #fff;
    background-color: var(--dark-brown);
    margin: 0 auto 0 auto; padding: 0; border: 0;
}

.testimonial-image img {
    width: 200px;
    height: 200px;
    margin-left: 20px;
}

.testimonial-image2 img {
    width: 200px;
    height: 200px;
    margin-right: 20px;
}

.quote, .name {
    font-size: 20px;
    font-family: var(--fredoka);
    margin: 0 20px 0 20px;
}

#galleryy {
    display: flex; /* Use flexbox to center-align the gallery */
    justify-content: center;
    align-items: center;
    padding: 2rem; /* Adjust padding for responsiveness */
}

.gallery {
    display: grid;
    grid-template-columns: repeat(6, 1fr); /* Default: 6 images per row */
    gap: 1.5rem; 
}

.gallery-item {
    overflow: hidden;
}

.border {
    border: 0.7rem solid white;
}

.gallery-item img {
    display: block;
    width: 100%; height: 100%;
    object-fit: cover; 
    transition: all 0.4s;
    opacity: 75%;
}

.gallery-item img:hover {
    transform: scale(1.1);
    opacity: 100%;
}

.contact-page {
    background-color: var(--light-brown);
}

.contact-page .col {
    padding: 20px;
}

/* SIGNUP & LOGIN*/
.account-page, .division {
    height: 100%;
    margin: 0;
}
.division {
    display: flex;
    transition: transform 0.6s ease-in-out;
}
.sign-up-right {
    transform: translateX(100%);
    transition: transform 0.6s ease-in-out;
    background-color: var(--light-brown);
}
.left {
    transform: translateX(-100%);
    transition: transform 0.6s ease-in-out;
}
.sign-up-right.show {
    transform: translateX(0); /* Move the panel into view */
}
.left.show {
    transform: translateX(0); /* Move the panel into view */
}
.sign-up-right.slide-out {
    transform: translateX(100%); /* Move the panel off the screen to the right */
}
.left.slide-out {
    transform: translateX(-100%); /* Move the panel off the screen to the right */
}
.right {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box; /* Include padding in height calculation */
    font-family:'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif
}
/* Title and Subtitle */
.title {
    font-size: 48px; /* Adjust as needed */
    margin-bottom: 16px; /* Space below title */
    text-align: center; /* Center-align text */
}
.subtitle {
    font-size: 20px; /* Adjust as needed */
    margin-bottom: 15px; /* Space below subtitle */
    text-align: center; /* Center-align text */
}
/* Forgot Password */
.forgotpass {
    text-align: right;
    margin-bottom: 10px; /* Space between link and form */
}
.forgotpass a {
    color: inherit; /* Use current text color */
    text-decoration: none; /* Remove underline */
    font-style: italic;
}
.forgotpass a:hover {
    text-decoration: underline; /* Optional: add underline on hover */
}
.redirect {
    text-align: center;
    margin-bottom: 10px; /* Space between link and form */
}
.redirect a {
    color: inherit; /* Use current text color */
    text-decoration: none; /* Remove underline */
    font-style: italic;
}
.redirect a:hover {
    text-decoration: underline; /* Optional: add underline on hover */
}
/* Form Styling */
.form-table {
    width: 100%;
}
.intro {
    flex-direction: column;
}
.left, .sign-up-right {
    background-color: var(--light-brown);
    display: flex;
    justify-content: center;
    align-items: center;
}
.intro-img img {
    width: 400px;
    height: 350px;
}
.login .intro-img img {
    margin-right: 0px;
}
.signup .intro-img img {
    margin-left: 120px;
}
.signup .intro-title img {
    margin-left: 130px;
}
.intro-title img {
    width: 300px;
    height: 70px;
}
.name-row {
    display: flex;
    flex-direction: row;
    gap: 10px; 
}
.first-name {
    flex: 6; 
}
.last-name {
    flex: 4; 
}

/*BROWSE*/ 

.browse {
    display: flex;
    flex-direction: column;
    justify-content: center ;
    text-align: center;
}

.upper {
    display: flex;
    justify-content: center;
    margin-top: 80px;
    /*position: relative;*/
}

.browse .p5 {
    padding: 3rem;
}

.browse .heading {
    display: flex;

    margin-top: 10px;
   
}

.browse .heading h1 {
    font-size: 4vh;
    font-family: var(--fredoka);
    font-weight: bold;
    color: var(--dark-brown);
}

.heading img {
    height: 100px;
}

.heading h1 {
    align-self: center;
}

.menu {
    display: flex;
    flex-direction: column;
    height: 200vh;
    background-color: var(--wood-color);
    margin-top: 100px;
    border-radius: 40px;
    font-family: "Luckiest Guy", cursive;
    color: white;
    padding: 30px;
}

.row1 {
    /*position: absolute;*/
    margin-top: 20px;
    display: flex;
    margin-left: 30px;
    top: 15px;
    right: 300px;

}

.browse .row {
    margin-top: 30px;
}

.col1 img {
    height: 30px;
}

.col2 {
    margin-top: 10px;
    font-size: 0.8em;
}

.col2 img {
    height: 20px;
}

.col2 p {
    align-self: center;
    margin: 0;
}

/* === Footer Styling === */
.small-footer {
    display: flex;
    background-color: var(--dark-brown);
    color: white;
    margin: 0;
    padding-top: 12px;
    align-items: center;
    justify-content: center;
}

.col1 .btn {
    background-color: #48201a;
}

.col .dropdown-item {
    width: 1000px;
}

.menu-img-circle {
    position: absolute;
    top: -50px; 
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 200px;
    overflow: hidden;
    border-radius: 100px;
    border: 4px #fff solid;
}

  
.menu-box {
    border-radius: 100px; 
    width: 50vw;
    background-color: var(--dark-brown);
    color: white;
    font-family: var(--fredoka);
    font-size: 1.2rem;
    margin-bottom: 100px;
    
}

.menu-box h2 {
    margin-top: 85px;
    
}

.menu-items {
    display: flex;
    flex-direction: column;
    margin-top: 20px;
}


.accordion {
    background-color: transparent;

}

.accordion .sizes {
    margin: 8px;
}

.menu-items .accordion .accordion-header {
    background-color: var(--wood-color);
    color: var(--beige);
    font-size: 18px;
    padding: 10px 15px;
    text-align: left;
    width: 100%;
    border: none;
    outline: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.toggle-icon {
    font-size: 18px;
    transition: transform 0.3s ease-in-out;
}

.accordion .flavors {
    display: none;
    padding: 10px 15px;
    background-color: var(--beige);
    color: var(--wood-color);
    animation: fadeIn 0.3s ease-in-out;
    min-height: 140px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.accordion .dorayaki {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    margin: -10px -15px;
}

.dorayaki p {
    margin-bottom: 0;

}

.cart-btn {
    background: none;
    border: none;
    cursor: pointer;
    line-height: 18px;
}

.flavor:hover {
    background-color: #fbcd88;
}

.flavor-none {
    background-color: var(--beige); 
    color: var(--dark-brown); 
    display: block; 
    height: 60px;
}

@media (max-width:852px) {
    .flavor-none { 
        height: 80px;
    }
}

.menu-items .right-side {
    display: flex;
    gap: 20px;
}

.menu-items .item{
    display: flex;
    justify-content: space-between;
    background-color: var(--wood-color);
    margin-bottom: 8px;
    padding: 5px 15px;
    font-size: 18px;
    align-items: center;
}

.menu-items .item:hover {
    background-color: #7c3c1c;
}

.cart-btn svg:hover {
    fill: #b25627;
}

.menu-items .item p {
    margin: 0;
    line-height: 2.2;
}

.browse-show {
    display: none;
}

.browse-hide {
    display: block;
}

.footer-show {
    display: none;
}

.footer-fixed {
    display: block;
}

/*
.accordion .sizes.active .flavors {
    min-height: 190px;
    padding: 10px;
    
}

.label.active {
    color: var(--lightest-brown); 
}*/

.dorayaki.flavor {
    display:flex;
    justify-content: space-between;
    
}

.menu-img-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bi-cart-plus-fill {
    cursor: pointer;
}

.order-table .table {
    width: 80vw;
}


/*STAFF-DASHBOARD*/ 
.col1, 
.col2{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}
/* Align the entire main container */
.main-container {
    margin: 0 auto;
    padding: 0 30px;
}

/* Section Headers */
.mt-4 h2 {
    font-size: 2.2rem; /* Larger size for h2 */
    color: var(--brown);
    font-weight: bold;
    margin-left: 0;
    text-align: left;
}
.mt-4 h3 {
    font-size: 1.8rem; /* Smaller size for h3 */
    color: var(--brown);
    font-weight: bold;
    margin-left: 0;
    text-align: left;
}

/* === Dropdown Styling === */
.branch-btn {
    font-size: 1.2rem;
    font-weight: bold;
    background-color: var(--lightest-brown);
    color: var(--dark-brown);
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    transition: all 0.3s ease-in-out;
}
.branch-btn:hover {
    background-color: var(--brown);
    color: white;
}
.branch-alert {
    font-size: 1.3rem;
    color: #ffc107; /* Bootstrap's yellow color */
    margin-top: 10px;
    text-align: center;
}
/* === Stock Update Section === */
.stock-update {
    font-size: 4rem; /* Adjust size as needed */
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}
.stock-update .stock-list {
    list-style-type: disc;
    margin: 0;
}

/* Ensure the modal is fully centered on the screen */

#loadingModal .modal-dialog {
    display: flex;                  /* Use flex to center */
    justify-content: center;        /* Center horizontally */
    align-items: center;            /* Center vertically */
    min-height: 100vh;               /* Take up the full height of the screen */
    min-width: 100vw;               /* Take up the full height of the screen */
    margin: 0;                       /* Remove default margin */
}

/* Optional: Adjust the size of the modal content */
#loadingModal .modal-content {
    max-width: 500px;                /* Limit the width of the modal */
    width: 100%;                     /* Full width for the content */
    margin: 0;                       /* Ensure no margin around the content */
}

@media (max-width: 650px) {
    #loadingModal .modal-content {
        max-width: 350px;                /* Limit the width of the modal */
        width: 100%;                     /* Full width for the content */
        margin: 0;                       /* Ensure no margin around the content */
    }    
}

#passwordModal, #confirmationModal {
    overflow: hidden;
}

#passwordModal .modal-dialog, #confirmationModal .modal-dialog {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh; /* Ensure the modal is vertically centered */
    
}

#clearSearchBtn {
    margin-top: 10px;
    display: inline-block;
    cursor: pointer;
}

#user-table tbody tr {
    transition: opacity 0.3s ease-in-out;
}


/* Optional: Adjust the modal size if needed */
#passwordModal .modal-content, #confirmationModal .modal-content {
    width: 100%; /* Make modal content take the full width */
    max-width: 500px; /* Set a max width to avoid it becoming too wide */
    margin: 0 auto; /* Center the modal horizontally */
}
 


/* USER DETAILS */
.flatten {
    display: flex;
}

#allow-edit, #email-edit, #password-edit, #admin-password-edit {
    background-color: green !important;
}

#allow-edit:hover, #email-edit:hover, #password-edit:hover, #admin-password-edit:hover {
    background-color: rgb(130, 175, 40) !important;
}

#submit-edit, #email-submit, #password-submit, #passcode-submit {
    background-color: rgb(0, 2, 128) !important;
}

#submit-edit:hover, #email-submit:hover, #password-submit:hover, #passcode-submit:hover {
    background-color: rgb(42, 101, 124) !important;
}

#cancel-edit, #email-cancel, #password-cancel, #passcode-cancel, #account-delete {
    background-color: maroon !important;
}

#cancel-edit:hover, #email-cancel:hover, #password-cancel:hover, #passcode-cancel:hover, #account-delete:hover {
    background-color: rgb(153, 69, 69) !important;
}

.button-pers {
    padding-left: 20px;
    gap: 13px;
}

.pers-info {
    background-color: #5C2918; 
    font-family: var(--fredoka); 
    color: white; border-radius: 10px; 
    border: none;
}

.emp {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

@media (max-width: 767px) {
    .emp {
        margin-top: 50px;
    }

    .flatten {
        display: block;
        text-align: center;
    }

    .button-pers {
        justify-content: center;
    }

    .login-credential {
         display: block;
    }
}

.email-container {
    display: flex;
    align-items: center;
    width: 100%;
}

.email-input-wrapper {
    flex-grow: 1; /* Allows input field to take remaining space */
    position: relative;
    margin-right: 10px; /* Space between input and buttons */
}

.email-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
}

.email-input {
    width: 100%;
    padding-left: 40px; /* Space for icon */
    border-radius: 20px;
    border: 2px solid var(--dark-brown);
}

.email-buttons {
    display: flex;
    gap: 5px; /* Space between buttons */
}

.login-credential {
    display: flex;
    gap: 15px;
}

@media (max-width: 767px) {
    .login-credential {
         display: block;
    }
}

.parent input {
    width: 200px;
}

/* Accordion Section */
.pending-orders,
.finished-orders {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}
.accordion-item {
    border: none;
    margin-bottom: 10px;
}
.accordion-header {
    font-size: 1.2rem;
    font-weight: normal;
    color: var(--dark-brown);
}
.accordion-button {
    background-color: var(--brown);
    color: white;
    font-size: 1.1rem;
    padding: 10px 20px;
}
.accordion-button:not(.collapsed) {
    background-color: var(--lightest-brown);
    color: var(--dark-brown);
}
.accordion-body {
    background-color: var(--wood-color);
    color: whitesmoke;
    font-size: 1rem;
    padding: 15px;
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
}
.accordion-body p {
    margin: 0;
}
/* Buttons in Accordion */
.accordion-body .btn-success {
    align-self: flex-end;
    margin-top: 10px;
    background-color: #28a745;
    color: white;
    font-size: 1rem;
    font-weight: bold;
    padding: 10px 20px;
    border-radius: 50px;
    border: none;
    transition: all 0.3s ease-in-out;
}
.accordion-body .btn-success:hover {
    background-color: #218838;
    color: white;
}
/* Spacing Adjustments */
.mt-4 {
    margin-top: 1.5rem !important;
}
.mb-4 {
    margin-bottom: 1.5rem !important;
}
.ms-4 {
    margin-left: 1.5rem !important;
}
.stock-update h3 {
    margin-left: 20px;
}


/*added*/
/* Stock Update Title */
.stock-update h3 {
    text-align: center;
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--brown);
    margin: 20px 0; /* Adds space above and below */
}

/* Stock List */
.stock-list {
    list-style-type: none; /* Removes default bullet points */
    padding: 0;
    margin: 0 auto;
    max-width: 90vw; /* Constrains the width */
    display: flex;
    flex-direction: column;
    gap: 15px; /* Adds space between items */
    
}


/* Individual List Item */
.stock-list li {
    display: flex;
    justify-content: space-between; /* Aligns name and buttons on opposite sides */
    align-items: center;
    padding: 15px;
    background-color: #edb868;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    flex-wrap: wrap; /* Allows items to wrap on smaller screens */
    font-size: 1.2rem;
    font-weight: normal;
    margin-bottom: 10px;
}

/* Product Name */
.stock-list li span {
    font-size: 1.2rem;
    font-weight: bold;
}

/* Buttons Container */
.dash-buttons {
    display: flex;
    gap: 50px; /* Adds space between buttons */
}

/* Button Styling */
.dash-buttons .btn {
    padding: 10px 15px;
    font-size: 1rem;
    font-weight: bold;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
}
.btn-success {
    background-color: #28a745;
    color: white;
}
.btn-success:hover {
    background-color: #218838;
}
.btn-danger {
    background-color: #dc3545;
    color: white;
}
.btn-danger:hover {
    background-color: #c82333;
}

.staff-dashboard,
.manager-dashboard,
.customer-dashboard {
    padding: 85px 30px;
    max-width: 1000px;
    margin: 0px auto;
    
}

/*CUSTOMER*/
textarea.form-control {
    border: 2px solid #cc7722;
    border-radius: 5px;
    padding: 10px;
    font-size: 1rem;
    color: #48201a;
    resize: none; /* Prevent resizing */
    width: 100%; /* Full width */
}

textarea.form-control:focus {
    outline: none;
    border-color: #48201a;
    box-shadow: 0 0 5px rgba(72, 32, 26, 0.5);
}

.accordion-body p {
    margin: 0; /* Remove unnecessary margins around paragraphs */
}
.dashboard-header {
    margin-top: 100px; /* Adjust space between navbar and heading */
    margin-bottom: 30px; /* Space below the heading */
    text-align: center;
}

.dashboard-header h1 {
    font-size: 4.3rem; /* Adjust font size as needed */
    font-family: var(--fredoka); /* Use your custom font */
    font-weight: bold;
    color: var(--dark-brown);
}

#order {
    min-height: 684px;
}

/* CHECKOUT FORM */
#checkout-form {
    display: none;
    padding: 20px 70px;
    color: var(--dark-brown);
    margin-top: 35px;
}


#checkout-form .line {
    width: 20%;
}

.checkout-container {
    margin-top: 35px;
    display: flex;
    gap: 50px;
    font-family: var(--fredoka);
}

/*
.checkout-wrapper {
    display: flex;
    flex-direction: column;
}
*/

.checkout {
    background-color: #f2f2f2;
    padding: 15px 20px 15px 20px;
    border: 1px solid lightgrey;
    border-radius: 3px;
    
}


.cart-part {
    background-color: #f2f2f2;
    padding: 15px 20px 15px 20px;
    border: 1px solid lightgrey;
    border-radius: 3px;
}

.cart-part {
    flex: 25%;
}

.container h4 {
    display: flex;
    justify-content: space-between;
}

.checkout-header {
    font-family: var(--fredoka);
}

.col-200 {
    display: flex;
    flex-direction: column;
    gap: 15px; 
}

.checkout {
    width: 70%;
}

.col-checkout {
    width: 100%;
    display: flex;
    gap: 15px;
}

.col-c1 {
    width: 50%;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.checkout-header-container {
    position: relative;
    display: flex;
    justify-content: center; /* Centers the heading */
    align-items: center;
    margin: 20px 0;
    
}

.btn-back {
    position: absolute; /* Positions the back button without affecting heading */
    left: 20px; /* Adjust the distance from the left */
    font-family: var(--fredoka);
    background-color: #c71e1e;
    color: white;
    border: none;
    padding: 8px 15px;
    cursor: pointer;
    border-radius: 5px;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px; /* Space between icon and text */
    transition: background-color 0.3s ease;
}

.btn-back:hover {
    background-color: darkred;
}

.checkout-header {
    font-size: 6vh;
    font-weight: bold;
    text-align: center;
}

#checkout-form .line {
    width: 20%;
    height: 4px;
    background-color: var(--dark-brown);
    margin: 5px auto; /* Centers the line */
}


.btn-back.smaller {
    display: none;
}


.btn-back.bigger {
    display: block;
}
  
/* Coupon Section */

.coupon-section {
    margin-top: 20px;
}

.coupon-wrap {
    display: flex;
    width: 100%;
}

.coupon-section h4 {
    font-size: 18px;
    margin-bottom: 10px;
}
  
.coupon-section input {
    width: 70%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
}
  
.coupon-section button {
    padding: 8px 12px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
}
  
.coupon-section button:hover {
    background-color: #45a049;
}

.btn-checkout {
    background-color: #4CAF50; 
    color: white; 
    padding: 10px 20px; 
    border: none; 
    border-radius: 5px; 
    cursor: pointer; 
    font-size: 16px; 
    display: flex; 
    align-items: center;
    gap: 10px;
    margin-top: 30px;
}
  
.btn-checkout:hover {
    background-color: #45a049; 
}

.cart-part span.price {
    float: right;
    color: grey;
}

.cart-part .price {
    font-size: 20px;
}


/* Owner Dashboard Styles */
.owner-dashboard-container {
    margin: 0px auto;
    margin-top: 80px;
    max-width: 1200px;
    font-family: var(--fredoka);
    text-align: left; /* Align all text to the left */
    padding: 0px 50px;
}

.owner-dashboard-title {
    font-size: 4rem;
    font-weight: bold;
    color: var(--dark-brown);
    margin-bottom: 10px;
    text-align: left; /* Align to left */
    font-family: 'Fredoka', sans-serif; /* Ensure correct font */
}

.owner-dashboard-line {
    height: 5px; /* Make the line thicker */
    background-color: #4B2008; /* Dark brown color */
    width: 100%; /* Match the width of the table */
    margin: 10px 0 20px; /* Adjust spacing as needed */
    border: none; /* Ensure no borders */
}

.owner-dashboard-section-title {
    font-size: 1.8rem;
    font-weight: bold;
    color: #DA9747;
    margin-bottom: 20px;
    text-align: left; /* Align to left */
}
.owner-dashboard-dropdown {
    background-color: var(--brown);
    color: white;
    font-size: 1rem;
    font-weight: bold;
    border: none;
    padding: 10px 20px; /* Controls padding inside the dropdown */
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-left: 10px; /* Adds spacing between dropdowns */

    appearance: none;
    -webkit-appearance: none; 

    /* Arrow adjustments */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white' width='24px' height='24px'%3E%3Cpath d='M7.41 8.42L12 13l4.59-4.58L18 10l-6 6-6-6z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: calc(100% - 5px) center; 
    background-size: 16px; 
}

.owner-dashboard-dropdown:hover {
    background-color: var(--brown);
    color: white;
}

.owner-dashboard-table {
    margin: 20px auto;
    width: 100%;
    overflow-x: auto;
}

.owner-dashboard-table table {
    width: 100%;
    border-collapse: collapse;
}

.owner-dashboard-table th, 
.owner-dashboard-table td {
    border: 2px solid var(--dark-brown);
    text-align: center;
    padding: 10px;
    font-size: 1rem;
    color: var(--dark-brown);
}

.owner-dashboard-table th {
    background-color: #CB7208; /* Updated Table Header Color */
    color: white;
    font-weight: bold;
}

.owner-dashboard-caption {
    font-size: 0.9rem;
    font-style: italic;
    color: var(--dark-brown);
    margin-top: 10px;
    text-align: left; /* Align caption text to left */
}

/* Sales Illustration Section */
.sales-illustration-container {
    margin: 50px auto;
    max-width: 900px;
    font-family: var(--fredoka);
    text-align: left; /* Align all text to the left */
}

.sales-illustration-title {
    font-size: 1.8rem;
    font-weight: bold;
    color: #DA9747;
    margin-top: -40px;
    margin-bottom: 10px;
    text-align: left; 
}

.sales-illustration-line {
    height: 5px; 
    background-color: #4B2008; 
    width: 100%; 
    margin: 10px 0 20px; 
    border: none; 
}

.sales-illustration-image {
    display: flex; 
    justify-content: center; 
    align-items: center; 
    margin: 20px auto; 
}

/* Sales Illustration Image */
.sales-illustration-image img {
    width: 80%; 
    max-width: 1000px; 
    border: 2px solid var(--dark-brown); 
    border-radius: 8px; 
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2); 
}

.sales-illustration-caption {
    font-size: 0.9rem;
    font-style: italic;
    color: var(--dark-brown);
    margin-top: 10px;
    text-align: left; 
}

/* Staff Management Section */
.staff-management-container, 
.user-management-container,
.coupons-management-container  {
    margin: 50px auto;
    max-width: 1200px;
    font-family: var(--fredoka);
    text-align: left; 
}

.dashboard-line {
    height: 5px; 
    background-color: #4B2008; 
    width: 100%; 
    margin: 10px 0 20px; 
    border: none; 
}

.header-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.header-row input {
    width: 200px;
    padding: 8px;
    border-radius: 5px;
    border: 1px solid var(--brown);
    font-size: 1rem;
}

.header-row button, .addEmployee {
    padding: 8px 15px;
    background-color: var(--brown);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
}

.header-row button:hover {
    background-color: #A65A06;
}

.staff-management-title,
.user-management-title,
.coupons-management-title {
    font-size: 1.8rem;
    font-weight: bold;
    color: #DA9747;
    margin-bottom: 20px;
    text-align: left; 
}

 /* Table styling */
 .staff-management-table,
 .user-management-table,
 .coupons-management-table,
 .sales-management-table {
    width: 100%;
    margin: 20px auto;
    border-collapse: collapse;
    
    font-size: 1rem;
}

/* Header row styling */
.staff-management-table th,
.user-management-table th,
.coupons-management-table th,
.sales-management-table th {
    background-color: var(--brown);
    color: white;
    padding: 10px;
    border: 1px solid var(--dark-brown);
    font-weight: bold;
    text-transform: uppercase;
}

/* Body row styling */
.staff-management-table td,
.user-management-table td,
.coupons-management-table td,
.sales-management-table td {
    padding: 10px;
    border: 1px solid var(--dark-brown);
    color: #333;
}

/* Alternate row colors */
.staff-management-table tbody tr:nth-child(even) {
    background-color: #f9f3e8;
}

.user-management-table tbody tr:nth-child(even) {
    background-color: #f9f3e8;
}

.sales-management-table tbody tr:nth-child(even) {
    background-color: #f9f3e8;
}

.coupons-management-table tbody tr:nth-child(even) {
    background-color: #f9f3e8;
}

.staff-management-table tbody tr:nth-child(odd) {
    background-color: #ffffff;
}

.user-management-table tbody tr:nth-child(odd) {
    background-color: #ffffff;
}

.sales-management-table tbody tr:nth-child(odd) {
    background-color: #ffffff;
}

.coupons-management-table tbody tr:nth-child(odd) {
    background-color: #ffffff;
}

/* Action buttons */
.action-btn {
    padding: 5px 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    margin-right: 5px;
    transition: background-color 0.3s;
}

.action-btn.detail {
    background-color: rgba(8, 8, 253, 0.863);
    color: white;
}

.action-btn.detail:hover {
    background-color: #3941af;
}

.action-btn.edit,  .action-btn.editt{
    background-color: #28a745;
    color: white;
}

.action-btn.edit:hover {
    background-color: #218838;
}

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

.action-btn.delete:hover {
    background-color: #c82333;
}

.change-status-btns {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

/* Modal Styling */
.addEmployee-modal, .edit-modal,
.dashboard-modals {
    display: none;
    position: fixed;
    margin: 4% auto;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    overflow: hidden;
    
}

.edit-modal-content, .addEmployee-content,
.dashboard-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 700px;
    border-radius: 10px;
    padding: 30px;
    overflow-y: auto;
    max-height: 550px;
}

.addEmployee-content h3, .edit-modal-content h3,
.dashboard-content h3 {
    margin-bottom: 20px;
}

.close {
    display: flex;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    justify-content: flex-end;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
}

/* Modal form */
.addEmployee-modal form, .edit-modal form,
.dashboard-modals form  {
    display: grid;
    gap: 15px;
}

.addEmployee-modal input, .addEmployee-modal select,
.edit-modal input, .edit-modal select, 
.dashboard-modals input, .dashboard-modals select {
    padding: 10px;
    border: 1px solid var(--brown);
    border-radius: 5px;
}



.addEmployee-content .modal-buttons,
.edit-modal-content .modal-buttons,
.dashboard-content .modal-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.addEmployee-content button,
.edit-modal-content button,
.dashboard-content button {
    padding: 8px 12px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.addEmployee-content .cancel-btn,
.edit-modal-content .cancel-btn,
.dashboard-content .cancel-btn {
    background-color: #dc3545;
    color: white;
}

#employeeModal, #editEmployeeModal, #couponsModal, #edit-couponsModal {
    display: none;
}

.addEmployee-content .save-btn,
.edit-modal-content .save-btn,
.dashboard-content .save-btn {
    background-color: #28a745;
    color: white;
}


@media screen and (max-width: 831px){
    .addEmployee-modal, .edit-modal {
        margin: 6% auto !important;
    }

    .dashboard-modals, .dashboard-content {
        margin: 6% auto !important;
    }

    .addEmployee-content, .edit-modal-content {
        margin: 6% auto !important;
    }
}

@media screen and (max-width: 578px){
    .addEmployee-modal, .edit-modal, .dashboard-modals {
        margin: 5% auto !important;
    }

    .addEmployee-content, .edit-modal-content, .dashboard-content {
        margin: 8% auto !important;
    }
}

@media screen and (max-width: 741px) {
    .addEmployee-content, .edit-modal-content, .dashboard-content {
        width: 90% !important;
        max-width: 550px !important;
        margin: 8% auto !important;
        box-sizing: border-box !important;
        overflow-y: auto !important;
        max-height: 70vh !important;
    }
}

@media screen and (max-width: 617px) {
    .addEmployee-modal, .edit-modal, .dashboard-modals {
        margin: 8% auto !important;
        overflow-y: auto !important;
        height: 100% !important;
    }

    .addEmployee-content, .edit-modal-content, .dashboard-content {
        width: 85% !important;
        max-width: 550px !important;
        padding: 15px  !important;
        margin: 8% auto !important;
        box-sizing: border-box !important;
        max-height: 100vh !important;
    }

    .addEmployee-content h3, .edit-modal-content h3, .dashboard-content h3 {
        font-size: 18px !important;
        margin-bottom: 10px !important;
        text-align: center !important;
    }

    .addEmployee-modal form, .edit-modal form, .dashboard-modals form {
        gap: 10px !important;
    }

    .column {
        display: flex !important;
        flex-direction: column !important;
        gap: 8px !important;
    }

    .addEmployee-modal input, .edit-modal input, .addEmployee-modal select, .edit-modal select, 
    .dashboard-modals input, .dashboard-modals select {
        width: 100% !important;
        font-size: 13px !important;
        padding: 7px !important;
        border-radius: 4px !important;
    }

    label {
        font-size: 13px !important;
    }

    .addEmployee-content .modal-buttons, .edit-modal-content .modal-buttons, .dashboard-content .modal-buttons {
        gap: 5px !important;
    }

    .addEmployee-content button, .edit-modal-content button, .dashboard-content button {
        width: 100% !important;
        font-size: 14px !important;
        padding: 7px !important;
    }
}

@media screen and (max-width: 480px) {
    .addEmployee-modal, .edit-modal, .dashboard-modals {
        margin: 8% auto !important;
        overflow-y: auto !important;
        height: 100% !important;
    }

    .addEmployee-content, .edit-modal-content, .dashboard-content {
        margin: 15% auto !important;
        width: 85% !important;
        max-width: 320px !important;
        padding: 12px !important;
        box-sizing: border-box !important;
        max-height: 100vh !important;
    }

    .addEmployee-content h3, .edit-modal-content h3, .dashboard-content h3 {
        font-size: 16px !important;
        margin-bottom: 8px !important;
    }

    .addEmployee-modal input, .edit-modal input, .addEmployee-modal select, .edit-modal select, 
    .dashboard-modals input, .dashboard-modals select {
        font-size: 12px !important;
        padding: 6px !important;
    }

    label {
        font-size: 12px !important;
    }

    .addEmployee-content .modal-buttons, .edit-modal-content .modal-buttons, .dashboard-content .modal-buttons {
        gap: 4px !important;
    }

    .addEmployee-content button, .edit-modal-content button, .dashboard-content button {
        font-size: 13px !important;
        padding: 6px !important;
    }
}



@media screen and (max-height: 600px) {

    .addEmployee-modal, .edit-modal, .dashboard-modals {
        display: flex;
        align-items: center !important;
        justify-content: center !important;
        height: 100vh !important; /* Ensure it takes the full screen height */
    }

    .addEmployee-content, .edit-modal-content, .dashboard-content {
        max-height: 65vh !important; 
        overflow-y: auto !important; /* Allow scrolling within the modal */
    }

    .addEmployee-content, .edit-modal-content, .dashboard-content {
        max-height: 75vh !important; 
        overflow-y: auto !important;
    }
}

.column {
    display: flex;
    width: 100%;
    gap: 10px;
}

.column input, .column select {
    width: 50%;
}

/* Coupons Page Styles */
.coupon-page-container {
    margin-top: 100px; /* To account for the fixed navbar */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px; /* Larger gap between cards */
    padding: 20px;
    font-family: var(--fredoka);
    background-color: #fff;
}

.active-coupons {
    width: 100%;
    display: flex;
    gap: 30px; 
    flex-direction: column;
    align-items: center;

}

.coupon-section-title {
    font-size: 2.0rem;
    font-weight: bold;
    color: var(--dark-brown);
    margin-bottom: 20px;
    text-align: left;  /* Align the text to the left */
}

/* Active Coupons Styles */
.coupon-page-card {
    background-color: var(--lightest-brown); /* Lighter brown for the cards */
    border-radius: 30px; /* More rounded corners */
    padding: 20px 30px; /* Increased padding for more spacing */
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    max-width: 700px;
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.1); /* Slightly larger shadow */
}

.coupon-page-card-text {
    font-size: 1.2rem; /* Larger text */
    font-weight: bold;
    color: var(--dark-brown);
}

/* Coupon Code Styling (for claimed coupons) */
.coupon-code {
    font-size: 0.9rem;  /* Smaller text for the code */
    color: #333;
    margin-top: 5px;  /* Space between coupon text and code */
    font-weight: normal;
}

.coupon-details {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* Button styling remains the same */
.coupon-page-card-btn {
    font-size: 1.2rem; /* Larger button text */
    font-weight: bold;
    padding: 8px 15px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: transparent; /* No background color */
}

.coupon-page-card-btn.claim-btn {
    color: red;
}

.coupon-page-card-btn.claim-btn:hover {
    color: var(--brown); /* Darker hover effect */
}

.coupon-page-card-btn.get-btn {
    color: blue;
}

.coupon-page-card-btn.get-btn:hover {
    color: var(--brown); /* Darker hover effect */
}

/* Claimed Coupons Styles */
.claimed-coupon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    width: 100%;
}

.claimed {
    background-color: #d3d3d3; /* Light gray for claimed coupons */
    color: #707070; /* Gray text */
    display: flex;
    justify-content: space-between; /* Aligns text and "Claimed" button */
    align-items: center; /* Vertically aligns items */
}

.claimed-text {
    font-size: 1rem;
    font-weight: bold;
    color: red;
    display: inline-block;
    text-align: center;
    padding-left: 20px; /* Adds space from the coupon title */
}

.date label {
    align-self: center;
}

.hidden {
    display: none;
}
/* Check out responsiveness */
@media (max-width: 820px) {
    .checkout-container {
      flex-direction: column-reverse;
    }
    .checkout {
        width: 100%;
    }

    .btn-back.smaller {
        display: block;
    }

    .btn-back.bigger {
        display: none;
    }
}

@media (min-width: 850px) and (max-height: 200px)  {
    body, 
  section#checkout-form, 
  section#checkout-form * {
    font-size: 0.98em;
  }
  .col-200 {
    gap: 10px;
  }  

  .col-c1 {
    gap: 10px;
  }

  #checkout-form .checkout-header {
    font-size: 4vh;
  }

    h1.checkout-header {
        margin: 0;
    }

    .checkout {
        width: 60%;
    }
    .checkout-header-container {
        margin-bottom: 0px;
    }

    #checkout-form {
        margin-top: 10px;
    }

    .total {
        margin-bottom: 0px;
    }

}

@media (min-width: 850px) and (max-width: 980px){
      .checkout {
          width: 60%;
      }
}

  @media (max-width: 630px) {
    .checkout-container {
      flex-direction: column-reverse;
    }
    .checkout {
        width: 100%;
    }

    .btn-back.smaller {
        display: block;
    }

    .btn-back.bigger {
        display: none;
    }

    #checkout-form {
        padding: 20px 30px;
        margin-top: 15px;
    }
    
    #checkout-form .line {
        width: 40%;
    }
  }

  @media (max-width: 490px) {
    .checkout-container {
        flex-direction: column-reverse;
      }
      .checkout {
          width: 100%;
      }
  
      .btn-back.smaller {
          display: block;
      }
  
      .btn-back.bigger {
          display: none;
      }
  
      #checkout-form {
          padding: 20px 30px;
          margin-top: 15px;
      }
      
      #checkout-form .line {
          width: 40%;
      }

      .col-checkout {
        flex-direction: column;
    }

    .col-c1 {
        width: 100%;
    }

    body, 
    section#checkout-form, 
    section#checkout-form * {
      font-size: 0.98em;
    }
    
    #checkout-form .checkout-header {
        font-size: 3vh;
    }

    .checkout-header-container {
        margin-bottom: 0px;
    }

  }

  /* Browse Responsiveness*/ 
  @media (max-width: 1040px) {
    .menu-box {
        width: 70vw;
    }

    .menu-box {
        font-size: 0.98em;
    }

    .menu-box h2{
        font-size: 1.5em;
        margin-top: 50px;
    }

    .menu-box h3{
        font-size: 1.5em;
    }

    .menu-img-circle {
        width: 150px;
        height: 150px;
    }

  }

  @media (max-width: 555px) {
    .upper {
        flex-direction: column;
        align-items: center;
        
    }

    .upper .heading h1 {
        font-size: 1.3em;
    }

    .upper .heading img {
        height: 80px;
    }

    .upper .col1 .btn {
        background-color: #48201a;
        font-size: 0.7em;
    }

    .col1 img {
        height: 25px;
    }

    .menu-box {
        font-size: 0.9em;
    }

    .menu-box h2{
        font-size: 1.5em;
        margin-top: 50px;
    }

    .menu-box h3{
        font-size: 1.5em;
    }

    .menu-box {
        width: 80vw;
    }
  }

  @media (max-width: 420px) {

    .menu-box {
        width: 90vw;
    }
    .browse .p5 {
        padding: 3rem 2rem;
    }

    .menu-img-circle {
        width: 140px;
        height: 140px;
    }
    .menu-box h2{
        margin-top: 40px;
    }

  }

  @media (max-height: 685px) and (min-width: 575px) {
    .menu-box {
        font-size: 0.9em;
    }

    .menu-box h2{
        font-size: 1.3em;
        margin-top: 40px;
    }

    .menu-box h3{
        font-size: 1em;
    }

    .menu-img-circle {
        width: 140px;
        height: 140px;
    }

    .browse .p5 {
        padding: 3rem 2rem;
    }
    
    .upper .heading h1 {
        font-size: 1.3em;
    }

    .upper .heading img {
        height: 80px;
    }

    .upper .col1 .btn {
        background-color: #48201a;
        font-size: 0.7em;
    }

    .col1 img {
        height: 25px;
    }

    .row {
        margin-top: 0px;
    }
  }

  /* Oder Responsiveness */

  @media (max-width: 875px) {
    #order .header h1 {
        font-size: 8vh;
    }
  }
  
  @media (max-width: 655px) {
    #order .header h1 {
        font-size: 6vh;
    }
  }

