:root {
    --primary: #2c3e50;
    --accent: #3498db;
    --bg: #f4f7f6;
    --sidebar-width: 250px;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', sans-serif; }

body { background-color: var(--bg); }

.main-container {
    display: grid;
    grid-template-columns: var(--sidebar-width) 1fr;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    background-color: var(--primary);
    color: white;
    padding: 20px;
}

.sidebar nav a {
    display: flex;
    align-items: center;
    color: #bdc3c7;
    text-decoration: none;
    padding: 15px 0;
    gap: 10px;
    transition: 0.3s;
}

.sidebar nav a:hover, .sidebar nav a.active { color: white; }

/* Conteúdo */
.content { padding: 20px; }

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
.agenda-container {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.agenda-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.calendar-nav {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Grade do Calendário */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    border-top: 1px solid #eee;
    border-left: 1px solid #eee;
 }

.day-name {
    padding: 15px;
    text-align: center;
    font-weight: bold;
    background: #f8f9fa;
    border-right: 1px solid #eee;
    border-bottom: 1px solid #eee;
    color: var(--primary);
}

.day {
    min-height: 120px;
    padding: 10px;
    border-right: 1px solid #eee;
    border-bottom: 1px solid #eee;
    transition: 0.2s;
}

.day:hover { background: #fcfcfc; }

.day.today { background: #ebf5ff; }

.day-number {
    font-size: 0.9rem;
    font-weight: 600;
    display: block;
    margin-bottom: 8px;
}

.out-month { color: #ccc; }

/* Tags de Eventos */
.event-tag {
    font-size: 0.75rem;
    padding: 4px 8px;
    border-radius: 4px;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
}

.event-tag.work { background: #d1ecf1; color: #0c5460; border-left: 3px solid #0c5460; max-width: 90%}
.event-tag.personal { background: #d4edda; color: #155724; border-left: 3px solid #155724; }
.event-tag.finance { background: #fff3cd; color: #856404; border-left: 3px solid #856404; }

/* Responsividade */
@media (max-width: 768px) {
    .calendar-grid {
        grid-template-columns: 1fr; /* Vira uma lista no mobile */
        
    }
    .day { min-height: auto; }
    .day-name { display: none; }
}


/*RESPONSIVO */
/* Responsividade Mobile */
@media (max-width: 768px) {
    .main-container {
        grid-template-columns: 1fr; /* Remove a coluna da sidebar */
    }
    
    .sidebar {
        display: none; /* Esconde o menu lateral por padrão no celular */
    }
    
    .sidebar.active {
        display: block;
        position: fixed;
        width: 100%;
        height: 100%;
        z-index: 999;
    }
}