/* Estilos gerais */
:root {
    --primary-color: #4e73df;
    --secondary-color: #6c757d;
    --success-color: #1cc88a;
    --info-color: #36b9cc;
    --warning-color: #f6c23e;
    --danger-color: #e74a3b;
    --light-color: #f8f9fc;
    --dark-color: #5a5c69;
}

body {
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #f8f9fc;
    min-height: 100vh;
}

/* Estilos para a página de login */
.login-container {
    background-color: #fff;
    border-radius: 0.5rem;
    padding: 2rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    margin-top: 3rem;
}

/* Estilos para a sidebar */
.sidebar {
    background-color: #4e73df;
    background-image: linear-gradient(180deg, #4e73df 10%, #224abe 100%);
    min-height: 100vh;
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 0;
}

.sidebar-content {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

.menu-items {
    display: flex;
    flex-direction: column;
}

.menu-item {
    color: rgba(255, 255, 255, 0.8);
    padding: 0.75rem 1rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: all 0.2s;
}

.menu-item:hover {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.1);
}

.menu-item.active {
    color: #fff;
    font-weight: 600;
    background-color: rgba(255, 255, 255, 0.1);
    border-left: 0.25rem solid #fff;
    padding-left: 0.75rem;
}

.menu-item i {
    margin-right: 0.5rem;
}

/* Estilos para o conteúdo principal */
.main-content {
    min-height: 100vh;
    padding: 0;
}

.page-header {
    background-color: #fff;
    border-bottom: 1px solid #e3e6f0;
}

/* Estilos para as páginas do sistema */
.system-page {
    display: none;
    padding: 1rem;
}

.active-page {
    display: block;
}

/* Estilos para o perfil do idoso */
.profile-header {
    background-color: #fff;
    border-radius: 0.5rem;
    padding: 1.5rem;
    box-shadow: 0 0.15rem 1.75rem rgba(0, 0, 0, 0.15);
}

.profile-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 0.25rem solid #fff;
    box-shadow: 0 0.15rem 1.75rem rgba(0, 0, 0, 0.15);
}

/* Estilos para cards */
.card {
    box-shadow: 0 0.15rem 1.75rem rgba(0, 0, 0, 0.05);
    margin-bottom: 1.5rem;
}

.card-header {
    background-color: #f8f9fc;
    border-bottom: 1px solid #e3e6f0;
}

/* Estilos para o menu mobile */
.mobile-header {
    background-color: #fff;
    border-bottom: 1px solid #e3e6f0;
}

/* Estilos responsivos */
@media (max-width: 767.98px) {
    .sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        transition: left 0.3s ease;
        z-index: 1050;
    }
    
    .sidebar.show {
        left: 0;
    }
    
    .profile-img {
        width: 100px;
        height: 100px;
    }
}

/* Estilos para o calendário */
.calendar-container {
    background-color: #fff;
    border-radius: 0.5rem;
    padding: 1rem;
    box-shadow: 0 0.15rem 1.75rem rgba(0, 0, 0, 0.05);
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

.calendar-day-header {
    text-align: center;
    font-weight: bold;
    padding: 0.5rem;
}

.calendar-day {
    min-height: 80px;
    border: 1px solid #e3e6f0;
    padding: 0.5rem;
    position: relative;
}

.calendar-day-number {
    position: absolute;
    top: 5px;
    left: 5px;
    font-weight: bold;
}

.calendar-day.other-month {
    background-color: #f8f9fc;
    color: #b7b9cc;
}

.calendar-day.today {
    background-color: rgba(78, 115, 223, 0.1);
    border-color: var(--primary-color);
}

.calendar-event {
    background-color: rgba(78, 115, 223, 0.2);
    border-radius: 0.25rem;
    padding: 0.25rem;
    margin-top: 1.5rem;
    margin-bottom: 0.25rem;
    font-size: 0.75rem;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Estilos para documentos */
.documento-card {
    cursor: pointer;
    transition: transform 0.2s;
}

.documento-card:hover {
    transform: translateY(-5px);
}

.documento-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

/* Animações */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fade-in {
    animation: fadeIn 0.3s ease-in;
}
