/* ==========================================================================
   Yasawa Islands Theme - Fijian Paradise Calendar
   Version: 1.0
   Updated: 2024-10-15
   Changes:
   - Breathtaking Yasawa Islands inspired design
   - Crystal blue waters, white sand beaches, and tropical sunsets
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Cabin:wght@300;400;500;600&display=swap');

:root {
    /* Yasawa Islands Palette */
    --yi-bg: #E6F3FF;
    --yi-text: #1A365D;
    --yi-primary: #FFFFFF;
    --yi-secondary: #F0F8FF;
    --yi-date-number: #1A365D;

    /* Yasawa Blue Waters */
    --yi-water1: #38B2AC;
    --yi-water2: #319795;
    --yi-water3: #2C7A7B;
    --yi-water4: rgba(56, 178, 172, 0.7);
    --yi-water5: rgba(56, 178, 172, 0.5);

    /* Tropical Sunset */
    --yi-sunset1: #ED8936;
    --yi-sunset2: #DD6B20;
    --yi-sunset3: #C05621;
    --yi-sunset4: rgba(237, 137, 54, 0.7);
    --yi-sunset5: rgba(237, 137, 54, 0.5);

    /* Coral Reef */
    --yi-coral1: #FC8181;
    --yi-coral2: #F56565;
    --yi-coral3: #E53E3E;
    --yi-coral4: rgba(252, 129, 129, 0.7);
    --yi-coral5: rgba(252, 129, 129, 0.5);

    /* Palm Green */
    --yi-palm1: #68D391;
    --yi-palm2: #48BB78;
    --yi-palm3: #38A169;
    --yi-palm4: rgba(104, 211, 145, 0.7);
    --yi-palm5: rgba(104, 211, 145, 0.5);

    /* White Sand */
    --yi-sand1: #F7FAFC;
    --yi-sand2: #EDF2F7;
    --yi-sand3: #E2E8F0;
    --yi-sand4: rgba(247, 250, 252, 0.7);
    --yi-sand5: rgba(247, 250, 252, 0.5);

    /* Island Purple */
    --yi-purple1: #9F7AEA;
    --yi-purple2: #805AD5;
    --yi-purple3: #6B46C1;
    --yi-purple4: rgba(159, 122, 234, 0.7);
    --yi-purple5: rgba(159, 122, 234, 0.5);

    /* Theme Variables */
    --yi-shadow: rgba(56, 178, 172, 0.15);
    --yi-radius: 12px;
    --yi-transition: 0.3s ease;
    --yi-hover: #319795;
    --yi-glow: 0 0 20px rgba(56, 178, 172, 0.2);
    --yi-pattern: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120" preserveAspectRatio="none"><path d="M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,52.47V0Z" opacity=".1" fill="%2338B2AC"/><path d="M0,0V15.81C13,36.92,27.64,56.86,47.69,72.05,99.41,111.27,165,111,224.58,91.58c31.15-10.15,60.09-26.07,89.67-39.8,40.92-19,84.73-46,130.83-49.67,36.26-2.85,70.9,9.42,98.6,31.56,31.77,25.39,62.32,62,103.63,73,40.44,10.79,81.35-6.69,119.13-24.28s75.16-39,116.92-43.05c59.73-5.85,113.28,22.88,168.9,38.84,30.2,8.66,59,6.17,87.09-7.5,22.43-10.89,48-26.93,60.65-49.24V0Z" opacity=".15" fill="%2338B2AC"/><path d="M0,0V5.63C149.93,59,314.09,71.32,475.83,42.57c43-7.64,84.23-20.12,127.61-26.46,59-8.63,112.48,12.24,165.56,35.4C827.93,77.22,886,95.24,951.2,90c86.53-7,172.46-45.71,248.8-84.81V0Z" opacity=".2" fill="%2338B2AC"/></svg>');
}

/* ==================== ANIMATIONS ==================== */
@keyframes yi-fade {

    0%,
    100% {
        opacity: 0.95;
    }

    50% {
        opacity: 1;
    }
}

