
body {
    font-family: 'Roboto', Arial, sans-serif;
    margin: 0;
    padding: 20px;
    background-color: #000000;
    color: #ffffff;
    overflow: hidden;
    line-height: 1.5;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px; /* antes era 30px */
    padding-bottom: 10px; /* antes era 30px */
    border-bottom: 2px solid #444;
}

.header-container h1 {
    color: #ffffff;
    margin: 0 0 10px 0;
    font-size: 2.4em; /* antes era 3.2em */
    font-weight: bold;
}

.header-container .current-time-display {
    font-size: 2.4em; /* antes era 3.2em */
    color: #ffffff;
}

.calendars-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 15px; /* antes era 25px */
    justify-items: center;
    align-items: start;
    height: calc(100vh - 100px - 100px - 30px); /* 100px do rodapé + 100px do cabeçalho */
}

.room-calendar-card {
    background-color: #2b2b2b;
    border: 1px solid #444;
    border-radius: 8px;
    padding: 16px 20px; /* padding vertical menor */
    width: 100%;
    max-width: 300px;
    height: 100%;
    max-height: 380px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    box-sizing: border-box;
}

.room-header {
    height: 50px;
    flex-shrink: 0;
    overflow: hidden;
}

.room-calendar-card h2 {
    color: #f7f9fa;
    margin-top: 0;
    margin-bottom: 10px; /* antes era 15px */
    border-bottom: 1px solid #444;
    padding-bottom: 5px; /* antes era 10px */
    font-size: 2em;
}

.event-list-wrapper {
    flex-grow: 1;
    overflow: hidden;
    position: relative;
}

.event-list {
    display: flex;
    flex-direction: column;
}

.event-list.scroll {
    animation: scroll 20s linear infinite;
}

@keyframes scroll {
    0% { transform: translateY(0); }
    100% { transform: translateY(-100%); }
}

.event-item {
    padding: 12px 0 12px 10px; /* adiciona 10px de padding à esquerda */
    font-size: 1.1em;
    border-left: 5px solid transparent;
    margin-bottom: 10px;
}

.event-time {
    font-weight: bold;
    color: #f7fafb;
    display: block;
    margin-bottom: 5px;
}

.event-subject {
    font-size: 1.25em;
    color: #f0f0f0;
    margin-bottom: 3px;
}

.event-organizer {
    font-size: 0.95em;
    color: #b0b0b0;
}

.status-message {
    color: #aaaaaa;
    text-align: center;
    padding: 30px;
    font-style: italic;
    font-size: 1.4em;
}

.room-error-message {
    color: #ff6666;
    font-weight: bold;
    background-color: rgba(85, 0, 0, 0.5);
    padding: 10px;
    border-radius: 5px;
    margin-top: 10px;
}


.event-item.ongoing {
    border-left: 5px solid green;
}

.event-item.ended {
    border-left: 5px solid red;
}

.event-item.upcoming {
    border-left: 5px solid blue;
}

.footer-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100px; /* aumentado de 60px para 100px */
    border-top: 2px solid #444;
    margin-bottom: 30px;
}

.footer-content span {
    font-size: 1.8em;
    color: #ffffff;
    font-weight: bold;
}

.footer-content.custom-footer-logos {
    width: 100%;
    height: 100%;
    padding: 6.46px 250px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    overflow: hidden;
}

.footer-content.custom-footer-logos img {
    height: auto;
    max-height: 65px;
}

@media (max-width: 1200px) {
    .calendars-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .calendars-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .calendars-grid {
        grid-template-columns: 1fr;
    }
}