/* Reset and Base Styles */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
    /* Color Palette - Fresh, sporty theme */
    --primary: #00D9FF;
    --primary-dark: #00A8CC;
    --secondary: #FF6B6B;
    --success: #51CF66;
    --warning: #FFD93D;
    --danger: #FF6B6B;
    --dark: #0F172A;
    --dark-secondary: #1E293B;
    --dark-tertiary: #334155;
    --light: #F8FAFC;
    --text-primary: #F1F5F9;
    --text-secondary: #CBD5E1;
    --text-muted: #94A3B8;
    --border: #334155;
    --shadow: rgba(0, 0, 0, 0.25);
    --gradient-primary: linear-gradient(135deg, #00D9FF 0%, #00A8CC 100%);
    --gradient-dark: linear-gradient(135deg, #1E293B 0%, #0F172A 100%);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--dark);
    background-image: radial-gradient(circle at 20% 50%, rgba(0, 217, 255, 0.1) 0%, transparent 50%),
                      radial-gradient(circle at 80% 80%, rgba(255, 107, 107, 0.1) 0%, transparent 50%);
    min-height: 100vh;
}

/* Container */
.container, .admin-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 20px;
}

/* Header Styles */
header, .admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(30, 41, 59, 0.8);
    backdrop-filter: blur(10px);
    color: var(--text-primary);
    padding: 20px 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px var(--shadow);
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 100; /* Ensure header stays on top */
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}


.logo h1 {
    font-size: 1.75rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}


.site-logo {
    height: 5em;         /* Matches h1 text size */
    width: auto;
    display: block;
    margin-right: 12px;
    object-fit: contain;
    /* Optional: add a subtle shadow or border if you want */
}

/* Responsive adjustments */
@media (max-width: 768px) {
    header, .admin-header {
        flex-direction: column;
        gap: 15px;
        padding: 20px;
        text-align: center;
    }

    /* Logo: Now horizontal (row), logo on left, text on right */
    .logo {
        flex-direction: row;
        justify-content: flex-start; /* Aligns items to the left */
        align-items: center;
        gap: 12px; /* Space between logo and text */
    }

    /* Increase logo size on mobile */
    .site-logo {
        height: 2.2em; /* Slightly bigger than desktop */
    }

    /* Ensure text doesn't grow too big */
    .logo h1 {
        font-size: 1.5rem;
        margin: 0;
    }

    .tagline {
        font-size: 0.85rem;
    }

    /* Keep other mobile styles... */
    .auth-controls {
        width: 100%;
        justify-content: center;
    }

    .panel, .auth-form, .admin-card {
        padding: 20px;
    }

}

@media (max-width: 480px) {
    .site-logo {
        height: 2em; /* Still bigger than before */
    }
    .logo h1 {
        font-size: 1.4rem;
    }
    .tagline {
        font-size: 0.8rem;
    }
}



.tagline {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 400;
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.auth-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.auth-btn {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 10px 20px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.auth-btn:hover, .profile-btn:hover {
    background: var(--primary);
    color: var(--dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 217, 255, 0.3);
    border-color: var(--primary);
}

#admin-link {
    background: rgba(255, 107, 107, 0.1);
    border-color: rgba(255, 107, 107, 0.3);
}

#admin-link:hover {
    background: var(--secondary);
    border-color: var(--secondary);
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.3);
}

/* Profile icon styles */
.profile-icon {
    width: 10px;
    height: 10px;
    background: var(--gradient-primary);
    color: var(--dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
}

/* Notifications */
.notifications {
    position: relative;
    z-index: 110; /* Higher than header */
}

.notifications-btn {
    background: rgba(255, 255, 255, 0.05); /* Subtle background for context */
    border: 1px solid rgba(255, 255, 255, 0.1); /* Light border for definition */
    color: var(--text-primary);
    font-size: 1.1rem; /* Larger icon for prominence */
    cursor: pointer;
    position: relative;
    padding: 14px; /* Increased padding for larger area */
    width: 40px; /* Larger clickable area */
    height: 40px;
    border-radius: 12px; /* Slightly rounded square for modern look */
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2); /* Subtle shadow */
}

.notifications-btn:hover {
    background: rgba(0, 217, 255, 0.15); /* Light cyan hover effect */
    border-color: var(--primary);
    transform: scale(1.05); /* Slight scale on hover */
}