@keyframes yi-slide {
    from {
        transform: translateY(5px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes yi-pulse {

    0%,
    100% {
        box-shadow: 0 0 5px var(--yi-shadow);
    }

    50% {
        box-shadow: var(--yi-glow);
    }
}

@keyframes yi-wave {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 100% 0;
    }
}

@keyframes yi-sway {

    0%,
    100% {
        transform: rotate(0deg);
    }

    25% {
        transform: rotate(2deg);
    }

    75% {
        transform: rotate(-2deg);
    }
}

@keyframes yi-float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes yi-ripple {
    0% {
        transform: scale(0);
        opacity: 1;
    }

    100% {
        transform: scale(1);
        opacity: 0;
    }
}

@keyframes yi-shimmer {
    0% {
        background-position: -200% center;
    }

    100% {
        background-position: 200% center;
    }
}

@keyframes yi-sunset {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* ==================== BASE STYLES ==================== */
.yasawa-islands {
    font-family: 'Cabin', sans-serif;
    color: var(--yi-text);
    line-height: 1.6;
    font-size: 1rem;
    background-color: var(--yi-bg);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

.yasawa-islands::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 30%, var(--yi-water5) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, var(--yi-sunset5) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, var(--yi-coral5) 0%, transparent 50%),
        url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><path d="M20,30 Q30,20 40,30 Q50,40 60,30 Q70,20 80,30" stroke="%2338B2AC" fill="none" stroke-width="0.5" opacity="0.3"/><circle cx="85" cy="25" r="4" fill="%23ED8936" opacity="0.3"/><circle cx="15" cy="75" r="5" fill="%23FC8181" opacity="0.2"/><circle cx="60" cy="60" r="3" fill="%2368D391" opacity="0.3"/></svg>');
    background-size: 200px 200px;
    pointer-events: none;
    z-index: 1;
}

.yasawa-islands .container {
    background-color: var(--yi-primary);
    padding: 2rem;
    border: 2px solid var(--yi-water1);
    box-shadow:
        var(--yi-glow),
        inset 0 0 0 1px rgba(255, 255, 255, 0.8);
    position: relative;
    overflow: hidden;
    max-width: 1600px;
    margin: 0 auto;
    border-radius: 16px;
    z-index: 2;
    background-image:
        radial-gradient(circle at 10% 20%, var(--yi-water5) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, var(--yi-sunset5) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, var(--yi-sand5) 0%, transparent 50%);
}

.yasawa-islands .container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg,
            var(--yi-water1) 0%,
            var(--yi-sunset1) 33%,
            var(--yi-coral1) 66%,
            var(--yi-palm1) 100%);
    animation: yi-wave 3s linear infinite;
    background-size: 200% 100%;
}

.yasawa-islands .container::after {
    content: "🏝️";
    position: absolute;
    bottom: 15px;
    right: 20px;
    font-size: 2rem;
    opacity: 0.4;
    animation: yi-sway 6s ease-in-out infinite;
}

/* ==================== HEADER & TITLE ==================== */
.yasawa-islands #calendar-title {
    font-family: 'DM Sans', sans-serif;
    color: var(--yi-text);
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 1.2rem;
    letter-spacing: -0.01em;
    position: relative;
    font-weight: 700;
    text-shadow:
        0 2px 4px rgba(56, 178, 172, 0.1),
        0 1px 0 rgba(255, 255, 255, 0.8);
    background: linear-gradient(135deg, var(--yi-water3) 0%, var(--yi-sunset3) 50%, var(--yi-coral3) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% auto;
    animation: yi-shimmer 4s linear infinite;
}

.yasawa-islands #calendar-title::after {
    content: "🐚";
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.5rem;
    opacity: 0.8;
    animation: yi-float 3s ease-in-out infinite;
}

/* ==================== DATE & WEATHER DISPLAY ==================== */
.yasawa-islands #date-weather-container {
    text-align: center;
    margin: 1.8rem 0;
    padding: 1.5rem;
    background-color: var(--yi-primary);
    border: 2px dashed var(--yi-water1);
    border-radius: var(--yi-radius);
    position: relative;
    box-shadow:
        0 4px 20px rgba(56, 178, 172, 0.1),
        inset 0 0 0 1px rgba(255, 255, 255, 0.9);
    overflow: hidden;
}

