/* ==========================================================================
   A New Opportunity - Fresh Start Theme
   Version: 2.0
   Updated: 2024-06-10
   Changes:
   - Uplifting color palette
   - Modern minimalist typography
   - Growth-oriented design elements
   - Maintained all structure and functionality
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;700&family=Archivo:wght@300;400;500;600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200');

:root {
    /* Fresh Color Palette */
    --opp-bg: #F8FAFF;
    --opp-text: #1A2B49;
    /* Deep navy text */
    --opp-primary: #FFFFFF;
    /* Clean white container */
    --opp-secondary: #EDF2FF;
    /* Soft hover */
    --opp-date-number: #4E7BFF;
    /* Vibrant blue for dates */

    /* Gradient Texture Colors */
    --opp-texture1: #FBFCFE;
    --opp-texture2: #F6F8FF;
    --opp-texture3: #F1F5FF;
    --opp-texture4: #ECF1FF;
    --opp-texture5: #E7EDFF;

    /* Opportunity Accent Colors */
    --opp-accent1: #4E7BFF;
    /* Vibrant blue */
    --opp-accent2: #FF6B4A;
    /* Energetic orange */
    --opp-accent3: #6BDD8B;
    /* Fresh green */
    --opp-accent4: rgba(78, 123, 255, 0.6);
    /* Blue with transparency */
    --opp-accent5: rgba(255, 107, 74, 0.4);
    /* Orange with transparency */

    /* Theme Variables */
    --opp-shadow: rgba(78, 123, 255, 0.15);
    --opp-radius: 10px;
    --opp-transition: 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    --opp-hover: #3A6BFF;
    /* Darker blue */
    --opp-glow: 0 0 20px rgba(78, 123, 255, 0.2);
    --opp-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="%234E7BFF"/><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=".25" fill="%234E7BFF"/><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=".35" fill="%234E7BFF"/></svg>');
}

/* ==================== ANIMATIONS ==================== */
@keyframes opportunity-rise {
    0% {
        transform: translateY(5px);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes growth-pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

@keyframes horizon-glow {

    0%,
    100% {
        box-shadow: 0 0 5px var(--opp-shadow);
    }

    50% {
        box-shadow: var(--opp-glow);
    }
}

@keyframes sparkle-twinkle {

    0%,
    100% {
        opacity: 0.8;
    }

    50% {
        opacity: 1;
    }
}

/* ==================== BASE STYLES ==================== */
.a-new-opportunity {
    font-family: 'Archivo', sans-serif;
    color: var(--opp-text) !important;
    line-height: 1.6;
    font-size: 1rem;
    background-color: var(--opp-bg);
    min-height: 100vh;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><circle cx="20" cy="30" r="1.5" fill="%234E7BFF" opacity="0.1"/><circle cx="50" cy="20" r="2" fill="%234E7BFF" opacity="0.1"/><circle cx="80" cy="30" r="1.5" fill="%234E7BFF" opacity="0.1"/></svg>');
}

.a-new-opportunity .container {
    background-color: var(--opp-primary);
    padding: 2.5rem;
    border: 1px solid var(--opp-accent4);
    box-shadow: var(--opp-glow);
    position: relative;
    overflow: hidden;
    max-width: 1600px;
    margin: 2.5rem auto;
    border-radius: var(--opp-radius);
    animation: opportunity-rise 0.6s ease-out;
}

.a-new-opportunity .container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg,
            var(--opp-accent1) 0%,
            var(--opp-accent2) 50%,
            var(--opp-accent3) 100%);
}

.a-new-opportunity .container::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 8px;
    background-image: var(--opp-pattern);
    background-size: 1200px 100%;
    opacity: 0.15;
}

/* ==================== HEADER & TITLE ==================== */
.a-new-opportunity #calendar-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--opp-text) !important;
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    position: relative;
    font-weight: 700;
}

.a-new-opportunity #calendar-title::after {
    content: "🌅";
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.8rem;
    animation: sparkle-twinkle 3s ease-in-out infinite;
}

/* ==================== DATE & FOCUS DISPLAY ==================== */
.a-new-opportunity #date-weather-container {
    text-align: center;
    margin: 2rem 0;
    padding: 1.5rem;
    background-color: var(--opp-primary);
    border: 1px solid var(--opp-accent4);
    border-radius: var(--opp-radius);
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.a-new-opportunity #date-weather-container::before {
    content: "FOCUS AREA";
    position: absolute;
    top: -12px;
    right: 20px;
    background-color: var(--opp-primary);
    padding: 0 12px;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    color: var(--opp-text) !important;
    font-weight: 700;
    font-family: 'Plus Jakarta Sans', sans-serif;
    border: 1px solid var(--opp-accent4);
    border-radius: 15px;
    text-transform: uppercase;
}

