/* GLOBAL STYLES - CLEAN AND CONSISTENT */

/* Universal box-sizing */
* {
    box-sizing: border-box;
}

/* Accessible color tokens */
:root {
    --yellow-text: #9B7A00; /* 4.6:1 contrast on white – WCAG AA for text on light backgrounds */
}

/* Screen-reader only (visually hidden, accessible to assistive tech) */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.sr-only:focus-visible {
    position: fixed;
    top: 8px;
    left: 8px;
    width: auto;
    height: auto;
    padding: 12px 24px;
    margin: 0;
    overflow: visible;
    clip: auto;
    white-space: normal;
    background: #1a1a2e;
    color: #F7E226;
    font-size: 16px;
    font-weight: 700;
    z-index: 100000;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    text-decoration: none;
}

/* HTML base styles */
html {
    overflow-y: scroll;
    background: #FFFFFF;
}

/* Body - NO padding-top to avoid moving header */
body {
    font-family: 'Nunito', sans-serif;
    margin: 0;
    padding: 0;
    background: #FFFFFF;
    min-height: 100vh;
}

/* Main sections with white background */
main,
section,
.section-form,
.section-form-wide {
    background: #FFFFFF;
}

/* Status badges */
.status-active {
    color: #F7E226;
    font-weight: 600;
    margin-right: 8px;
}

.status-inactive {
    color: #9b1c1c;
    font-weight: 600;
    margin-right: 8px;
}

.toggle-active-btn {
    margin-left: 8px;
}

/* Navigation */
nav ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

nav ul li {
    display: inline;
    margin: 0 1em;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
}

/* Search section */
section#search {
    margin: 0 auto;
    padding-top: 2em;
    padding-bottom: 2em;
    border-radius: 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    width: 90vw;
    max-width: 1200px;
}

/* Form sections */
.section-form {
    border-radius: 20px;
    width: 82%;
    max-width: 1300px;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
}

.section-form-wide {
    border-radius: 20px;
    width: 100%;
    max-width: 5000px;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    margin: 0 auto;
    padding: 0 1em;
    box-sizing: border-box;
}

/* Login form */
form#loginForm input {
    max-width: 350px;
    width: 100%;
}

/* Checkbox groups */
.checkbox-group {
    display: flex;
    align-items: center;
    margin: 0.5em 0;
    font-size: 1em;
    font-family: 'Nunito', sans-serif;
    border: 2px solid #ddd;
    border-radius: 8px;
    background-color: #f9f9f9;
    transition: all 0.3s ease;
    cursor: pointer;
}

.checkbox-group:hover {
    background-color: #fff;
    border-color: #F7E226;
}

.checkbox-group input[type="checkbox"] {
    width: 22px;
    height: 22px;
    cursor: pointer;
    flex-shrink: 0;
}

.checkbox-group input[type="checkbox"]:checked + span {
    font-weight: bold;
    color: #333;
}

.checkbox-group span {
    color: #666;
    transition: all 0.3s ease;
    user-select: none;
    flex: 1;
    line-height: 1.5;
}

.checkbox-group label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
    cursor: pointer;
    padding: 12px 16px;
}

/* Add club form */
#addClubForm {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1em;
    display: flex;
    flex-direction: column;
    gap: 1em;
    box-sizing: border-box;
    align-self: stretch;
}

#addClubForm input,
#addClubForm textarea,
#addClubForm select {
    width: 100%;
    box-sizing: border-box;
}

/* Images */
img {
    border-radius: 20px;
    width: 82%;
    max-width: 1300px;
    display: block;
    margin: 0 auto;
}

/* Inline forms */
.inline-form {
    color: #A9A9A9;
    font-size: medium;
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: nowrap;
    width: 100%;
    justify-content: space-between;
    padding: 0;
    margin: 0;
}

.inline-form input {
    font-size: 17px;
    font-family: 'Nunito', sans-serif;
    margin: 0;
    flex-shrink: 0;
    width: auto;
    max-width: none;
    box-sizing: border-box;
    border: 2px solid #d3d3d3;
    border-radius: 8px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    flex: 1 1 auto;
}

