/* Header Menu Underline Style */
.main-menu ul li a {
    position: relative;
    text-decoration: none;
    color: #ffffff !important; /* Make header menu items white */
    padding-bottom: 5px; /* Add some padding for the underline */
}

.main-menu ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px; /* Thickness of the underline */
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--main-color); /* Underline color - using gold to match other elements */
    transition: width 0.3s ease-in-out;
}

.main-menu ul li a:hover::after,
.main-menu ul li a.active::after { /* Also apply to active for consistency */
    width: 100%;
}
/* End Header Menu Underline Style */

/* Hide the source #mobile-menu on desktop to prevent duplicate username display */
@media (min-width: 992px) { /* Corresponds to d-lg-none breakpoint */
    .header .main-menu #mobile-menu {
        /* display: none !important; */ /* Commented out to allow desktop links to show */
    }
}

.active-menu-category {
    padding: 20px;
    max-width: 600px; /* Adjust as needed */
    margin: 0 auto; /* Center the menu block */
}
.category-main-title {
    font-size: 3.5em; /* Large title */
    color: #fff;
    text-align: center;
    margin-bottom: 30px;
    text-transform: uppercase;
    font-weight: bold;
}
.menu-items-column {
    display: flex;
    flex-direction: column;
    gap: 15px; /* Space between items */
}
.menu-item-card {
    background-color: #1c1c1c; /* Dark background for cards */
    border-radius: 12px; /* Rounded corners */
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px; /* Space between icon, text, price */
    border: 1px solid #333; /* Optional: slight border */
}
.menu-item-visual {
    width: 30px; /* Fixed width for icon area */
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff; /* Icon color */
    font-size: 1.5em; /* Icon size */
}
.menu-item-visual.icon-tomato::before {
    content: "🍅"; /* Placeholder tomato icon */
}
.menu-item-visual.icon-cheese::before {
    content: "🧀"; /* Placeholder cheese icon */
}
.menu-item-visual.icon-veg-leaf {
    width: 7px;
    height: 25px;
    background-color: #4CAF50; /* Green line for veg crispy */
    border-radius: 3px;
    transform: rotate(-45deg);
}
.menu-item-text-content {
    flex-grow: 1; /* Allow text content to take available space */
}
.menu-item-title-text {
    font-size: 1.4em;
    color: #fff;
    margin: 0 0 5px 0;
    font-weight: 600;
}
.menu-item-title-text a {
    color: #fff;
    text-decoration: none;
}
.menu-item-description-text {
    font-size: 0.9em;
    color: #aaa; /* Lighter color for ingredients */
    display: block;
}
.menu-item-price-tag {
    font-size: 1.3em;
    color: #FFD700; /* Gold color for price */
    font-weight: bold;
    white-space: nowrap;
}

/* Hide original dish-img and adjust structure */
.menu-item-card .dish-img {
    display: none;
}
.menu-item-card .dish-content {
    display: flex;
    flex-direction: column;
}
.menu-item-card .dish-price {
    margin-left: auto; /* Push price to the right */
    color: #FFD700;
    font-weight: bold;
    font-size: 1.3em;
}
.menu-item-card .dish-price p {
    margin-bottom: 0;
}

/* Responsive adjustments for smaller screens if needed */
@media (max-width: 768px) {
    .category-main-title {
        font-size: 2.5em;
    }
    .menu-item-card {
        padding: 15px;
    }
    .menu-item-title-text {
        font-size: 1.2em;
    }
    .menu-item-price-tag {
        font-size: 1.1em;
    }
    /* Adjust padding for sections on smaller screens */
    #about, #meniu, #drinks, #instagram, #contact, #client-data-viewer {
        padding-top: 90px; /* Example smaller padding for mobile */
    }
}

/* Styles for Event Carousel Card Visibility */
.event-card {
    /* Ensure opacity transition is included, assuming transform transition might already exist */
    /* If specific transform transitions are defined per state, this might need adjustment */
    /* For now, this is a general transition for the card */
    transition: transform 0.5s ease, opacity 0.5s ease, filter 0.5s ease;
}
.event-card-center {
    opacity: 1;
    filter: brightness(1);
}
.event-card-left1,
.event-card-right1 {
    opacity: 0.8;
    filter: brightness(0.7);
}
.event-card-left2,
.event-card-right2 {
    opacity: 0.5;
    filter: brightness(0.4);
}
.event-card-hidden {
    opacity: 0;
    filter: brightness(0.2); /* Also apply to hidden to avoid flash during transition */
    pointer-events: none; /* Prevent interaction with hidden cards */
}

/* Styles for Event Card Flip Animation & Carousel Compatibility */
.event-card {
    perspective: 1000px; /* Add perspective for 3D effect */
    transition: transform 0.5s ease, opacity 0.5s ease, filter 0.5s ease; /* Restored for carousel */
    /* Existing width, margins etc. for .event-card are assumed to be in style.css or other linked stylesheets */
}

.event-card-inner {
    position: relative;
    width: 100%;
    height: 100%; /* Ensure it fills .event-card */
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
    /* box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2); /* REMOVED for no shadow */
    background-color: rgba(0, 0, 0, 0.3); /* Card's main background color - 30% black opacity */
    border-radius: 10px;     /* Card's border radius */
    padding: 0 !important;   /* Remove internal padding/frame */
    /* overflow: hidden;        /* Clip content to rounded corners - REMOVED TO PRESERVE 3D CONTEXT */
}

.event-card.is-flipped .event-card-inner {
    transform: rotateY(180deg);
}

.event-card-front, .event-card-back {
    /* position: absolute; MODIFIED BELOW */
    width: 100%;
    /* height: 100%; MODIFIED BELOW */
    -webkit-backface-visibility: hidden; /* Safari */
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    box-sizing: border-box; /* Ensure padding doesn't expand card size for back */
}

.event-card-front {
    /* position: static; or relative, to be in normal flow and provide height */
    /* No explicit position needed if static is fine, it will take space */
     background-color: transparent; /* Shows background of .event-card-inner */
     width: 100%; /* Ensure it fills parent */
     height: 100%; /* Ensure it fills parent */
     display: flex; /* Added to allow flex-direction */
     flex-direction: column; /* Stack image-container and details vertically */
     border-radius: 10px; /* Added to match parent and clip content */
     overflow: hidden; /* Added to clip content since parent's overflow:hidden was removed */
}

/* New rule for the title when it's a direct child of event-card-front */
.event-card-front > h2 {
    font-size: 1em; /* Shrunk title */
    color: #f39c12; /* Theme color for title */
    margin: 0; /* Remove default margins */
    padding: 10px 15px 5px 15px; /* Adjusted padding */
    font-weight: 600;
    text-align: center; /* Centered title */
    background-color: transparent; /* Ensure no conflicting background */
    order: -1; /* Ensure it appears before other flex items if necessary - though natural order should work if HTML is correct */
}

