/* Custom Background Colors */
.bg-primary-green {
  --bs-bg-opacity: 1;
  background-color: rgba(8, 60, 28, var(--bs-bg-opacity)) !important; /* #083C1C */
}

.bg-primary-tan {
  --bs-bg-opacity: 1;
  background-color: rgba(248, 237, 221, var(--bs-bg-opacity)) !important; /* #F8EDDD */
}

.bg-primary-night {
  --bs-bg-opacity: 1;
  background-color: rgba(9, 14, 2, var(--bs-bg-opacity)) !important; /* #090E02 */
}

.bg-primary-darkpurple {
  --bs-bg-opacity: 1;
  background-color: rgba(61, 0, 73, var(--bs-bg-opacity)) !important; /* #3D0049 */
}

.bg-primary-palatinate {
  --bs-bg-opacity: 1;
  background-color: rgba(83, 18, 83, var(--bs-bg-opacity)) !important; /* #531253 */
}

/* Custom Text Colors */
.text-primary-green {
  --bs-text-opacity: 1;
  color: rgba(8, 60, 28, var(--bs-text-opacity)) !important; /* #083C1C */
}

.text-primary-tan {
  --bs-text-opacity: 1;
  color: rgba(248, 237, 221, var(--bs-text-opacity)) !important; /* #F8EDDD */
}

.text-primary-night {
  --bs-text-opacity: 1;
  color: rgba(9, 14, 2, var(--bs-text-opacity)) !important; /* #090E02 */
}

.text-primary-darkpurple {
  --bs-text-opacity: 1;
  color: rgba(37, 3, 34, var(--bs-text-opacity)) !important; /* #250322 */
}

.text-primary-palatinate {
  --bs-text-opacity: 1;
  color: rgba(83, 18, 83, var(--bs-text-opacity)) !important; /* #531253 */
}

/* Custom Font */
.tangerine-regular {
  font-family: "Tangerine", cursive;
  font-weight: 400;
  font-style: normal;
}

.tangerine-bold {
  font-family: "Tangerine", cursive;
  font-weight: 700;
  font-style: normal;
}


.product-item {
    position: relative;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
}
.product-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.product-item:hover .product-overlay {
    opacity: 1;
}

.product-price {
    position: absolute;
    bottom: 10px;
    right: 20px;
    background: none;
    color: white;
    font-family: 'Jeju Gothic', sans-serif;
}

.product-title {
    position: absolute;
    top: 5%;
    left: 5%;
    color: white;
    font-family: 'Tangerine', cursive;
    font-size: 6rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Hide overlay content on hover */
.product-item:hover .product-title,
.product-item:hover .product-price {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-title,
.product-price {
    transition: opacity 0.3s ease;
}

.kaisei-heading {
    font-family: "Kaisei Opti", serif;
    font-size: 2rem;
    color: #090E02;
}

.kaisei-opti-regular {
    font-family: "Kaisei Opti", serif;
    font-style: normal;
}

/* Contact Us Page */
.contact-wrapper {
    background-color: #083C1C;
    padding: 3rem 2rem;
    border-radius: 8px;
}

.contact-title {
    font-family: 'Tangerine', cursive;
    color: #f8eddd;
    font-size: 3rem;
    text-align: center;
    margin-bottom: 0px !important;
}

.form-control {
    border: none;
    padding: 0.75rem;
}

.form-check-label {
    color: #F8EDDD;
}

.btn-custom {
    background-color: #F8EDDD;
    color: #F8EDDD;
    border: none;
    padding: 0.5rem 1rem;
}

.btn-custom:hover {
    background-color: #e5dccb;
    color: #F8EDDD;
}

label {
    color: #333;
}

.required-asterisk {
    color: red !important;
}

/* Custom Submit Button */
#submitButton {
    background-color: #F8EDDD !important;
    color: #083C1C !important;
    border: none;
    font-family: 'Jeju Gothic', sans-serif;
    font-weight: 500;
  }
  
/* Hover state */
#submitButton:hover {
    background-color: #a39a8c !important;
    color: #083C1C !important;
}
  
/* Disabled state */
#submitButton:disabled {
    background-color: #ddd0bc !important;
    color: #083C1C !important;
    opacity: 1 !important; /* Make text visible */
    cursor: not-allowed;
}

/* Navbar Toggler */
.navbar-toggler {
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
}
  
/* Override Bootstrap's default hamburger icon SVG */
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='%23F8EDDD' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E") !important;
}

.action-auth-text {
    color: #f8eddd;
    font-size: 0.9rem;
}

.action-auth-text:hover {
    color: #a39a8c;
    font-size: 0.9rem;
}

.action-auth-blue-text {
    color: mediumorchid;
    font-weight: 500;
    text-decoration: none;
    margin-left: 0.5rem;
}

