:root {
    --primary-green: #67a672;
    /* Color matching the reference image */
    --accent-red: #c9403a;
    --text-dark: #000000;
    --text-light: #ffffff;
    --text-gray: #333333;
    --card-bg: rgba(255, 255, 255, 0.15);
    --card-bg-hover: rgba(255, 255, 255, 0.25);
    --card-bg-active: rgba(255, 255, 255, 0.0);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background: linear-gradient(to right, #67a672 0%, #67a672 38%, #ffffff 38%, #ffffff 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    overflow: hidden;
}

.display-container {
    width: 1920px;
    height: 1080px;
    display: flex;
    background-color: #fff;
    transform-origin: center;
    box-shadow: none;
    flex-shrink: 0;
}

/* Floating Fullscreen Button Styles */
#fullscreen-btn {
    position: fixed;
    top: 15px;
    left: 15px;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 10px;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    opacity: 0.3;
}

#fullscreen-btn:hover {
    opacity: 1;
    transform: scale(1.1);
    background: rgba(0, 0, 0, 0.6);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.left-panel {
    width: 38%;
    background-color: var(--primary-green);
    padding: 25px 25px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    position: relative;
    overflow-y: hidden;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE 10+ */
}

.left-panel::-webkit-scrollbar {
    display: none; /* Safari and Chrome */
}

.left-panel::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(0, 0, 0, 0.05) 100%);
    pointer-events: none;
}

.schedule-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 1;
    margin: auto 0;
}

.schedule-card {
    background-color: var(--card-bg);
    padding: 12px 18px;
    border-radius: 8px;
    color: var(--text-light);
    transform: translateX(-50px);
    opacity: 0;
    animation: slideInLeft 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), background-color 0.3s ease, padding-left 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.schedule-card:hover {
    background-color: var(--card-bg-hover);
    transform: scale(1.02) translateX(10px) !important;
}

/* Style for active card */
.schedule-card.active-card {
    background-color: var(--card-bg);
    padding: 16px 20px !important;
    box-shadow: none;
    border-left: 4px solid rgba(255, 255, 255, 0.5);
    color: var(--text-light);
    opacity: 1 !important;
    transform: translateX(0) !important;
    animation: activeCardFade 3s infinite ease-in-out;
}

.schedule-card.active-card .room-name,
.schedule-card.active-card .event-title {
    color: #000000 !important;
    opacity: 1.0 !important;
}

.schedule-card.active-card:hover {
    transform: translateX(0) !important;
    background-color: var(--card-bg);
}

@keyframes activeCardFade {
    0%, 100% {
        background-color: rgba(255, 255, 255, 0.05);
        border-left-color: rgba(255, 255, 255, 0.15);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0);
    }
    50% {
        background-color: rgba(255, 255, 255, 0.4);
        border-left-color: rgba(255, 255, 255, 1.0);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    }
}

.schedule-card .room-name {
    font-size: 0.85rem;
    font-weight: 500;
    opacity: 0.8;
    margin-bottom: 4px;
    letter-spacing: 0.5px;
}

.schedule-card .event-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 6px;
    letter-spacing: -0.5px;
    white-space: pre-wrap;
    line-height: 1.2;
}

.schedule-card .event-time {
    font-size: 0.85rem;
    font-weight: 600;
    opacity: 0.9;
}

.right-panel {
    width: 62%;
    background-color: #FFFFFF;
    position: relative;
    padding: 120px 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.logo {
    position: absolute;
    top: 80px;
    right: 80px;
    margin-top: 20px;
    opacity: 0.8;
}

/* Logo Top Right */
.top-right-logo {
    position: absolute;
    top: 40px;
    right: 50px;
    height: 120px;
    width: auto;
    object-fit: contain;
    z-index: 10;
}

/* Interactive Continue Arrow */
.continue-arrow {
    position: absolute;
    bottom: 80px;
    right: 80px;
    width: 140px;
    height: 70px;
    cursor: pointer;
    /* make it clear it's clickable */
    transition: transform 0.3s ease;
}

.continue-arrow:hover {
    transform: translateX(10px);
}

.dot {
    transform-origin: center;
    fill: var(--primary-green);
    animation: sweepPulse 1.5s infinite ease-in-out;
}

.chev-dot-1 {
    animation-delay: 0s;
}

.chev-dot-2 {
    animation-delay: 0.2s;
}

.chev-dot-3 {
    animation-delay: 0.4s;
}

@keyframes sweepPulse {

    0%,
    100% {
        opacity: 0.2;
        transform: scale(0.8) translateX(-2px);
    }

    50% {
        opacity: 1;
        transform: scale(1.1) translateX(2px);
    }
}

.current-event {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 0.6s forwards;
    display: flex;
    flex-direction: column;
}

#main-time {
    color: var(--primary-green);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0px;
    line-height: 1.2;
    letter-spacing: 0.5px;
}

