:root {
    --brand-main: #00bcd4;      
    --brand-main-hover: #00acc1;
    --brand-success: #05c46b;   
    --brand-danger: #ff4d4d;    
    --brand-warning: #ffc107;
    --brand-info: #0dcaf0;
    --brand-dark: #2d3436;
    --bg-page: #f4f7f9;
    --paper: #ffffff;
    --text-main: #2d3436;
    --text-muted: #636e72;
    --border-light: #e9ecef;
    --bg-soft: #f8fafc;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.06);
    --shadow-modal: 0 25px 50px rgba(0, 0, 0, 0.15);
}

body { 
    font-family: 'Inter', system-ui, -apple-system, sans-serif; 
    background-color: var(--bg-page);
    color: var(--text-main); 
    -webkit-font-smoothing: antialiased;
    line-height: 1.5;
}

/* Scrollbar Customizada para a Lista de Eventos */
.lista-eventos::-webkit-scrollbar {
    width: 4px;
}
.lista-eventos::-webkit-scrollbar-track {
    background: transparent;
}
.lista-eventos::-webkit-scrollbar-thumb {
    background: #d1d8e0;
    border-radius: 10px;
}

.btn-primary {
    background-color: var(--brand-main);
    border-color: var(--brand-main);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 700;
    letter-spacing: 0.3px;
}

.btn-primary:hover {
    background-color: var(--brand-main-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 188, 212, 0.3);
}

/* Filtros de Categorias */
.btn-group .btn-check + .btn {
    border-color: var(--border-light);
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 10px 18px;
    background: white;
    transition: all 0.2s;
}

.btn-group .btn-check:checked + .btn {
    background-color: var(--brand-main) !important;
    border-color: var(--brand-main) !important;
    color: white !important;
    box-shadow: 0 4px 10px rgba(0, 188, 212, 0.2);
}

/* ==========================================================================
   ESTRUTURA DO CALENDÁRIO (GRID SYSTEM)
   ========================================================================== */
.calendario-wrapper {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background-color: var(--paper);
    border-radius: 0 0 20px 20px;
    overflow: hidden;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-card);
}

.dia-semana-header {
    background-color: #f8f9fa;
    color: var(--text-muted);
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    padding: 18px 10px;
    border-bottom: 1px solid var(--border-light);
    text-align: center;
}

.dia-calendario {
    min-height: 140px;
    background-color: var(--paper);
    transition: all 0.25s ease;
    cursor: pointer;
    position: relative;
    border-right: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
}

.dia-calendario:nth-child(7n) {
    border-right: none;
}

.dia-calendario:hover {
    background-color: #f0faff;
    z-index: 2;
    box-shadow: inset 0 0 0 2px var(--brand-main);
}

.numero-dia {
    font-weight: 800;
    font-size: 0.95rem;
    color: var(--text-main);
    padding: 12px;
    display: flex;
    justify-content: space-between;
}

/* Estado "Hoje" */
.dia-hoje {
    background-color: rgba(0, 188, 212, 0.04) !important;
}
.dia-hoje .numero-dia {
    color: var(--brand-main);
}
.dia-hoje::after {
    content: 'HOJE';
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 0.55rem;
    background: var(--brand-main);
    color: white;
    padding: 3px 6px;
    border-radius: 4px;
    font-weight: 900;
    box-shadow: 0 2px 4px rgba(0, 188, 212, 0.2);
}

