:root {
    --primary-green: #2ecc71;
    --dark-green: #27ae60;
    --river-blue: #3498db;
    --dark-bg: #0b0e11;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-white: #f5f6fa;
    --accent: #00ff88;
}

div:where(.swal2-container).swal2-backdrop-show,
div:where(.swal2-container).swal2-noanimation {
    background: rgba(0, 0, 0, 0.473) !important;
    backdrop-filter: blur(10px) !important;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--dark-bg);
    color: var(--text-white);
    overflow-x: hidden;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Preloader */
/* Preloader */
/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--dark-bg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.scene {
    position: relative;
    width: 100vw;
    height: 300px;
}

/* Linha (água) */
.line {
    position: absolute;
    top: 150px;
    left: 0;
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
    overflow: visible;
    z-index: 1;
}

/* Barco */
.boat {
    position: absolute;
    top: 70px;
    left: -300px;
    width: 300px;
    animation: moveBoat 3s linear infinite;
    z-index: 0;
}

/* Ondulação da linha */
.ripple {
    position: absolute;
    top: -9px;
    width: 100px;
    height: 20px;
    border-top: 3px solid #fff;
    /* White for visibility */
    border-radius: 100%;
    animation: rippleWave 2s ease-out forwards;
    pointer-events: none;
    z-index: 999;
}

@keyframes moveBoat {
    from {
        left: -300px;
    }

    to {
        left: 100%;
    }
}

@keyframes rippleWave {
    0% {
        transform: scaleX(0.5);
        opacity: 0.9;
    }

    100% {
        transform: scaleX(1.9);
        opacity: 0;
    }
}

/* Navigation & Buttons */
/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 15px 0;
    background: rgba(11, 14, 17, 0.85);
    /* Dark semi-transparent */
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo img {
    height: 40px;
    width: auto;
}

.nav-auth-mobile {
    display: none;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-white);
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.3s;
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-auth {
    display: flex;
    align-items: center;
}

.btn-outline,
.btn-filled {
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-family: 'Outfit', sans-serif;
    margin-left: 10px;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
}

.btn-outline:hover {
    background: var(--accent);
    color: var(--dark-bg);
}

.btn-filled {
    background: var(--accent);
    color: var(--dark-bg);
}

.btn-filled:hover {
    box-shadow: 0 0 20px var(--accent);
    transform: scale(1.05);
}

#user-name-display {
    margin-right: 15px;
    font-weight: 600;
    color: #fff;
}

/* Client Area / Dashboard */
.dashboard {
    margin-top: 20px;
}

.dashboard-header {
    text-align: center;
    margin-bottom: 30px;
}

.days-selector {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.day-check {
    cursor: pointer;
}

.day-check input {
    display: none;
}

.day-check span {
    display: inline-block;
    padding: 15px 25px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    transition: all 0.3s;
    font-weight: 600;
}

.day-check input:checked+span {
    background: var(--accent);
    color: var(--dark-bg);
    border-color: var(--accent);
    box-shadow: 0 0 15px var(--accent);
}

.dashboard-actions {
    display: flex;
    justify-content: center;
}

.admin-days-list,
.bookings-grid {
    margin-top: 30px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
}

.item-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.item-info h4 {
    color: var(--accent);
    margin-bottom: 5px;
}

.status-badge {
    font-size: 0.75rem;
    padding: 3px 10px;
    border-radius: 20px;
    background: rgba(46, 204, 113, 0.2);
    color: var(--primary-green);
}

.btn-delete {
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
    border: 1px solid #e74c3c;
    padding: 5px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
}

.btn-delete:hover {
    background: #e74c3c;
    color: #fff;
}

@keyframes wave-move {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-40px);
    }
}

/* Header & River Redesign with provided Image */
header.custom-header {
    height: 76vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    text-align: center;
    background: url('../assets/river_bg.png') no-repeat center center;
    background-size: cover;
}