#main-title {
    color: var(--text-dark);
    font-size: 4.5rem;
    font-weight: 700;
    line-height: 1.0;
    margin-bottom: 5px;
    letter-spacing: -2px;
    white-space: pre-wrap;
}

.divider {
    width: 60px;
    height: 3px;
    background-color: var(--accent-red);
    margin-bottom: 5px;
    border-radius: 2px;
}

#main-desc {
    color: var(--text-gray);
    font-size: 1.5rem;
    line-height: 1.4;
    font-weight: 400;
    letter-spacing: -0.2px;
    white-space: pre-wrap;
}

/* Live Clock Styles */
.live-clock {
    position: absolute;
    bottom: 80px;
    left: 100px;
    /* Aligns perfectly with the 100px padding of the panel */
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    color: var(--text-dark);
    /* background is white, so text must be dark */
    z-index: 100;
}

.live-clock #live-date {
    font-size: 1.2rem;
    font-weight: 500;
    opacity: 0.9;
    margin-top: 2px;
    letter-spacing: 0.5px;
}

.live-clock #live-time {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -2px;
    line-height: 1;
}

.live-clock #live-seconds {
    font-size: 2.5rem;
    font-weight: 600;
    opacity: 0.9;
}

/* Keyframes */
@keyframes slideInLeft {
    from {
        transform: translateX(-60px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeUp {
    from {
        transform: translateY(40px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Layout overrides for dynamic positioning and styling */
#main-time, #main-date, #main-title, #main-desc {
    display: block;
    width: 100%;
    transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.schedule-card .event-desc {
    margin-top: 8px;
    font-size: 0.90rem;
    opacity: 0.85;
    line-height: 1.3;
}

/* Mobile Responsiveness */
@media (max-width: 1024px) {
    body {
        height: 100%;
        overflow-y: auto;
        align-items: flex-start;
        background: #fff;
    }
    
    .display-container {
        width: 100%;
        height: auto;
        min-height: 100vh;
        flex-direction: column-reverse;
        transform: none !important;
    }
    
    .left-panel {
        width: 100%;
        padding: 30px 20px;
        background-color: var(--primary-green);
        min-height: 50vh;
        height: auto;
        overflow-y: visible !important;
        display: block;
    }
    
    .schedule-list {
        margin: 0 !important;
    }
    
    .right-panel {
        width: 100%;
        padding: 40px 20px;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        min-height: 50vh;
        justify-content: flex-start;
    }
    
    .top-right-logo {
        position: relative;
        top: 0;
        right: 0;
        margin-bottom: 40px;
        height: 80px;
        align-self: center;
    }
    
    .current-event {
        align-items: center;
        width: 100%;
        margin-bottom: 40px;
    }
    
    #main-time, #main-date, #main-title, #main-desc {
        text-align: center !important;
    }
    
    .divider {
        margin-left: auto !important;
        margin-right: auto !important;
    }
    
    .live-clock {
        position: relative;
        bottom: 0;
        left: 0;
        margin-top: auto;
        margin-bottom: 30px;
        align-items: center;
    }
    
    .continue-arrow {
        position: relative;
        bottom: 0;
        right: 0;
        margin-top: 20px;
        align-self: center;
    }
    
    #main-title {
        font-size: 3rem !important;
        letter-spacing: -1px;
    }
    
    .schedule-card {
        transform: none !important;
        animation: none !important;
        opacity: 1 !important;
        margin-bottom: 10px;
    }
    
    .schedule-card.active-card {
        transform: none !important;
        animation: activeCardFadeMobile 3s infinite ease-in-out !important;
    }
    
    @keyframes activeCardFadeMobile {
        0%, 100% {
            background-color: rgba(255, 255, 255, 0.05);
            border-left-color: rgba(255, 255, 255, 0.15);
        }
        50% {
            background-color: rgba(255, 255, 255, 0.4);
            border-left-color: rgba(255, 255, 255, 1.0);
        }
    }
}