.dashboard-link {
    background-color: #fef1e6 !important;
    color: #083C1C !important;
    font-family: 'Jeju Gothic', sans-serif !important;
    font-size: 1.1rem !important;
    padding: 1rem 1.5rem !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    text-decoration: none !important;
    border-radius: 5px !important; /* square corners */
    border: none !important;
    width: 100% !important;
    transition: background-color 0.2s ease !important;
}

.dashboard-link:hover {
    background-color: #a39a8c !important;
    text-decoration: none !important;
}

.user-info-legend {
    font-family: 'Tangerine', cursive;
    color: #f8eddd; 
    font-size: 3rem;
}

.enquiry-heading {
    font-family: 'Tangerine', cursive !important;
    font-size: 6rem !important;
    color: #250322 !important;
    font-weight: bold;
}

.enquiry-reason {
    color: #F8EDDD;
    font-style: italic;
}

.enquiry-box {
    background-color: #250322;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 10px;

    /* Make this a flex container to align icon vertically */
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.enquiry-meta-message {
    flex-grow: 1;
}

.enquiry-meta {
    font-family: 'Jeju Gothic', sans-serif !important;
    color: #F8EDDD !important;
    margin-bottom: 0.5rem !important;
}

.enquiry-message {
    color: seagreen !important;
    margin-top: 0.5rem !important;
    margin-bottom: 0.75rem !important;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: pre-wrap;
    display: block;
    max-width: 100%;
}


.enquiry-link {
    text-decoration: underline !important;
    color: #250322 !important;
    font-weight: 500 !important;
}

.trash-container {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 1rem;
}

.enquiry-trash {
    display: flex;
    align-items: center;
    justify-content: center;
}

.enquiry-trash i {
    color: tomato;
    font-size: 1.25rem;
    transition: transform 0.2s ease;
}

.enquiry-flag {
    display: flex;
    align-items: center;
    justify-content: center;
}

.enquiry-flag i {
    color: #30a444;
    font-size: 1.25rem;
    transition: transform 0.2s ease;
}

input::placeholder {
    color: #083C1C;
    opacity: 0.6;
}

.input-group .form-control:focus {
    box-shadow: none;
    outline: none;
}

.input-group-text i:hover {
    transform: scale(1.15);
    transition: transform 0.2s ease;
    cursor: pointer;
}

.flash-popup {
    background-color: #e6f4d4; /* soft green */
    color: #2e6c2f;
    border-radius: 12px;
    padding: 1rem 1.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    align-items: center;
    min-width: 260px;
    font-family: 'Jeju Gothic', sans-serif;
    animation: slideIn 0.4s ease;
}

.flash-icon {
    font-size: 1.25rem;
    margin-right: 0.75rem;
}

.flash-message {
    flex-grow: 1;
}

.flash-close {
    background: none;
    border: none;
    color: tomato;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Text Overlay in Home image */
.text-overlay-left {
    max-width: 600px;
    padding: 2rem;
}

.custom-hero-btn {
    background-color: #F8EDDD !important;
    color: #083C1C !important;
    font-weight: 500 !important;
    padding: 0.75rem 2rem !important;
    border-radius: 0.5rem !important;
    border: none !important;
    font-family: 'Jeju Gothic', sans-serif !important;
    transition: background-color 0.2s ease !important;
}

.custom-hero-btn:hover {
    background-color: #083C1C !important;
    color: #F8EDDD !important;
}

.hero-text-shadow {
    text-shadow: 2px 2px 7px rgba(0, 0, 0, 2);
}

.min-vh-80 {
    min-height: 80vh !important;
}

.see-all-btn {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    border: 1px solid #083C1C; /* dark green border */
    background-color: #F8EDDD; /* cream background */
    color: #083C1C;
    font-size: 1rem;
    text-decoration: none;
    border-radius: 0; /* sharp corners */
    transition: background-color 0.2s ease, color 0.2s ease;
}

.see-all-btn:hover {
    background-color: #083C1C;
    color: #F8EDDD;
}

.inverted-btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    border: 1px solid #F8EDDD; /* dark green border */
    background-color: transparent; /* transparent background */
    color: #F8EDDD;
    font-size: 1rem;
    text-decoration: none;
    border-radius: 0; /* sharp corners */
    transition: background-color 0.2s ease, color 0.2s ease;
}

.inverted-btn:hover {
    background-color: #F8EDDD;
    color: #083C1C;
}

.accordion-item {
    border: 1px solid #083C1C !important;
    border-radius: 0.5rem;
    overflow: hidden;
    margin-bottom: 1rem;
}

.accordion-button {
    background-color: #F9F3E7; /* Light tan */
    color: #083C1C; /* Primary green */
    font-family: 'Jeju Gothic', sans-serif;
}

.accordion-button:not(.collapsed) {
    background-color: #E2D9CC; /* slightly darker tan for opened accordion */
    color: #083C1C;
    box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.125);
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(8, 60, 28, 0.25); /* green focus ring */
    border-color: #083C1C;
}