.event-image-container { /* Ensure this is styled in index.html or style.css */
    position: relative; /* For overlay positioning */
    width: 100%;
    height: 360px; /* Adjusted height for the image container */
    flex-shrink: 0; /* Prevent shrinking if details content is long */
    background-color: transparent; /* Ensure no conflicting background if image is 'contain' */
}

.event-image-container img {
    display: block; /* Remove extra space below image */
    height: 100%; /* Make image fill container */
    object-fit: cover; /* Show full image, scaled */
    position: relative;
    background-color: transparent; /* CHANGED from #111111 */
    overflow: hidden;
    max-width: 85%;
    min-width: 85%;
    max-height: 100%; /* ADDED */
    flex-grow: 1; /* ADDED */
    order: 2; /* ADDED */
    margin: 0 auto; /* ADDED for centering with contain */

}

.event-image-overlay { /* Style in index.html to ensure override */
    position: absolute;
    bottom: 0; /* Changed from top: 0 */
    left: 0;
    width: 100%;
    padding: 10px 15px;
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent dark overlay */
    color: white;
    z-index: 1; /* Ensure it's above the image */
    box-sizing: border-box;
}

.event-image-overlay .date-day,
.event-image-overlay .time-info {
    color: white; /* Ensure text is white */
    /* Additional styling for date/time from style.css will apply or can be overridden here */
}

.event-image-overlay h2 { /* If title is moved into overlay */
    font-size: 1.2em; /* Slightly reduced title size */
    color: #f39c12; /* Theme color for title */
    margin: 0 0 8px 0; /* Adjust margins as needed */
    font-weight: 600;
    text-align: left; /* Or center */
    /* display: none; Removed - title will be handled by .event-card-front > h2 or .event-details h2 */
}

.event-details { /* Contains description and links */
    padding: 15px;
    text-align: left;
    flex-grow: 1; /* Make this section take available vertical space */
    display: flex; /* Add flex to allow vertical alignment of its children */
    flex-direction: column; /* Stack children (description, links) vertically */
    justify-content: space-between; /* Pushes description to top, links to bottom */
}

.event-details h2 { /* Event Title - if it remains in .event-details */
    font-size: 1.2em; /* Slightly reduced title size */
    color: #f39c12; /* Theme color for title */
    margin: 0 0 10px 0; /* Reset margin, add bottom margin */
    font-weight: 600;
    text-align: left; /* Or center, as per your preference */
    /* Moved from overlay, if title stays in .event-details but visually higher */
    /* display: none; Removed - title will be handled by .event-card-front > h2 */
}

.event-details p {
    margin-bottom: 15px; /* Existing or new: ensure space between text and buttons */
    flex-grow: 1; /* Allow the paragraph to take up space if needed, but links will be at bottom */
    overflow-wrap: break-word; /* Ensure long strings without spaces can wrap */
    word-break: break-word; /* More aggressive wrapping if needed, often used with overflow-wrap */
    /* white-space: normal; /* Default, but explicitly stating can help if something overrides it */
}

.event-links {
    /* No specific changes needed here if .event-details handles alignment */
    /* Ensure buttons are styled as desired, e.g., display: flex for side-by-side if not already */
     margin-top: auto; /* Pushes the links to the bottom of the flex container (.event-details) */
}

.event-card-back {
    position: absolute; /* Positioned on top of the front */
    top: 0;
    left: 0;
    height: 100%; /* Takes height of event-card-inner (which gets from front) */
    transform: rotateY(180deg);
    padding: 0; /* Remove padding so image can fill */
    /* justify-content: center; REMOVED */
    /* align-items: center; REMOVED */
    background-color: transparent; /* Image will be the background */
    color: #333333; /* Default text color for back, button styled separately */
    border-radius: 10px; /* Match the front/inner radius */
    overflow: hidden; /* IMPORTANT: to clip the absolute image to the rounded corners */
}

.event-card-back .event-back-image { /* New style for the background image on the back */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Cover the area, maintain aspect ratio */
    z-index: 1; /* Base layer */
}

.event-card-back .event-back-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8); /* Increased opacity */
    z-index: 2; /* Above back image, below button */
    display: flex;
    flex-direction: column;
    /* justify-content: center; */
    align-items: flex-start;
    padding: 20px 20px 100px 20px; /* Adjusted padding: top, right, bottom, left */
    /* text-align: center; */
    box-sizing: border-box;
    /* Removed max-height and overflow-y from here */
    /* Removed scrollbar hiding from here */
}

.event-card-back .event-back-overlay .event-back-title {
    color: white;
    font-size: 1.5em; /* Slightly larger for emphasis */
    font-weight: 600;
    margin-bottom: 10px;
    text-align: left;
    margin-top: 0; /* Remove margin-top, padding on overlay handles top gap */
    flex-shrink: 0; /* Prevent title from shrinking */
    display: none; /* Hide the title */
}

.event-card-back .event-back-overlay .event-back-paragraph {
    color: #cccccc; /* Same as front paragraph text */
    font-size: 0.9em;
    line-height: 1.4;
    max-width: 100%; /* Allow paragraph to use full overlay width */
    text-align: left;
    flex-grow: 1; /* Allow paragraph to take remaining space */
    overflow-y: auto; /* Add vertical scrollbar here */
    /* Hide scrollbar for different browsers within the paragraph */
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
    margin-bottom: 20px; /* Space between paragraph and slider */
    padding-left: 0 !important; /* Remove left padding */
    padding-right: 0 !important; /* Remove right padding */
}

.event-card-back .event-back-overlay .event-back-paragraph::-webkit-scrollbar {
    display: none;  /* Chrome, Safari, Opera*/
}

/* New styles for the button container on the back */
.event-card-back .event-back-links {
    position: absolute;
    bottom: 20px; /* Distance from bottom */
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px; /* Space between buttons */
    z-index: 3; /* Ensure it's on top of the overlay */
}

/* Removed .event-card-back .close-flip-btn styles as .read-more and .reserve will be used */

/* End Styles for Event Card Flip Animation */

