/* ==========================================================================
   New Island Theme - Tropical Paradise Calendar
   Version: 1.4
   Updated: 2024-06-08
   Changes:
   - MAXIMUM TEXT VISIBILITY ENHANCEMENTS
   - TROPICAL ISLAND aesthetic with palm tree and ocean accents
   - TURQUOISE blues, sandy yellows, and palm greens with extreme contrast
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Patua+One&family=Poppins:wght@800;900&display=swap');

:root {
    /* New Island Palette - MAXIMUM CONTRAST */
    --island-bg: #0A1E28;
    --island-text: #FFFFFF;
    --island-primary: #1A2E38;
    --island-secondary: #243840;
    --island-date-number: #FFFFFF;

    /* Ocean Turquoise */
    --island-turquoise1: #40E0D0;
    --island-turquoise2: #30D0C0;
    --island-turquoise3: #20C0B0;
    --island-turquoise4: rgba(64, 224, 208, 1);
    --island-turquoise5: rgba(64, 224, 208, 0.5);

    /* Sandy Beach */
    --island-sand1: #F4D03F;
    --island-sand2: #F0C030;
    --island-sand3: #ECB020;
    --island-sand4: rgba(244, 208, 63, 1);
    --island-sand5: rgba(244, 208, 63, 0.5);

    /* Palm Green */
    --island-palm1: #2ECC71;
    --island-palm2: #20BC61;
    --island-palm3: #14AC51;
    --island-palm4: rgba(46, 204, 113, 1);
    --island-palm5: rgba(46, 204, 113, 0.5);

    /* Coral Pink */
    --island-coral1: #FF6B9D;
    --island-coral2: #FF5B8D;
    --island-coral3: #FF4B7D;
    --island-coral4: rgba(255, 107, 157, 1);
    --island-coral5: rgba(255, 107, 157, 0.5);

    /* Sunset Orange */
    --island-sunset1: #FF8C42;
    --island-sunset2: #FF7C32;
    --island-sunset3: #FF6C22;
    --island-sunset4: rgba(255, 140, 66, 1);
    --island-sunset5: rgba(255, 140, 66, 0.5);

    /* Deep Ocean */
    --island-deep1: #1E4B7A;
    --island-deep2: #163B6A;
    --island-deep3: #0E2B5A;
    --island-deep4: rgba(30, 75, 122, 1);
    --island-deep5: rgba(30, 75, 122, 0.5);

    /* Theme Variables - Enhanced Visibility */
    --island-shadow: rgba(255, 255, 255, 0.4);
    --island-radius: 10px;
    --island-transition: 0.3s ease;
    --island-hover: #FF8C42;
    --island-glow: 0 0 30px rgba(255, 255, 255, 0.5);
    --island-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=".15" fill="%2340E0D0"/><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=".2" fill="%2340E0D0"/><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=".25" fill="%2340E0D0"/></svg>');
}

/* ==================== ANIMATIONS ==================== */
@keyframes island-fade {

    0%,
    100% {
        opacity: 0.95;
    }

    50% {
        opacity: 1;
    }
}

@keyframes island-slide {
    from {
        transform: translateY(3px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes island-pulse {

    0%,
    100% {
        box-shadow: 0 0 15px var(--island-shadow);
    }

    50% {
        box-shadow: var(--island-glow);
    }
}

@keyframes island-wave {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

@keyframes island-rotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes island-float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }
}

@keyframes island-ripple {
    0% {
        transform: scale(0);
        opacity: 1;
    }

    100% {
        transform: scale(1);
        opacity: 0;
    }
}

@keyframes island-shimmer {
    0% {
        background-position: -200% center;
    }

    100% {
        background-position: 200% center;
    }
}

@keyframes island-palm-sway {

    0%,
    100% {
        transform: rotate(-3deg);
    }

    50% {
        transform: rotate(3deg);
    }
}

@keyframes island-sunset {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 100% 50%;
    }
}

/* ==================== BASE STYLES ==================== */
.new-island {
    font-family: 'Poppins', sans-serif;
    color: var(--island-text);
    line-height: 1.6;
    font-size: 1.1rem;
    background: linear-gradient(135deg, var(--island-bg) 0%, #0A2838 100%);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    font-weight: 800;
}

.new-island::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 30%, var(--island-turquoise5) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, var(--island-sand5) 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="M50,20 Q55,10 60,20 Q65,30 70,20" stroke="%23F4D03F" stroke-width="1" fill="none" opacity="0.8"/><circle cx="30" cy="40" r="0.9" fill="%2340E0D0" opacity="1"/><circle cx="70" cy="60" r="1.1" fill="%232ECC71" opacity="0.9"/><path d="M20,80 Q25,70 30,80 Q35,90 40,80" stroke="%23FF6B9D" stroke-width="1" fill="none" opacity="0.8"/></svg>');
    background-size: 250px 250px;
    pointer-events: none;
    z-index: 1;
}

/* Wave pattern background */
.new-island::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        repeating-linear-gradient(45deg, transparent, transparent 10px, var(--island-turquoise5) 10px, var(--island-turquoise5) 20px),
        repeating-linear-gradient(-45deg, transparent, transparent 10px, var(--island-sand5) 10px, var(--island-sand5) 20px);
    opacity: 0.15;
    z-index: 0;
}