.yasawa-islands #date-weather-container::before {
    content: "YASAWA ISLANDS";
    position: absolute;
    top: -10px;
    right: 20px;
    background-color: var(--yi-primary);
    padding: 0 10px;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    color: var(--yi-water1);
    font-weight: 600;
    font-family: 'DM Sans', sans-serif;
    text-transform: uppercase;
}

.yasawa-islands #date-weather-container::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--yi-water1), var(--yi-sunset1), transparent);
}

.yasawa-islands #current-date {
    font-family: 'DM Sans', sans-serif;
    color: var(--yi-text);
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.yasawa-islands #today-weather {
    font-family: 'Cabin', sans-serif;
    color: var(--yi-water1);
    font-size: 1.2rem;
    font-weight: 500;
    letter-spacing: 0.02em;
}

/* ==================== ANALOG CLOCK ==================== */
.yasawa-islands #analog-watch {
    display: flex;
    justify-content: center;
    margin: 1.8rem 0;
}

.yasawa-islands .clock-face {
    width: 180px;
    height: 180px;
    border: 3px solid var(--yi-water1);
    border-radius: 50%;
    position: relative;
    background-color: var(--yi-primary);
    box-shadow:
        0 8px 25px rgba(56, 178, 172, 0.2),
        inset 0 0 30px rgba(56, 178, 172, 0.1);
    overflow: hidden;
}

.yasawa-islands .clock-face::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 14px;
    height: 14px;
    background: linear-gradient(135deg, var(--yi-water1) 0%, var(--yi-water3) 100%);
    border-radius: 50%;
    z-index: 10;
    box-shadow:
        0 0 10px rgba(56, 178, 172, 0.3),
        inset 0 0 5px rgba(255, 255, 255, 0.5);
}

.yasawa-islands .clock-face::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at center, transparent 70%, rgba(56, 178, 172, 0.05) 100%),
        repeating-conic-gradient(from 0deg,
            transparent 0deg 29deg,
            rgba(56, 178, 172, 0.1) 30deg 30deg);
}

.yasawa-islands .hand {
    position: absolute;
    top: 50%;
    transform-origin: 100%;
    transform: rotate(90deg);
    transition: all 0.05s;
    transition-timing-function: cubic-bezier(0.1, 2.7, 0.58, 1);
    z-index: 5;
}

.yasawa-islands .hour-hand {
    width: 35%;
    left: 15%;
    height: 4px;
    background: linear-gradient(90deg, var(--yi-water3) 0%, var(--yi-water1) 100%);
    margin-top: -2px;
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(56, 178, 172, 0.3);
}

.yasawa-islands .minute-hand {
    width: 45%;
    left: 5%;
    height: 3px;
    background: linear-gradient(90deg, var(--yi-sunset1) 0%, var(--yi-coral1) 100%);
    margin-top: -1.5px;
    border-radius: 1.5px;
    box-shadow: 0 1px 3px rgba(237, 137, 54, 0.3);
}

.yasawa-islands .second-hand {
    width: 45%;
    left: 5%;
    height: 1px;
    background: linear-gradient(90deg, var(--yi-palm1) 0%, var(--yi-purple1) 100%);
    margin-top: -0.5px;
}

/* ==================== CALENDAR TABLE ==================== */
.yasawa-islands table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 6px;
    margin: 1.8rem auto;
    background-color: transparent;
    table-layout: fixed;
}

/* DAY OF WEEK HEADERS */
.yasawa-islands th {
    background: linear-gradient(135deg, var(--yi-water1) 0%, var(--yi-sunset1) 100%);
    color: var(--yi-primary) !important;
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
    padding: 1rem 0.5rem;
    border-radius: var(--yi-radius);
    position: relative;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    text-shadow: 0 1px 2px rgba(56, 178, 172, 0.2);
}

.yasawa-islands th::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.4) 100%);
    pointer-events: none;
}

.yasawa-islands th span.full-day-name {
    display: inline;
    position: relative;
    z-index: 1;
}

.yasawa-islands th abbr {
    display: none;
    text-decoration: none;
    border-bottom: none;
}