@media (max-width: 768px) { /* MODIFIED FROM 767px */
    .slider-content {
        top: 0px !important; /* Adjust to 0px for a more noticeable shift */
    }
    /* Remove previous scroll-margin-top */
    /* #home, #about, #meniu, #drinks, #instagram, #contact {
        scroll-margin-top: 100px; 
    } */

    #about, #meniu, #drinks, #instagram, #contact { /* #home is excluded */
        padding-top: 78px; /* Increased from 58px, for more spacing below header */
    }
    
    /* Remove bottom margin from About Us content wrapper in mobile view */
    #about .about-content-wrapper {
        margin-bottom: 0 !important;
    }

    /* Increase gap between map and contact form in mobile view */
    #formular-contact {
        margin-top: 30px; /* Adjust this value to control the gap */
    }

    /* Increase gap between header and reservations viewer section in mobile view */
    #reservations-viewer {
        padding-top: 120px !important; /* Increased value for more gap */
    }

    /* Increase top padding of reservation modal content in mobile view to prevent overlap with close button */
    #customReservationModal .custom-reservation-modal-content {
        padding-top: 50px !important; /* Adjust value to create sufficient space */
    }

    /* Increase top padding of confirmation modal content in mobile view to prevent overlap with close button */
    #reservationConfirmationModal .custom-reservation-modal-content {
        padding-top: 50px !important; /* Adjust value to create sufficient space */
    }

    /* Style for event links in mobile view */
    .event-links {
        display: flex;
        justify-content: space-evenly; /* Distribute space evenly */
        gap: 10px; /* Add a small gap between buttons */
        flex-wrap: wrap; /* Allow buttons to wrap if needed */
    }

    /* Make event action buttons (Detalii, Cumpara Bilet, Rezerva) have equal width */
    .event-links .read-more,
    .event-links .reserve,
    .event-links .buy-ticket-btn {
        flex: 1;
        text-align: center; /* Center the text within the button */
        min-width: 120px; /* Optional: Set a minimum width to prevent them from becoming too small */
    }

    /* Mobile style for the Cumpara Bilet button */
    .event-links .buy-ticket-btn {
        background-color: #f39c12 !important; /* Use the specific hex color for mobile */
        color: var(--primary-color) !important; /* Set text color to the dark primary color for mobile */
        border: none !important; /* Remove any default border for mobile */
    }

    /* Ensure text on the backside of the card is left-aligned on mobile */
    .event-card-back .event-back-overlay .event-back-paragraph {
        text-align: left !important;
    }
}

@media (min-width: 769px) { /* Desktop view MODIFIED FROM 768px */
    #about, #meniu, #drinks, #instagram, #contact, #client-data-viewer {
        padding-top: 120px; /* Add padding to clear the sticky header */
    }

    /* Change avatar icon color to white in desktop view */
    .profile-avatar {
        color: #ffffff !important; /* Set icon color to white */
    }

    /* Make confirmation modal question text smaller on desktop */
    #reservationConfirmationModal #confirmationModalTitle {
        font-size: 1.3rem; /* Adjust this value as needed */
    }

    /* Position the reservation form modal higher on desktop */
    #customReservationModal .custom-reservation-modal-content {
        margin-top: 30px !important; /* Adjusted to a fixed value for more precise positioning */
    }

    /* Set the order of event buttons on desktop */
    .event-links .read-more {
        order: 1;
    }

    .event-links .buy-ticket-btn {
        order: 2;
    }

    .event-links .reserve.rezerva-btn {
        order: 3;
    }

    /* Style for the Cumpara Bilet button on desktop */
    .event-links .buy-ticket-btn {
        color: #000 !important; /* Set text color to black */
        border: none !important; /* Set no border */
        background-color: #ffffff !important; /* Set background to white */
    }

    /* Style for the Detalii button border on desktop */
    .event-links .read-more {
        border: 1px solid #f39c12 !important; /* Set full border to #f39c12 */
        color: #f39c12 !important; /* Set text color to #f39c12 */
    }

    /* Style for the Rezerva button border on desktop */
    .event-links .reserve.rezerva-btn {
         border: 1px solid #f39c12 !important; /* Set full border to #f39c12 */
         color: #f39c12 !important; /* Set text color to #f39c12 */
    }

    /* Increase top margin for the 'Tulum Mamaia' sub-heading on desktop */
    /* Specific rule to override negative margin from style.css */
    #home .slider-content span.sub-heading {
        margin-top: 69px !important; /* Adjusted to match previous version spacing */
    }

    /* Reduce margin-left for main menu items on desktop to prevent wrapping */
    .main-menu ul li {
        margin-left: 20px !important; /* Reduced margin on desktop */
    }
}

/* Responsive adjustments for desktop view - match previous version */
@media (min-width: 992px) {
    #home > .single-slider.slider-height {
        padding-top: 80px !important; /* Reduced padding to move content higher */
    }
}



/* html {
    background-color: #1e1f24; 
} */

body.body-dark-mode {
    /* Existing background styles */
    background-color: #000 !important; /* Ensure base is black */
    
    /* Aurora effect with CSS custom properties for dynamic control */
    --aurora-yellow-opacity: 0.8; /* Default opacity for yellow glow */
    --aurora-animation-speed: 15s; /* Animation speed */
    
    /* Simplified Gradient Background with CSS variables */
    background: linear-gradient(90deg, transparent, rgba(247, 148, 29, var(--aurora-yellow-opacity)), transparent, rgba(247, 148, 29, var(--aurora-yellow-opacity)), transparent);
    background-size: 400% 100%;
    animation: gradient-animation var(--aurora-animation-speed) ease infinite;
    min-height: 100vh;      /* Ensure body fills viewport height */
    
    /* Smooth transition for all properties */
    transition: background 0.3s ease, opacity 0.3s ease;
}

@keyframes gradient-animation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Set "About Us" text to black */
#about .about-content p {
    color: #ffffff; /* White text for about us section paragraphs */
}

/* Style form fields */
#contact-form input,
#contact-form textarea {
    background-color: #1c1b1b !important;
    color: white !important;
    border: 1px solid white !important; /* Optional: add a light border */
}

#contact-form input::placeholder,
#contact-form textarea::placeholder {
    color: white !important; /* Darker placeholder text */
}

/* Style contact information text */
.contact-info-content .text-color {
    color: #ffffff !important; /* Make contact text white */
    font-size: 0.9rem; /* Make contact text smaller */
}

/* Style contact information headings */
.contact-info-content .contact-text h4 {
    color: #ffffff !important; /* Make contact headings white */
    font-size: 1rem; /* Make contact headings smaller */
}

/* Preloader Wave Animation */
#preloader {
    background-color: white !important; /* White background for preloader */
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999; /* Ensure it's on top */
}

#loading,
#loading-center {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative; /* Added for robust centering */
}

#loading-center-absolute {
    /* position: relative;  Already relative by default for divs, can be removed or kept if specific child positioning needed */
    /* No explicit width/height, let content size it or parent flex control it */
    display: flex; /* Make this a flex container */
    align-items: center; /* Center its children (wave-container) vertically */
    justify-content: center; /* Center its children (wave-container) horizontally */
    /* Ensure it can take up space if its parent is also a flex container, which it is. */
    /* Adding width and height 100% might be too much if parent isn't also flex. */
    /* Let's rely on the parent flex to size this, and this flex to center its own child. */
}

.wave-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 60px; /* Adjust height as needed */
}

.wave {
    width: 8px; /* Width of each wave bar */
    height: 40px; /* Max height of each wave bar */
    margin: 0 3px;
    background-color: black !important; /* Black bars */
    border-radius: 4px; /* Slightly rounded tops */
    animation: wave-animation 1.2s infinite ease-in-out;
    transform-origin: bottom;
}