.inline-form input::placeholder {
    color: #A9A9A9;
}

.inline-form button {
    font-size: medium;
    color: #40403e;
    margin: 0;
    flex-shrink: 0;
    width: auto;
    max-width: none;
    box-sizing: border-box;
    border: 2px solid #d3d3d3;
    border-radius: 8px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}

/* Dropdowns */
.custom-dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-cities,
.dropdown-ages,
.dropdown-kids-count {
    color: #40403e;
    display: none;
    position: absolute;
    background-color: #F7E226;
    width: 100%;
    max-height: 300px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 2000;
    border-radius: 8px;
    overflow-y: auto;
}

.dropdown-cities div,
.dropdown-ages div,
.dropdown-kids-count div {
    padding: 12px 16px;
    cursor: pointer;
    border-radius: 4px;
}

.dropdown-cities div:hover,
.dropdown-ages div:hover,
.dropdown-kids-count div:hover {
    background-color: rgba(132, 197, 237, 0.1);
    color: #0369a1;
}

/* Clubs container */
#clubs-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
    justify-content: center;
}

.club-link {
    text-decoration: none;
    color: inherit;
}

/* Club cards */
.club-card {
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 15px;
    width: 220px;
    height: 180px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    text-align: center;
    background-color: #fff;
    transition: transform 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin: 10px;
}

.club-card:hover {
    transform: scale(1.03);
}

.club-card img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 10px;
}

.club-card p {
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

.club-image {
    width: 200px;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
}

/* Dashboard */
.dashboard-header {
    padding: 40px 20px 20px 20px;
    text-align: center;
    background-color: #FFFFFF;
    border-radius: 12px;
    margin-bottom: 30px;
}

.dashboard-header h1 {
    font-size: 28px;
    color: #333;
    margin-bottom: 10px;
}

.dashboard-header h2 {
    font-size: 22px;
    color: #555;
    margin-bottom: 20px;
}

.add-club-button {
    display: inline-block;
    padding: 12px 24px;
    background-color: #F7E226;
    color: white;
    font-weight: bold;
    text-decoration: none;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.add-club-button:hover {
    background-color: #E6C200;
}

/* Buttons */
button {
    font-size: medium;
    color: #40403e;
    letter-spacing: 0.05em;
    display: inline-block;
    padding: 1em 2em;
    margin: 0;
    background-color: #F7E226;
    border: 2px solid #d3d3d3;
    border-radius: 5px;
    cursor: pointer;
    white-space: nowrap;
    flex: 0 0 auto;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}

button.secondary {
    background-color: #F7E226;
}

button:hover,
button.secondary:hover {
    background-color: #E6C200;
}

/* Forms */
form label {
    display: block;
    margin: 0.5em 0 0.2em;
}

form input,
form textarea,
form select {
    width: 100%;
    padding: 1em;
    border-radius: 5px;
    border: 2px solid #d3d3d3;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
}

form input:focus-visible,
form textarea:focus-visible {
    border-color: #A9A9A9;
    outline: none;
    box-shadow: 0 0 0 3px rgba(132, 197, 237, 0.18);
}

.date {
    color: #A9A9A9;
}

/* Fieldsets */
fieldset {
    border: 1px solid #ccc;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 8px;
    background-color: #FFFFFF;
}

legend {
    font-weight: bold;
    font-size: 1.1em;
}

.form-row {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.form-row label {
    width: 200px;
    font-weight: 500;
}

.form-row input,
.form-row select {
    flex: 1;
    padding: 5px;
}

/* ========================================
   GLOBAL CHECKBOX & RADIO STYLES
   Consistent across the entire application
   ======================================== */

/* --- Checkboxes --- */
input[type="checkbox"] {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #9ca3af;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
    transition: all 0.15s ease;
}

input[type="checkbox"]:hover {
    border-color: #0369a1;
}

input[type="checkbox"]:checked {
    background: #0369a1;
    border-color: #0369a1;
}

input[type="checkbox"]:checked::after {
    content: "\2713";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
}

/* --- Radio buttons --- */
input[type="radio"] {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #9ca3af;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
    transition: all 0.15s ease;
}

input[type="radio"]:hover {
    border-color: #0369a1;
}

input[type="radio"]:checked {
    border-color: #0369a1;
}

input[type="radio"]:checked::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #0369a1;
}

/* --- Disabled states --- */
input[type="checkbox"]:disabled,
input[type="radio"]:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Club info */
#club-info {
    max-width: 1500px;
    margin: 30px auto;
    padding: 20px;
    background-color: #FFFFFF;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    text-align: center;
}

#club-info h2 {
    margin-bottom: 20px;
    color: #333;
}