.notification-badge {
    position: absolute;
    top: -10px; /* Positioned above the button */
    right: -10px; /* Positioned to the right */
    background: linear-gradient(45deg, #FF3B3B, #FF6B6B); /* Vibrant red gradient */
    color: var(--dark); /* Dark text for contrast */
    border-radius: 10px; /* Rounded square shape */
    width: 18px; /* Badge size */
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem; /* Readable font */
    font-weight: 700; /* Bold text */
    z-index: 20; /* Above button */
    box-shadow: 0 0 10px rgba(255, 107, 107, 0.5), 0 0 20px rgba(255, 107, 107, 0.3); /* Glowing effect */
    animation: bounce 1.8s ease-in-out infinite; /* Subtle bounce animation */
}

.notifications-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 350px;
    max-height: 400px;
    overflow-y: auto;
    background: var(--dark-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 10px 30px var(--shadow);
    z-index: 1000; /* Highest z-index */
    display: none;
    padding: 15px;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.notifications-dropdown.show {
    display: block;
    transform: translateY(0);
    animation: fadeInUp 0.3s ease-out;
}

.notifications-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
    gap: 10px;
}

.notifications-header h4 {
    margin: 0;
}

.notifications-header > div {
    display: flex;
    align-items: center;
    gap: 5px;
}

#mark-all-read {
    background: none;
    border: none;
    color: var(--primary);
    cursor: pointer;
    font-size: 0.8rem;
}

.close-notifications-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 5px 8px;
    margin-left: 10px;
    transition: all 0.3s ease;
}

.close-notifications-btn:hover {
    color: var(--primary);
    transform: rotate(90deg);
}

.notifications-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.notification-item {
    padding: 12px;
    background: rgba(15, 23, 42, 0.5);
    border-radius: 8px;
    border-left: 3px solid var(--primary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.notification-item:hover {
    background: rgba(0, 217, 255, 0.1);
    transform: translateX(5px);
}

.notification-item.unread {
    background: rgba(0, 217, 255, 0.1);
    border-left: 3px solid var(--success);
}

.notification-item .notification-title {
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--primary);
}

.notification-item .notification-message {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.notification-item .notification-time {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: right;
}

/* Main Content */
main {
    margin: 30px 0;
}

.panel, .auth-form, .admin-card {
    background: rgba(30, 41, 59, 0.8);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px var(--shadow);
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: fadeInUp 0.5s ease-out;
    position: relative;
    z-index: 2; /* Higher than calendar but lower than notifications */
}

h1, h2, h3 {
    color: var(--text-primary);
    margin-bottom: 20px;
}

h2 {
    font-size: 1.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

h2 i {
    color: var(--primary);
    font-size: 1.3rem;
}

h3 {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--text-secondary);
}

/* Form Styles */
form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

input, button, select, textarea {
    padding: 14px 18px;
    border: 1px solid var(--border);
    border-radius: 12px;
    font-size: 0.95rem;
    background: rgba(15, 23, 42, 0.5);
    color: var(--text-primary);
    transition: all 0.3s ease;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 217, 255, 0.1);
    background: rgba(15, 23, 42, 0.8);
}

button {
    background: var(--gradient-primary);
    color: var(--dark);
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: left 0.3s ease;
}

button:hover::before {
    left: 100%;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 217, 255, 0.3);
}

button:active {
    transform: translateY(0);
}

button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Calendar Styles */
.calendar-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(15, 23, 42, 0.5);
    border-radius: 12px;
}

.calendar-nav button {
    padding: 8px 16px;
    font-size: 0.9rem;
}

#current-month {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary);
}

.calendar {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
    margin-bottom: 30px;
    position: relative;
    z-index: 1; /* Lower than notifications */
}

.day-header {
    font-size: 0.75rem;
    font-weight: 600;
    text-align: center;
    padding: 6px;
    background: var(--gradient-primary);
    color: var(--dark);
    border-radius: 8px;
}

.day {
    padding: 8px;
    text-align: center;
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.875rem;
    background: rgba(15, 23, 42, 0.5);
    color: var(--text-primary);
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 35px;
}

.day:hover:not(.empty) {
    background: rgba(0, 217, 255, 0.1);
    border-color: var(--primary);
    transform: scale(1.05);
}