.a-new-opportunity #date-weather-container::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--opp-accent1), transparent);
}

.a-new-opportunity #current-date {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--opp-text) !important;
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.a-new-opportunity #today-weather {
    font-family: 'Archivo', sans-serif;
    color: var(--opp-text) !important;
    font-size: 1.3rem;
    font-weight: 500;
    letter-spacing: 0.01em;
}

/* ==================== ANALOG CLOCK ==================== */
.a-new-opportunity #analog-watch {
    display: flex;
    justify-content: center;
    margin: 2rem 0;
}

.a-new-opportunity .clock-face {
    width: 200px;
    height: 200px;
    border: 8px solid var(--opp-accent1);
    border-radius: 50%;
    position: relative;
    background-color: var(--opp-primary);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    background-image: radial-gradient(circle at center, transparent 65%, var(--opp-accent4) 100%);
}

.a-new-opportunity .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);
}

.a-new-opportunity .hour-hand {
    width: 40%;
    left: 10%;
    height: 6px;
    background: var(--opp-accent1);
    margin-top: -3px;
    border-radius: 3px;
}

.a-new-opportunity .minute-hand {
    width: 48%;
    left: 2%;
    height: 4px;
    background: var(--opp-accent3);
    margin-top: -2px;
    border-radius: 2px;
}

.a-new-opportunity .second-hand {
    width: 48%;
    left: 2%;
    height: 2px;
    background: var(--opp-accent2);
    margin-top: -1px;
}

/* Clock center dot */
.a-new-opportunity .clock-face::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 12px;
    background-color: var(--opp-accent1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    box-shadow: 0 0 10px var(--opp-accent1);
}

/* ==================== CALENDAR TABLE ==================== */
.a-new-opportunity table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 10px;
    margin: 2rem auto;
    background-color: transparent;
    table-layout: fixed;
}

/* DAY OF WEEK HEADERS */
.a-new-opportunity th {
    background: linear-gradient(135deg, var(--opp-accent1), var(--opp-hover));
    color: white !important;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 600;
    padding: 1rem;
    border-radius: var(--opp-radius);
    position: relative;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
    font-size: 1rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.a-new-opportunity th span.full-day-name {
    display: inline;
}

.a-new-opportunity th abbr {
    display: none;
    text-decoration: none;
    border-bottom: none;
}

/* DATE NUMBER STYLES */
.a-new-opportunity td {
    background-color: var(--opp-primary);
    color: var(--opp-text) !important;
    padding: 1.2rem;
    border: 1px solid var(--opp-accent4);
    height: 110px;
    vertical-align: top;
    transition: all var(--opp-transition);
    position: relative;
    border-radius: var(--opp-radius);
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.03);
}

.a-new-opportunity td .date-number {
    color: var(--opp-date-number) !important;
    font-weight: 700;
    font-size: 1.4rem;
    position: absolute;
    top: 10px;
    left: 10px;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.a-new-opportunity td:hover {
    background-color: var(--opp-secondary);
    box-shadow: 0 8px 20px rgba(78, 123, 255, 0.1);
    transform: translateY(-3px);
}

/* Current date highlight */
.a-new-opportunity td.current-day {
    background-color: rgba(78, 123, 255, 0.08);
    border: 2px solid var(--opp-accent1);
    animation: horizon-glow 4s infinite;
}

.a-new-opportunity td.current-day .date-number {
    color: var(--opp-date-number) !important;
    font-weight: 800;
}

.a-new-opportunity td.current-day::before {
    content: "🚀";
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 1;
    font-size: 1.4rem;
    animation: growth-pulse 2s infinite;
}

/* ==================== EVENT MARKERS ==================== */
.a-new-opportunity .event-marker {
    display: inline-block;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background-color: var(--opp-accent2);
    margin: 0 2px;
    transition: all var(--opp-transition);
}

.a-new-opportunity .event-marker:hover {
    transform: scale(1.8);
    background-color: var(--opp-accent1);
    box-shadow: 0 0 10px rgba(255, 107, 74, 0.6);
}

/* ==================== MODAL STYLES ==================== */
.a-new-opportunity .modal-content {
    position: relative;
    background-color: var(--opp-primary);
    border: 1px solid var(--opp-accent4);
    padding: 30px;
    color: var(--opp-text) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: var(--opp-radius);
    animation: opportunity-rise 0.5s ease-out;
}

.a-new-opportunity .modal-content::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg,
            var(--opp-accent1) 0%,
            var(--opp-accent2) 50%,
            var(--opp-accent3) 100%);
}

