/* =====================================================
   CALENDÁRIO MILITAR - ESTILO TÁTICO
   ===================================================== */

/* Container Principal do Calendário */
.calendar-section {
    background: linear-gradient(135deg, #0F2940 0%, #1a3a52 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.calendar-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 100px,
            rgba(231, 111, 81, 0.03) 100px,
            rgba(231, 111, 81, 0.03) 101px
        ),
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 100px,
            rgba(231, 111, 81, 0.03) 100px,
            rgba(231, 111, 81, 0.03) 101px
        );
    pointer-events: none;
}

.calendar-section .section-header h2 {
    color: white;
}

.calendar-section .section-header p {
    color: rgba(255, 255, 255, 0.8);
}

/* Controles de Navegação Estilo Militar */
/* ==========================================
   CONTROLES DE NAVEGAÇÃO - MOBILE FIRST
   ========================================== */

/* BASE: MOBILE (320px+) */
.calendar-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem; /* 12px - mobile friendly */
    margin-bottom: 1.5rem;
    padding: 0 1rem;
    flex-wrap: wrap;
    position: relative;
}

/* BOTÕES DE NAVEGAÇÃO */
.month-nav {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(231, 111, 81, 0.5);
    border-radius: 8px;
    width: 44px; /* Touch target mínimo */
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    flex-shrink: 0;
}

.month-nav:hover,
.month-nav:focus {
    background: rgba(231, 111, 81, 0.2);
    border-color: #E76F51;
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(231, 111, 81, 0.4);
}

.month-nav svg {
    stroke: #E76F51;
    width: 20px;
    height: 20px;
}

/* SELETOR DE MÊS */
.month-selector {
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(231, 111, 81, 0.3);
    border-radius: 12px;
    padding: 0.75rem 1.25rem; /* 12px 20px - reduzido */
    backdrop-filter: blur(10px);
    flex-shrink: 0;
    min-width: 180px;
}

.month-selector span {
    font-size: 1rem; /* 16px - mobile legível */
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    letter-spacing: 1px; /* Reduzido de 2px */
    font-family: 'Courier New', Consolas, monospace;
    display: block;
    text-align: center;
}

/* LAYOUT ALTERNATIVO: Mobile muito pequeno */
@media (max-width: 360px) {
    .calendar-controls {
        flex-direction: column;
        gap: 1rem;
    }
    
    .month-selector {
        order: -1; /* Mês aparece primeiro */
        width: 100%;
    }
    
    .month-nav {
        width: 48%;
    }
}

/* TABLET (768px+) */
@media (min-width: 768px) {
    .calendar-controls {
        gap: 1.5rem; /* 24px */
        margin-bottom: 2rem;
    }
    
    .month-nav {
        width: 48px;
        height: 48px;
    }
    
    .month-nav svg {
        width: 24px;
        height: 24px;
    }
    
    .month-selector {
        padding: 0.875rem 1.75rem; /* 14px 28px */
        min-width: 220px;
    }
    
    .month-selector span {
        font-size: 1.25rem; /* 20px */
        letter-spacing: 1.5px;
    }
}

/* DESKTOP (1024px+) */
@media (min-width: 1024px) {
    .calendar-controls {
        gap: 3rem; /* 48px - volta ao tamanho original */
        margin-bottom: 3rem;
    }
    
    .month-selector {
        padding: 12px 32px; /* Tamanho original */
        min-width: auto;
    }
    
    .month-selector span {
        font-size: 1.5rem; /* 24px - tamanho original */
        letter-spacing: 2px;
    }
}

/* Container do Calendário Estilo Radar */
.calendar-container {
    background: rgba(15, 41, 64, 0.95);
    border: 2px solid rgba(231, 111, 81, 0.3);
    border-radius: 20px;
    padding: 1rem;
    margin-bottom: 2rem;
    position: relative;
    backdrop-filter: blur(20px);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.4),
        inset 0 0 40px rgba(231, 111, 81, 0.05);
}

.calendar-military-container {
    position: relative;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    overflow: visible;
}

/* Grid do Calendário Tipo Militar */
.calendar-military-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 3px;
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
    padding: 10px;
    position: relative;
    min-height: 560px; /* CORREÇÃO 1: Aumentada a altura mínima */
    
}

/* prende os 7 nomes dos dias na linha 1 e colunas 1..7 */
.calendar-military-grid > .calendar-weekday { 
  grid-row: 1;
  align-self: center;               /* estética */
  justify-self: center;
  /* opcional: altura menor para a linha 1 */
}