.accordion-body {
    background-color: #FFFDF8; /* very soft background */
    color: #000;
}

.accordion-button:hover {
    background-color: #efe5d3;
}

.accordion-collapse {
    transition: all 0.25s ease-in-out;
}


.faq-question {
    background-color: #E6DCCD;
    color: #083C1C;
    display: flex;
    padding: 1.5rem;
    align-items: flex-start;
    gap: 0.75rem;
    border-bottom: 3px solid #ddd;
}

.faq-answer {
    background-color: #EFE5D7;
    color: #250322;
    display: flex;
    padding: 1.5rem;
    align-items: flex-start;
    gap: 0.75rem;
    flex-grow: 1;
}

.faq-label {
    font-size: 1.25rem;
    font-weight: normal;
    flex-shrink: 0;
}

.faq-text {
    font-weight: normal;
    line-height: 1.6;
}

.jeju {
    font-family: 'Jeju Gothic', sans-serif;
    font-weight: normal;
}

/* Our Story */

.story-block {
    border-radius: 2rem !important;
    overflow: hidden;
}

.story-img {
    width: 300px;
    border-radius: 2rem !important;
    object-fit: cover;
}

.testimonial-text {
    font-size: 0.9rem;
    color: #333;
}


.video-hero {
    width: 100%;
    overflow: hidden;
}

.video-banner {
    max-height: 650px;
    object-fit: cover;
    display: block;
    width: 100%;
    height: auto;
}

.sidebar-messages {
    background-color: var(--primary-tan);
    padding: 1rem;
    border-right: 1px solid #083C1C;
}

.main-message-content {
    position: relative;
    display: flex;
    flex-direction: column;
    background-color: var(--primary-tan);
    height: 100%;
}

.message-header {
    border-bottom: 1px solid #083C1C;
    padding: 1rem;
}

.message-body-container {
    flex-grow: 1;
    overflow-y: auto;
    padding: 1rem;
}

.message-bubble {
    background-color: #E2D9CC;
    max-width: 600px;
    word-wrap: break-word;
}

.message-reply-bar {
    background-color: var(--primary-tan);
    padding: 1rem;
    position: sticky;
    bottom: 0;
    left: 0;
    z-index: 1;
    border-top: 1px solid #000 !important;
}

.back-arrow {
    font-size: 1.25rem;
    text-decoration: none;
}

.timestamp {
    font-size: 0.9rem;
}