.wave:nth-child(2) {
    animation-delay: -1.0s; /* Stagger animation */
}

.wave:nth-child(3) {
    animation-delay: -0.8s; /* Stagger animation */
}

.wave:nth-child(4) {
    animation-delay: -0.6s; /* Stagger animation */
}

@keyframes wave-animation {
    0%,
    100% {
        transform: scaleY(0.2);
    }
    50% {
        transform: scaleY(1);
    }
}

/* Spinning Preloader Image */
.spinning-preloader-image {
    width: 150px; /* Adjust size as needed */
    height: 150px; /* Adjust size as needed */
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
/* End Spinning Preloader Image */

/* Login Modal Styles */
.login-modal {
    display: none; /* Hidden by default */
    position: fixed; 
    z-index: 1055; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgba(0,0,0,0.7); 
}

.login-modal.is-visible {
    display: flex; /* Use flex for centering when active */
    align-items: center;
    justify-content: center;
}

.login-modal-content {
    background-color: rgba(0,0,0,0.75); /* Increased transparency slightly to 75% opaque black */
    /* margin: auto; Removed, flex handles centering */
    padding: 25px 30px; 
    border: none; 
    width: 80%; 
    max-width: 360px; 
    border-radius: 8px; 
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
    position: relative;
    color: #e0e0e0; 
}

.login-modal-close {
    color: #bbb; /* Adjusted for potentially darker bg */
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    top: 10px;
    right: 20px;
}

.login-modal-close:hover,
.login-modal-close:focus {
    color: #fff;
    text-decoration: none;
    cursor: pointer;
}

.login-modal-content h2 {
    color: #ffffff;
    text-align: center;
    margin-bottom: 15px;
    font-size: 28px;
}
.login-modal-content .form-intro-text {
    text-align: center;
    margin-bottom: 30px;
    font-size: 16px;
}
.login-modal-content .form-group label {
    color: #f0f0f0; /* Brighter label for dark bg */
    margin-bottom: 8px;
    font-weight: 500;
}
.login-modal-content .form-control {
    background-color: rgba(45, 46, 54, 0.7); 
    border: none !important; /* Remove all borders */
    outline: none !important; 
    box-shadow: none !important; 
    color: #ffffff;
    padding: 10px 15px;
    border-radius: 5px;
    -webkit-appearance: none; 
    -moz-appearance: none;
    appearance: none;
    background-clip: padding-box; 
}
.login-modal-content .form-control:focus {
    background-color: #3a3b42;
    border: none !important; 
    color: #ffffff;
    box-shadow: none !important; /* Remove focus box-shadow */
    outline: none !important; 
}
.login-modal-content .btn-login {
    background-color: var(--main-color); /* Ensure it uses var(--main-color) */
    color: var(--primary-color, #2d2e36); /* Existing color, check contrast */
    border: none;
    padding: 12px 20px;
    text-transform: uppercase;
    font-weight: bold;
    width: 100%;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
}
.login-modal-content .btn-login:hover {
    background-color: #dAA202;
    color: #ffffff;
}
.login-modal-content .alert-danger {
    background-color: rgba(220, 53, 69, 0.2); /* Slightly more opaque for visibility */
    color: #f8d7da; /* Lighter red for text on dark bg */
    border: 1px solid rgba(220, 53, 69, 0.5);
    padding: 12px 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    text-align: left;
}
.login-modal-content .signup-link {
    text-align: center;
    margin-top: 20px;
}
.login-modal-content .signup-link a {
    color: var(--main-color, #f7b602);
    text-decoration: none;
    font-weight: 500;
}
.login-modal-content .signup-link a:hover {
    text-decoration: underline;
}

/* Customization: Remove border from profile avatar and adjust background/hover */
.profile-avatar,
.sticky-menu .profile-avatar {
    border: none !important;
    background-color: transparent !important; 
    /* color: var(--primary-color); /* This is the intended non-hover color from style.css */
    transition: transform 0.2s ease-in-out, color 0.3s ease !important; 
}

.profile-avatar:hover,
.sticky-menu .profile-avatar:hover {
    border: none !important; 
    background-color: transparent !important; 
    color: #ffffff !important; /* Explicitly maintain white color on hover */
    transform: scale(1.2); 
}

/* Profile Dropdown Menu Adjustments */
.profile-menu {
    width: 120px !important; /* Further reduced width */
    top: calc(100% + 5px) !important; 
}

.profile-menu p,
.profile-menu p a {
    color: #000000 !important; 
    font-size: 14px !important; 
    text-align: center !important; /* Center the text */
}

.profile-menu p a:hover,
.profile-menu p a:focus {
    color: #333333 !important; 
    text-decoration: underline !important; 
    text-align: center !important; /* Ensure text remains centered on hover/focus */
}

/* Prevent FOUC for mobile menu items processed by meanmenu.js */
/* #mobile-menu > ul { */
    /* display: none !important; */ /* Commented out to fix index.php desktop menu */
/* } */

/* MeanMenu typically makes its own generated menu visible.
   If the menu is still not showing up after meanmenu processes it,
   we might need to ensure the meanmenu-reveal or mean-nav are displayed.
   But usually, the plugin handles this.
*/

/* Override for the skewed pseudo-element on the Add New Event button */
#showEventFormBtn::after {
    display: none !important;
}

/* Make contact form fields semi-transparent, with no borders */
#contact .contact-form input[type="text"],
#contact .contact-form input[type="email"],
#contact .contact-form input[type="tel"],
#contact .contact-form textarea {
    background-color: rgba(255, 255, 255, 0.15) !important; /* Semi-transparent white background (15% opacity) */
    color: white !important;
    border: none !important; /* Remove all borders */
    padding: 8px 12px !important; /* Reduced padding */
    font-size: 0.95rem !important; /* Slightly smaller text */
}

#contact-form label {
    font-size: 0.95rem !important; /* Smaller label text */
    margin-bottom: 5px !important; /* Reduced space below label */
}

/* Make the 'Trimite' button in the contact form smaller */
#contact .contact-form .theme-bg.btn {
    padding: 6px 15px !important; /* Further reduced padding */
    font-size: 0.9rem !important; /* Further smaller text */
}

/* Make text white for editor buttons */
.btn-danger,
.btn-warning,
.btn-success {
    color: #ffffff !important;
}

/* Style for the 'Back to All Events Overview' link in reservations viewer */
#reservations-viewer .theme-btn-secondary {
    color: #ffffff !important; /* Make text white */
    display: inline-block; /* Ensure margin-left works */
    margin-left: 0 !important; /* Align to the start of the container/table */
    text-align: left; /* Ensure text is left-aligned within the button */
    padding-left: 0; /* Remove left padding if any from btn class */
    background-color: transparent !important; /* Ensure background is transparent */
    border: none !important; /* Remove border if any */
    box-shadow: none !important; /* Remove shadow if any */
}