.new-island .container {
    background: linear-gradient(135deg, var(--island-primary) 0%, var(--island-secondary) 100%);
    padding: 2rem;
    border: 4px solid var(--island-turquoise4);
    box-shadow:
        var(--island-glow),
        inset 0 0 0 4px rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
    max-width: 1600px;
    margin: 0 auto;
    border-radius: 20px;
    z-index: 2;
    background-image:
        radial-gradient(circle at 10% 20%, var(--island-turquoise5) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, var(--island-sand5) 0%, transparent 50%);
}

.new-island .container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg,
            transparent,
            var(--island-turquoise1),
            var(--island-sand1),
            var(--island-turquoise1),
            transparent);
    animation: island-sunset 10s linear infinite;
    background-size: 300% 100%;
}

.new-island .container::after {
    content: "🏝️";
    position: absolute;
    bottom: 15px;
    right: 20px;
    font-size: 3rem;
    opacity: 0.5;
    animation: island-wave 4s ease-in-out infinite;
}

/* ==================== HEADER & TITLE - MAXIMUM VISIBILITY ==================== */
.new-island #calendar-title {
    font-family: 'Patua One', cursive;
    color: var(--island-text);
    text-align: center;
    font-size: 3.2rem;
    margin-bottom: 2rem;
    letter-spacing: 0.12em;
    position: relative;
    font-weight: 900;
    text-shadow:
        0 0 25px var(--island-turquoise4),
        0 0 50px var(--island-sand4),
        0 0 80px var(--island-coral4),
        0 6px 12px rgba(0, 0, 0, 1),
        0 10px 20px rgba(0, 0, 0, 0.8);
    background: linear-gradient(135deg, var(--island-turquoise1) 0%, var(--island-sand1) 50%, var(--island-coral1) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 250% auto;
    animation: island-shimmer 8s linear infinite;
    padding: 1.5rem 0;
    border-bottom: 5px solid var(--island-turquoise1);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.7);
    background-color: rgba(0, 0, 0, 0.5);
    padding: 2rem;
    border-radius: 15px;
    margin-top: 1rem;
}

.new-island #calendar-title::after {
    content: "🌊";
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 3.5rem;
    opacity: 1;
    animation: island-wave 3s ease-in-out infinite;
    text-shadow: 0 0 30px var(--island-turquoise4), 0 0 60px var(--island-sand4);
}

/* ==================== DATE & WEATHER DISPLAY - MAXIMUM VISIBILITY ==================== */
.new-island #date-weather-container {
    text-align: center;
    margin: 2.5rem 0;
    padding: 2.2rem;
    background: linear-gradient(135deg, var(--island-primary) 0%, var(--island-secondary) 100%);
    border: 4px solid var(--island-turquoise4);
    border-radius: var(--island-radius);
    position: relative;
    box-shadow:
        0 8px 35px var(--island-shadow),
        inset 0 0 0 4px rgba(255, 255, 255, 0.4);
    overflow: hidden;
}

.new-island #date-weather-container::before {
    content: "PARADISE";
    position: absolute;
    top: -20px;
    right: 30px;
    background: linear-gradient(135deg, var(--island-primary) 0%, var(--island-secondary) 100%);
    padding: 8px 20px;
    font-size: 1rem;
    letter-spacing: 0.2em;
    color: var(--island-turquoise1);
    font-weight: 900;
    font-family: 'Patua One', cursive;
    text-transform: uppercase;
    border: 4px solid var(--island-turquoise4);
    border-radius: 10px;
    text-shadow:
        0 4px 8px rgba(0, 0, 0, 1),
        0 0 20px var(--island-turquoise4);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.8);
    z-index: 3;
}

.new-island #date-weather-container::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    height: 5px;
    background: linear-gradient(90deg, transparent, var(--island-turquoise1), var(--island-sand1), var(--island-turquoise1), transparent);
    box-shadow: 0 0 20px var(--island-turquoise4);
}

.new-island #current-date {
    font-family: 'Patua One', cursive;
    color: var(--island-text);
    font-size: 2.4rem;
    font-weight: 900;
    margin-bottom: 1rem;
    text-shadow:
        0 0 25px var(--island-turquoise4),
        0 0 50px var(--island-sand4),
        0 5px 10px rgba(0, 0, 0, 1),
        0 8px 16px rgba(0, 0, 0, 0.9);
    letter-spacing: 0.1em;
    background: rgba(0, 0, 0, 0.6);
    padding: 1.2rem 2rem;
    border-radius: 12px;
    border: 3px solid var(--island-turquoise4);
    display: inline-block;
    min-width: 300px;
}