/* DATE NUMBER STYLES */
.yasawa-islands td {
    background-color: var(--yi-primary);
    color: var(--yi-text);
    padding: 1rem;
    border: 2px solid var(--yi-water4);
    height: 90px;
    vertical-align: top;
    transition: all var(--yi-transition);
    position: relative;
    border-radius: var(--yi-radius);
    box-shadow:
        inset 0 0 0 1px rgba(56, 178, 172, 0.1),
        0 2px 10px rgba(56, 178, 172, 0.08);
}

.yasawa-islands td .date-number {
    color: var(--yi-text) !important;
    font-weight: 600;
    font-size: 1.2rem;
    position: absolute;
    top: 8px;
    left: 8px;
    font-family: 'DM Sans', sans-serif;
}

.yasawa-islands td:hover {
    background-color: var(--yi-secondary);
    box-shadow:
        0 8px 25px rgba(56, 178, 172, 0.15),
        inset 0 0 0 1px rgba(255, 255, 255, 0.9);
    border-color: var(--yi-water1);
    transform: translateY(-3px);
}

/* Current date highlight */
.yasawa-islands td.current-day {
    background-color: rgba(56, 178, 172, 0.08);
    border: 3px solid var(--yi-water1);
    animation: yi-pulse 3s infinite;
    background-image:
        radial-gradient(circle at 70% 30%, var(--yi-sand5) 0%, transparent 50%);
}

.yasawa-islands td.current-day .date-number {
    color: var(--yi-water3) !important;
    font-weight: 700;
}

.yasawa-islands td.current-day::before {
    content: "🌅";
    position: absolute;
    top: 5px;
    right: 5px;
    z-index: 1;
    font-size: 1.1rem;
    animation: yi-float 2s ease-in-out infinite;
}

/* ==================== EVENT MARKERS ==================== */
.yasawa-islands .event-marker {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--yi-water1) 0%, var(--yi-sunset1) 100%);
    margin: 0 1px;
    transition: all var(--yi-transition);
    animation: yi-pulse 2s ease-in-out infinite;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 3px rgba(56, 178, 172, 0.3);
}

.yasawa-islands .event-marker::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 3px;
    height: 3px;
    background-color: var(--yi-primary);
    border-radius: 50%;
    opacity: 0.8;
}

.yasawa-islands .event-marker:hover {
    transform: scale(1.4);
    background: linear-gradient(135deg, var(--yi-water3) 0%, var(--yi-sunset3) 100%);
    box-shadow: 0 0 8px rgba(56, 178, 172, 0.5);
}

/* ==================== MODAL STYLES ==================== */
.yasawa-islands .modal-content {
    position: relative;
    background-color: var(--yi-primary);
    border: 2px solid var(--yi-water1);
    padding: 25px;
    color: var(--yi-text);
    box-shadow:
        0 15px 50px rgba(56, 178, 172, 0.2),
        inset 0 0 0 1px rgba(255, 255, 255, 0.9);
    border-radius: 16px;
    animation: yi-slide 0.3s ease-out;
    background-image:
        radial-gradient(circle at 20% 80%, var(--yi-water5) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, var(--yi-sunset5) 0%, transparent 50%);
    overflow: hidden;
}

.yasawa-islands .modal-content::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg,
            var(--yi-water1) 0%,
            var(--yi-sunset1) 50%,
            var(--yi-coral1) 100%);
    animation: yi-wave 3s linear infinite;
    background-size: 200% 100%;
}

