/* ==========================================================================
   Out of the Box - Creative Thinking Theme
   Version: 2.0
   Updated: 2024-06-10
   Changes:
   - Bold unconventional color scheme
   - Playful geometric elements
   - Innovative typography
   - Maintained all structure and functionality
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Rubik+Mono+One&family=Figtree:wght@300;400;500;600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Flow+Circular&display=swap');

:root {
    /* Unconventional Color Palette */
    --box-bg: #FFF5F0;
    --box-text: #2A2A2A;
    /* High contrast text */
    --box-primary: #FFFFFF;
    /* Pure white container */
    --box-secondary: #FFEEE6;
    /* Soft hover */
    --box-date-number: #FF5E5B;
    /* Vibrant coral for dates */

    /* Geometric Texture Colors */
    --box-texture1: #FFFBF9;
    --box-texture2: #FFF7F3;
    --box-texture3: #FFF3ED;
    --box-texture4: #FFEFE7;
    --box-texture5: #FFEBE1;

    /* Creative Accent Colors */
    --box-accent1: #FF5E5B;
    /* Vibrant coral */
    --box-accent2: #00C1B5;
    /* Teal */
    --box-accent3: #FFD166;
    /* Golden yellow */
    --box-accent4: rgba(255, 94, 91, 0.6);
    /* Coral with transparency */
    --box-accent5: rgba(0, 193, 181, 0.4);
    /* Teal with transparency */

    /* Theme Variables */
    --box-shadow: rgba(255, 94, 91, 0.2);
    --box-radius: 8px;
    --box-transition: 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    --box-hover: #FF3B38;
    /* Darker coral */
    --box-glow: 0 0 20px rgba(255, 94, 91, 0.3);
    --box-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=".25" fill="%23FF5E5B"/><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=".5" fill="%23FF5E5B"/><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=".75" fill="%23FF5E5B"/></svg>');
}

/* ==================== ANIMATIONS ==================== */
@keyframes box-bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes geometric-spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes creative-pulse {

    0%,
    100% {
        box-shadow: 0 0 5px var(--box-shadow);
    }

    50% {
        box-shadow: var(--box-glow);
    }
}

@keyframes color-shift {
    0% {
        filter: hue-rotate(0deg);
    }

    100% {
        filter: hue-rotate(360deg);
    }
}

/* ==================== BASE STYLES ==================== */
.out-of-the-box {
    font-family: 'Figtree', sans-serif;
    color: var(--box-text) !important;
    line-height: 1.6;
    font-size: 1rem;
    background-color: var(--box-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"><rect x="20" y="30" width="5" height="5" fill="%23FF5E5B" opacity="0.1" transform="rotate(45)"/><rect x="50" y="20" width="5" height="5" fill="%2300C1B5" opacity="0.1" transform="rotate(45)"/><rect x="80" y="30" width="5" height="5" fill="%23FFD166" opacity="0.1" transform="rotate(45)"/></svg>');
}

.out-of-the-box .container {
    background-color: var(--box-primary);
    padding: 2rem;
    border: 2px solid var(--box-accent1);
    box-shadow: var(--box-glow);
    position: relative;
    overflow: hidden;
    max-width: 1600px;
    margin: 2rem auto;
    border-radius: var(--box-radius);
    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="10" cy="10" r="1" fill="%23FF5E5B" opacity="0.05"/><circle cx="30" cy="15" r="1" fill="%2300C1B5" opacity="0.05"/><circle cx="90" cy="10" r="1" fill="%23FFD166" opacity="0.05"/></svg>');
}

.out-of-the-box .container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg,
            var(--box-accent1) 0%,
            var(--box-accent2) 50%,
            var(--box-accent3) 100%);
}

.out-of-the-box .container::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 10px;
    background-image: var(--box-pattern);
    background-size: 1200px 100%;
    opacity: 0.2;
}

/* ==================== HEADER & TITLE ==================== */
.out-of-the-box #calendar-title {
    font-family: 'Rubik Mono One', sans-serif;
    color: var(--box-text) !important;
    text-align: center;
    font-size: 3rem;
    margin-bottom: 1.5rem;
    letter-spacing: -0.05em;
    position: relative;
    font-weight: 400;
    text-shadow: none;
    animation: box-bounce 2s ease-in-out infinite;
}

.out-of-the-box #calendar-title::after {
    content: "💡";
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.8rem;
    animation: geometric-spin 5s linear infinite;
}

/* ==================== DATE & IDEA DISPLAY ==================== */
.out-of-the-box #date-weather-container {
    text-align: center;
    margin: 2rem 0;
    padding: 1.5rem;
    background-color: var(--box-primary);
    border: 2px dashed var(--box-accent1);
    border-radius: var(--box-radius);
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.out-of-the-box #date-weather-container::before {
    content: "IDEAS TODAY";
    position: absolute;
    top: -12px;
    right: 20px;
    background-color: var(--box-primary);
    padding: 0 10px;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    color: var(--box-text) !important;
    font-weight: 700;
    font-family: 'Rubik Mono One', sans-serif;
    border: 2px dashed var(--box-accent1);
    border-radius: 15px;
}