.calendar-military-grid > .calendar-weekday:nth-of-type(1) { grid-column: 1; }
.calendar-military-grid > .calendar-weekday:nth-of-type(2) { grid-column: 2; }
.calendar-military-grid > .calendar-weekday:nth-of-type(3) { grid-column: 3; }
.calendar-military-grid > .calendar-weekday:nth-of-type(4) { grid-column: 4; }
.calendar-military-grid > .calendar-weekday:nth-of-type(5) { grid-column: 5; }
.calendar-military-grid > .calendar-weekday:nth-of-type(6) { grid-column: 6; }
.calendar-military-grid > .calendar-weekday:nth-of-type(7) { grid-column: 7; }

/* Ajuste para ordem dos dias */
.weekday-header {
    display: contents;
}

/* Cabeçalho dos Dias da Semana */
.calendar-weekday {
    background: rgba(17, 106, 141, 0.1);
    color: #c4a002;
    text-align: center;
    padding: 12px 8px;
    font-weight: 600;
    font-size: 0.8rem;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

/* CORREÇÃO: Semana terminando no domingo */
.calendar-weekday:first-child {
    /* Domingo */
    order: 7; /* Move domingo para o final */
}

/* Células do Calendário */
.calendar-day {
    background: rgba(255,255,255,0.05);
    border-radius: 4px;
    min-height: 85px; /* CORREÇÃO 1: Aumentada a altura mínima dos dias */
    position: relative;
    transition: all 0.2s ease;
    cursor: pointer;
}

.calendar-day:hover {
    background: rgba(255,255,255,0.1);
}

.calendar-day.other-month {
    opacity: 0.3;
}

.calendar-day.today {
    background: rgba(231, 111, 81, 0.1);
    border: 2px solid #e7c451;
    box-shadow: 
        inset 0 0 20px rgba(231, 171, 81, 0.1),
        0 0 30px rgba(231, 171, 81, 0.2);
}

/* Número do Dia */
.calendar-day-number {
    position: absolute;
    top: 4px;
    left: 6px;
    color: #ecf0f1;
    font-weight: 500;
    font-size: 0.85rem;
    z-index: 2;
}

.calendar-day.today .calendar-day-number {
    color: #E76F51;
    text-shadow: 0 0 10px rgba(231, 111, 81, 0.5);
}

/* Eventos de Turmas no Calendário */
/* Overlay de eventos */
.calendar-events-overlay {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    bottom: 20px;
    pointer-events: none;
    z-index: 10;
}
.calendar-event {
    display: block !important;
    position: relative !important;
    overflow: visible !important;
    min-height: auto !important;
}

/* Barras de eventos */
.event-bar {
    pointer-events: auto;
    user-select: none;
    backdrop-filter: blur(10px);
    height:30px !important;
}

/* ALTERAR COR DAS BARRAS DOS EVENTOS*/
/* .event-bar.master {
    background: linear-gradient(135deg, #e7b324 0%, #b9881e 100%) !important;
    box-shadow: 0 2px 6px rgba(231, 76, 60, 0.4);
}

.event-bar.pro {
    background: linear-gradient(135deg, #5972b6 0%, #4460ad 100%) !important;
    box-shadow: 0 2px 6px rgba(155, 89, 182, 0.4);
} */

/* ========================================
   SISTEMA DE STATUS DE VAGAS
   ======================================== */

/* AVAILABLE - Borda verde + saturação normal */
.event-bar.status-available {
    border-left: 4px solid #2ECC71;
    box-shadow: 
        0 2px 6px rgba(0,0,0,0.2),
        inset 0 0 0 2px rgba(46, 204, 113, 0.2);
}

/* LIMITED - Borda amarela + overlay de atenção */
.event-bar.status-limited {
    border-left: 4px solid #F39C12;
    box-shadow: 
        0 2px 6px rgba(0,0,0,0.2),
        inset 0 0 0 2px rgba(243, 156, 18, 0.3);
}

.event-bar.status-limited::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(243, 156, 18, 0.15);
    border-radius: 6px;
    pointer-events: none;
}

/* FULL - Borda vermelha + overlay vermelho + opacidade reduzida */
.event-bar.status-full {
    border-left: 4px solid #E74C3C;
    opacity: 0.75;
    box-shadow: 
        0 2px 6px rgba(0,0,0,0.2),
        inset 0 0 0 2px rgba(231, 76, 60, 0.4);
}