.yasawa-islands .modal-content h2 {
    color: var(--yi-text);
    font-family: 'DM Sans', sans-serif;
    font-size: 2em;
    margin-bottom: 15px;
    font-weight: 600;
    letter-spacing: -0.01em;
    background: linear-gradient(135deg, var(--yi-water3) 0%, var(--yi-sunset3) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Modal date display */
.yasawa-islands .modal-date {
    font-family: 'DM Sans', sans-serif;
    color: var(--yi-text);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    padding-bottom: 0.8rem;
    border-bottom: 2px dashed var(--yi-water4);
}

/* Event list */
.yasawa-islands .event-list {
    margin: 1.5rem 0;
    padding: 0;
    list-style: none;
}

.yasawa-islands .event-item {
    background-color: var(--yi-secondary);
    padding: 1rem;
    margin-bottom: 1rem;
    border-left: 4px solid var(--yi-water1);
    border-radius: var(--yi-radius);
    transition: all var(--yi-transition);
    box-shadow:
        0 2px 10px rgba(56, 178, 172, 0.08),
        inset 0 0 0 1px rgba(255, 255, 255, 0.9);
}

.yasawa-islands .event-item:hover {
    background-color: rgba(56, 178, 172, 0.05);
    transform: translateX(5px);
    border-left-color: var(--yi-sunset1);
    box-shadow:
        0 4px 20px rgba(56, 178, 172, 0.15),
        inset 0 0 0 1px rgba(255, 255, 255, 0.9);
}

.yasawa-islands .event-time {
    font-family: 'Cabin', sans-serif;
    color: var(--yi-water1);
    font-weight: 500;
    font-size: 1rem;
    margin-bottom: 0.3rem;
    display: block;
}

.yasawa-islands .event-title {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--yi-text);
}

.yasawa-islands .event-description {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--yi-text);
    opacity: 0.9;
}

.yasawa-islands .modal-content button {
    background: linear-gradient(135deg, var(--yi-water1) 0%, var(--yi-water3) 100%);
    color: var(--yi-primary);
    border: none;
    padding: 10px 20px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--yi-transition);
    letter-spacing: 0.5px;
    font-family: 'DM Sans', sans-serif;
    border-radius: var(--yi-radius);
    text-shadow: 0 1px 2px rgba(56, 178, 172, 0.3);
    position: relative;
    overflow: hidden;
}

.yasawa-islands .modal-content button::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s;
}

.yasawa-islands .modal-content button:hover::before {
    left: 100%;
}

.yasawa-islands .modal-content button:hover {
    background: linear-gradient(135deg, var(--yi-hover) 0%, var(--yi-water3) 100%);
    box-shadow:
        0 6px 25px rgba(56, 178, 172, 0.3),
        inset 0 0 0 1px rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* Close Button */
.yasawa-islands .modal .close-button {
    position: absolute;
    top: 12px;
    right: 12px;
    background-color: var(--yi-primary);
    color: var(--yi-water1);
    border: 2px solid var(--yi-water1);
    width: 30px;
    height: 30px;
    cursor: pointer;
    transition: all var(--yi-transition);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: bold;
    box-shadow:
        0 2px 8px rgba(56, 178, 172, 0.1),
        inset 0 0 0 1px rgba(255, 255, 255, 0.9);
}

.yasawa-islands .modal .close-button:hover {
    background-color: var(--yi-water1);
    color: var(--yi-primary);
    border-color: var(--yi-water1);
    transform: rotate(90deg);
}

/* ==================== BUTTONS & CONTROLS ==================== */
.yasawa-islands .button,
.yasawa-islands .transparent-button {
    border: 2px solid var(--yi-water1);
    color: var(--yi-water1);
    background-color: transparent;
    padding: 0.8rem 1.5rem;
    font-family: 'DM Sans', sans-serif;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--yi-transition);
    position: relative;
    overflow: hidden;
    margin: 0.4rem;
    border-radius: var(--yi-radius);
    letter-spacing: 0.02em;
    font-size: 0.95rem;
    box-shadow:
        0 2px 8px rgba(56, 178, 172, 0.1),
        inset 0 0 0 1px rgba(255, 255, 255, 0.9);
}

.yasawa-islands .button::before,
.yasawa-islands .transparent-button::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(56, 178, 172, 0.1), transparent);
    transition: left 0.6s;
}

.yasawa-islands .button:hover::before,
.yasawa-islands .transparent-button:hover::before {
    left: 100%;
}

.yasawa-islands .button:hover,
.yasawa-islands .transparent-button:hover {
    background-color: var(--yi-water1);
    color: var(--yi-primary);
    box-shadow:
        0 6px 20px rgba(56, 178, 172, 0.2),
        inset 0 0 0 1px rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
}