#club-info p {
    font-size: 16px;
    margin: 8px 0;
    color: #555;
}

/* Algorithm list */
#algorithm-list {
    margin-top: 30px;
}

#club-details {
    margin-bottom: 30px;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #FFFFFF;
}

#algorithm-list ol {
    padding-left: 20px;
}

#algorithm-list li {
    margin-bottom: 25px;
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 10px;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    position: relative;
}

#algorithm-list li span {
    margin-left: 10px;
}

#algorithm-list li span[style*="color: green"] {
    color: green;
    font-weight: bold;
}

#algorithm-list button {
    margin-top: 10px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: bold;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    background-color: #ffc107;
    color: #333;
    transition: background-color 0.3s ease;
}

#algorithm-list button:hover {
    background-color: #e0a800;
}

/* Main layout - centered content column */
main {
    display: grid;
    grid-template-columns: 1fr min(1200px, 92vw) 1fr;
    column-gap: 16px;
}

main > * {
    grid-column: 2;
}

.full-bleed {
    grid-column: 1 / -1;
}

/* Tabs and buttons centering */
.tabs,
.extra-services-options {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

/* Container layouts */
#club-details,
#algorithm-list,
#calendar-container,
#tab-details,
#tab-calendar,
#tab-algorithms,
#tab-birthday_package,
#tab-reservations,
#tab-extra_services,
#extra-services-results-area {
    width: min(1200px, 100%);
    margin-inline: auto;
}

.services-table {
    width: 100%;
    margin-inline: auto;
    border-collapse: collapse;
}

/* Slot buttons */
.slot-btn {
    box-sizing: border-box;
    border: 2px solid transparent;
    box-shadow: 0 0 0 2px transparent inset;
    border-radius: 10px;
    padding: 6px 10px;
    background: #fff;
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
}

.slot-btn:hover:not(.slot-btn-selected),
.slot-btn:focus-visible:not(.slot-btn-selected) {
    background: #F7E226;
    border-color: #F7E226;
    color: #222;
}

.slot-btn.slot-btn-selected {
    background: #F7E226;
    border-color: #F7E226;
    color: #222;
    box-shadow: 0 0 0 2px rgba(247,226,38,.25) inset;
}

/* Mobile responsive */
@media (max-width: 576px) {
    .inline-form {
        flex-wrap: wrap;
        justify-content: center;
    }

    .inline-form input,
    .inline-form button {
        width: 100%;
        max-width: 100%;
    }

    img {
        width: 90%;
        margin-bottom: 1em;
    }
}