.out-of-the-box #date-weather-container::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--box-accent1), transparent);
}

.out-of-the-box #current-date {
    font-family: 'Flow Circular', sans-serif;
    color: var(--box-text) !important;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.out-of-the-box #today-weather {
    font-family: 'Figtree', sans-serif;
    color: var(--box-text) !important;
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

/* ==================== ANALOG CLOCK ==================== */
.out-of-the-box #analog-watch {
    display: flex;
    justify-content: center;
    margin: 2rem 0;
}

.out-of-the-box .clock-face {
    width: 200px;
    height: 200px;
    border: 8px solid var(--box-accent1);
    border-radius: 50%;
    position: relative;
    background-color: var(--box-primary);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    background-image: radial-gradient(circle at center, transparent 65%, var(--box-accent4) 100%);
}

.out-of-the-box .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);
}

.out-of-the-box .hour-hand {
    width: 40%;
    left: 10%;
    height: 6px;
    background: var(--box-accent1);
    margin-top: -3px;
    border-radius: 3px;
}

.out-of-the-box .minute-hand {
    width: 48%;
    left: 2%;
    height: 4px;
    background: var(--box-accent2);
    margin-top: -2px;
    border-radius: 2px;
}

.out-of-the-box .second-hand {
    width: 48%;
    left: 2%;
    height: 2px;
    background: var(--box-accent3);
    margin-top: -1px;
}

/* Clock center dot */
.out-of-the-box .clock-face::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 12px;
    background-color: var(--box-accent1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    box-shadow: 0 0 10px var(--box-accent1);
}

/* ==================== CALENDAR TABLE ==================== */
.out-of-the-box table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 10px;
    margin: 2rem auto;
    background-color: transparent;
    table-layout: fixed;
}

/* DAY OF WEEK HEADERS */
.out-of-the-box th {
    background: linear-gradient(135deg, var(--box-accent1), var(--box-accent2));
    color: white !important;
    font-family: 'Rubik Mono One', sans-serif;
    font-weight: 400;
    padding: 1rem 0.5rem;
    border-radius: var(--box-radius);
    position: relative;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
    font-size: 1rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.out-of-the-box th span.full-day-name {
    display: inline;
}

.out-of-the-box th abbr {
    display: none;
    text-decoration: none;
    border-bottom: none;
}

/* DATE NUMBER STYLES */
.out-of-the-box td {
    background-color: var(--box-primary);
    color: var(--box-text) !important;
    padding: 1.2rem;
    border: 2px solid var(--box-accent4);
    height: 100px;
    vertical-align: top;
    transition: all var(--box-transition);
    position: relative;
    border-radius: var(--box-radius);
    box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.05);
}

.out-of-the-box td .date-number {
    color: var(--box-date-number) !important;
    font-weight: 700;
    font-size: 1.4rem;
    position: absolute;
    top: 10px;
    left: 10px;
    font-family: 'Flow Circular', sans-serif;
}

.out-of-the-box td:hover {
    background-color: var(--box-secondary);
    box-shadow: 0 8px 20px rgba(255, 94, 91, 0.2);
    transform: scale(1.02);
}

/* Current date highlight */
.out-of-the-box td.current-day {
    background-color: rgba(255, 94, 91, 0.1);
    border: 3px solid var(--box-accent1);
    animation: creative-pulse 3s infinite;
}

.out-of-the-box td.current-day .date-number {
    color: var(--box-date-number) !important;
    font-weight: 800;
}

.out-of-the-box td.current-day::before {
    content: "✨";
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 1;
    font-size: 1.4rem;
    animation: color-shift 5s linear infinite;
}

/* ==================== EVENT MARKERS ==================== */
.out-of-the-box .event-marker {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--box-accent2);
    margin: 0 2px;
    transition: all var(--box-transition);
}

.out-of-the-box .event-marker:hover {
    transform: scale(2);
    background-color: var(--box-accent1);
    box-shadow: 0 0 12px rgba(0, 193, 181, 0.6);
}

/* ==================== MODAL STYLES ==================== */
.out-of-the-box .modal-content {
    position: relative;
    background-color: var(--box-primary);
    border: 2px dashed var(--box-accent1);
    padding: 30px;
    color: var(--box-text) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-radius: var(--box-radius);
    animation: box-bounce 0.6s ease-out;
}

.out-of-the-box .modal-content::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg,
            var(--box-accent1) 0%,
            var(--box-accent2) 50%,
            var(--box-accent3) 100%);
}

