/* assets/css/style.css - VERSÃO BLINDADA */

* { margin: 0; padding: 0; box-sizing: border-box; }

:root { 
    --primary-color: #e91e63; 
    --secondary-color: #ffd700; 
    --dark-color: #333; 
    --light-color: #f5f5f5; 
    --border-color: #ddd; 
    --success-color: #4caf50; 
    --danger-color: #f44336; 
    --warning-color: #ff9800; 
    --info-color: #2196f3; 
}

html, body { 
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
    background-color: #fafafa; 
    color: var(--dark-color); 
    line-height: 1.6; 
    font-size: 16px; 
}

/* --- CABEÇALHO --- */
header { 
    background-color: white; 
    box-shadow: 0 2px 8px rgba(0,0,0,0.1); 
    height: 60px; 
    position: sticky; 
    top: 0; 
    z-index: 1000; 
    width: 100%;
}

.header-container { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 0 20px; 
    height: 100%;
}

.logo { 
    font-size: 18px; 
    font-weight: 700; 
    color: var(--primary-color); 
    text-decoration: none; 
    display: flex; 
    align-items: center; 
    gap: 8px; 
    white-space: nowrap; /* Obriga a ficar numa linha só */
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 70%;
}

/* --- MENU DESKTOP --- */
.menu-toggle { display: none; background: none; border: none; font-size: 28px; cursor: pointer; color: var(--primary-color); padding: 5px; }

nav { display: flex; gap: 10px; align-items: center; }

nav a { 
    color: var(--dark-color); 
    text-decoration: none; 
    padding: 8px 12px; 
    font-size: 15px; 
    font-weight: 500; 
    border-radius: 6px; 
    white-space: nowrap;
}

nav a:hover { background-color: var(--light-color); color: var(--primary-color); }
nav a.active { color: var(--primary-color); background-color: rgba(233,30,99,0.1); }
.logout-btn { background-color: var(--danger-color) !important; color: white !important; }

/* --- RESTO DO SITE --- */
main { max-width: 1200px; margin: 0 auto; padding: 20px; }
.dashboard-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin-bottom: 30px; }
.widget { background-color: white; padding: 20px; border-radius: 12px; box-shadow: 0 2px 8px rgba(0,0,0,0.08); border-left: 5px solid var(--primary-color); }
.widget-title { font-size: 14px; color: #999; font-weight: 600; text-transform: uppercase; margin-bottom: 10px; }
.widget-value { font-size: 32px; font-weight: 700; color: var(--primary-color); }
.chart-container { background-color: white; padding: 20px; border-radius: 12px; box-shadow: 0 2px 8px rgba(0,0,0,0.08); margin-bottom: 20px; }
.btn { padding: 10px 20px; border: none; border-radius: 6px; font-weight: 600; cursor: pointer; display: inline-block; }
.btn-primary { background-color: var(--primary-color); color: white; }
.btn-secondary { background-color: #999; color: white; }
table { width: 100%; border-collapse: collapse; margin-top: 15px; }
th, td { padding: 12px; text-align: left; border-bottom: 1px solid #eee; }

/* === MOBILE (CELULAR) === */
@media (max-width: 850px) {
    .menu-toggle { display: block; }

    nav { 
        display: none !important; /* FORÇA ESCONDER */
        position: absolute; 
        top: 60px; 
        left: 0; 
        width: 100%; 
        background-color: white; 
        flex-direction: column; 
        box-shadow: 0 4px 10px rgba(0,0,0,0.1); 
        padding: 10px 0;
        border-top: 1px solid #eee;
        z-index: 999;
    }

    /* Só mostra se tiver a classe active */
    nav.active { 
        display: flex !important; 
        animation: slideDown 0.3s ease forwards;
    }

    nav a { 
        width: 100%; 
        text-align: center; 
        padding: 15px; 
        border-bottom: 1px solid #f0f0f0;
        border-radius: 0;
    }
    
    h1 { font-size: 22px; }
    main { padding: 15px; }
}

@keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
/* --- CORREÇÃO DEFINITIVA DE ALTURA --- */
    
    /* 1. Aumenta o espaço da grade de horário */
    .fc-timegrid-slot { height: 4.5em !important; } 
    .fc-timegrid-slot-label { font-size: 12px; vertical-align: middle; }

    /* 2. Força o evento a ter altura suficiente para os botões */
    .fc-timegrid-event-harness {
        min-height: 85px !important; /* Garante altura mínima para o bloco */
    }

    /* Card Evento */
    .fc-event { 
        border: none !important; 
        border-radius: 6px !important; 
        box-shadow: 0 2px 5px rgba(0,0,0,0.1); 
        margin-bottom: 1px !important; 
        overflow: visible !important; /* Permite que o conteúdo não seja cortado */
        height: 100% !important;
    }
    
    .custom-event-content { 
        padding: 4px; 
        font-family: 'Segoe UI', sans-serif; 
        display: flex; 
        flex-direction: column; 
        justify-content: space-between; 
        height: 100%; 
        border-left: 4px solid; 
        min-height: 80px; /* Garante espaço interno */
    }