.new-island #today-weather {
    font-family: 'Poppins', sans-serif;
    color: var(--island-turquoise1);
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-shadow:
        0 0 20px var(--island-turquoise4),
        0 0 40px var(--island-sand4),
        0 4px 8px rgba(0, 0, 0, 1),
        0 6px 12px rgba(0, 0, 0, 0.9);
    background: rgba(0, 0, 0, 0.7);
    padding: 1rem 2rem;
    border-radius: 10px;
    display: inline-block;
    border: 3px solid var(--island-sand4);
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.8);
}

/* ==================== ANALOG CLOCK - MAXIMUM VISIBILITY ==================== */
.new-island #analog-watch {
    display: flex;
    justify-content: center;
    margin: 3rem 0;
}

.new-island .clock-face {
    width: 220px;
    height: 220px;
    border: 6px solid var(--island-turquoise1);
    border-radius: 50%;
    position: relative;
    background: linear-gradient(135deg, var(--island-primary) 0%, var(--island-secondary) 100%);
    box-shadow:
        0 10px 50px var(--island-shadow),
        inset 0 0 0 5px rgba(255, 255, 255, 0.5);
    overflow: hidden;
}

.new-island .clock-face::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 25px;
    height: 25px;
    background: linear-gradient(135deg, var(--island-turquoise1) 0%, var(--island-sand1) 100%);
    border-radius: 50%;
    z-index: 10;
    box-shadow:
        0 0 30px var(--island-shadow),
        inset 0 0 10px rgba(255, 255, 255, 0.7);
    animation: island-pulse 2s ease-in-out infinite;
    border: 5px solid var(--island-primary);
}

.new-island .clock-face::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at center, transparent 70%, var(--island-turquoise5) 100%),
        repeating-conic-gradient(from 0deg,
            transparent 0deg 29deg,
            var(--island-sand5) 30deg 30deg);
}

.new-island .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;
}

.new-island .hour-hand {
    width: 35%;
    left: 15%;
    height: 10px;
    background: linear-gradient(90deg, var(--island-sand1) 0%, var(--island-turquoise1) 100%);
    margin-top: -5px;
    border-radius: 5px;
    box-shadow: 0 0 20px var(--island-shadow);
    border: 3px solid var(--island-primary);
}

.new-island .minute-hand {
    width: 45%;
    left: 5%;
    height: 8px;
    background: linear-gradient(90deg, var(--island-turquoise1) 0%, var(--island-palm1) 100%);
    margin-top: -4px;
    border-radius: 4px;
    box-shadow: 0 0 20px var(--island-shadow);
    border: 3px solid var(--island-primary);
}

.new-island .second-hand {
    width: 45%;
    left: 5%;
    height: 6px;
    background: linear-gradient(90deg, var(--island-primary) 0%, var(--island-coral1) 100%);
    margin-top: -3px;
    box-shadow: 0 0 20px var(--island-coral4), 0 0 40px var(--island-coral4);
    border: 3px solid var(--island-coral1);
}

/* Clock numbers for MAXIMUM visibility */
.new-island .clock-face .clock-number {
    position: absolute;
    color: var(--island-turquoise1);
    font-family: 'Patua One', cursive;
    font-weight: 900;
    font-size: 1.8rem;
    text-shadow:
        0 0 20px var(--island-turquoise4),
        0 0 40px var(--island-sand4),
        0 4px 8px rgba(0, 0, 0, 1);
}

/* ==================== CALENDAR TABLE - MAXIMUM VISIBILITY ==================== */
.new-island table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 10px;
    margin: 3rem auto;
    background-color: transparent;
    table-layout: fixed;
    border: 5px solid var(--island-turquoise4);
    border-radius: 18px;
    padding: 20px;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.8),
        inset 0 0 0 5px rgba(255, 255, 255, 0.3);
    background: rgba(0, 0, 0, 0.4);
}

/* DAY OF WEEK HEADERS - EXTREME VISIBILITY */
.new-island th {
    background: linear-gradient(135deg, var(--island-turquoise1) 0%, var(--island-palm1) 100%);
    color: var(--island-primary) !important;
    font-family: 'Patua One', cursive;
    font-weight: 900;
    padding: 1.5rem 0.8rem;
    border-radius: var(--island-radius);
    position: relative;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
    font-size: 1.3rem;
    letter-spacing: 0.1em;
    text-shadow:
        0 4px 8px rgba(0, 0, 0, 1),
        0 0 20px var(--island-turquoise4);
    border: 4px solid rgba(255, 255, 255, 0.7);
    box-shadow:
        inset 0 0 0 4px rgba(255, 255, 255, 0.5),
        0 8px 30px rgba(0, 0, 0, 0.8);
}

.new-island th::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.6) 100%);
    pointer-events: none;
}

.new-island th span.full-day-name {
    display: inline;
    position: relative;
    z-index: 1;
    font-weight: 900;
}

.new-island th abbr {
    display: none;
    text-decoration: none;
    border-bottom: none;
}

/* DATE NUMBER STYLES - EXTREME VISIBILITY */
.new-island td {
    background: linear-gradient(135deg, var(--island-primary) 0%, var(--island-secondary) 100%);
    color: var(--island-text);
    padding: 1.5rem;
    border: 4px solid var(--island-turquoise4);
    height: 120px;
    vertical-align: top;
    transition: all var(--island-transition);
    position: relative;
    border-radius: var(--island-radius);
    box-shadow:
        inset 0 0 0 4px rgba(255, 255, 255, 0.5),
        0 8px 35px var(--island-shadow);
}