.header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 15%, var(--dark-bg) 98%);
    z-index: 1;
}

.header-content {
    position: relative;
    z-index: 10;
}

.logo-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 20px;
}

.logo-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150%;
    height: 150%;
    background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
    opacity: 0.2;
    filter: blur(50px);
    z-index: -1;
    animation: pulse 4s infinite ease-in-out;
}

.main-logo {
    max-width: 600px;
    height: auto;
    filter: drop-shadow(0 25px 60px rgba(0, 0, 0, 0.8));
    animation: float 6s infinite ease-in-out;
}

@keyframes pulse {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.2;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 0.3;
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-15px) rotate(1deg);
    }
}

.glow-text {
    font-size: 5rem;
    font-weight: 800;
    margin-top: -104px;
    background: linear-gradient(to right, #fff, #ffffff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 40px rgb(39 39 39 / 40%);
    letter-spacing: -2px;
}

.subtitle {
    font-size: 1.0rem;
    color: #cbcbcb;
    text-transform: uppercase;
    letter-spacing: 7px;
    font-weight: 500;
    opacity: 1;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.8);
}

html {
    scroll-behavior: smooth;
}

h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-top: 20px;
    color: #fff;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Glassmorphism */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.section-title {
    text-align: center;
    margin: 50px 0 30px;
    font-size: 2rem;
    color: var(--accent);
}

/* Booking Slots */
.slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.slot-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.slot-card:hover {
    background: rgba(46, 204, 113, 0.1);
    border-color: var(--accent);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.slot-date {
    font-size: 0.9rem;
    color: #999;
    margin-bottom: 5px;
}

.slot-time {
    font-size: 1.8rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 10px;
}

.slot-price {
    font-size: 1.1rem;
    color: var(--accent);
    margin-bottom: 15px;
}

.btn-book {
    background: var(--primary-green);
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    width: 100%;
}

.btn-book:hover {
    background: var(--accent);
    box-shadow: 0 0 15px var(--accent);
}

footer {
    text-align: center;
    padding: 50px 0;
    color: #666;
    font-size: 0.9rem;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--dark-bg);
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-green);
}

/* Responsive Refinement */
@media (max-width: 768px) {
    header.custom-header {
        height: 60vh;
    }

    .main-logo {
        max-width: 280px;
    }

    .glow-text {
        font-size: 1.9rem;
        margin-top: -40px;
        letter-spacing: -1px;
    }

    .subtitle {
        font-size: 0.75rem;
        letter-spacing: 3px;
        padding: 0 15px;
    }

    .section-title {
        font-size: 1.5rem;
        margin: 30px 0 20px;
    }

    .nav-links {
        display: none;
    }

    .navbar {
        padding: 10px 0;
    }

    .glass-card {
        padding: 20px;
    }

    /* Mobile Sidebar & Hamburger */
    .hamburger {
        display: block !important;
        background: none;
        border: none;
        color: #fff;
        font-size: 1.5rem;
        cursor: pointer;
    }

    /* Hide Auth in Navbar on mobile if using sidebar */
    .nav-auth {
        display: none;
    }

    .nav-logo {
        display: none;
    }

    .nav-auth-mobile {
        display: flex;
        align-items: center;
    }

    .btn-filled-sm,
    .btn-outline-sm {
        padding: 6px 15px;
        font-size: 0.85rem;
        border-radius: 50px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s ease;
        border: none;
        font-family: 'Outfit', sans-serif;
    }

    .btn-filled-sm {
        background: var(--accent);
        color: var(--dark-bg);
    }

    .btn-outline-sm {
        background: transparent;
        border: 1px solid var(--accent);
        color: var(--accent);
    }

    .slot-time {
        font-size: 1.5rem;
    }
}

/* Base Hamburger (default hidden) */
.hamburger {
    display: none;
}

