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

body {
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--light-color);
}

/* Estilos do sidebar */
.sidebar {
    min-height: 100vh;
    background: linear-gradient(180deg, var(--primary-color) 0%, #224abe 100%);
    transition: all 0.3s;
}

.sidebar .nav-link {
    color: rgba(255, 255, 255, 0.8);
    padding: 1rem;
    font-weight: 500;
    border-radius: 0.35rem;
    margin-bottom: 0.2rem;
}

.sidebar .nav-link:hover {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.1);
}

.sidebar .nav-link.active {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.2);
}

.sidebar .nav-link i {
    margin-right: 0.5rem;
}

/* Estilos do conteúdo principal */
.content-wrapper {
    min-height: 100vh;
}

.topbar {
    height: 4.375rem;
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15);
}

/* Cards e elementos de UI */
.card {
    border: none;
    border-radius: 0.35rem;
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.1);
}

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

/* Botões e ações */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #2e59d9;
    border-color: #2653d4;
}

.btn-success {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.btn-success:hover {
    background-color: #17a673;
    border-color: #169b6b;
}

/* Estilos para calendário e agendamentos */
.calendar-day {
    min-height: 100px;
    background-color: white;
    border: 1px solid #e3e6f0;
}

.calendar-day:hover {
    background-color: #f8f9fc;
}

.calendar-event {
    padding: 0.25rem 0.5rem;
    margin-bottom: 0.25rem;
    border-radius: 0.25rem;
    font-size: 0.8rem;
    cursor: pointer;
}

/* Estilos para medicamentos */
.medicamento-card {
    border-left: 0.25rem solid var(--primary-color);
    transition: transform 0.2s;
}

.medicamento-card:hover {
    transform: translateY(-3px);
}

/* Estilos para contatos */
.contato-card {
    border-left: 0.25rem solid var(--info-color);
}

/* Estilos para perfil de idoso */
.profile-header {
    background-color: #fff;
    border-radius: 0.35rem;
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.1);
    padding: 1.5rem;
}

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

/* Responsividade */
@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        min-height: auto;
    }
    
    .content-wrapper {
        margin-left: 0 !important;
    }
    
    .profile-img {
        width: 100px;
        height: 100px;
    }
}

/* Animações */
.fade-in {
    animation: fadeIn 0.5s;
}

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

/* Notificações e lembretes */
.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    padding: 0.25rem 0.5rem;
    border-radius: 50%;
    background-color: var(--danger-color);
    color: white;
    font-size: 0.75rem;
}

/* Estilos para upload de documentos */
.dropzone {
    border: 2px dashed #dee2e6;
    border-radius: 0.35rem;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.dropzone:hover {
    border-color: var(--primary-color);
    background-color: rgba(78, 115, 223, 0.05);
}

.document-card {
    border-left: 0.25rem solid var(--warning-color);
}

/* Estilos para alimentação */
.meal-card {
    border-left: 0.25rem solid var(--secondary-color);
}

/* Estilos para login e cadastro */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