.day.today {
    background: var(--gradient-primary);
    color: var(--dark);
    font-weight: 600;
    border: none;
}

.day.selected {
    border: 2px solid var(--primary);
    background: rgba(0, 217, 255, 0.2);
    font-weight: 600;
}

.day.empty {
    cursor: default;
    opacity: 0.3;
}

.day:not(.empty):hover::after {
    content: '';
    position: absolute;
    inset: -2px;
    background: var(--gradient-primary);
    border-radius: 12px;
    opacity: 0.2;
    z-index: -1;
    animation: pulse 1.5s infinite;
}

/* Time Slots */
.time-slots {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.slot {
    padding: 20px;
    border: 2px solid var(--border);
    border-radius: 15px;
    font-size: 1rem;
    cursor: pointer;
    background: rgba(15, 23, 42, 0.5);
    color: var(--text-primary);
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.slot::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--gradient-primary);
    border-radius: 15px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.slot.available {
    border-color: var(--success);
    background: rgba(81, 207, 102, 0.1);
}

.slot.available:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(81, 207, 102, 0.3);
}

.slot.available:hover::before {
    opacity: 0.1;
}

.slot.booked {
    background: rgba(255, 107, 107, 0.1);
    border-color: var(--danger);
    color: var(--text-muted);
    cursor: not-allowed;
    opacity: 0.7;
}

.slot.selected {
    border-color: var(--primary);
    background: rgba(0, 217, 255, 0.2);
    font-weight: 600;
}

.slot.selected::before {
    opacity: 0.2;
}

/* Guest Players Section */
.guest-players {
    background: rgba(15, 23, 42, 0.5);
    padding: 20px;
    border-radius: 15px;
    margin-top: 20px;
}

.guest-players h3 {
    margin-bottom: 15px;
}

#guest-inputs {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
}

.guest-name {
    width: 100%;
}

#add-guest-btn {
    background: var(--gradient-dark);
    border: 1px solid var(--primary);
    color: var(--primary);
}

#add-guest-btn:hover {
    background: var(--gradient-primary);
    color: var(--dark);
}

.remove-guest-x {
    background: none;
    border: none;
    color: var(--danger);
    font-size: 1.2rem;
    cursor: pointer;
    margin-left: 6px;
    padding: 0 6px;
    border-radius: 50%;
    transition: background 0.2s;
}

.remove-guest-x:hover {
    background: var(--danger);
    color: var(--dark);
}

.guest-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Booking Summary */
.booking-summary {
    background: rgba(0, 217, 255, 0.1);
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 20px;
    border: 1px solid rgba(0, 217, 255, 0.3);
}

.booking-summary h3 {
    color: var(--primary);
    margin-bottom: 15px;
}

.booking-summary p {
    margin-bottom: 8px;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

#book-btn {
    width: 100%;
    padding: 16px;
    font-size: 1.1rem;
    background: var(--gradient-primary);
    border-radius: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Bookings List */
.bookings-list {
    display: grid;
    gap: 15px;
}

.booking-item {
    background: rgba(15, 23, 42, 0.5);
    padding: 20px;
    border-radius: 15px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.booking-item:hover {
    transform: translateX(5px);
    border-color: var(--primary);
    box-shadow: 0 5px 15px rgba(0, 217, 255, 0.2);
}

.booking-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: var(--primary);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.booking-item:hover::before {
    transform: scaleY(1);
}

.booking-item h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--primary);
}

.booking-item p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 5px;
}

.cancel-btn, .modify-btn {
    padding: 8px 16px;
    margin-top: 10px;
    margin-right: 10px;
    border-radius: 10px;
    font-size: 0.85rem;
}

.cancel-btn {
    background: rgba(255, 107, 107, 0.2);
    color: var(--danger);
    border: 1px solid var(--danger);
}

.cancel-btn:hover {
    background: var(--danger);
    color: var(--dark);
}

.modify-btn {
    background: rgba(0, 217, 255, 0.2);
    color: var(--primary);
    border: 1px solid var(--primary);
}

.modify-btn:hover {
    background: var(--primary);
    color: var(--dark);
}

/* Success and Receipt Messages */
.success-message, .receipt-message {
    display: none;
    margin-top: 20px;
    padding: 20px;
    background: rgba(81, 207, 102, 0.1);
    color: var(--text-primary);
    border-radius: 15px;
    border: 1px solid var(--success);
    animation: slideInUp 0.5s ease-out;
}