.out-of-the-box .modal-content h2 {
    color: var(--box-text) !important;
    font-family: 'Rubik Mono One', sans-serif;
    font-size: 2.5em;
    margin-bottom: 20px;
    font-weight: 400;
    letter-spacing: -0.03em;
}

/* Modal date display */
.out-of-the-box .modal-date {
    font-family: 'Flow Circular', sans-serif;
    color: var(--box-text) !important;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1.8rem;
    padding-bottom: 0.8rem;
    border-bottom: 2px dashed var(--box-accent1);
}

/* Event list */
.out-of-the-box .event-list {
    margin: 2rem 0;
    padding: 0;
    list-style: none;
}

.out-of-the-box .event-item {
    background-color: var(--box-secondary);
    padding: 1.3rem;
    margin-bottom: 1.3rem;
    border-left: 4px solid var(--box-accent1);
    border-radius: var(--box-radius);
    transition: all var(--box-transition);
}

.out-of-the-box .event-item:hover {
    background-color: var(--box-texture3);
    transform: translateX(10px) rotate(2deg);
}

.out-of-the-box .event-time {
    font-family: 'Flow Circular', sans-serif;
    color: var(--box-accent1) !important;
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    display: block;
}

.out-of-the-box .event-title {
    font-weight: 700;
    font-size: 1.3rem;
    margin-bottom: 0.7rem;
    color: var(--box-text) !important;
}

.out-of-the-box .event-description {
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--box-text) !important;
    opacity: 0.9;
}

.out-of-the-box .modal-content button {
    background: linear-gradient(135deg, var(--box-accent1), var(--box-hover));
    color: white !important;
    border: none;
    padding: 14px 28px;
    font-size: 1.1em;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--box-transition);
    letter-spacing: 0.05em;
    font-family: 'Figtree', sans-serif;
    border-radius: var(--box-radius);
    text-transform: uppercase;
}

.out-of-the-box .modal-content button:hover {
    transform: scale(1.05) rotate(2deg);
    box-shadow: 0 8px 20px rgba(255, 94, 91, 0.4);
}

/* Close Button */
.out-of-the-box .modal .close-button {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--box-primary);
    color: var(--box-text) !important;
    border: 2px dashed var(--box-text);
    width: 35px;
    height: 35px;
    cursor: pointer;
    transition: all var(--box-transition);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: bold;
    font-family: 'Rubik Mono One', sans-serif;
}

.out-of-the-box .modal .close-button:hover {
    background-color: var(--box-accent1);
    color: white !important;
    border-color: var(--box-accent1);
    transform: rotate(90deg);
}

/* ==================== BUTTONS & CONTROLS ==================== */
.out-of-the-box .button,
.out-of-the-box .transparent-button {
    border: 2px dashed var(--box-accent1);
    color: var(--box-text) !important;
    background-color: transparent;
    padding: 1rem 2rem;
    font-family: 'Figtree', sans-serif;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--box-transition);
    position: relative;
    overflow: hidden;
    margin: 0.5rem;
    border-radius: var(--box-radius);
    letter-spacing: 0.03em;
    font-size: 1.05rem;
}

.out-of-the-box .button:hover,
.out-of-the-box .transparent-button:hover {
    background-color: var(--box-accent1);
    color: white !important;
    box-shadow: 0 6px 18px rgba(255, 94, 91, 0.3);
    transform: scale(1.05);
    border-style: solid;
}

.out-of-the-box .controls {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin: 1.8rem 0;
}

/* ==================== THEME SWITCHER ==================== */
.out-of-the-box #theme-switcher-container {
    position: relative;
    margin: 0 1rem;
    min-width: 240px;
    z-index: 1000;
}

.out-of-the-box #theme-switcher {
    background-color: var(--box-primary);
    color: var(--box-text) !important;
    border: 2px dashed var(--box-accent1);
    padding: 1rem 2.6rem 1rem 1.3rem;
    font-family: 'Figtree', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    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='%232A2A2A'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1.2rem center;
    background-size: 1rem;
    cursor: pointer;
    transition: all var(--box-transition);
    border-radius: var(--box-radius);
}

.out-of-the-box #theme-switcher option {
    background-color: var(--box-primary) !important;
    color: var(--box-text) !important;
    font-size: 1.05rem;
    font-weight: 700;
    padding: 12px 16px !important;
}

.out-of-the-box #theme-switcher:focus {
    outline: none;
    border-color: var(--box-accent1);
    box-shadow: 0 0 0 3px rgba(255, 94, 91, 0.3);
    border-style: solid;
}