.yasawa-islands .controls {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin: 1.2rem 0;
    gap: 0.5rem;
}

/* ==================== THEME SWITCHER ==================== */
.yasawa-islands #theme-switcher-container {
    position: relative;
    margin: 0 0.8rem;
    min-width: 200px;
    z-index: 1000;
}

.yasawa-islands #theme-switcher {
    background-color: var(--yi-primary);
    color: var(--yi-water1) !important;
    border: 2px solid var(--yi-water1);
    padding: 0.8rem 2.2rem 0.8rem 1rem;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2338B2AC'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.7rem center;
    background-size: 1rem;
    cursor: pointer;
    transition: all var(--yi-transition);
    border-radius: var(--yi-radius);
    box-shadow:
        0 2px 8px rgba(56, 178, 172, 0.1),
        inset 0 0 0 1px rgba(255, 255, 255, 0.9);
}

.yasawa-islands #theme-switcher option {
    background-color: var(--yi-primary) !important;
    color: var(--yi-water1) !important;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 10px 12px !important;
}

.yasawa-islands #theme-switcher:focus {
    outline: none;
    border-color: var(--yi-water1);
    box-shadow:
        0 0 0 3px rgba(56, 178, 172, 0.2),
        inset 0 0 0 1px rgba(255, 255, 255, 0.9);
}

/* ==================== BACK TO TOP BUTTON ==================== */
.yasawa-islands #backToTopBtn {
    position: fixed;
    right: 25px;
    bottom: 25px;
    z-index: 9999;
    border: none;
    padding: 1rem 1.7rem;
    font-size: 0.95rem;
    font-family: 'DM Sans', sans-serif;
    font-weight: 500;
    color: var(--yi-primary);
    background: linear-gradient(135deg, var(--yi-water1) 0%, var(--yi-water3) 100%);
    cursor: pointer;
    transition: all var(--yi-transition);
    opacity: 0.9;
    display: none;
    border-radius: var(--yi-radius);
    box-shadow:
        0 4px 20px rgba(56, 178, 172, 0.3),
        inset 0 0 0 1px rgba(255, 255, 255, 0.3);
    text-shadow: 0 1px 2px rgba(56, 178, 172, 0.3);
}

.yasawa-islands #backToTopBtn:hover {
    background: linear-gradient(135deg, var(--yi-hover) 0%, var(--yi-water3) 100%);
    opacity: 1;
    transform: translateY(-3px);
    box-shadow:
        0 8px 30px rgba(56, 178, 172, 0.4),
        inset 0 0 0 1px rgba(255, 255, 255, 0.4);
}

/* ==================== FOOTER ==================== */
.yasawa-islands footer {
    text-align: center;
    margin-top: 1.8rem;
    padding-top: 1.2rem;
    border-top: 2px dashed var(--yi-water4);
    color: var(--yi-water1);
    font-size: 0.9rem;
    font-weight: 500;
}

/* ==================== MEDIA QUERIES ==================== */
@media (max-width: 992px) {
    .yasawa-islands .container {
        padding: 1.5rem;
    }

    .yasawa-islands #calendar-title {
        font-size: 2rem;
    }

    .yasawa-islands #current-date {
        font-size: 1.5rem;
    }

    .yasawa-islands #today-weather {
        font-size: 1.1rem;
    }

    .yasawa-islands .modal-date {
        font-size: 1.3rem;
    }

    .yasawa-islands .event-title {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .yasawa-islands {
        font-size: 0.95rem;
        line-height: 1.5;
    }

    .yasawa-islands .clock-face {
        width: 150px;
        height: 150px;
        border-width: 2px;
    }

    .yasawa-islands th {
        font-size: 0.85rem;
        padding: 0.7rem 0.3rem;
    }

    .yasawa-islands th span.full-day-name {
        display: none;
    }

    .yasawa-islands th abbr {
        display: inline;
    }

    .yasawa-islands td {
        padding: 0.7rem;
        height: 80px;
        font-size: 0.85rem;
    }

    .yasawa-islands td .date-number {
        font-size: 1.1rem;
        top: 6px;
        left: 6px;
    }

    .yasawa-islands td.current-day::before {
        font-size: 1rem;
        top: 4px;
        right: 4px;
    }

    .yasawa-islands #backToTopBtn {
        right: 15px;
        bottom: 15px;
        padding: 0.9rem 1.5rem;
        font-size: 0.9rem;
    }

    .yasawa-islands #theme-switcher {
        padding: 0.7rem 1.8rem 0.7rem 0.8rem;
        font-size: 0.9rem;
        min-width: 170px;
    }

    .yasawa-islands .modal-content {
        padding: 20px;
    }

    .yasawa-islands .event-item {
        padding: 0.8rem;
    }
}