.a-new-opportunity .modal-content h2 {
    color: var(--opp-text) !important;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 2.2em;
    margin-bottom: 20px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

/* Modal date display */
.a-new-opportunity .modal-date {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--opp-text) !important;
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 1.8rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid var(--opp-accent4);
}

/* Event list */
.a-new-opportunity .event-list {
    margin: 1.8rem 0;
    padding: 0;
    list-style: none;
}

.a-new-opportunity .event-item {
    background-color: var(--opp-secondary);
    padding: 1.2rem;
    margin-bottom: 1.2rem;
    border-left: 4px solid var(--opp-accent1);
    border-radius: var(--opp-radius);
    transition: all var(--opp-transition);
}

.a-new-opportunity .event-item:hover {
    background-color: var(--opp-texture3);
    transform: translateX(8px);
}

.a-new-opportunity .event-time {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--opp-accent1) !important;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.4rem;
    display: block;
}

.a-new-opportunity .event-title {
    font-weight: 600;
    font-size: 1.2rem;
    margin-bottom: 0.6rem;
    color: var(--opp-text) !important;
}

.a-new-opportunity .event-description {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--opp-text) !important;
    opacity: 0.9;
}

.a-new-opportunity .modal-content button {
    background: linear-gradient(135deg, var(--opp-accent1), var(--opp-hover));
    color: white !important;
    border: none;
    padding: 12px 24px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--opp-transition);
    letter-spacing: 0.05em;
    font-family: 'Archivo', sans-serif;
    border-radius: var(--opp-radius);
    text-transform: uppercase;
}

.a-new-opportunity .modal-content button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(78, 123, 255, 0.3);
}

/* Close Button */
.a-new-opportunity .modal .close-button {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--opp-primary);
    color: var(--opp-text) !important;
    border: 1px solid var(--opp-text);
    width: 32px;
    height: 32px;
    cursor: pointer;
    transition: all var(--opp-transition);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: bold;
}

.a-new-opportunity .modal .close-button:hover {
    background-color: var(--opp-accent1);
    color: white !important;
    border-color: var(--opp-accent1);
}

/* ==================== BUTTONS & CONTROLS ==================== */
.a-new-opportunity .button,
.a-new-opportunity .transparent-button {
    border: 2px solid var(--opp-accent1);
    color: var(--opp-text) !important;
    background-color: transparent;
    padding: 0.9rem 1.8rem;
    font-family: 'Archivo', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--opp-transition);
    position: relative;
    overflow: hidden;
    margin: 0.5rem;
    border-radius: var(--opp-radius);
    letter-spacing: 0.03em;
    font-size: 1rem;
}

.a-new-opportunity .button:hover,
.a-new-opportunity .transparent-button:hover {
    background-color: var(--opp-accent1);
    color: white !important;
    box-shadow: 0 5px 15px rgba(78, 123, 255, 0.2);
    transform: translateY(-2px);
}

.a-new-opportunity .controls {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin: 1.5rem 0;
}

/* ==================== THEME SWITCHER ==================== */
.a-new-opportunity #theme-switcher-container {
    position: relative;
    margin: 0 1rem;
    min-width: 220px;
    z-index: 1000;
}

.a-new-opportunity #theme-switcher {
    background-color: var(--opp-primary);
    color: var(--opp-text) !important;
    border: 2px solid var(--opp-accent1);
    padding: 0.9rem 2.4rem 0.9rem 1.2rem;
    font-family: 'Archivo', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    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='%231A2B49'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1rem;
    cursor: pointer;
    transition: all var(--opp-transition);
    border-radius: var(--opp-radius);
}

.a-new-opportunity #theme-switcher option {
    background-color: var(--opp-primary) !important;
    color: var(--opp-text) !important;
    font-size: 1rem;
    font-weight: 600;
    padding: 12px 14px !important;
}

.a-new-opportunity #theme-switcher:focus {
    outline: none;
    border-color: var(--opp-accent1);
    box-shadow: 0 0 0 3px rgba(78, 123, 255, 0.2);
}