.dia-vazio {
    background-color: #fcfcfc;
    background-image: linear-gradient(45deg, #f3f4f6 25%, transparent 25%, transparent 50%, #f3f4f6 50%, #f3f4f6 75%, transparent 75%, transparent);
    background-size: 15px 15px;
    cursor: default;
}

/* ==========================================================================
   EVENTOS E BADGES (MELHORADOS)
   ========================================================================== */
.lista-eventos {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 0 8px 10px 8px;
    overflow-y: auto;
    max-height: 110px;
}

.evento-item {
    border-radius: 6px;
    padding: 4px 8px;
    font-weight: 700;
    font-size: 0.65rem;
    line-height: 1.3;
    margin: 0;
    border: none;
    transition: all 0.2s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    width: 100%;
    color: #fff !important; 
}

.bg-warning, .bg-info {
    color: #2d3436 !important;
}

.evento-item:hover {
    transform: translateX(3px);
    filter: brightness(1.1);
}


.bg-info { background-color: #0fbcf9 !important; }
.bg-warning { background-color: #ffdd59 !important; }
.bg-danger { background-color: #ff5e57 !important; }
.bg-success { background-color: #05c46b !important; }
.badge-mentor, 
.evento-item.badge,
#listaAcontecendoHoje .badge {
    background-color: #6c5ce7 !important; 
    color: white !important;
    border-radius: 6px;
    padding: 4px 8px;
    font-weight: 800;
    margin-bottom: 2px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
}

/* ==========================================================================
   MODAL DE CONFIRMAÇÃO DARK (PREMIUM)
   ========================================================================== */
#modalConfirmacao .modal-content {
    background: #2d3436 !important;
    color: white !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
    border-radius: 24px;
    padding: 10px;
}

#modalConfirmacao .modal-header, 
#modalConfirmacao .modal-footer {
    border: none;
}

#modalConfirmacao .text-light {
    color: rgba(255,255,255,0.7) !important;
}

#modalConfirmacao .btn-outline-light {
    border-color: rgba(255,255,255,0.2);
    border-radius: 12px;
}

#modalConfirmacao .btn-outline-light:hover {
    background: rgba(255,255,255,0.1);
    border-color: white;
}

/* ==========================================================================
   INTERFACE E TABELAS
   ========================================================================== */
.modal-content {
    border-radius: 28px;
    border: none;
    box-shadow: var(--shadow-modal);
}

.modal-actions-container {
    background: #f1f5f9;
    border-radius: 50px;
    padding: 10px;
    display: inline-flex;
    gap: 8px;
    border: 1px solid var(--border-light);
}

.btn-action-pill {
    border-radius: 40px !important;
    padding: 12px 28px !important;
    font-weight: 800 !important;
    font-size: 0.85rem !important;
    box-shadow: var(--shadow-sm);
}

/* Ajuste nos botões de ação da tabela */
.btn-outline-danger.py-0, .btn-outline-primary.py-0 {
    height: 32px;
    width: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    transition: all 0.2s;
}

.btn-outline-danger.py-0:hover { transform: scale(1.1); }

/* ==========================================================================
   RESPONSIVIDADE E PRINT
   ========================================================================== */
@media (max-width: 992px) {
    .dia-calendario { min-height: 120px; }
}

@media (max-width: 768px) {
    .calendario-wrapper { 
        grid-template-columns: 1fr; 
        border-radius: 20px;
        gap: 5px;
        background: transparent;
        border: none;
        box-shadow: none;
    }
    .dia-semana-header { display: none; }
    .dia-calendario { 
        min-height: auto; 
        border: 1px solid var(--border-light) !important; 
        border-radius: 15px;
        margin-bottom: 8px;
        background: white;
    }
    .numero-dia { 
        background: #f8fafc; 
        border-bottom: 1px solid #f1f5f9; 
        border-radius: 15px 15px 0 0;
    }
    .lista-eventos { padding: 12px 15px; }
}

@media print {
    .navbar, .btn, .breadcrumb, .modal, .btn-group, #widgetEventosDia, .nav-tabs { display: none !important; }
    body { background: white; }
    .calendario-wrapper { 
        border: 2px solid #000; 
        grid-template-columns: repeat(7, 1fr) !important; 
        border-radius: 0;
    }
    .dia-semana-header { 
        display: block !important; 
        border: 1px solid #000; 
        background: #eee !important;
    }
    .dia-calendario { 
        border: 1px solid #000 !important; 
        min-height: 100px; 
        border-radius: 0 !important;
    }
}