.success-message i {
    color: var(--success);
    font-size: 1.5rem;
    margin-right: 10px;
}

.receipt-message {
    background: rgba(0, 217, 255, 0.1);
    border-color: var(--primary);
}

.receipt-message h3 {
    color: var(--primary);
    margin-bottom: 15px;
}

.receipt-message p {
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.receipt-message strong {
    color: var(--text-primary);
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease-out;
}

.modal-content {
    background: var(--dark-secondary);
    padding: 30px;
    border-radius: 20px;
    max-width: 90%;
    width: 500px;
    max-height: 85vh;
    overflow-y: auto;
    color: var(--text-primary);
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: slideInUp 0.4s ease-out;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: var(--danger);
    color: var(--dark);
    transform: rotate(90deg);
}

/* Welcome Modal */
#welcome-modal .modal-content {
    max-width: 700px;
}

.welcome-content {
    margin: 20px 0;
}

.welcome-section {
    margin-bottom: 25px;
    padding: 20px;
    background: rgba(0, 217, 255, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(0, 217, 255, 0.2);
}

.welcome-steps {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin: 30px 0;
}

.welcome-step {
    flex: 1;
    text-align: center;
    padding: 20px;
    background: rgba(0, 217, 255, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(0, 217, 255, 0.2);
    transition: all 0.3s ease;
}

.welcome-step:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 217, 255, 0.1);
}

.welcome-step i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.welcome-step h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.welcome-step p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.welcome-section h3 {
    margin: 20px 0 15px;
    font-size: 1.15rem;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.welcome-section ol, .welcome-section ul {
    padding-left: 25px;
    margin-top: 10px;
}

.welcome-section li {
    margin-bottom: 8px;
    color: var(--text-secondary);
}

#close-welcome-btn {
    background: var(--gradient-primary);
    width: 100%;
    padding: 15px;
    font-size: 1rem;
    margin-top: 15px;
    border-radius: 12px;
    font-weight: 600;
}

/* Rules Modal */
#rules-modal .modal-body {
    flex: 1;
    margin-bottom: 20px;
}

#rules-modal .scroll-prompt {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    text-align: center;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

#rules-modal h3 {
    margin: 20px 0 15px;
    font-size: 1.15rem;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

#rules-modal ul {
    margin-bottom: 20px;
    padding-left: 25px;
    list-style-type: none;
}

#rules-modal ul li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 25px;
    color: var(--text-secondary);
}

#rules-modal ul li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

#rules-modal .sticky-footer {
    position: sticky;
    bottom: -20px;
    background: var(--dark-secondary);
    padding: 20px 0;
    margin: 0 -30px -30px;
    padding: 20px 30px;
    border-top: 1px solid var(--border);
    border-radius: 0 0 20px 20px;
}

#rules-modal .rules-agreement {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

#rules-modal .rules-agreement input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--primary);
}

#rules-modal .rules-agreement label {
    font-size: 0.95rem;
    color: var(--text-primary);
    cursor: pointer;
}

#rules-modal #confirm-rules-btn {
    width: 100%;
    padding: 15px;
    background: var(--gradient-primary);
    color: var(--dark);
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

#rules-modal #confirm-rules-btn:disabled {
    background: var(--dark-tertiary);
    color: var(--text-muted);
    cursor: not-allowed;
}

/* Admin Panel Specific */
.admin-header {
    margin-bottom: 30px;
}

#admin-greeting {
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-weight: 400;
}

/* Stats Container */
.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--gradient-primary);
    color: var(--dark);
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    font-size: 1rem;
    box-shadow: 0 5px 15px rgba(0, 217, 255, 0.3);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 217, 255, 0.4);
}

.stat-card p {
    font-weight: 600;
    margin: 0;
}

.stat-card span {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    margin-top: 10px;
}

/* Admin Cards */
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.card-header h2 {
    margin: 0;
}

.subscription-controls {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* Admin Table */
.admin-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.9rem;
    overflow: hidden;
    border-radius: 12px;
}