.new-island td .date-number {
    color: var(--island-date-number) !important;
    font-weight: 900;
    font-size: 2.2rem;
    position: absolute;
    top: 12px;
    left: 12px;
    font-family: 'Patua One', cursive;
    text-shadow:
        0 0 25px var(--island-turquoise4),
        0 0 50px var(--island-sand4),
        0 5px 10px rgba(0, 0, 0, 1),
        0 8px 16px rgba(0, 0, 0, 1);
    background: rgba(0, 0, 0, 0.7);
    padding: 8px 16px;
    border-radius: 10px;
    border: 3px solid var(--island-turquoise4);
    min-width: 50px;
    text-align: center;
}

.new-island td:hover {
    background: linear-gradient(135deg, var(--island-secondary) 0%, #2A4858 100%);
    box-shadow:
        0 10px 45px var(--island-shadow),
        inset 0 0 0 5px rgba(255, 255, 255, 0.6);
    border-color: var(--island-sand1);
    transform: translateY(-5px) scale(1.04);
}

/* Current date highlight - MAXIMUM VISIBILITY */
.new-island td.current-day {
    background: linear-gradient(135deg, rgba(64, 224, 208, 0.5) 0%, rgba(244, 208, 63, 0.5) 100%);
    border: 5px solid var(--island-sand1);
    animation: island-pulse 3s infinite;
    background-image:
        radial-gradient(circle at 70% 30%, var(--island-sand5) 0%, transparent 50%);
    box-shadow:
        0 0 50px var(--island-turquoise4),
        0 0 90px var(--island-sand4),
        inset 0 0 40px rgba(255, 255, 255, 0.4);
}

.new-island td.current-day .date-number {
    color: var(--island-sand1) !important;
    font-weight: 900;
    font-size: 2.8rem;
    text-shadow:
        0 0 30px var(--island-turquoise4),
        0 0 60px var(--island-sand4),
        0 0 100px var(--island-coral4),
        0 6px 12px rgba(0, 0, 0, 1);
    background: rgba(0, 0, 0, 0.9);
    border: 4px solid var(--island-sand1);
    padding: 10px 20px;
}

.new-island td.current-day::before {
    content: "🌴";
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1;
    font-size: 2.5rem;
    animation: island-palm-sway 2s ease-in-out infinite;
    opacity: 1;
    text-shadow: 0 0 30px var(--island-turquoise4), 0 0 60px var(--island-sand4);
}

/* ==================== EVENT MARKERS - MAXIMUM VISIBILITY ==================== */
.new-island .event-marker {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--island-turquoise1) 0%, var(--island-sand1) 100%);
    margin: 0 4px;
    transition: all var(--island-transition);
    animation: island-pulse 2s ease-in-out infinite;
    position: relative;
    overflow: hidden;
    box-shadow:
        0 0 12px var(--island-shadow),
        0 0 0 5px rgba(255, 255, 255, 0.7);
    border: 3px solid var(--island-primary);
}

.new-island .event-marker::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    background-color: var(--island-primary);
    border-radius: 50%;
    opacity: 1;
}

.new-island .event-marker:hover {
    transform: scale(2.5);
    background: linear-gradient(135deg, var(--island-sand1) 0%, var(--island-coral1) 100%);
    box-shadow:
        0 0 25px var(--island-shadow),
        0 0 0 6px rgba(255, 255, 255, 0.9);
    animation: island-pulse 0.5s ease-in-out infinite;
}

/* ==================== MODAL STYLES - MAXIMUM VISIBILITY ==================== */
.new-island .modal-content {
    position: relative;
    background: linear-gradient(135deg, var(--island-primary) 0%, var(--island-secondary) 100%);
    border: 5px solid var(--island-turquoise4);
    padding: 35px;
    color: var(--island-text);
    box-shadow:
        0 25px 70px var(--island-shadow),
        inset 0 0 0 5px rgba(255, 255, 255, 0.5);
    border-radius: 22px;
    animation: island-slide 0.3s ease-out;
    overflow: hidden;
}

.new-island .modal-content::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg,
            transparent,
            var(--island-turquoise1),
            var(--island-sand1),
            var(--island-turquoise1),
            transparent);
    animation: island-sunset 10s linear infinite;
    background-size: 300% 100%;
    box-shadow: 0 0 30px var(--island-turquoise4);
}