/* Sidebar Styling */
.mobile-sidebar {
    position: fixed;
    top: 0;
    left: -280px;
    width: 250px;
    height: 100vh;
    background: #0b0e11;
    z-index: 2000;
    transition: left 0.3s ease-in-out;
    padding: 20px;
    box-shadow: 5px 0 15px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
}

.sidebar-auth {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid var(--glass-border);
}

.sidebar-auth button {
    width: 100%;
    margin-left: 0;
    margin-bottom: 10px;
}

#user-name-display-mobile {
    display: block;
    margin-bottom: 15px;
    font-weight: 600;
    color: var(--accent);
    text-align: center;
}

.mobile-sidebar.active {
    left: 0;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 15px;
}

.sidebar-header img {
    height: 30px;
}

.close-btn {
    background: none;
    border: none;
    color: var(--accent);
    font-size: 1.5rem;
    cursor: pointer;
}

.sidebar-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-links a {
    text-decoration: none;
    color: #fff;
    font-size: 1.1rem;
    display: block;
    transition: 0.3s;
}

.sidebar-links a:hover {
    color: var(--accent);
    padding-left: 10px;
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1500;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
}

/* Calendar Styling */
.calendar-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.calendar-header h3 {
    font-size: 1.5rem;
    color: #fff;
    text-transform: capitalize;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-weight: 600;
    color: #999;
    margin-bottom: 15px;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
}

.day-cell {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    cursor: default;
    transition: all 0.2s;
    position: relative;
    font-weight: 600;
}

.day-cell.other-month {
    opacity: 0.3;
    pointer-events: none;
}

.day-cell.open {
    background: rgba(46, 204, 113, 0.2);
    border-color: var(--primary-green);
    color: #fff;
    cursor: pointer;
}

.day-cell.open:hover {
    background: rgba(46, 204, 113, 0.4);
    transform: scale(1.05);
}

.day-cell.booked {
    background: rgba(231, 76, 60, 0.2);
    border-color: #e74c3c;
    color: #e74c3c;
    opacity: 0.7;
    cursor: not-allowed;
    text-decoration: line-through;
}

.day-cell.selected {
    background: var(--accent);
    color: var(--dark-bg);
    box-shadow: 0 0 5px var(--accent);
    transform: scale(1.0);
    z-index: 10;
    border-color: var(--accent);
}

.calendar-actions {
    margin-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid var(--glass-border);
}

.selection-info {
    color: #fff;
    font-size: 1.1rem;
}

.selection-info span {
    color: var(--accent);
    font-weight: 800;
    margin-right: 5px;
}

button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Response */
@media (max-width: 600px) {
    .calendar-grid {
        gap: 5px;
    }

    .day-cell {
        font-size: 0.9rem;
    }

    .calendar-actions {
        flex-direction: column;
        gap: 20px;
    }

    .btn-filled {
        width: 100%;
    }
}

/* Admin Tabs */
.admin-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.05);
    padding: 10px;
    border-radius: 15px;
    overflow-x: auto;
    border: 1px solid var(--glass-border);
}

.tab-btn {
    background: transparent;
    border: none;
    color: #999;
    padding: 10px 20px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    white-space: nowrap;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tab-btn i {
    font-size: 1rem;
}

.tab-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.tab-btn.active {
    background: var(--accent);
    color: var(--dark-bg);
}

.admin-tab-content {
    display: none;
}

.admin-tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* User Card specific adjustments */
#admin-clients-list .item-card,
#admin-all-bookings-list .item-card {
    grid-template-columns: 1fr auto;
    background: rgba(255, 255, 255, 0.05);
}

.user-meta {
    font-size: 0.85rem;
    color: #999;
    margin-top: 5px;
}

.user-meta i {
    width: 16px;
    text-align: center;
    margin-right: 5px;
    color: var(--accent);
}

.booking-user-info {
    font-size: 0.8rem;
    color: #ccc;
    margin-top: 5px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 5px;
}

.booking-user-info i {
    color: var(--river-blue);
    margin-right: 5px;
}