.admin-table th, .admin-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.admin-table th {
    background: rgba(0, 217, 255, 0.1);
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.admin-table tr {
    transition: all 0.3s ease;
}

.admin-table tbody tr:hover {
    background: rgba(0, 217, 255, 0.05);
}

.admin-table tbody tr:last-child td {
    border-bottom: none;
}

/* Admin Buttons */
.btn-action {
    padding: 8px 16px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
    margin: 2px;
}

.btn-promote {
    background: rgba(81, 207, 102, 0.2);
    color: var(--success);
    border: 1px solid var(--success);
}

.btn-promote:hover {
    background: var(--success);
    color: var(--dark);
}

.btn-demote {
    background: rgba(255, 107, 107, 0.2);
    color: var(--danger);
    border: 1px solid var(--danger);
}

.btn-demote:hover {
    background: var(--danger);
    color: var(--dark);
}

.btn-cancel {
    background: rgba(255, 217, 61, 0.2);
    color: var(--warning);
    border: 1px solid var(--warning);
}

.btn-cancel:hover {
    background: var(--warning);
    color: var(--dark);
}

.btn-generate {
    background: var(--gradient-primary);
    color: var(--dark);
    border: none;
}

.btn-view, .btn-renew {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-view:hover, .btn-renew:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--primary);
}

/* Status Badges */
.status-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.active {
    background: rgba(81, 207, 102, 0.2);
    color: var(--success);
    border: 1px solid var(--success);
}

.status-badge.inactive {
    background: rgba(255, 107, 107, 0.2);
    color: var(--danger);
    border: 1px solid var(--danger);
}

.status-badge.expired {
    background: rgba(148, 163, 184, 0.2);
    color: var(--text-muted);
    border: 1px solid var(--text-muted);
}

.status-badge.admin {
    background: var(--gradient-primary);
    color: var(--dark);
    border: none;
}

.status-badge.user {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Code Display */
code {
    background: rgba(0, 217, 255, 0.1);
    padding: 4px 8px;
    border-radius: 6px;
    font-family: 'Fira Code', monospace;
    color: var(--primary);
    font-size: 0.9rem;
    border: 1px solid rgba(0, 217, 255, 0.3);
}

/* Search Container */
.search-container {
    background: rgba(30, 41, 59, 0.8);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px var(--shadow);
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.search-controls {
    display: flex;
    gap: 12px;
    margin-top: 15px;
}

#user-search {
    flex: 1;
}

#search-results {
    margin-top: 20px;
}

/* Toast Notifications */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    padding: 16px 24px;
    border-radius: 12px;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    font-weight: 500;
    animation: slideInRight 0.3s ease-out;
}

.toast.success {
    background: var(--success);
}

.toast.error {
    background: var(--danger);
}

.toast.fade-out {
    animation: slideOutRight 0.3s ease-out forwards;
}

/* Loading States */
.loading-row, .error-row {
    text-align: center;
    padding: 30px;
}

.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s ease-in-out infinite;
    margin-right: 10px;
    vertical-align: middle;
}

.error-row {
    color: var(--danger);
}

.error-row i {
    margin-right: 8px;
    font-size: 1.2rem;
}