#reservations-viewer .theme-btn-secondary:hover {
    color: #cccccc !important; /* Slightly lighter white on hover */
    background-color: transparent !important; /* Maintain transparent background on hover */
}

/* Styles for the New Reservation Confirmation Modal */
/* Uses the same base class .custom-reservation-modal */

/* Add styling for the close button in the editor form */
.editor-form-close {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
    transition: color 0.3s ease;
}

.editor-form-close:hover,
.editor-form-close:focus {
    color: #fff;
}

.confirmation-buttons {
    display: flex;
    flex-wrap: wrap; /* Allow buttons to wrap */
    justify-content: space-between; /* Space out the first two buttons */
    margin-top: 20px;
    gap: 10px; /* Add some space between buttons when they wrap */
}

.confirmation-buttons button:nth-child(1), /* Target the first button (OK) */
.confirmation-buttons button:nth-child(2) { /* Target the second button (Anuleaza) */
    width: calc(50% - 5px); /* Share width, accounting for gap */
    margin-top: 0; /* Ensure no extra top margin */
}

.confirmation-buttons button:nth-child(3) { /* Target the third button (Mail test) */
    width: 100%; /* Full width */
    margin-top: 10px; /* Add space above */
}

.btn-confirm {
    background-color: #f7941d; /* Theme color */
    color: #121212; /* Dark text */
    border: none;
    padding: 12px 20px;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    /* width: 48%; /* Give buttons almost half width - REMOVED as width is controlled by nth-child rules */
}

.btn-confirm:hover {
    background-color: #e68a0d; /* Darker theme color on hover */
    color: white !important; /* Add white text on hover */
}

/* Style for the Buy Ticket button */
.buy-ticket-btn {
    /* This general rule is less specific now, desktop/mobile rules will override color */
    /* Keep any general styles here if needed, but remove conflicting ones */
    /* color: white !important; /* Remove this conflicting color */
}

/* New styles to swap button backgrounds */
/* Style for the Rezerva button (using .reserve.rezerva-btn classes) to have a transparent background */
.event-links .reserve.rezerva-btn {
    background: transparent !important; /* Remove background */
    color: white !important; /* Set text color to white */
    border: 1px solid white !important; /* Set border color to white */
}

/* Hover style for the Rezerva button on the front */
.event-links .reserve.rezerva-btn:hover {
    background-color: transparent !important;
    border-color: white !important;
    color: white !important;
}

/* Style for the Detalii button (.read-more) */
.event-links .read-more {
    color: white !important; /* Set text color to white */
    border: 1px solid white !important; /* Set border color to white */
    background: transparent !important; /* Ensure background is transparent */
}

/* Hover style for the Detalii button */
.event-links .read-more:hover {
    color: lightgrey !important; /* Slightly grey text on hover */
    border-color: lightgrey !important; /* Slightly grey border on hover */
    background-color: transparent !important; /* Keep background transparent on hover */
} 

/* ADD DESKTOP MEDIA QUERY BLOCK AT THE END */


/* html {
    background-color: #1e1f24; 
} */

/* Styles for buttons on the back of the event card */
.event-card-back .event-back-links a {
    background: none;
    border: 1px solid #f39c12; /* Theme color border */
    color: #f39c12; /* Theme color */
    padding: 10px 15px; /* Add some padding */
    text-decoration: none; /* Remove underline */
    display: inline-block; /* Allow padding and margin */
    margin: 0 5px; /* Add spacing between buttons */
    /* transition: color 0.3s ease; */ /* Removed general transition */
}

/* Hover style for the Rezerva button on the back */
.event-card-back .event-back-links .reserve.rezerva-btn:hover {
    background-color: transparent !important;
    border-color: white !important;
    color: white !important;
    transition: color 0.1s ease; /* Shorter transition for hover */
}

/* Hover style for links on the back, excluding the Cumpara Bilet button */
.event-card-back .event-back-links a:not(.buy-ticket-btn):hover {
    color: #ffffff; /* White text on hover for better contrast */
}

/* Specific style for the 'Cumpara Bilet' button on the back */
.event-card-back .event-back-links .buy-ticket-btn {
    background-color: #ffffff; /* Set background to white */
    color: #000; /* Set text color to black */
    border: none; /* Remove border */
}

/* Explicitly ensure no text color hover effect on Cumpara Bilet button on back */
.event-card-back .event-back-links .buy-ticket-btn:hover {
    color: #000; /* Ensure text stays black on hover */
    /* Other hover properties like background/border can be added here if needed */
    /* background-color: #ffffff; */
    /* border: none; */
}

/* Hover style for the Rezerva button on the back */
.event-card-back .event-back-links .reserve.rezerva-btn:hover {
    background-color: transparent !important;
    border-color: white !important;
    color: white !important;
    transition: color 0.1s ease; /* Shorter transition for hover */
}

/* Styling for Reservations Table and Client Data Table */
#reservations-viewer, #client-data-viewer {
    padding-top: 80px; /* Adjust if header height is different or not sticky */
    padding-bottom: 60px;
}
#reservations-viewer h4, #client-data-viewer h4 {
    color: #f0f0f0 !important; 
    text-align: center;
    margin-bottom: 30px;
    margin-top: 20px; /* Added margin top for title */
}
.reservations-table-container, .client-data-table-container {
    overflow-x: auto; 
    background-color: rgba(0,0,0,0.6);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #444;
}
.reservations-table, .client-data-table {
    width: 100%;
    min-width: 900px; 
    border-collapse: collapse;
    color: #ccc; 
}
.reservations-table th, .reservations-table td, .client-data-table th, .client-data-table td {
    border: 1px solid #555; 
    padding: 10px 12px;
    text-align: left;
    font-size: 0.9rem;
}
.reservations-table th, .client-data-table th {
    background-color: rgba(255, 255, 255, 0.1); 
    color: #f0f0f0; 
    font-weight: 600;
}
.reservations-table tr:nth-child(even), .client-data-table tr:nth-child(even) {
    background-color: rgba(255, 255, 255, 0.03);
}
.reservations-table tr:hover, .client-data-table tr:hover {
    background-color: rgba(247, 148, 29, 0.15);
}
/* Add specific styling for observations cell if needed */
.reservations-table td.observations-cell, .client-data-table td.observations-cell {
    max-width: 250px; 
    white-space: pre-wrap; 
    word-break: break-word;
}

@media (max-width: 767px) {
    .reservations-table th,
    .reservations-table td,
    .client-data-table th,
    .client-data-table td {
        font-size: 0.85rem; 
        padding: 8px;
    }
    .reservations-table td.observations-cell, .client-data-table td.observations-cell {
        max-width: 150px;
    }
    /* Adjust padding for sections on mobile if needed, already done above */
}

/* Ensure Flatpickr calendar is visible on top of other elements */
.flatpickr-calendar {
    z-index: 9999;
}

/* Mobile-specific Flatpickr positioning in modals */
@media (max-width: 768px) {
    .custom-reservation-modal .flatpickr-calendar {
        z-index: 9999 !important;
    }
}