.new-island .modal-content h2 {
    color: var(--island-text);
    font-family: 'Patua One', cursive;
    font-size: 2.5em;
    margin-bottom: 25px;
    font-weight: 900;
    letter-spacing: 0.12em;
    background: linear-gradient(135deg, var(--island-turquoise1) 0%, var(--island-sand1) 50%, var(--island-coral1) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow:
        0 0 30px var(--island-turquoise4),
        0 0 60px var(--island-sand4),
        0 6px 12px rgba(0, 0, 0, 1);
    padding-bottom: 20px;
    border-bottom: 4px solid var(--island-turquoise1);
    background-color: rgba(0, 0, 0, 0.5);
    padding: 20px;
    border-radius: 12px;
}

/* Modal date display */
.new-island .modal-date {
    font-family: 'Patua One', cursive;
    color: var(--island-text);
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 4px solid var(--island-turquoise4);
    text-shadow:
        0 0 20px var(--island-turquoise4),
        0 0 40px var(--island-sand4),
        0 5px 10px rgba(0, 0, 0, 1);
    background: rgba(0, 0, 0, 0.7);
    padding: 20px 25px;
    border-radius: 12px;
    border: 4px solid var(--island-turquoise4);
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.8);
}

/* Event list */
.new-island .event-list {
    margin: 2.5rem 0;
    padding: 0;
    list-style: none;
}

.new-island .event-item {
    background: linear-gradient(135deg, var(--island-secondary) 0%, #2A4858 100%);
    padding: 1.8rem;
    margin-bottom: 1.5rem;
    border-left: 8px solid var(--island-turquoise1);
    border-radius: var(--island-radius);
    transition: all var(--island-transition);
    box-shadow:
        0 8px 35px var(--island-shadow),
        inset 0 0 0 4px rgba(255, 255, 255, 0.5);
    border: 4px solid rgba(255, 255, 255, 0.4);
}

.new-island .event-item:hover {
    background: linear-gradient(135deg, rgba(64, 224, 208, 0.5) 0%, rgba(244, 208, 63, 0.5) 100%);
    transform: translateX(8px) scale(1.05);
    border-left-color: var(--island-sand1);
    box-shadow:
        0 10px 45px var(--island-shadow),
        inset 0 0 0 5px rgba(255, 255, 255, 0.6);
}

.new-island .event-time {
    font-family: 'Poppins', sans-serif;
    color: var(--island-turquoise1);
    font-weight: 900;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    display: block;
    text-shadow:
        0 0 20px var(--island-turquoise4),
        0 0 40px var(--island-sand4),
        0 4px 8px rgba(0, 0, 0, 1);
    background: rgba(0, 0, 0, 0.7);
    padding: 8px 15px;
    border-radius: 8px;
    display: inline-block;
    border: 3px solid var(--island-turquoise4);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.7);
}

.new-island .event-title {
    font-weight: 900;
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
    color: var(--island-text);
    text-shadow:
        0 0 20px var(--island-turquoise4),
        0 0 40px var(--island-coral4),
        0 5px 10px rgba(0, 0, 0, 1);
    letter-spacing: 0.08em;
    background: rgba(0, 0, 0, 0.6);
    padding: 10px 18px;
    border-radius: 10px;
    border: 3px solid var(--island-coral4);
}

.new-island .event-description {
    font-size: 1.2rem;
    line-height: 1.6;
    color: var(--island-text);
    font-weight: 800;
    text-shadow:
        0 0 15px var(--island-turquoise4),
        0 0 30px var(--island-palm4),
        0 4px 8px rgba(0, 0, 0, 1);
    background: rgba(0, 0, 0, 0.5);
    padding: 15px 20px;
    border-radius: 10px;
    border: 3px solid var(--island-palm4);
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.7);
}

.new-island .modal-content button {
    background: linear-gradient(135deg, var(--island-turquoise1) 0%, var(--island-palm1) 100%);
    color: var(--island-primary);
    border: none;
    padding: 18px 35px;
    font-size: 1.2em;
    font-weight: 900;
    cursor: pointer;
    transition: all var(--island-transition);
    letter-spacing: 0.15em;
    font-family: 'Patua One', cursive;
    border-radius: var(--island-radius);
    text-shadow:
        0 4px 8px rgba(0, 0, 0, 1),
        0 0 20px var(--island-turquoise4);
    position: relative;
    overflow: hidden;
    border: 5px solid rgba(255, 255, 255, 0.6);
    box-shadow:
        0 8px 40px rgba(0, 0, 0, 0.9),
        inset 0 0 0 4px rgba(255, 255, 255, 0.5);
}

.new-island .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.6), transparent);
    transition: left 0.6s;
}

.new-island .modal-content button:hover::before {
    left: 100%;
}

.new-island .modal-content button:hover {
    background: linear-gradient(135deg, var(--island-hover) 0%, var(--island-palm2) 100%);
    box-shadow:
        0 10px 50px var(--island-shadow),
        inset 0 0 0 5px rgba(255, 255, 255, 0.6);
    transform: translateY(-5px) scale(1.08);
    text-shadow:
        0 4px 8px rgba(0, 0, 0, 1),
        0 0 25px var(--island-sand4);
}

/* Close Button - MAXIMUM VISIBILITY */
.new-island .modal .close-button {
    position: absolute;
    top: 25px;
    right: 25px;
    background: linear-gradient(135deg, var(--island-primary) 0%, var(--island-secondary) 100%);
    color: var(--island-turquoise1);
    border: 5px solid var(--island-turquoise1);
    width: 60px;
    height: 60px;
    cursor: pointer;
    transition: all var(--island-transition);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 900;
    font-size: 1.8rem;
    box-shadow:
        0 8px 35px var(--island-shadow),
        inset 0 0 0 5px rgba(255, 255, 255, 0.5);
    text-shadow: 0 0 20px var(--island-turquoise4);
}