@media (min-width: 576px) and (max-width: 768px) {
    .inline-form {
        flex-wrap: wrap;
        justify-content: center;
    }

    .inline-form input,
    .inline-form button {
        width: 48%;
        max-width: 48%;
        margin-bottom: 1em;
    }

    img {
        width: 90%;
        margin-bottom: 1em;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    body {
        font-size: 14px;
    }

    .section-form {
        width: 95%;
        padding: 0 8px;
    }

    .section-form-wide {
        padding: 0 8px;
    }

    button {
        padding: 0.8em 1.5em;
        font-size: 14px;
    }

    form input,
    form textarea,
    form select {
        padding: 0.85em;
        font-size: 14px;
    }

    fieldset {
        padding: 12px;
        margin-bottom: 16px;
    }

    .form-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .form-row label {
        width: 100%;
        margin-bottom: 6px;
    }

    .club-card {
        width: 95vw;
        max-width: 300px;
        padding: 12px;
    }

    .dashboard-header {
        padding: 30px 15px 15px 15px;
    }

    .dashboard-header h1 {
        font-size: 24px;
    }

    .dashboard-header h2 {
        font-size: 20px;
    }

    /* Main grid adjustment */
    main {
        grid-template-columns: 1fr min(100%, 96vw) 1fr;
        column-gap: 8px;
    }
}

/* Very small mobile devices */
@media (max-width: 360px) {
    body {
        font-size: 13px;
    }

    .section-form {
        width: 98%;
        padding: 0 6px;
    }

    button {
        padding: 0.7em 1.2em;
        font-size: 13px;
    }

    form input,
    form textarea,
    form select {
        padding: 0.75em;
        font-size: 13px;
    }

    fieldset {
        padding: 10px;
    }

    .club-card {
        width: 98vw;
        padding: 10px;
    }

    .dashboard-header {
        padding: 20px 10px 10px 10px;
    }

    .dashboard-header h1 {
        font-size: 22px;
    }

    .dashboard-header h2 {
        font-size: 18px;
    }

    main {
        grid-template-columns: 1fr min(100%, 98vw) 1fr;
        column-gap: 4px;
    }

    /* Checkbox groups smaller */
    .checkbox-group {
        font-size: 0.9em;
    }

    .checkbox-group input[type="checkbox"] {
        width: 20px;
        height: 20px;
    }

    .checkbox-group label {
        padding: 10px 12px;
        gap: 8px;
    }
}

/* ===========================================
   IMAGE LOADING OPTIMIZATIONS
   =========================================== */

/* Skeleton loader animation */
@keyframes skeleton-loading {
    0% {
        background-position: -200px 0;
    }
    100% {
        background-position: calc(200px + 100%) 0;
    }
}

/* Base skeleton class */
.img-skeleton {
    background: linear-gradient(90deg, #f0f0f0 0px, #e0e0e0 40px, #f0f0f0 80px);
    background-size: 200px 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
}

/* Image container with skeleton */
.img-loading-container {
    position: relative;
    background: #f5f5f5;
    overflow: hidden;
}

.img-loading-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, #f0f0f0 0px, #e8e8e8 40px, #f0f0f0 80px);
    background-size: 200px 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
    z-index: 1;
}

.img-loading-container.loaded::before {
    display: none;
}

/* Fade-in effect for loaded images */
.img-fade-in {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.img-fade-in.loaded {
    opacity: 1;
}

/* Loading spinner for galleries */
.img-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 3px solid #f0f0f0;
    border-top-color: #F7E226;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    z-index: 2;
}

@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.img-loading-container.loaded .img-spinner {
    display: none;
}

/* Placeholder icon */
.img-placeholder-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ccc;
    font-size: 48px;
    z-index: 1;
}

.img-loading-container.loaded .img-placeholder-icon {
    display: none;
}

/* ============================================================================
   MOBILE DROPDOWN MODAL (shared across all pages using customDropdown.js)
============================================================================ */
.mobile-dropdown-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  height: 100dvh;
  background: transparent;
  z-index: 1000000;
  animation: mobileDropdownFadeIn 0.2s ease;
  overflow: hidden;
  touch-action: none;
}

.mobile-dropdown-overlay.show {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: stretch;
}

.mobile-dropdown-modal {
  position: relative;
  background: linear-gradient(135deg, #84c5ed 0%, #b9d4eb 100%);
  border-radius: 20px;
  max-height: 70vh;
  max-height: 70dvh;
  display: flex;
  flex-direction: column;
  animation: mobileDropdownSlideUp 0.3s cubic-bezier(0.32, 0.72, 0, 1);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.25);
  padding-bottom: env(safe-area-inset-bottom, 0);
}

.mobile-dropdown-header {
  padding: 20px;
  padding-top: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
  position: relative;
}

.mobile-dropdown-header::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 36px;
  height: 4px;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 2px;
}

.mobile-dropdown-title {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
}

.mobile-dropdown-close {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  font-size: 24px;
  color: #ffffff;
  cursor: pointer;
  padding: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  border-radius: 50%;
  transition: background 0.2s ease;
}