/* Further Diagnostic: Borders and transform reset for action buttons and forms - NOW CLEANED UP */
.event-card-editor-preview .event-actions-editor {
    /* border: 3px solid limegreen !important; */
    /* padding: 2px; */
    /* background-color: rgba(50, 205, 50, 0.1) !important; */
    /* position: relative;  */
    /* z-index: 10000;  */
    display: flex; /* Add flexbox */
    gap: 10px; /* Add space between buttons */
    justify-content: space-between; /* Distribute space between buttons */ /* Re-added for potentially better spacing with flex-basis: 0 */
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
    align-items: center; /* Align items vertically in the center */
}

.event-card-editor-preview .event-actions-editor form {
    /* border: 3px solid dodgerblue !important; */
    /* margin: 2px 0 !important;  */
    /* background-color: rgba(30, 144, 255, 0.1) !important; */
    /* position: relative; */
    /* z-index: 10001; */
    flex-grow: 1; /* Allow forms to grow and take equal space */
    /* Ensure forms do not force new lines unnecessarily */
    width: auto !important; /* Override w-100 */
    display: block; /* Keep as block to contain button */
    margin-bottom: 0 !important; /* Remove bottom margin */
    flex-basis: 0; /* Ensure forms start with a base size of 0 before growing */
}

.event-card-editor-preview .event-actions-editor form button {
    transform: none !important; /* KEEP: This was part of the fix */
    width: 100% !important; /* Ensure button fills the form's width */
    height: auto !important; /* Keep: Ensures natural height */
     /* padding: 5px !important; */
    /* position: relative; */
    /* z-index: 10002; */
    /* flex: 1; /* Removed */
    /* min-width: 0; /* Removed */
}

/* Ensure the buttons inside forms have equal width */
.event-card-editor-preview .event-actions-editor form button[name="toggle_event_status"],
.event-card-editor-preview .event-actions-editor form button[name="delete_event"] {
    /* flex: 1; /* Removed */
    /* min-width: 0; /* Removed */
    width: 100%; /* Ensure buttons fill their parent forms */
}

/* Set Dezactiveaza button text to black */
.event-card-editor-preview .event-actions-editor form button.btn-warning {
    color: #000 !important; /* Set text color to black */
}

/* Style for the new Send Email button form */
.event-card-editor-preview .event-actions-editor form.send-email-form {
    flex-basis: 100%; /* Make the form take up the full width */
    margin-top: 10px; /* Add some space above the button */
}

.event-card-editor-preview .event-actions-editor form.send-email-form button {
    width: 100%; /* Ensure the button fills the form's width */
    background-color: transparent !important; /* Set background to transparent */
    color: #f39c12 !important; /* Set text color to #f39c12 */
    border: 1px solid #f39c12 !important; /* Set border color to #f39c12 */
}

/* Force display for email confirmation modal during debugging */
/* #emailConfirmModal { */
    /* display: block !important; */
    /* z-index: 99999 !important; /* Very high z-index to ensure it's on top */
/* } */

/* Base style for custom modals (hidden by default) */
.custom-reservation-modal {
    display: none; /* Hidden by default */
    position: fixed; 
    z-index: 1060; /* Higher than other elements */
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgba(0,0,0,0.85); /* Darker overlay */
    /* Ensure visibility and opacity are not hidden by default */
    /* visibility: visible; /* Removed */
    /* opacity: 1; /* Removed */
    transition: opacity 0.3s ease; /* Optional: add transition for fade effect */
}

.custom-reservation-modal.is-visible { /* Use a class to control visibility */
    display: block;
    visibility: visible; /* Keep for transition */
    opacity: 1; /* Keep for transition */
    z-index: 99999; /* Ensure it's on top when visible */
}

.custom-reservation-modal-content {
    background-color: #121212; /* Very dark grey, almost black */
    color: #e0e0e0; /* Light grey text */
    margin: 10% auto; /* Adjusted margin for potentially taller content */
    padding: 15px 20px !important; /* Reduced padding */
    border: 1px solid #333; /* Darker border */
    width: 90%; 
    max-width: 400px; /* Reduced max-width */
    border-radius: 10px;
    position: relative;
    box-shadow: 0 5px 25px rgba(0,0,0,0.5); /* Softer shadow */
}

.custom-reservation-modal-close {
    color: #bbb; /* Adjusted for potentially darker bg */
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    top: 10px;
    right: 20px;
}

.custom-reservation-modal-close:hover,
.custom-reservation-modal-close:focus {
    color: #fff;
}

.custom-reservation-modal h3 {
    text-align: center;
    margin-bottom: 15px !important; /* Reduced bottom margin */
    color: #f7941d; /* Theme color for title */
    font-weight: 500;
    font-size: 1.2em !important; /* Reduced font size */
}

.custom-reservation-modal .form-group {
    margin-bottom: 15px !important; /* Reduced space below each form group */
}

.custom-reservation-modal-content p {
    font-size: 0.9em !important; /* Reduced font size for paragraph text */
}

/* Styles for the manual scroll slider on the backside of the event card */
.event-scroll-slider {
    -webkit-appearance: none; /* Override default browser styling */
    width: 80%; /* Adjust width as needed */
    height: 5px; /* Height of the track */
    background: rgba(255, 255, 255, 0.3); /* Semi-transparent white track */
    outline: none; /* Remove outline */
    opacity: 0.7; /* Slightly transparent when not hovered */
    transition: opacity .2s;
    margin: 10px auto 0 auto; /* Center horizontally, add top margin, remove bottom */
    display: block; /* Ensure it takes up its own line */
    z-index: 4; /* Ensure it's above the overlay and buttons area */
}

.event-scroll-slider:hover {
    opacity: 1; /* Fully opaque on hover */
}

/* Thumb (the draggable part) */
.event-scroll-slider::-webkit-slider-thumb {
    -webkit-appearance: none; /* Override default styling */
    appearance: none;
    width: 15px; /* Size of the thumb */
    height: 15px; /* Size of the thumb */
    background: #f7941d; /* Theme color for the thumb */
    cursor: pointer;
    border-radius: 50%; /* Make the thumb round */
}

.event-scroll-slider::-moz-range-thumb {
    width: 15px;
    height: 15px;
    background: #f7941d;
    cursor: pointer;
    border-radius: 50%;
}

.event-scroll-slider::-ms-thumb {
    width: 15px;
    height: 15px;
    background: #f7941d;
    cursor: pointer;
    border-radius: 50%;
}

/* Ensure no pseudo-element appears on the import button hover */
.btn.theme-btn-secondary:hover::after {
    display: none !important;
}

/* Base style for Import Client Modal (hidden by default) */
.import-client-modal {
    display: none; /* Hidden by default */
    position: fixed; 
    z-index: 1060; /* Higher than other elements */
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgba(0,0,0,0.85); /* Darker overlay */
    transition: opacity 0.3s ease; /* Optional: add transition for fade effect */
}