.event-bar.status-full::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(231, 76, 60, 0.2);
    border-radius: 6px;
    pointer-events: none;
}

/* Ajustar z-index do conteúdo para ficar sobre o overlay */
.event-bar > span {
    position: relative;
    z-index: 1;
}

.event-bar.nivel2 {
    background: linear-gradient(135deg, #3498DB 0%, #2980B9 100%) !important;
    box-shadow: 0 2px 6px rgba(52, 152, 219, 0.4);
}

.event-bar.nivel1 {
    background: linear-gradient(135deg, #2ECC71 0%, #27AE60 100%) !important;
    box-shadow: 0 2px 6px rgba(46, 204, 113, 0.4);
}
/* Esconder elementos antigos que podem estar causando conflito */
.spots-bullets,
.event-people,
.event-people-svg,
.person-svg,
.person-icon {
    display: none !important;
}

/* Nome do Curso */
.event-name {
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 4px;
}

/* Indicador de Vagas Estilo Munição */
.event-spots {
    display: flex;
    align-items: center;
    gap: 3px;
    margin-top: 4px;
}

.event-people {
    display: flex;
    gap: 1px;
    align-items: center;
}

.person-icon {
    width: 10px;
    height: 12px;
    display: inline-block;
    position: relative;
}

.person-icon.available {
    /* Pessoa disponível - verde */
    background: linear-gradient(to bottom, 
        transparent 0%, 
        transparent 25%, 
        #2ECC71 25%, 
        #2ECC71 100%);
    position: relative;
}

.person-icon.available::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background: #2ECC71;
    border-radius: 50%;
}

.person-icon.occupied {
    /* Pessoa ocupada - vermelho */
    background: linear-gradient(to bottom, 
        transparent 0%, 
        transparent 25%, 
        #E74C3C 25%, 
        #E74C3C 100%);
    position: relative;
    opacity: 0.6;
}

.person-icon.occupied::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background: #E74C3C;
    border-radius: 50%;
}

/* Ícones SVG de pessoas (melhor visualização) */
.event-people-svg {
    display: flex;
    gap: 2px;
    align-items: center;
    flex-wrap: nowrap;
}

.person-svg {
    width: 11px;
    height: 13px;
    flex-shrink: 0;
}

.person-svg.available {
    color: #2ECC71;
    filter: drop-shadow(0 0 1px rgba(46, 204, 113, 0.5));
}

.person-svg.occupied {
    color: #E74C3C;
    opacity: 0.5;
}

/* Texto de contagem de vagas */
.spots-count-text {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.9);
    margin-left: 4px;
    font-weight: 600;
    font-family: 'Courier New', Consolas, monospace;
}

.spots-count-text .available-count {
    color: #2ECC71;
}

.spots-count-text .total-count {
    color: rgba(255, 255, 255, 0.7);
}

.spots-bullets {
    display: none !important;
}

.bullet {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #2ECC71;
    position: relative;
    transition: all 0.3s ease;
}

.bullet::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    background: rgba(46, 204, 113, 0.3);
    animation: pulse 2s infinite;
}

.bullet.occupied {
    background: #E74C3C;
    animation: none;
}

.bullet.occupied::before {
    background: rgba(231, 76, 60, 0.3);
    animation: none;
}

@keyframes pulse {
    0%, 100% { opacity: 0; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.5); }
}

.spots-text {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.8);
    margin-left: 4px;
    font-family: 'Courier New', Consolas, monospace;
}

/* Modal de Detalhes da Turma */
.calendar-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(5px);
}

.calendar-modal.active {
    display: flex;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    position: relative;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    border-radius: 12px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    max-height: 105vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    color: white;
}