.mobile-dropdown-close:hover,
.mobile-dropdown-close:active {
  background: rgba(255, 255, 255, 0.35);
}

.mobile-dropdown-content {
  overflow-y: auto;
  flex: 1;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  min-height: 0;
}

.mobile-dropdown-content div {
  padding: 16px 20px;
  cursor: pointer;
  color: #ffffff;
  font-weight: 500;
  font-size: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: background 0.15s ease;
  -webkit-user-select: none;
  user-select: none;
}

.mobile-dropdown-content div:last-child {
  border-bottom: none;
  padding-bottom: 20px;
}

.mobile-dropdown-content div:active {
  background: rgba(255, 255, 255, 0.2);
}

@media (hover: hover) {
  .mobile-dropdown-content div:hover {
    background: rgba(255, 255, 255, 0.15);
  }
}

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

@keyframes mobileDropdownSlideUp {
  from {
    transform: translateY(100%);
    opacity: 0.5;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* ===== CALENDAR DROPDOWN ===== */
/* ── Calendar Dropdown ───────────────────────── */
.cal-dropdown {
  position: relative;
  display: inline-block;
}

/* Full button — matches yellow theme */
.cal-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  font-family: 'Nunito', sans-serif;
  color: #92400e;
  background: linear-gradient(135deg, #fef9c3 0%, #fef08a 100%);
  border: 2px solid #fde047;
  border-radius: 12px;
  cursor: pointer;
  white-space: nowrap;
  transition: background .2s, border-color .2s, box-shadow .2s, transform .2s;
  box-shadow: 0 1px 3px rgba(247,226,38,.15);
}
.cal-dropdown-toggle:hover {
  background: linear-gradient(135deg, #fef08a 0%, #fde047 100%);
  border-color: #facc15;
  box-shadow: 0 4px 12px rgba(247,226,38,.3);
  transform: translateY(-1px);
}
.cal-dropdown-toggle:active {
  transform: translateY(0);
}
.cal-dropdown-toggle i {
  font-size: 15px;
  color: #b45309;
}

/* Compact button — icon-only */
.cal-dropdown.compact .cal-dropdown-toggle {
  padding: 6px 10px;
  font-size: 14px;
  border-radius: 10px;
  background: #ffffff;
  border: 2px solid #fde047;
  color: #92400e;
  box-shadow: 0 1px 2px rgba(247,226,38,.1);
}
.cal-dropdown.compact .cal-dropdown-toggle:hover {
  background: #fef9c3;
  border-color: #facc15;
  box-shadow: 0 3px 8px rgba(247,226,38,.2);
}

/* Dropdown menu */
.cal-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 210px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,.12);
  z-index: 1000;
  padding: 6px 0;
  animation: calDropdownFadeIn .15s ease-out;
}
@keyframes calDropdownFadeIn {
  from { opacity: 0; transform: translateX(-50%) translateY(-4px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}
.cal-dropdown-menu.show {
  display: block;
}

/* Menu items */
.cal-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 500;
  color: #374151;
  text-decoration: none;
  white-space: nowrap;
  transition: background .15s, color .15s;
  border-radius: 0;
}
.cal-dropdown-item:first-child {
  border-radius: 8px 8px 0 0;
}
.cal-dropdown-item:last-child {
  border-radius: 0 0 8px 8px;
}
.cal-dropdown-item:hover {
  background: #eef2ff;
  color: #312e81;
}
.cal-dropdown-item i {
  width: 18px;
  text-align: center;
  font-size: 15px;
}
.cal-dropdown-item .fa-google { color: #4285f4; }
.cal-dropdown-item .fa-microsoft { color: #00a4ef; }
.cal-dropdown-item .fa-apple { color: #333; }
.cal-dropdown-item .fa-download { color: #6366f1; }

/* Right-align menu when near right edge */
@media (max-width: 480px) {
  .cal-dropdown-menu {
    left: auto;
    right: 0;
    transform: none;
  }
  .cal-dropdown-label {
    display: none;
  }
  .cal-dropdown-toggle {
    padding: 8px 12px;
    border-radius: 10px;
  }
  @keyframes calDropdownFadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
  }
}