/* ==================== BACK TO TOP BUTTON ==================== */
.out-of-the-box #backToTopBtn {
    position: fixed;
    right: 30px;
    bottom: 30px;
    z-index: 9999;
    border: none;
    padding: 1.2rem 2.2rem;
    font-size: 1.05rem;
    font-family: 'Figtree', sans-serif;
    font-weight: 700;
    color: white !important;
    background: linear-gradient(135deg, var(--box-accent1), var(--box-hover));
    cursor: pointer;
    transition: all var(--box-transition);
    opacity: 0.95;
    display: none;
    border-radius: var(--box-radius);
    box-shadow: 0 5px 15px rgba(255, 94, 91, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.out-of-the-box #backToTopBtn:hover {
    opacity: 1;
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 20px rgba(255, 94, 91, 0.6);
}

/* ==================== FOOTER ==================== */
.out-of-the-box footer {
    text-align: center;
    margin-top: 2.5rem;
    padding-top: 1.8rem;
    border-top: 2px dashed var(--box-accent1);
    color: var(--box-text) !important;
    font-size: 1rem;
    font-weight: 700;
    font-family: 'Rubik Mono One', sans-serif;
}

/* ==================== MEDIA QUERIES ==================== */
@media (max-width: 1200px) {
    .out-of-the-box #calendar-title {
        font-size: 2.7rem;
    }
}

@media (max-width: 992px) {
    .out-of-the-box .container {
        padding: 1.8rem;
    }

    .out-of-the-box #calendar-title {
        font-size: 2.4rem;
    }

    .out-of-the-box #current-date {
        font-size: 1.8rem;
    }

    .out-of-the-box #today-weather {
        font-size: 1.2rem;
    }

    .out-of-the-box .modal-date {
        font-size: 1.6rem;
    }

    .out-of-the-box .event-title {
        font-size: 1.2rem;
    }

    .out-of-the-box .clock-face {
        width: 180px;
        height: 180px;
    }
}

@media (max-width: 768px) {
    .out-of-the-box {
        font-size: 0.95rem;
        line-height: 1.5;
    }

    .out-of-the-box .container {
        padding: 1.5rem;
    }

    .out-of-the-box #calendar-title {
        font-size: 2.1rem;
    }

    .out-of-the-box .clock-face {
        width: 160px;
        height: 160px;
        border-width: 6px;
    }

    .out-of-the-box th {
        font-size: 0.95rem;
        padding: 0.9rem 0.4rem;
    }

    .out-of-the-box th span.full-day-name {
        display: none;
    }

    .out-of-the-box th abbr {
        display: inline;
    }

    .out-of-the-box td {
        padding: 1rem;
        height: 90px;
        font-size: 0.95rem;
    }

    .out-of-the-box td .date-number {
        font-size: 1.2rem;
        top: 8px;
        left: 8px;
    }

    .out-of-the-box td.current-day::before {
        font-size: 1.2rem;
        top: 6px;
        right: 6px;
    }

    .out-of-the-box #backToTopBtn {
        right: 20px;
        bottom: 20px;
        padding: 1.1rem 2rem;
        font-size: 1rem;
    }

    .out-of-the-box #theme-switcher {
        padding: 0.9rem 2.2rem 0.9rem 1.1rem;
        font-size: 1rem;
        min-width: 210px;
    }

    .out-of-the-box .modal-content {
        padding: 25px;
    }

    .out-of-the-box .event-item {
        padding: 1.1rem;
    }
}

@media (max-width: 576px) {
    .out-of-the-box .container {
        padding: 1.2rem;
    }

    .out-of-the-box #calendar-title {
        font-size: 1.9rem;
    }

    .out-of-the-box #current-date {
        font-size: 1.6rem;
    }

    .out-of-the-box #today-weather {
        font-size: 1.1rem;
    }

    .out-of-the-box .clock-face {
        width: 140px;
        height: 140px;
        border-width: 5px;
    }

    .out-of-the-box th {
        font-size: 0.9rem;
        padding: 0.8rem 0.3rem;
    }

    .out-of-the-box td {
        padding: 0.9rem;
        height: 85px;
        font-size: 0.9rem;
    }

    .out-of-the-box td .date-number {
        font-size: 1.1rem;
        top: 7px;
        left: 7px;
    }

    .out-of-the-box #theme-switcher {
        min-width: 190px;
        font-size: 0.95rem;
    }

    .out-of-the-box .modal-content {
        padding: 20px;
    }

    .out-of-the-box .modal-date {
        font-size: 1.5rem;
    }

    .out-of-the-box .event-time {
        font-size: 1.05rem;
    }
}

@media (max-width: 400px) {
    .out-of-the-box th {
        font-size: 0.85rem;
        padding: 0.7rem 0.2rem;
    }

    .out-of-the-box td {
        height: 80px;
    }

    .out-of-the-box td .date-number {
        font-size: 1rem;
    }

    .out-of-the-box #theme-switcher {
        min-width: 170px;
        font-size: 0.9rem;
    }
}