html, body {
    height: 100vh;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

body {
    font-family: "NYMA Regular", Helvetica, Arial, Lucida, sans-serif;
    display: flex;
    flex-direction: column;
}

/* Main container takes remaining space */
.main-container {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    padding: 1rem 0;
}

.main-container > .container {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.first-row {
    flex: 1;
    min-height: 0;
    margin-bottom: 1rem;
}

.first-row .col-md-9,
.first-row .col-md-3 {
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.first-row .card {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.first-row .card-body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
}

.second-row {
    flex: 0 0 auto;
}

header {
    flex: 0 0 auto;
}

footer {
    flex: 0 0 auto;
}

/* Calendar styles */
#calendar {
    max-width: 100%;
}

/* Reduce calendar row height */
.fc-timegrid-slot {
    height: 0.5em !important;
}

/* Remove links from calendar dates */
.fc-daygrid-day-number,
.fc-col-header-cell-cushion,
.fc-timegrid-slot-label-cushion {
    text-decoration: none !important;
    color: inherit !important;
    pointer-events: none;
}

.fc a {
    text-decoration: none;
    color: inherit;
}

/* Header logo positioning */
header .logo {
    height: 50px;
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
}

/* Collapsible panel headers */
.collapsible-header {
    cursor: pointer;
}

/* Ticker styles */
.ticker-wrap {
    width: 100%;
    overflow: hidden;
    background-color: #f8f9fa;
    padding: 15px 0;
}

.ticker {
    display: inline-flex;
    animation: ticker 60s linear infinite;
    white-space: nowrap;
    will-change: transform;
}

.ticker-item {
    display: inline-block;
    padding: 0 3rem;
    font-size: 1.1rem;
    color: #333;
}

@keyframes ticker {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

.ticker-wrap:hover .ticker {
    animation-play-state: paused;
}