/* Footer */
footer {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    padding: 30px 20px;
    background: rgba(30, 41, 59, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    margin-top: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.footer-location {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.footer-location i {
    color: var(--primary);
    font-size: 1.1rem;
}

footer a {
    color: var(--primary);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

footer a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Form Notes */
.form-note {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 8px;
    padding: 12px;
    background: rgba(0, 217, 255, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(0, 217, 255, 0.2);
}

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

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInUp {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes slideInRight {
    from { transform: translateX(100px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideOutRight {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(100px); opacity: 0; }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(0, 217, 255, 0.4); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(0, 217, 255, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(0, 217, 255, 0); }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

@keyframes shimmer {
    0% { background-position: -1000px 0; }
    100% { background-position: 1000px 0; }
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Special Effects */
.panel::before, .auth-form::before, .admin-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    animation: shimmer 3s infinite;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container, .admin-container {
        padding: 15px;
    }

    header, .admin-header {
        flex-direction: column;
        gap: 15px;
        padding: 20px;
        text-align: center;
    }

    .logo {
        flex-direction: column;
    }

    .logo h1 {
        font-size: 1.5rem;
    }

    .auth-controls {
        width: 100%;
        justify-content: center;
    }

    .profile-icon {
        width: 10px;
        height: 10px;
        font-size: 1rem;
    }

    .panel, .auth-form, .admin-card {
        padding: 20px;
    }

    h2 {
        font-size: 1.25rem;
    }

    .calendar {
        gap: 4px;
        margin-bottom: 20px;
    }

    .day-header {
        font-size: 0.7rem;
        padding: 4px 2px;
        border-radius: 6px;
    }

    .day {
        padding: 6px 4px;
        font-size: 0.8rem;
        min-height: 30px;
        border-radius: 6px;
    }

    .day:hover:not(.empty) {
        transform: none; /* Disable transform on mobile to prevent overflow */
    }

    .calendar-nav {
        padding: 12px;
        gap: 10px;
    }

    .calendar-nav button {
        padding: 6px 12px;
        font-size: 0.85rem;
    }

    #current-month {
        font-size: 1rem;
    }

    .time-slots {
        grid-template-columns: 1fr;
    }

    .welcome-steps {
        flex-direction: column;
        gap: 15px;
        margin: 15px 0;
    }

    .welcome-step {
        padding: 15px;
    }

    .welcome-step i {
        font-size: 1.8rem !important;
    }

    .welcome-step h3 {
        font-size: 1.1rem;
    }

    .welcome-step p {
        font-size: 0.9rem;
    }

    .welcome-section h3 {
        font-size: 1.1rem;
    }

    .welcome-section h3 i {
        font-size: 1.2rem !important;
    }

    .welcome-section li {
        font-size: 0.9rem;
    }

    #welcome-modal .modal-content {
        width: 95%;
        padding: 20px;
    }

    .stats-container {
        grid-template-columns: 1fr;
    }

    .card-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .subscription-controls {
        width: 100%;
    }

    .admin-table {
        font-size: 0.8rem;
    }

    .admin-table th,
    .admin-table td {
        padding: 10px 8px;
    }

    .btn-action {
        padding: 6px 12px;
        font-size: 0.8rem;
    }

    .modal-content {
        margin: 20px;
        padding: 20px;
    }

    .notifications-dropdown {
        position: fixed;
        top: 80px;
        left: 10px;
        right: 10px;
        width: calc(100% - 20px);
        max-width: none;
        max-height: 70vh;
        z-index: 1001;
    }

    .notifications-header {
        position: relative;
        flex-direction: column;
        align-items: flex-start;
        padding-right: 30px;
    }

    #mark-all-read {
        margin-top: 10px;
        width: 100%;
    }

    .close-notifications-btn {
        position: absolute;
        top: 0;
        right: 0;
        margin: 0;
    }

    .notification-item {
        padding: 10px;
    }

    .notification-title {
        font-size: 1rem;
    }

    .notification-message {
        font-size: 0.9rem;
    }

    .notifications-btn {
        width: 36px; /* Adjusted for mobile */
        height: 36px;
        padding: 10px;
        font-size: 1rem;
        border-radius: 10px;
    }

    .notification-badge {
        width: 16px;
        height: 16px;
        font-size: 0.55rem;
        top: -8px;
        right: -8px;
    }

    .toast {
        bottom: 20px;
        right: 20px;
        left: 20px;
        max-width: none;
    }

    footer {
        padding: 20px 15px;
        margin-top: 30px;
    }
}

@media (max-width: 480px) {
    .notifications-dropdown {
        top: 70px;
        max-height: 60vh;
    }

    .notification-item {
        padding: 8px;
    }

    .notifications-btn {
        width: 32px;
        height: 32px;
        padding: 8px;
        font-size: 0.9rem;
    }

    .notification-badge {
        width: 14px;
        height: 14px;
        font-size: 0.5rem;
        top: -6px;
        right: -6px;
    }

    .welcome-step i {
        font-size: 1.5rem !important;
    }

    .welcome-section li {
        font-size: 0.9rem;
    }

    .calendar {
        gap: 2px;
    }

    .day-header {
        font-size: 0.65rem;
        padding: 3px 1px;
    }

    .day {
        padding: 5px 2px;
        font-size: 0.75rem;
        min-height: 28px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .time-slots {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1025px) {
    .container, .admin-container {
        padding: 40px;
    }

    header, .admin-header {
        padding: 25px 40px;
    }

    .panel, .auth-form, .admin-card {
        padding: 40px;
    }

    .time-slots {
        grid-template-columns: repeat(3, 1fr);
    }

    .modal-content {
        width: 600px;
    }

    #welcome-modal .modal-content {
        width: 800px;
    }
}

/* Dark Mode Enhancements */
@media (prefers-color-scheme: dark) {
    :root {
        --shadow: rgba(0, 0, 0, 0.5);
    }
}

/* Print Styles */
@media print {
    body {
        background: white;
        color: black;
    }

    header, footer, .auth-controls, .btn-action, button {
        display: none !important;
    }

    .panel, .admin-card {
        box-shadow: none;
        border: 1px solid #ccc;
        page-break-inside: avoid;
    }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus Styles */
*:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

button:focus-visible {
    outline-offset: 4px;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--dark);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb {
    background: var(--dark-tertiary);
    border-radius: 5px;
    transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Selection Styles */
::selection {
    background: var(--primary);
    color: var(--dark);
}

/* Input Placeholder Styles */
input::placeholder,
textarea::placeholder {
    color: var(--text-muted);
    opacity: 0.7;
}

/* Utility Classes */
.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.text-secondary { color: var(--text-secondary); }
.text-muted { color: var(--text-muted); }

.mt-1 { margin-top: 0.5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; } .mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; } .mb-2 { margin-bottom: 1rem; } .mb-3 { margin-bottom: 1.5rem; } .mb-4 { margin-bottom: 2rem; }
.p-1 { padding: 0.5rem; } .p-2 { padding: 1rem; } .p-3 { padding: 1.5rem; } .p-4 { padding: 2rem; }

/* Glassmorphism Enhancement */
.glass {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Gradient Text */
.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Loading Animation for Buttons */
.btn-loading {
    position: relative;
    color: transparent !important;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid var(--dark);
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 0.8s linear infinite;
}

/* User Info Styling */
.user-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.user-info small {
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* Enhanced Form Validation Styles */
input:valid {
    border-color: var(--success);
}

input:invalid:not(:placeholder-shown) {
    border-color: var(--danger);
}

/* Booking Form Enhancement */
.booking-form {
    position: relative;
    overflow: hidden;
}

.booking-form::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 217, 255, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}




#confirmation-modal .modal-content {
    max-width: 500px;
    width: 90%;
    text-align: center;
    padding: 30px 20px;
}

.confirmation-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
}

.success-icon {
    font-size: 4rem;
    color: #51CF66;
    margin-bottom: 15px;
}

#confirmation-details {
    text-align: left;
    padding: 15px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    margin-bottom: 20px;
}

#confirmation-details p {
    margin: 8px 0;
    line-height: 1.4;
}

.email-notification {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: rgba(0, 217, 255, 0.1);
    padding: 12px;
    border-radius: 8px;
    margin: 20px 0;
}

.email-notification i {
    color: var(--primary);
    font-size: 1.5rem;
}

.countdown-container {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid var(--border);
}

#countdown {
    font-weight: bold;
    color: var(--primary);
    font-size: 1.2em;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .confirmation-header h2 {
        font-size: 1.4rem;
    }
    
    .email-notification {
        flex-direction: column;
        text-align: center;
    }
}







/* Waiver Modal Overlay */
#waiver-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
}

/* Modal Content */
#waiver-modal .modal-content {
    background: rgba(30, 41, 59, 0.95);
    backdrop-filter: blur(10px);
    color: var(--text-primary);
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    padding: 0;
    position: relative;
    display: flex;
    flex-direction: column;
    animation: slideInUp 0.4s ease-out;
}

/* Modal Header */
#waiver-modal .modal-header {
    padding: 30px 30px 20px;
    border-bottom: 1px solid var(--border);
    position: relative;
}

/* Close Button */
#waiver-modal .close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

#waiver-modal .close-btn:hover {
    background: var(--danger);
    color: var(--dark);
    transform: rotate(90deg);
    border-color: var(--danger);
}