/* ==================== BACK TO TOP BUTTON ==================== */
.a-new-opportunity #backToTopBtn {
    position: fixed;
    right: 30px;
    bottom: 30px;
    z-index: 9999;
    border: none;
    padding: 1.1rem 2rem;
    font-size: 1rem;
    font-family: 'Archivo', sans-serif;
    font-weight: 600;
    color: white !important;
    background: linear-gradient(135deg, var(--opp-accent1), var(--opp-hover));
    cursor: pointer;
    transition: all var(--opp-transition);
    opacity: 0.95;
    display: none;
    border-radius: var(--opp-radius);
    box-shadow: 0 4px 12px rgba(78, 123, 255, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.a-new-opportunity #backToTopBtn:hover {
    opacity: 1;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(78, 123, 255, 0.4);
}

/* ==================== FOOTER ==================== */
.a-new-opportunity footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--opp-accent4);
    color: var(--opp-text) !important;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

/* ==================== MEDIA QUERIES ==================== */
@media (max-width: 1200px) {
    .a-new-opportunity #calendar-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 992px) {
    .a-new-opportunity .container {
        padding: 2rem;
    }

    .a-new-opportunity #calendar-title {
        font-size: 2.2rem;
    }

    .a-new-opportunity #current-date {
        font-size: 1.8rem;
    }

    .a-new-opportunity #today-weather {
        font-size: 1.2rem;
    }

    .a-new-opportunity .modal-date {
        font-size: 1.5rem;
    }

    .a-new-opportunity .event-title {
        font-size: 1.1rem;
    }

    .a-new-opportunity .clock-face {
        width: 180px;
        height: 180px;
    }
}

@media (max-width: 768px) {
    .a-new-opportunity {
        font-size: 0.95rem;
        line-height: 1.5;
    }

    .a-new-opportunity .container {
        padding: 1.5rem;
    }

    .a-new-opportunity #calendar-title {
        font-size: 2rem;
    }

    .a-new-opportunity .clock-face {
        width: 160px;
        height: 160px;
        border-width: 6px;
    }

    .a-new-opportunity th {
        font-size: 0.95rem;
        padding: 0.8rem 0.4rem;
    }

    .a-new-opportunity th span.full-day-name {
        display: none;
    }

    .a-new-opportunity th abbr {
        display: inline;
    }

    .a-new-opportunity td {
        padding: 1rem;
        height: 100px;
        font-size: 0.95rem;
    }

    .a-new-opportunity td .date-number {
        font-size: 1.2rem;
        top: 8px;
        left: 8px;
    }

    .a-new-opportunity td.current-day::before {
        font-size: 1.2rem;
        top: 6px;
        right: 6px;
    }

    .a-new-opportunity #backToTopBtn {
        right: 20px;
        bottom: 20px;
        padding: 1rem 1.8rem;
        font-size: 0.95rem;
    }

    .a-new-opportunity #theme-switcher {
        padding: 0.8rem 2rem 0.8rem 1rem;
        font-size: 0.95rem;
        min-width: 200px;
    }

    .a-new-opportunity .modal-content {
        padding: 25px;
    }

    .a-new-opportunity .event-item {
        padding: 1.1rem;
    }
}

@media (max-width: 576px) {
    .a-new-opportunity .container {
        padding: 1.2rem;
    }

    .a-new-opportunity #calendar-title {
        font-size: 1.8rem;
    }

    .a-new-opportunity #current-date {
        font-size: 1.5rem;
    }

    .a-new-opportunity #today-weather {
        font-size: 1.1rem;
    }

    .a-new-opportunity .clock-face {
        width: 140px;
        height: 140px;
        border-width: 5px;
    }

    .a-new-opportunity th {
        font-size: 0.9rem;
        padding: 0.7rem 0.3rem;
    }

    .a-new-opportunity td {
        padding: 0.9rem;
        height: 90px;
        font-size: 0.9rem;
    }

    .a-new-opportunity td .date-number {
        font-size: 1.1rem;
        top: 7px;
        left: 7px;
    }

    .a-new-opportunity #theme-switcher {
        min-width: 180px;
        font-size: 0.9rem;
    }

    .a-new-opportunity .modal-content {
        padding: 20px;
    }

    .a-new-opportunity .modal-date {
        font-size: 1.4rem;
    }

    .a-new-opportunity .event-time {
        font-size: 1rem;
    }
}

@media (max-width: 400px) {
    .a-new-opportunity th {
        font-size: 0.85rem;
        padding: 0.6rem 0.2rem;
    }

    .a-new-opportunity td {
        height: 85px;
    }

    .a-new-opportunity td .date-number {
        font-size: 1rem;
    }

    .a-new-opportunity #theme-switcher {
        min-width: 160px;
        font-size: 0.85rem;
    }
}