@media (max-width: 576px) {
    .yasawa-islands .container {
        padding: 1rem;
    }

    .yasawa-islands #calendar-title {
        font-size: 1.7rem;
    }

    .yasawa-islands #current-date {
        font-size: 1.3rem;
    }

    .yasawa-islands #today-weather {
        font-size: 1rem;
    }

    .yasawa-islands .clock-face {
        width: 130px;
        height: 130px;
        border-width: 2px;
    }

    .yasawa-islands th {
        font-size: 0.8rem;
        padding: 0.6rem 0.2rem;
    }

    .yasawa-islands td {
        padding: 0.6rem;
        height: 70px;
        font-size: 0.8rem;
    }

    .yasawa-islands td .date-number {
        font-size: 1rem;
        top: 5px;
        left: 5px;
    }

    .yasawa-islands #theme-switcher {
        min-width: 150px;
        font-size: 0.85rem;
    }

    .yasawa-islands .modal-content {
        padding: 15px;
    }

    .yasawa-islands .modal-date {
        font-size: 1.2rem;
    }

    .yasawa-islands .event-time {
        font-size: 0.9rem;
    }
}

@media (max-width: 400px) {
    .yasawa-islands th {
        font-size: 0.75rem;
        padding: 0.5rem 0.1rem;
    }

    .yasawa-islands td {
        height: 60px;
    }

    .yasawa-islands td .date-number {
        font-size: 0.9rem;
    }

    .yasawa-islands #theme-switcher {
        min-width: 130px;
        font-size: 0.8rem;
    }

    .yasawa-islands .controls {
        flex-direction: column;
        gap: 0.3rem;
    }

    .yasawa-islands .button,
    .yasawa-islands .transparent-button {
        width: 100%;
        margin: 0.2rem 0;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .yasawa-islands {
        --yi-water1: #2C7A7B;
        --yi-water3: #285E61;
    }

    .yasawa-islands td.current-day {
        border: 3px solid var(--yi-water3);
        background-color: rgba(44, 122, 123, 0.15);
    }

    .yasawa-islands th {
        background: var(--yi-water3);
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {

    .yasawa-islands *,
    .yasawa-islands *::before,
    .yasawa-islands *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .yasawa-islands .hand {
        transition: none;
    }

    .yasawa-islands .clock-face::before {
        animation: none;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .yasawa-islands {
        --yi-bg: #1A202C;
        --yi-text: #E2E8F0;
        --yi-primary: #2D3748;
        --yi-secondary: #4A5568;
        --yi-date-number: #E2E8F0;
        --yi-shadow: rgba(56, 178, 172, 0.2);
        --yi-sunset1: #ED8936;
        --yi-sunset2: #DD6B20;
        --yi-sunset3: #C05621;
        --yi-sand1: #4A5568;
        --yi-sand2: #2D3748;
        --yi-sand3: #1A202C;
    }

    .yasawa-islands .container,
    .yasawa-islands td {
        box-shadow:
            0 8px 30px rgba(0, 0, 0, 0.3),
            inset 0 0 0 1px rgba(56, 178, 172, 0.1);
    }

    .yasawa-islands .modal-content {
        box-shadow:
            0 15px 50px rgba(0, 0, 0, 0.4),
            inset 0 0 0 1px rgba(56, 178, 172, 0.1);
    }

    .yasawa-islands .button,
    .yasawa-islands .transparent-button {
        box-shadow:
            0 2px 8px rgba(0, 0, 0, 0.2),
            inset 0 0 0 1px rgba(56, 178, 172, 0.1);
    }
}