/* Modal Title */
#waiver-modal h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

#waiver-modal h2::before {
    content: '\f0f3';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--primary);
    font-size: 1.3rem;
}

/* Modal Body */
#waiver-modal .modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 30px;
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

#waiver-modal .modal-body h3 {
    color: var(--primary);
    font-size: 1.1rem;
    margin: 25px 0 15px 0;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

#waiver-modal .modal-body ul {
    margin-bottom: 20px;
    padding-left: 0;
    list-style: none;
}

#waiver-modal .modal-body ul li {
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
}

#waiver-modal .modal-body ul li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

/* Scroll prompt */
#waiver-modal .scroll-prompt {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    text-align: center;
    background: rgba(0, 217, 255, 0.05);
    border-radius: 10px;
    padding: 10px;
    border: 1px solid rgba(0, 217, 255, 0.2);
}

/* Sticky Footer */
#waiver-modal .sticky-footer {
    background: rgba(15, 23, 42, 0.95);
    border-top: 1px solid var(--border);
    padding: 30px;
    margin: 0;
}

#waiver-modal .signature-section {
    margin-bottom: 10px;
    padding-bottom: 0;
}


#waiver-modal .signature-section h3 {
    font-size: 1.1rem;
    color: var(--primary);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Signature Instructions */
