/* General Styles */
body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    background-color: #f5f5f5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.modal-toggle:checked + .modal {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-box {
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 8px;
    background-color: #ffffff;
    margin: 0 auto;
}

/* Welcome Modal Specific Styles */
#welcomeModal + .modal {
    align-items: stretch;
    justify-content: stretch;
}

#welcomeModal + .modal .modal-box {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    margin: 0;
    border-radius: 0;
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 0;
    left: 0;
    padding: 0;
}

#welcomeModal + .modal img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
}

/* Modal Header */
.modal-header {
    background-color: #1f2937;
    color: #ffffff;
    padding: 1rem;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    display: flex;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.125rem;
}

.modal-header i {
    font-size: 1.25rem;
}

/* Modal Content */
.modal-box .tabs .tab {
    flex: 1;
    text-align: center;
    font-weight: 500;
    color: #4b5563;
    border-bottom: 2px solid transparent;
}

.modal-box .tabs .tab.tab-active {
    color: #1f2937;
    border-bottom: 2px solid #1f2937;
}

.modal-box .form-control input {
    background-color: #f9fafb;
    border-color: #d1d5db;
    transition: border-color 0.3s ease;
}

.modal-box .form-control input:focus {
    border-color: #1f2937;
    outline: none;
}

.modal-box .btn-primary {
    background-color: #1f2937;
    color: #ffffff;
    border: none;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.modal-box .btn-primary:hover {
    background-color: #111827;
}

.modal-box .btn-ghost {
    color: #6b7280;
    transition: color 0.3s ease;
}

.modal-box .btn-ghost:hover {
    color: #1f2937;
}

/* Main Content Layout */
.container {
    max-width: 480px;
    margin: 0 auto;
    padding: 1rem;
    flex: 1;
}

/* Header Image */
.container img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
}

/* User Greeting */
#userGreeting {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
    text-align: left;
}

/* Search Bar */
#unitSearch {
    background-color: #ffffff;
    border-color: #d1d5db;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 0.75rem;
    font-size: 0.875rem;
}

/* Hamburger Menu */
#hamburgerMenu {
    width: 200px;
}

#hamburgerMenu .menu li a,
#hamburgerMenu .menu li label {
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

#hamburgerMenu .menu li a:hover,
#hamburgerMenu .menu li label:hover {
    background-color: #f3f4f6;
}

/* Section Wrapper (Banner, User Greeting, Category, Products, Calendar, FAQ) */
.section-wrapper {
    background-color: #ffffff;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    width: 100%;
    box-sizing: border-box;
}

/* Calendar Styles */
#calendarContainer {
    width: 100%;
    box-sizing: border-box;
}

#monthYearDisplay {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
}

#calendarBody {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.25rem;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    color: #4b5563;
    border-radius: 4px;
    position: relative;
}

.calendar-day.empty {
    background-color: transparent;
}

.calendar-day.today {
    border: 2px solid #1f2937;
}

.calendar-day.available {
    background-color: #e5e7eb;
}

.calendar-day.booked {
    background-color: #ef4444;
    color: #000000;
}

.calendar-day.pending {
    background-color: #f59e0b;
    border: 2px dashed #6b7280;
    color: #000000;
}

.calendar-day.selected {
    border: 2px solid #1f2937;
}

.event {
    position: absolute;
    bottom: 2px;
    font-size: 0.625rem;
    color: #000000;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    text-align: center;
}

