/* ---------------------------------------------------- */
/* Estilo Base do Contêiner
/* ---------------------------------------------------- */
.calendar-container {
    display: flex;
    font-size: 5em !important;
}

.month-view, .events-view {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    padding: 25px;
    background-color: #ffffff;
    border-radius: 12px; /* Bordas mais arredondadas */
    /*box-shadow: 0 6px 24px rgba(0, 0, 0, 0.07);*/
    /*border: 1px solid #f0f0f0;*/
    font-size: 1.5em !important;
}

@media (max-width: 768px) {
    .calendar-container {
        display: block;
    }
    .month-view {
        margin-bottom: 30px;
    }
}

/* ---------------------------------------------------- */
/* Cabeçalho e Navegação do Calendário
/* ---------------------------------------------------- */
.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    color: #2c3e50;
}

#monthYear {
    font-weight: 700;
    font-size: 1.4rem; /* Fonte maior */
}

/*!* Botões de navegação redesenhados *!*/
.calendar-header .btn {
    background: transparent;
    border: 1px solid #dcdcdc;
    color: #333;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}
.calendar-header .btn:hover {
    background-color: #f7f7f7;
    border-color: #c0c0c0;
}

.week-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    margin-bottom: 15px;
    font-weight: 600;
    font-size: 0.9rem; /* Fonte maior */
    color: #7f8c8d;
    text-transform: uppercase; /* Estilo mais definido */
}

.week-days .day-header:first-child {
    color: #e74c3c; /* Vermelho mais suave */
}

.days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 7px;
}

div.month-view .day {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 55px; /* Altura maior */
    text-align: center;
    border-radius: 8px;
    cursor: pointer;
    position: relative;
    transition: background-color 0.2s ease, color 0.2s ease;
    font-size: 1rem; /* Fonte maior */
    font-weight: 500;
}

.day.empty {
    cursor: default;
}

.day:not(.empty):hover {
    background-color: #f4f8ff;
}

.day:nth-child(7n + 1) {
    color: #e74c3c;
}

.day.today {
    background-color: #f4f8ff;
    font-weight: 700;
    color: #3A86FF;
}

.day.active {
    background-color: #2177ff; /* Azul mais vibrante */
    color: #252525;
    font-weight: 700;
    /*box-shadow: 0 4px 10px rgba(58, 134, 255, 0.4);*/
}

.day .events-indicator {
    margin-top: 5px;
    display: flex;
    justify-content: center;
    gap: 4px;
}

.day .events-indicator .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #6eb6e6;
}

.day.active .events-indicator .dot {
    background-color: #2177ff;
}
.day.today .events-indicator .dot {
    background-color: #3A86FF;
}

/* --- Estrutura e Estilização do Card de Evento --- */

/* O container principal do card */
.event-card {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    flex-direction: column;
    /* Garante que o card ocupe a altura definida, se houver,
       e que o conteúdo se estique */
    height: 100%;
    overflow: hidden; /* Garante que os cantos arredondados sejam respeitados */
    transition: all 0.3s ease;
    border: 1px solid #eee;
}

.event-card:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

/* Corpo do card, onde o conteúdo principal reside */
.event-card-body {
    padding: 20px;
    flex-grow: 1; /* Faz esta seção crescer para empurrar o rodapé para baixo */
    display: flex;
    flex-direction: column;
}

/* Título do evento */
.event-card-title {
    font-size: 1.25rem; /* 20px */
    font-weight: 600;
    color: #333;
    margin: 0 0 10px 0;
}

/* Descrição do evento */
.event-card-description {
    font-size: 0.9rem; /* 14.4px */
    color: #666;
    margin-bottom: 20px;
    word-break: break-word; /* Mantém a sua regra original */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.event-card-description a {
    color: #007bff;
    text-decoration: none;
}

.event-card-description a:hover {
    text-decoration: underline;
}

/* Seção de metadados (Analista, Hora) */
.event-card-meta {
    font-size: 0.85rem; /* 13.6px */
    color: #555;
}

.meta-item {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

/* Ícone para os metadados (opcional, mas recomendado) */
.meta-item svg {
    width: 16px;
    height: 16px;
    margin-right: 8px;
    fill: #888;
}

.meta-item-label {
    font-weight: 600;
    margin-right: 5px;
}

/* Rodapé do card, para a ação principal */
.event-card-footer {
    padding: 15px 20px;
    background-color: #f9f9f9;
    border-top: 1px solid #eee;
    text-align: right;
}

/* Botão de Call-to-Action (CTA) */
.event-card-cta {
    background-color: #28a745; /* Verde para uma ação positiva */
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
    display: inline-block;
    transition: background-color 0.2s ease;
}

.event-card-cta:hover {
    background-color: #218838; /* Cor mais escura no hover */
    color: #ffffff; /* Garante que a cor do texto não mude */
}

#days .day:nth-child(7n + 1) {
    color: red;
    font-weight: bold;
}

#days .day.today {
    background-color: #f0f0f0;
    font-weight: bold;
}

#days .day.active {
    background-color: aliceblue;
    font-weight: bold;
}