.new-island .modal .close-button:hover {
    background: linear-gradient(135deg, var(--island-turquoise1) 0%, var(--island-palm1) 100%);
    color: var(--island-primary);
    border-color: var(--island-sand1);
    transform: rotate(180deg) scale(1.4);
    box-shadow:
        0 0 50px var(--island-shadow),
        inset 0 0 0 5px rgba(255, 255, 255, 0.6);
}

/* ==================== BUTTONS & CONTROLS - MAXIMUM VISIBILITY ==================== */
.new-island .button,
.new-island .transparent-button {
    border: 5px solid var(--island-turquoise1);
    color: var(--island-turquoise1);
    background: linear-gradient(135deg, var(--island-primary) 0%, var(--island-secondary) 100%);
    padding: 1.5rem 2.8rem;
    font-family: 'Patua One', cursive;
    font-weight: 900;
    cursor: pointer;
    transition: all var(--island-transition);
    position: relative;
    overflow: hidden;
    margin: 0.8rem;
    border-radius: var(--island-radius);
    letter-spacing: 0.12em;
    font-size: 1.2rem;
    box-shadow:
        0 8px 40px var(--island-shadow),
        inset 0 0 0 5px rgba(255, 255, 255, 0.5);
    text-shadow:
        0 4px 8px rgba(0, 0, 0, 1),
        0 0 20px var(--island-turquoise4);
}

.new-island .button::before,
.new-island .transparent-button::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--island-turquoise5), transparent);
    transition: left 0.6s;
}

.new-island .button:hover::before,
.new-island .transparent-button:hover::before {
    left: 100%;
}

.new-island .button:hover,
.new-island .transparent-button:hover {
    background: linear-gradient(135deg, var(--island-turquoise1) 0%, var(--island-palm1) 100%);
    color: var(--island-primary);
    box-shadow:
        0 10px 50px var(--island-shadow),
        inset 0 0 0 5px rgba(255, 255, 255, 0.6);
    transform: translateY(-5px) scale(1.12);
    text-shadow:
        0 4px 8px rgba(0, 0, 0, 1),
        0 0 25px var(--island-sand4);
}

.new-island .controls {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin: 2.5rem 0;
    gap: 1rem;
    padding: 2.5rem;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 18px;
    border: 5px solid var(--island-turquoise4);
    box-shadow: 0 12px 50px rgba(0, 0, 0, 0.9);
}

/* ==================== THEME SWITCHER - MAXIMUM VISIBILITY ==================== */
.new-island #theme-switcher-container {
    position: relative;
    margin: 0 1.2rem;
    min-width: 250px;
    z-index: 1000;
}

.new-island #theme-switcher {
    background: linear-gradient(135deg, var(--island-primary) 0%, var(--island-secondary) 100%);
    color: var(--island-turquoise1) !important;
    border: 5px solid var(--island-turquoise1);
    padding: 1.5rem 3.5rem 1.5rem 1.8rem;
    font-family: 'Patua One', cursive;
    font-size: 1.2rem;
    font-weight: 900;
    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='%2340E0D0'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1.5rem center;
    background-size: 1.6rem;
    cursor: pointer;
    transition: all var(--island-transition);
    border-radius: var(--island-radius);
    box-shadow:
        0 8px 40px var(--island-shadow),
        inset 0 0 0 5px rgba(255, 255, 255, 0.5);
    text-shadow:
        0 4px 8px rgba(0, 0, 0, 1),
        0 0 20px var(--island-turquoise4);
}

.new-island #theme-switcher option {
    background: linear-gradient(135deg, var(--island-primary) 0%, var(--island-secondary) 100%) !important;
    color: var(--island-turquoise1) !important;
    font-size: 1.2rem;
    font-weight: 900;
    padding: 18px 25px !important;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 1);
}

.new-island #theme-switcher:focus {
    outline: none;
    border-color: var(--island-sand1);
    box-shadow:
        0 0 0 6px var(--island-shadow),
        0 0 60px var(--island-glow),
        inset 0 0 0 5px rgba(255, 255, 255, 0.6);
    transform: scale(1.04);
}

/* ==================== BACK TO TOP BUTTON - MAXIMUM VISIBILITY ==================== */
.new-island #backToTopBtn {
    position: fixed;
    right: 35px;
    bottom: 35px;
    z-index: 9999;
    border: none;
    padding: 1.8rem 3rem;
    font-size: 1.2rem;
    font-family: 'Patua One', cursive;
    font-weight: 900;
    color: var(--island-primary);
    background: linear-gradient(135deg, var(--island-turquoise1) 0%, var(--island-palm1) 100%);
    cursor: pointer;
    transition: all var(--island-transition);
    opacity: 1;
    display: none;
    border-radius: var(--island-radius);
    box-shadow:
        0 10px 50px var(--island-shadow),
        inset 0 0 0 5px rgba(255, 255, 255, 0.5);
    text-shadow:
        0 4px 8px rgba(0, 0, 0, 1),
        0 0 20px var(--island-turquoise4);
    border: 5px solid rgba(255, 255, 255, 0.6);
    letter-spacing: 0.12em;
}