.import-client-modal.is-visible { /* Use a class to control visibility */
    display: block;
    visibility: visible; /* Keep for transition */
    opacity: 1; /* Keep for transition */
    z-index: 99999; /* Ensure it's on top when visible */
}

.import-client-modal-content {
    background-color: #121212; /* Very dark grey, almost black */
    color: #e0e0e0; /* Light grey text */
    margin: 10% auto; /* Adjusted margin for potentially taller content */
    padding: 15px 20px !important; /* Reduced padding */
    border: 1px solid #333; /* Darker border */
    width: 90%; 
    max-width: 400px; /* Reduced max-width to make it smaller */
    border-radius: 10px;
    position: relative;
    box-shadow: 0 5px 25px rgba(0,0,0,0.5); /* Softer shadow */
}

/* Ensure no pseudo-elements appear on any element inside the import modal */
.import-client-modal-content *::before,
.import-client-modal-content *::after {
    display: none !important;
}

.import-client-modal-content .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-color: #333;
}

.import-client-modal-content .modal-title {
    color: #f39c12; /* Theme color for title */
    font-weight: 500;
    font-size: 1.2em !important; /* Reduced font size */
}

.import-client-modal-close {
    color: #bbb; /* Adjusted for potentially darker bg */
    font-size: 28px;
    font-weight: bold;
    /* Position handled by parent flexbox */
}

.import-client-modal-close:hover,
.import-client-modal-close:focus {
    color: #fff;
}

.import-client-modal-content .form-group label {
    color: #f0f0f0; /* Brighter label for dark bg */
    margin-bottom: 8px;
    font-weight: 500;
}

.import-client-modal-content .form-control-file {
    background-color: rgba(45, 46, 54, 0.7); 
    border: none !important; /* Remove all borders */
    outline: none !important; 
    box-shadow: none !important; 
    color: #ffffff;
    padding: 10px 15px;
    border-radius: 5px;
    -webkit-appearance: none; 
    -moz-appearance: none;
    appearance: none;
    background-clip: padding-box; 
}

