/**
 * Calendário Diário Oficial - Estilo Moderno
 */

#calendario-diario {
    width: 100%;
}

.cal-container {
    background: #fff;
    overflow: hidden;
    font-family: 'Segoe UI', 'Lato', sans-serif;
    display: flex;
    flex-direction: column;
    width: 100%;
}

/* Header verde do calendário */
.cal-header {
    background: linear-gradient(135deg, #1e7e34 0%, #28a745 100%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px;
}

.cal-titulo {
    text-align: center;
    color: #fff;
    flex: 1;
}

.cal-mes {
    display: block;
    font-size: 15px;
    font-weight: 600;
}

.cal-ano {
    display: block;
    font-size: 12px;
    font-weight: 400;
    opacity: 0.9;
}

.cal-nav {
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(255,255,255,0.15);
    color: #fff;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
    padding: 0;
    border-radius: 50%;
}

.cal-nav:hover {
    background: rgba(255,255,255,0.3);
}

.cal-nav.cal-next {
    display: flex;
}

/* Corpo do calendário */
.cal-corpo {
    padding: 15px 18px 18px;
}

/* Dias da semana */
.cal-semana {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    margin-bottom: 8px;
}

.cal-dia-semana {
    text-align: center;
    font-size: 11px;
    font-weight: 500;
    color: #888;
    padding: 5px 0;
    text-transform: capitalize;
}

.cal-sab {
    color: #666;
}

.cal-dom {
    color: #666;
}

/* Grid de dias */
.cal-dias {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}

.cal-dia {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 13px;
    color: #333;
    border-radius: 50%;
    height: 36px;
}

.cal-dia.cal-vazio {
    color: transparent;
}

/* Dias com publicação - círculo azul claro */
.cal-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none !important;
    transition: 0.2s;
}

.cal-pub-ordinario .cal-link {
    background: #e8f5e9;
    color: #1e7e34 !important;
}

.cal-pub-ordinario .cal-link:hover {
    background: #28a745;
    color: #fff !important;
}

.cal-pub-extraordinario .cal-link {
    background: #ffebee;
    color: #D20000 !important;
}

.cal-pub-extraordinario .cal-link:hover {
    background: #D20000;
    color: #fff !important;
}

/* Dia com AMBOS: ordinário + extraordinário */
.cal-pub-ambos .cal-link {
    background: linear-gradient(135deg, #28a745 50%, #D20000 50%);
    color: #fff !important;
}

.cal-pub-ambos .cal-link:hover {
    background: linear-gradient(135deg, #1e7e34 50%, #990033 50%);
    transform: scale(1.1);
}

/* Dia atual - destacado com verde */
.cal-dia.cal-hoje .cal-link,
.cal-dia.cal-hoje {
    background: #28a745;
    color: #fff !important;
}

/* Loading e erro */
.cal-loading, .cal-erro {
    width: 100%;
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.cal-loading {
    color: #28a745;
}

.cal-erro {
    color: #dc3545;
    font-size: 12px;
}

/* Responsivo */
@media (max-width: 768px) {
    .cal-header {
        padding: 15px 10px;
    }

    .cal-mes {
        font-size: 16px;
    }

    .cal-link {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
}