@keyframes slideUp {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.modal-close:hover {
    background: rgba(255,255,255,0.1);
}

.modal-close svg {
    stroke: white;
}

.modal-header {
    margin-bottom: 25px;
}

.modal-course-badge {
    background: rgba(255,255,255,0.2);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.modal-title {
    margin: 15px 0 10px 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: rgb(211, 211, 211);
}

.modal-date, .modal-location {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 8px 0;
    opacity: 0.9;
    font-size: 0.9rem;
}

/* Indicador Visual de Vagas Estilo Militar */
.modal-spots-visual {
    background: rgba(0,0,0,0.2);
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.spots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(30px, 1fr));
    gap: 8px;
    margin-bottom: 20px;
}

.spot-unit {
    width: 30px;
    height: 30px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    transition: all 0.2s ease;
}

.spot-unit:not(.occupied) {
    background: rgba(46, 204, 113, 0.3);
    border: 2px solid #2ECC71;
}

.spot-unit.occupied {
    background: rgba(231, 76, 60, 0.3);
    border: 2px solid #E74C3C;
}

.spots-stats {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

@keyframes lockIn {
    0% { transform: scale(1.2) rotate(180deg); }
    50% { transform: scale(0.8) rotate(90deg); }
    100% { transform: scale(1) rotate(0deg); }
}

.spots-stats {
    display: flex;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid rgba(231, 111, 81, 0.2);
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
}

.stat-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.stat-dot.available {
    background: #2ECC71;
}

.stat-dot.occupied {
    background: #E74C3C;
}

.stat-dot.total {
    background: #3498DB;
}

.stat-value {
    font-weight: 600;
    margin-left: auto;
    color: white;
}

/* Botão CTA do Modal */
.modal-cta {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.modal-cta .btn {
    flex: 1;
    padding: 12px 20px;
    border-radius: 6px;
    text-decoration: none;
    text-align: center;
    font-weight: 600;
    transition: all 0.2s ease;
}

.modal-cta .btn-primary {
    background: linear-gradient(135deg, #3498DB 0%, #2980B9 100%);
    color: white;
    border: none;
}

.modal-cta .btn-secondary {
    background: rgba(255,255,255,0.1);
    color: white;
    border: 2px solid rgba(255,255,255,0.2);
}

.modal-cta .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* ==========================================
   LEGENDA TÁTICA - MOBILE FIRST
   ========================================== */

/* BASE: MOBILE (320px+) */
.calendar-legend {
    display: flex;
    justify-content: center;
    gap: 0.1rem; /* 12px - mobile friendly */
    flex-wrap: nowrap;
    margin-top: 1.5rem;
    padding: 0 1rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem; /* 8px - reduzido */
    padding: 8px 12px; /* Padding reduzido */
    background: rgba(0, 0, 0, 0.3);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    font-size: 0.875rem; /* 14px */
    flex-shrink: 0;
    min-height: 36px; /* Touch target */
}

.legend-item .dot {
    width: 12px; /* Reduzido de 16px */
    height: 12px;
    border-radius: 50%;
    position: relative;
    flex-shrink: 0;
}

.legend-item .dot::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    background: rgb(255 255 255 / 22%);
    opacity: 0.1;
    animation: pulse 2s infinite;
}

.legend-item span {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.8125rem; /* 13px - mobile */
    font-weight: 500;
    white-space: nowrap;
}

/* TABLET (768px+) */
@media (min-width: 768px) {
    .calendar-legend {
        gap: 1.5rem; /* 24px */
        margin-top: 2rem;
    }
    
    .legend-item {
        gap: 0.625rem; /* 10px */
        padding: 8px 14px;
        font-size: 0.9375rem; /* 15px */
    }
    
    .legend-item .dot {
        width: 14px;
        height: 14px;
    }
    
    .legend-item span {
        font-size: 0.875rem; /* 14px */
    }
}

/* DESKTOP (1024px+) */
@media (min-width: 1024px) {
    .calendar-legend {
        gap: 3rem; /* 48px - tamanho original */
    }
    
    .legend-item {
        gap: 0.75rem; /* 12px */
        padding: 8px 16px; /* Tamanho original */
        font-size: 1rem;
    }
    
    .legend-item .dot {
        width: 16px; /* Tamanho original */
        height: 16px;
    }
    
    .legend-item span {
        font-size: 0.9rem; /* Tamanho original */
    }
}

/* MOBILE MUITO PEQUENO (360px) */
@media (max-width: 360px) {
    .calendar-legend {
        gap: 0.5rem; /* 8px */
    }
    
    .legend-item {
        padding: 6px 10px;
        font-size: 0.75rem; /* 12px */
    }
    
    .legend-item span {
        font-size: 0.75rem; /* 12px */
    }
}

/* Estados vazios e de erro */
.calendar-empty-state,
.calendar-error-state {
    text-align: center;
    padding: 60px 20px;
    color: #ecf0f1;
}

.empty-icon,
.error-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.calendar-empty-state h3,
.calendar-error-state h3 {
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.calendar-empty-state p,
.calendar-error-state p {
    opacity: 0.7;
    margin-bottom: 20px;
}
/* Indicador de Status Operacional */
.operation-status {
    position: absolute;
    top: -34px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(231, 111, 81, 0.3);
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.status-indicator {
    width: 8px;
    height: 8px;
    background: #2ECC71;
    border-radius: 50%;
    animation: blink 2s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.status-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    font-family: 'Courier New', Consolas, monospace;
    text-transform: uppercase;
    letter-spacing: 1px;
}
/* =========================================================================
/* RESPONSIVIDADE
/* =========================================================================*/

@media (max-width: 768px) {
    .event-bar {
        height: 22px !important;
        font-size: 0.7rem !important;
        padding: 0 8px !important;
    }
    .calendar-container {
        padding: 1rem;
        margin-bottom: 2rem;
        position: relative;
    }
    .calendar-military-container {
        padding: 0px;
    }
    .calendar-military-grid {
        gap: 1px;
        padding: 5px;
        min-height: 390px; /* CORREÇÃO 1: Altura ajustada para mobile */
    }
    
    .calendar-day {
        min-height: 60px; /* CORREÇÃO 1: Altura ajustada para mobile */
    }
    
    .calendar-event {
        font-size: 0.65rem;
        padding: 4px 6px;
    }
    
    .spots-bullets {
        display: none;
    }
    
    .event-spots {
        justify-content: flex-end;
    }
    .modal-content {
        padding: 20px;
        margin: 20px;
    }
    
    .modal-cta {
        flex-direction: column;
    }
}

/* Efeito de Scan */
.calendar-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(231, 111, 81, 0.5) 50%, 
        transparent 100%);
    animation: scan 3s infinite linear;
    z-index: 999;
}

@keyframes scan {
    0% { top: 0; }
    100% { top: 100%; }
}

/* Responsividade melhorada */
@media (max-width: 768px) {
    .event-people-svg {
        max-width: 100%;
    }
    
    .person-svg {
        width: 9px;
        height: 11px;
    }
    
    /* Mostrar apenas número em telas muito pequenas */
    @media (max-width: 400px) {
        .event-people-svg {
            display: none;
        }
        
        .spots-count-text {
            display: block !important;
            font-size: 0.8rem;
        }
    }
}

.calendar-day-events {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.calendar-event-multiday {
    pointer-events: auto;
    overflow: hidden;
}

.calendar-event-multiday:hover {
    z-index: 100 !important;
}

/* ========================================
   ESTRUTURA DAS BARRAS DE EVENTOS
   ======================================== */

/* Container principal da barra */
.event-bar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    white-space: nowrap;
    overflow: hidden;
    width: 100%;
    height: 100%;
}

/* Lado esquerdo: badge + título + ícones */
.event-bar-left {
    display: flex;
    align-items: center;
    gap: 6px;
    overflow: hidden;
    flex: 1;
    min-width: 0;
}

/* Badge do curso (MASTER, PRO, etc) */
.event-course-badge {
    font-size: 0.9rem;
    flex-shrink: 0;
}

/* Título do curso */
.event-course-title {
    flex-shrink: 0;
    white-space: nowrap;
    font-weight: 700;
}

/* Container dos ícones de pessoas */
.event-people-icons {
    display: flex;
    gap: 1px;              /* ← ESPAÇO ENTRE ÍCONES */
    font-size: 0.8rem;     /* ← TAMANHO DOS ÍCONES */
    margin-left: 4px;
    align-items: center;
}

/* Contador de vagas (lado direito) */
.event-spots-counter {
    font-size: 0.7rem;
    font-weight: 600;
    background: rgba(0, 0, 0, 0.2);
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 8px;
    flex-shrink: 0;
}

/* ========================================
   RESPONSIVIDADE DOS ÍCONES
   ======================================== */

@media (max-width: 768px) {
    .event-people-icons {
        font-size: 0.7rem;   /* Ícones menores no mobile */
        gap: 0.5px;          /* Menos espaço no mobile */
        margin-left: 2px;
    }
    
    .event-course-badge {
        font-size: 0.8rem;
    }
    
    .event-bar-left {
        gap: 4px;
    }
}

@media (min-width: 1024px) {
    .event-people-icons {
        font-size: 0.7rem;   /* Ícones maiores no desktop */
        gap: 1px;            /* Mais espaço no desktop */
        margin-left: 0px;
    }
}

/* Estilos base da barra de evento (antes eram inline) */
.event-bar {
    border-radius: 6px;
    padding: 0px 10px;
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    white-space: nowrap;
    overflow: hidden;
    border: 2px solid rgba(255,255,255,0.2);
}