/* Legend Styles */
.calendar-legend {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.legend-item {
    display: flex;
    align-items: center;
    font-size: 0.875rem;
    color: #4b5563;
}

.legend-color {
    width: 16px;
    height: 16px;
    border-radius: 2px;
    margin-right: 0.5rem;
}

.legend-color.available {
    background-color: #e5e7eb;
}

.legend-color.booked {
    background-color: #ef4444;
}

.legend-color.pending {
    background-color: #f59e0b;
}

/* Products Carousel */
.carousel {
    display: flex;
    overflow-x: auto;
    gap: 1rem;
    padding-bottom: 0.5rem;
    scroll-snap-type: x mandatory;
}

.carousel-item {
    flex: 0 0 auto;
    scroll-snap-align: start;
}

.product-card {
    width: 150px;
}

.product-card img {
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
}

.product-card h3 {
    font-size: 0.875rem;
    font-weight: 600;
    color: #1f2937;
    margin-top: 0.5rem;
}

.product-card {
    transition: all 0.2s ease-in-out;
}

.product-card:hover {
    transform: scale(1.05);
    background-color: #f0f0f0;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.product-card:hover h3 {
    font-weight: bold;
}

.product-card-active {
    border: 2px solid #6d8782;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
}

.product-card-active h3 {
    font-weight: bold;
}

/* FAQ Section */
.faq-section h2 {
    text-align: left !important;
    margin: 0 0 1rem 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    padding-left: 0;
}

.faq-item {
    width: 100%;
    box-sizing: border-box;
}

.faq-question {
    width: 100%;
    box-sizing: border-box;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question span {
    flex-grow: 1;
}

.faq-answer {
    width: 100%;
    box-sizing: border-box;
    text-align: left;
}

.faq-answer ol {
    margin: 0;
    padding-left: 1.5rem;
    list-style-position: inside;
}

/* Footer */
footer {
    background-color: #1f2937;
    color: #ffffff;
    padding: 1.5rem 1rem;
    text-align: center;
    width: 100%;
    flex-shrink: 0;
}

footer a {
    color: #60a5fa;
    text-decoration: underline;
}

footer a:hover {
    color: #3b82f6;
}

/* Booking History */
.booking-history-item {
    background-color: #f9fafb;
    border-radius: 8px;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    transition: transform 0.2s ease;
}

.booking-history-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.booking-history-item p {
    font-size: 0.875rem;
    color: #4b5563;
}

/* Notifications */
.alert {
    position: fixed;
    top: 0;
    width: 100%;
    text-align: center;
    padding: 0.5rem;
    z-index: 2000;
}

.alert-success {
    background-color: #10b981;
    color: #ffffff;
}

.alert-error {
    background-color: #ef4444;
    color: #ffffff;
}

.alert-warning {
    background-color: #f59e0b;
    color: #ffffff;
}

/* Additional Units */
.additional-unit {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f3f4f6;
    padding: 0.5rem;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    transition: background-color 0.3s ease;
}

.additional-unit:hover {
    background-color: #e5e7eb;
}

.remove-unit-btn {
    color: #6b7280;
    cursor: pointer;
    transition: color 0.3s ease;
}

.remove-unit-btn:hover {
    color: #ef4444;
}

/* Responsive Adjustments */
@media (min-width: 640px) {
    .container {
        max-width: 640px;
    }

    .product-card {
        width: 200px;
    }

    .product-card img {
        height: 150px;
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 768px;
    }

    .modal-box {
        max-width: 600px;
    }
}

.description-text {
    color: #4b5563;
    font-size: 0.875rem;
    line-height: 1.25rem;
    margin-top: 0.25rem;
}

/* Category Carousel Item */
.category-item {
    flex: 0 0 auto;
    padding: 0.5rem 1rem;
    background-color: #ffffff;
    border-radius: 6px;
    text-align: center;
    font-weight: 500;
    font-size: 0.75rem;
    color: #1f2937;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    scroll-snap-align: start;
    display: inline-block;
    min-width: 80px;
    height: 40px;
    line-height: 40px;
}

.category-item:hover {
    background-color: #f3f4f6;
    transform: scale(1.05);
}

.available-slots p {
    color: green;
    font-weight: bold;
}

/* Override DaisyUI or Browser Defaults */
.container h2 {
    text-align: left !important;
    margin-left: 0 !important;
    padding-left: 0 !important;
}