.import-client-modal-content .btn.theme-btn-secondary {
    background-color: #f39c12; /* Use the specified color */
    color: var(--primary-color, #2d2e36); /* Existing color, check contrast */
    border: none;
    padding: 12px 20px;
    text-transform: uppercase;
    font-weight: bold;
    width: 100%;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.import-client-modal-content .btn.theme-btn-secondary:hover {
     background-color: #dAA202;
    color: #ffffff;
}

.import-client-modal-content .alert-success {
    background-color: rgba(40, 167, 69, 0.2); /* Slightly more opaque for visibility */
    color: #d4edda; /* Lighter green for text on dark bg */
    border: 1px solid rgba(40, 167, 69, 0.5);
    padding: 12px 15px;
    border-radius: 5px;
    margin-top: 15px;
}

.import-client-modal-content .alert-danger {
    background-color: rgba(220, 53, 69, 0.2); /* Slightly more opaque for visibility */
    color: #f8d7da; /* Lighter red for text on dark bg */
    border: 1px solid rgba(220, 53, 69, 0.5);
    padding: 12px 15px;
    border-radius: 5px;
    margin-top: 15px;
}

/* CSS for the loading spinner */
.spinner {
    border: 4px solid rgba(255, 255, 255, 0.3); /* Light grey border */
    border-top: 4px solid #f39c12; /* Theme color for the top border */
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 20px auto; /* Center the spinner */
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Livetickets Sidebar - Override Close Button Icon */
/* Targets the link based on its onclick JavaScript function call */
a[onclick="closeSidebar();"] {
    /* Ensure the 'X' is vertically centered if the link has a specific height */
    display: inline-flex;
    align-items: center;
    justify-content: center; /* Center the 'X' if the link acts like a block button */
    text-decoration: none; /* Ensure no underline on the link itself */
    /* You might need to adjust padding/width/height if the original button had specific dimensions */
    /* e.g., width: 30px; height: 30px; padding: 0; */
}

/* Hide the original Font Awesome icon (specifically fa-chevron-right as per screenshot) */
a[onclick="closeSidebar();"] > i.fa.fa-chevron-right {
    display: none !important;
}

/* Add a new 'X' icon using a pseudo-element */
a[onclick="closeSidebar();"]::after {
    content: "×"; /* Unicode multiplication sign (U+00D7), a common 'X' for close buttons */
    font-family: Arial, Helvetica, sans-serif; /* Common, widely available fonts */
    font-size: 36px; /* Increased size */
    font-weight: bold;
    color: #f7941d; /* Matches the inline style color from the screenshot */
    line-height: 1; /* Helps prevent extra space above/below the 'X' */
    text-decoration: none; /* Ensure the 'X' itself isn't underlined */
}

/* Drink Card Background Images */
.drink-card:nth-child(1) {
    background-image: url('../images/bar/1.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.drink-card:nth-child(2) {
    background-image: url('../images/bar/2.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.drink-card:nth-child(3) {
    background-image: url('../images/bar/3.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.drink-card:nth-child(4) {
    background-image: url('../images/bar/4.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.drink-card:nth-child(5) {
    background-image: url('../images/bar/5.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.drink-card:nth-child(6) {
    background-image: url('../images/bar/6.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Add a dark overlay to ensure text readability */
.drink-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1;
    border-radius: 15px;
    transition: opacity 0.8s ease-in-out;
}


/* All overlays start visible (dark state) */
.drink-card:nth-child(1)::after,
.drink-card:nth-child(2)::after,
.drink-card:nth-child(3)::after,
.drink-card:nth-child(4)::after,
.drink-card:nth-child(5)::after,
.drink-card:nth-child(6)::after {
    opacity: 1;
}


/* Ensure content is above the overlay */
.drink-header,
.drink-details {
    position: relative;
    z-index: 2;
}

/* Styling for the client count text */
.client-count-text {
    color: #f0f0f0;
    text-align: left;
}

/* Remove the ::after pseudo-element from the Import Clients button */
.theme-btn-secondary::after {
    display: none !important;
}

/* Specific table styling for the client data viewer */
#client-data-viewer .client-data-table {
    /* Add specific table styles here if needed */
}

/* Beach Gallery Styles */

.beach-content-wrapper {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: none; /* Remove any width constraints */
}

.beach-section-title {
    color: #ffffff;
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 15px;
    text-transform: lowercase;
}

.beach-section-subtitle {
    color: #ccc;
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

.beach-gallery-container {
    position: relative;
    width: 100%;
    max-width: none; /* Remove any width constraints */
}

.beach-gallery-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0;
    justify-content: center;
    width: 100%; /* Ensure full width */
}

.beach-gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.beach-gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(247, 148, 29, 0.3);
}

.beach-image-wrapper {
    position: relative;
    width: 100%;
    height: 250px; /* Default height for regular gallery items */
    overflow: hidden;
    border-radius: 15px;
}

.beach-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.beach-gallery-item:hover .beach-image-wrapper img {
    transform: scale(1.1);
}

.beach-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(247, 148, 29, 0.8), rgba(247, 148, 29, 0.6));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.beach-gallery-item:hover .beach-image-overlay {
    opacity: 1;
}

/* Beach Experience Card - Always show overlay */
.beach-experience-card .beach-experience-overlay {
    opacity: 1 !important; /* Always visible */
}

.beach-experience-card:hover .beach-image-overlay {
    opacity: 1; /* Maintain overlay on hover */
}

/* Override Bootstrap container constraints for beach section */
.beach-area .container {
    max-width: none !important;
    width: 100% !important;
    padding: 0 !important;
}

.beach-area .row {
    margin: 0 !important;
    width: 100% !important;
    max-width: none !important;
}

.beach-area .col-xl-12 {
    padding: 0 !important;
    max-width: none !important;
    flex: none !important;
    width: 100% !important;
}

/* Style for single experience card layout */
.beach-gallery-grid {
    max-width: 600px; /* Even smaller width for desktop */
    margin: 0 auto;
    grid-template-columns: 1fr;
    justify-items: center;
    display: flex !important; /* Use flex for better centering */
    justify-content: center !important; /* Center horizontally */
    align-items: center !important; /* Center vertically if needed */
}

.beach-experience-card {
    width: 600px !important; /* Even smaller fixed width for desktop */
    max-width: 600px !important; /* Even smaller max width */
    min-width: 500px !important; /* Adjusted minimum width */
    margin: 0 auto !important; /* Center the card */
    display: block !important; /* Ensure block display */
}

.beach-experience-card .beach-image-wrapper {
    height: 350px !important; /* Keep same height */
    width: 100% !important;
    max-width: 600px !important; /* Even smaller max width */
    min-width: 500px !important; /* Adjusted minimum width */
}

/* Tablet adjustments */
@media (max-width: 1024px) {
    .beach-gallery-grid {
        max-width: 700px; /* Smaller for tablets */
    }
    
    .beach-experience-card {
        width: 700px !important;
        max-width: 700px !important;
        min-width: 500px !important;
    }
    
    .beach-experience-card .beach-image-wrapper {
        height: 300px; /* Smaller height */
        width: 700px !important;
        max-width: 700px !important;
        min-width: 500px !important;
    }
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .beach-gallery-grid {
        max-width: 95%;
        padding: 0 10px;
    }
    
    .beach-experience-card {
        width: 90vw !important; /* Use viewport width on mobile */
        max-width: 500px !important;
        min-width: 300px !important;
    }
    
    .beach-experience-card .beach-image-wrapper {
        height: 350px; /* Bigger on mobile too */
        width: 90vw !important;
        max-width: 500px !important;
        min-width: 300px !important;
    }
}

.beach-image-content {
    text-align: center;
    color: #ffffff;
}

.beach-image-content i {
    font-size: 2rem;
    margin-bottom: 10px;
    display: block;
}

.beach-image-content span {
    font-size: 1.1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Beach Lightbox Styles */
.beach-lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    animation: fadeIn 0.3s ease;
}

.beach-lightbox.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.beach-lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    margin: auto;
}

.beach-lightbox-close {
    position: absolute;
    top: 0;
    right: -50px;
    color: #ffffff;
    font-size: 2.5rem;
    font-weight: bold;
    cursor: pointer;
    z-index: 10001;
    transition: color 0.3s ease;
}

.beach-lightbox-close:hover {
    color: #f7941d;
}

.beach-lightbox-navigation {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    z-index: 10000;
    pointer-events: none;
}

.beach-nav-btn {
    background: rgba(247, 148, 29, 0.8);
    color: #ffffff;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: all;
    display: flex;
    align-items: center;
    justify-content: center;
}

.beach-nav-btn:hover {
    background: rgba(247, 148, 29, 1);
    transform: scale(1.1);
}

.beach-prev-btn {
    margin-left: -25px;
}

.beach-next-btn {
    margin-right: -25px;
}

.beach-lightbox-image-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    position: relative;
    width: 100%;
}

.beach-lightbox-image-container img {
    max-width: 90%;
    max-height: 80vh;
    border-radius: 10px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    display: none;
    object-fit: contain;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Show only the active image */
.beach-lightbox-image-container img.active {
    display: block;
}

.beach-lightbox-counter {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 500;
}

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

/* Hide social links and below sections when beach lightbox is active on all devices */
body.beach-lightbox-open .slider-social-link {
    visibility: hidden !important;
    opacity: 0 !important;
}

/* Hide all sections below the beach section when lightbox is active on all devices */
body.beach-lightbox-open #drinks,
body.beach-lightbox-open #meniu,
body.beach-lightbox-open #instagram,
body.beach-lightbox-open #contact,
body.beach-lightbox-open #about {
    visibility: hidden !important;
    opacity: 0 !important;
}

/* Responsive adjustments for Beach Gallery */
@media (max-width: 768px) {
    .beach-area {
        padding: 60px 0;
    }
    
    .beach-section-title {
        font-size: 2rem;
    }
    
    .beach-section-subtitle {
        font-size: 1rem;
        padding: 0 15px;
    }
    
    .beach-gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 15px;
        padding: 0 10px;
    }
    
    .beach-image-wrapper {
        height: 200px;
    }
    
    .beach-lightbox-close {
        top: -40px;
        right: 10px;
        font-size: 2rem;
        color: #ffffff !important;
        z-index: 10002;
    }
    
    .beach-nav-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .beach-lightbox-counter {
        bottom: -30px;
        font-size: 1rem;
    }
    
    .beach-lightbox-content {
        max-width: 95vw;
    }
    

    
    /* Exclude beach from mobile padding adjustments */
    #about, #meniu, #drinks, #instagram, #contact { /* #home and #beach are excluded */
        padding-top: 78px; /* Increased from 58px, for more spacing below header */
    }
}

@media (min-width: 1200px) {
    .beach-gallery-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1400px) {
    .beach-gallery-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}



/* Event Image Placeholder Styles */
.event-image-placeholder {
    width: 100%;
    height: 100%; /* Match img height property */
    position: relative; /* Match img position property */
    display: flex; /* Use flex for centering icon */
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.event-back-image-placeholder {
    position: absolute; /* Match .event-back-image positioning */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    box-sizing: border-box; /* Ensure consistent sizing */
    /* Flexbox properties for centering icon */
    display: flex;
    align-items: center;
    justify-content: center;
}

.event-image-placeholder .placeholder-content,
.event-back-image-placeholder .placeholder-content {
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.3);
}

.event-image-placeholder .placeholder-content i,
.event-back-image-placeholder .placeholder-content i {
    font-size: 2.5em;
    opacity: 0.4;
}

/* Modal styles - Import Client Modal */