.message-preview {
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.message-preview:hover {
    background-color: #dfe6dc; /* light hover for message */
}

.message-view-content {
    flex-grow: 1;
    overflow-y: auto;
}

.reply-bar {
    flex-shrink: 0;
    position: sticky;
    bottom: 0;
    z-index: 2;
    border-top: 1px solid #083C1C;
    background-color: var(--primary-tan);
}

.message-panel .text-end {
    text-align: right;
    margin-top: 0.5rem; /* Add spacing between the message and the delete button */
}

.message-container {
    background-color: #F8EDDD; /* Light tan background */
    border-radius: 8px; /* Rounded corners */
    padding: 1rem; /* Padding inside the container */
    transition: background-color 0.2s ease; /* Smooth hover effect */
}

.message-container:hover {
    background-color: #c4c4c4 !important; /* Slightly darker tan on hover */
}

.message-container .text-truncate {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.message-container .btn-danger {
    font-size: 0.875rem; /* Smaller font size for the delete button */
    padding: 0.25rem 0.5rem; /* Adjust padding for the button */
}

@media (max-width: 767.98px) {
    .message-panel .text-end {
        text-align: left; /* Align to the left for better readability on small screens */
        margin-top: 1rem;
    }

    .sidebar-panel {
        height: 100vh; /* Ensure full height for mobile view */
        overflow-y: auto; /* Enable scrolling */
        border-right: none;
    }

    .sidebar-messages-list {
        flex-grow: 1;
        overflow-y: auto; /* Enable scrolling for the message list */
        max-height: calc(100vh - 300px); /* Adjust height to fit within the viewport */
    }

    .message-container {
        margin-bottom: 1rem; /* Add spacing between messages */
    }
}

@media (max-width: 767.98px) {
    .sidebar-panel {
        height: 100vh; /* Ensure full height for mobile view */
        overflow-y: auto; /* Enable scrolling */
        border-right: none;
    }

    .sidebar-messages-list {
        flex-grow: 1;
        overflow-y: auto; /* Enable scrolling for the message list */
        max-height: calc(100vh - 300px); /* Adjust height to fit within the viewport */
    }

    .full-height-layout {
        height: 100vh; /* Ensure full height for mobile view */
        display: flex;
        flex-direction: column;
    }

    .message-view-content {
        flex-grow: 1;
        overflow-y: auto;
    }

    .reply-bar {
        position: sticky;
        bottom: 0;
    }
}

/* Fixed sidebar only on desktop */
@media (min-width: 768px) {
    .fixed-sidebar {
        height: calc(100vh - 100px); /* Adjust based on your navbar height */
        position: sticky;
        top: 100px; /* Match your header/navbar height */
        overflow-y: auto;
        border-right: 1px solid #083C1C;
    }
}

.full-height-layout {
    height: calc(100vh - 100px); /* Adjust based on your header height */
}

.sidebar-panel {
    display: flex;
    flex-direction: column;
    height: 100%;
    border-right: 1px solid #083C1C;
    background-color: var(--primary-tan);
    overflow-y: auto;
}

.message-panel {
    display: flex;
    flex-direction: column;
    height: 100%;
    background-color: var(--primary-tan);
    overflow-y: auto;
}

/* Scroll-to-Top Button */
.scroll-to-top-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: #F8EDDD; /* Dark green */
    border: none;
    border-radius: 12px; /* Rounded corners */
    display: none; /* Hidden by default */
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    z-index: 1000;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.scroll-to-top-btn:hover {
    background-color: #c4c4c4; /* Slightly lighter green on hover */
    transform: scale(1.1); /* Slight zoom effect */
}

.scroll-to-top-btn i {
    font-size: 1.5rem; /* Icon size */
}

.inventory-layout, .inventory-layout body, html {
    height: 100%;
    margin: 0;
}

.sidebar-inventory {
    width: 220px;
    background-color: #3D0049;
    color: white;
    height: 100vh;
}

.sidebar-inventory .nav-link {
    padding: 10px 0;
    font-weight: bold;
}

.inventory-main-content {
    background-color: #F7EEDD;
    border-radius: 25px;
}

.badge {
    border-radius: 1rem;
}

.inventory-main-content .thead {
    color: #3D0049 !important;
}

.active-tab {
    background-color: #F8EDDD;
    color: #400048 !important;
    font-weight: 600 !important;
    padding: 0.5rem 1rem !important;
    border-radius: 30px !important;
}

.inventory-main-content {
    overflow-y: auto;
}

/* === Flower Filter Panel Styling === */
.filter-card {
    background-color: #F8EDDD; /* light tan background */
    border: 2px solid #083C1C; /* primary green border */
    padding: 1.75rem;
    box-shadow: none;
    font-family: 'Jeju Gothic', sans-serif;
}

.filter-card h5 {
    font-family: "Tangerine", cursive;
    font-size: 2.5rem;
    color: #083C1C;
    margin-bottom: 1.5rem;
    text-align: center;
}

.filter-card label {
    font-family: 'Jeju Gothic', sans-serif;
    font-weight: 600;
    color: #083C1C;
    margin-bottom: 0.3rem;
    display: block;
}

.filter-card .form-select,
.filter-card input[type="range"] {
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 0.5rem;
    box-shadow: none;
    font-family: 'Jeju Gothic', sans-serif;
}

.filter-card input[type="range"]::-webkit-slider-thumb {
    background-color: #083C1C;
}

.filter-card .btn {
    background-color: #083C1C;
    color: #F8EDDD;
    font-family: 'Jeju Gothic', sans-serif;
    font-weight: 500;
    border: none;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    transition: background-color 0.2s ease;
}

.filter-card .btn:hover {
    background-color: #062f16;
    color: #F8EDDD;
}

/* ItemTypes */
.upload-box {
    width: 70%;
    height: auto;
    aspect-ratio: 1 / 1;
    background-color: #fff;
    border: 2px dashed navy;
    border-radius: 16px;
    position: relative;
    cursor: pointer;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: 0;
}

.upload-box span {
    font-size: 2.5rem;
    pointer-events: none;
}

.uploaded-image {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    top: 0;
    left: 0;
    z-index: 1;
}

#remove-image-btn {
    z-index: 2;
    background-color: #fff;
    color: #000;
    font-weight: bold;
    border: 2px solid navy;
}

.square-img-wrapper {
    position: relative;
    width: 100%;
    padding-top: 100%; /* 1:1 Aspect Ratio */
    overflow: hidden;
    border-radius: 0.5rem;
    background-color: #E2D9CC;
}
.square-img-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.help-content img {
    max-width: 100%;
    height: auto;
    border: 1px solid #ccc;
    border-radius: 6px;
}