#waiver-modal .signature-instructions {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

#waiver-modal .signature-instructions small {
    display: block;
    color: var(--text-muted);
    margin-top: 5px;
    font-size: 0.85rem;
}

.signature-container {
    width: 100%;
    max-width: 350px;
    height: 100px;
    margin: 0 auto 10px auto;
    border: 2px dashed rgba(0, 217, 255, 0.3);
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.5);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    touch-action: none;
}

.signature-container:hover {
    border-color: rgba(0, 217, 255, 0.5);
    background: rgba(15, 23, 42, 0.8);
}

.signature-container.signing {
    border-color: var(--primary);
    border-style: solid;
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.2);
}

#signature-pad {
    height: 100px;
    width: 100%;
    display: block;
    background: transparent;
    touch-action: none;
}

#signature-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 1rem;
    font-style: italic;
    pointer-events: none;
    transition: opacity 0.2s;
    background: transparent;
}

#signature-placeholder i {
    margin-right: 8px;
    font-size: 1.2rem;
    color: rgba(0, 217, 255, 0.5);
}

/* Signature Controls */
.signature-controls {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
}

#clear-signature-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
    padding: 10px 20px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

#clear-signature-btn:hover {
    background: rgba(255, 107, 107, 0.2);
    border-color: var(--danger);
    color: var(--danger);
    transform: translateY(-2px);
}

/* Agreement Checkbox */
.rules-agreement {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(0, 217, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(0, 217, 255, 0.2);
}

.rules-agreement input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--primary);
    flex-shrink: 0;
    margin-top: 2px;
    cursor: pointer;
}

.rules-agreement label {
    font-size: 0.95rem;
    color: var(--text-primary);
    cursor: pointer;
    line-height: 1.5;
}

/* Confirm Button */
#confirm-waiver-btn {
    width: 100%;
    padding: 16px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 15px;
    background: var(--gradient-primary);
    color: var(--dark);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

#confirm-waiver-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: left 0.3s ease;
}

#confirm-waiver-btn:hover::before {
    left: 100%;
}

#confirm-waiver-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: var(--dark-tertiary);
    color: var(--text-muted);
}

#confirm-waiver-btn:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 217, 255, 0.3);
}

/* Custom Scrollbar for modal body */
#waiver-modal .modal-body::-webkit-scrollbar {
    width: 10px;
}

#waiver-modal .modal-body::-webkit-scrollbar-thumb {
    background: var(--dark-tertiary);
    border-radius: 5px;
}

#waiver-modal .modal-body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 5px;
}

/* Responsive */
@media (max-width: 768px) {
    #waiver-modal {
        padding: 10px;
    }
    
    #waiver-modal .modal-content {
        max-height: 95vh;
        border-radius: 15px;
    }
    
    #waiver-modal .modal-header {
        padding: 20px 20px 15px;
    }
    
    #waiver-modal h2 {
        font-size: 1.25rem;
    }
    
    #waiver-modal .modal-body {
        padding: 20px;
        font-size: 0.9rem;
    }
    
    #waiver-modal .sticky-footer {
        padding: 20px;
    }
    
    .signature-container {
        height: 100px;
    }
    
    #signature-placeholder {
        font-size: 0.9rem;
    }
    
    #clear-signature-btn {
        width: 100%;
        justify-content: center;
    }
    
    .signature-controls {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .signature-container {
        max-width: 95vw;
        height: 90px;
        background-color: white;
    }
    #signature-pad {
        height: 90px;
    }
    
    #waiver-modal h2 {
        font-size: 1.1rem;
    }
    
    #waiver-modal .modal-body h3 {
        font-size: 1rem;
    }
}