.new-island #backToTopBtn:hover {
    background: linear-gradient(135deg, var(--island-hover) 0%, var(--island-palm2) 100%);
    opacity: 1;
    transform: translateY(-6px) scale(1.12);
    box-shadow:
        0 12px 60px var(--island-shadow),
        inset 0 0 0 5px rgba(255, 255, 255, 0.6);
    text-shadow:
        0 4px 8px rgba(0, 0, 0, 1),
        0 0 25px var(--island-sand4);
}

/* ==================== FOOTER - MAXIMUM VISIBILITY ==================== */
.new-island footer {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2.5rem;
    border-top: 5px solid var(--island-turquoise4);
    color: var(--island-turquoise1);
    font-size: 1.2rem;
    font-weight: 900;
    text-shadow:
        0 0 20px var(--island-turquoise4),
        0 0 40px var(--island-sand4),
        0 5px 10px rgba(0, 0, 0, 1);
    background: rgba(0, 0, 0, 0.6);
    padding: 2rem;
    border-radius: 15px;
    border: 5px solid var(--island-turquoise4);
    box-shadow: 0 12px 50px rgba(0, 0, 0, 0.9);
    letter-spacing: 0.1em;
}

/* ==================== EXTRA VISIBILITY ENHANCEMENTS ==================== */
/* All text elements get black outline for maximum contrast */
.new-island h1,
.new-island h2,
.new-island h3,
.new-island h4,
.new-island h5,
.new-island h6,
.new-island p,
.new-island span,
.new-island div,
.new-island li,
.new-island td,
.new-island th {
    text-shadow:
        0 0 20px currentColor,
        0 4px 8px rgba(0, 0, 0, 1) !important;
}

/* Input elements */
.new-island input,
.new-island select,
.new-island textarea {
    border: 4px solid var(--island-turquoise1) !important;
    background: rgba(0, 0, 0, 0.8) !important;
    color: var(--island-text) !important;
    font-weight: 900 !important;
    text-shadow: 0 0 20px var(--island-turquoise4) !important;
    box-shadow: 0 0 25px var(--island-shadow) !important;
}

/* Links */
.new-island a {
    color: var(--island-turquoise1) !important;
    text-shadow: 0 0 25px var(--island-turquoise4), 0 0 50px var(--island-sand4) !important;
    font-weight: 900 !important;
    text-decoration: underline !important;
    border-bottom: 3px solid var(--island-sand1) !important;
}

/* Tooltips and labels */
.new-island .tooltip,
.new-island label {
    background: rgba(0, 0, 0, 1) !important;
    color: var(--island-turquoise1) !important;
    border: 4px solid var(--island-turquoise1) !important;
    font-weight: 900 !important;
    text-shadow: 0 0 20px var(--island-turquoise4) !important;
    box-shadow: 0 0 40px var(--island-shadow) !important;
    padding: 12px 18px !important;
    border-radius: 10px !important;
}

/* ==================== MEDIA QUERIES - MAINTAINING VISIBILITY ==================== */
@media (max-width: 992px) {
    .new-island .container {
        padding: 2rem;
    }

    .new-island #calendar-title {
        font-size: 2.8rem;
    }

    .new-island #current-date {
        font-size: 2.2rem;
    }

    .new-island #today-weather {
        font-size: 1.3rem;
    }

    .new-island .modal-date {
        font-size: 1.8rem;
    }

    .new-island .event-title {
        font-size: 1.3rem;
    }
}

@media (max-width: 768px) {
    .new-island {
        font-size: 1.1rem;
        line-height: 1.6;
    }

    .new-island .clock-face {
        width: 200px;
        height: 200px;
        border-width: 5px;
    }

    .new-island th {
        font-size: 1.2rem;
        padding: 1.2rem 0.6rem;
    }

    .new-island th span.full-day-name {
        display: none;
    }

    .new-island th abbr {
        display: inline;
        font-weight: 900;
    }

    .new-island td {
        padding: 1.2rem;
        height: 110px;
        font-size: 1.1rem;
    }

    .new-island td .date-number {
        font-size: 1.8rem;
        top: 10px;
        left: 10px;
    }

    .new-island td.current-day::before {
        font-size: 2.2rem;
        top: 8px;
        right: 8px;
    }

    .new-island #backToTopBtn {
        right: 25px;
        bottom: 25px;
        padding: 1.5rem 2.5rem;
        font-size: 1.1rem;
    }

    .new-island #theme-switcher {
        padding: 1.2rem 3rem 1.2rem 1.5rem;
        font-size: 1.1rem;
        min-width: 220px;
    }

    .new-island .modal-content {
        padding: 30px;
    }

    .new-island .event-item {
        padding: 1.5rem;
    }
}

@media (max-width: 576px) {
    .new-island .container {
        padding: 1.5rem;
    }

    .new-island #calendar-title {
        font-size: 2.4rem;
    }

    .new-island #current-date {
        font-size: 1.8rem;
    }

    .new-island #today-weather {
        font-size: 1.1rem;
    }

    .new-island .clock-face {
        width: 180px;
        height: 180px;
        border-width: 5px;
    }

    .new-island th {
        font-size: 1rem;
        padding: 1rem 0.4rem;
    }

    .new-island td {
        padding: 1rem;
        height: 100px;
        font-size: 1rem;
    }

    .new-island td .date-number {
        font-size: 1.5rem;
        top: 8px;
        left: 8px;
    }

    .new-island #theme-switcher {
        min-width: 200px;
        font-size: 1rem;
    }

    .new-island .modal-content {
        padding: 25px;
    }

    .new-island .modal-date {
        font-size: 1.5rem;
    }

    .new-island .event-time {
        font-size: 1.1rem;
    }
}

@media (max-width: 400px) {
    .new-island th {
        font-size: 0.9rem;
        padding: 0.8rem 0.3rem;
    }

    .new-island td {
        height: 90px;
    }

    .new-island td .date-number {
        font-size: 1.3rem;
    }

    .new-island #theme-switcher {
        min-width: 180px;
        font-size: 0.95rem;
    }

    .new-island .controls {
        flex-direction: column;
        gap: 0.5rem;
    }

    .new-island .button,
    .new-island .transparent-button {
        width: 100%;
        margin: 0.4rem 0;
    }
}

/* High contrast mode support - EXTREME CONTRAST */
@media (prefers-contrast: high) {
    .new-island {
        --island-turquoise1: #00FFFF;
        --island-sand1: #FFFF00;
        --island-text: #FFFFFF;
        --island-coral1: #FF00FF;
        --island-palm1: #00FF00;
        --island-deep1: #0000FF;
    }

    .new-island td.current-day {
        border: 6px solid var(--island-sand1) !important;
        background: linear-gradient(135deg, rgba(0, 255, 255, 0.6) 0%, rgba(255, 255, 0, 0.6) 100%) !important;
        animation: island-pulse 1s infinite !important;
    }

    .new-island th {
        background: var(--island-turquoise1) !important;
        color: #000000 !important;
    }

    .new-island #calendar-title,
    .new-island #current-date,
    .new-island .event-title,
    .new-island .event-description,
    .new-island .modal-date {
        text-shadow:
            0 5px 0 #000000,
            0 10px 0 #000000,
            0 15px 0 #000000 !important;
        -webkit-text-stroke: 4px #000000;
        paint-order: stroke fill;
    }

    .new-island td .date-number {
        font-weight: 900 !important;
        -webkit-text-stroke: 3px #000000;
    }

    .new-island .button,
    .new-island .transparent-button,
    .new-island #theme-switcher {
        border: 6px solid var(--island-turquoise1) !important;
        -webkit-text-stroke: 3px #000000;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {

    .new-island *,
    .new-island *::before,
    .new-island *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .new-island .hand {
        transition: none;
    }

    .new-island .clock-face::before {
        animation: none;
    }
}

/* Light mode support - STILL MAXIMUM VISIBILITY */
@media (prefers-color-scheme: light) {
    .new-island {
        --island-bg: #FFFFFF;
        --island-text: #000000;
        --island-primary: #F0F8FF;
        --island-secondary: #E0F0FF;
        --island-date-number: #000000;
        --island-shadow: rgba(0, 0, 0, 0.6);
        --island-turquoise1: #008080;
        --island-sand1: #D4A017;
        --island-coral1: #D84797;
        --island-palm1: #006400;
        --island-sunset1: #CC5500;
    }

    .new-island .container,
    .new-island td {
        box-shadow:
            0 10px 50px rgba(0, 0, 0, 0.5),
            inset 0 0 0 5px rgba(0, 0, 0, 0.3);
    }

    .new-island .modal-content {
        box-shadow:
            0 25px 80px rgba(0, 0, 0, 0.6),
            inset 0 0 0 5px rgba(0, 0, 0, 0.3);
    }

    .new-island .button,
    .new-island .transparent-button {
        box-shadow:
            0 8px 45px rgba(0, 0, 0, 0.5),
            inset 0 0 0 5px rgba(0, 0, 0, 0.3);
    }

    .new-island #calendar-title,
    .new-island #current-date,
    .new-island .event-title,
    .new-island .event-description,
    .new-island .modal-date {
        text-shadow:
            0 0 25px rgba(255, 255, 255, 1),
            0 5px 10px rgba(0, 0, 0, 0.4),
            0 8px 16px rgba(0, 0, 0, 0.3);
        -webkit-text-stroke: 3px rgba(255, 255, 255, 0.95);
    }

    /* Invert background opacity for light mode */
    .new-island #today-weather,
    .new-island td .date-number,
    .new-island .event-time,
    .new-island .event-description {
        background: rgba(255, 255, 255, 0.98) !important;
        color: #000000 !important;
        border-color: #000000 !important;
    }
}