/* Estilos personalizados para o Consulta Fácil */

/* Ajustes gerais */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.footer {
    margin-top: auto;
}

/* Estilos específicos para o tema claro */
html[data-bs-theme="light"] {
    --bs-body-color: #333;
    --bs-body-bg: #f8f9fa;
}

html[data-bs-theme="light"] .navbar-dark {
    background-color: #375a7f !important;
}

html[data-bs-theme="light"] .footer {
    background-color: #e9ecef !important;
    color: #333;
}

/* Transição suave entre temas */
body, .card, .navbar, .footer, .btn, .alert {
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Estilos de cards */
.card {
    border-radius: 0.5rem;
    overflow: hidden;
}

.card-header {
    font-weight: 500;
}

/* Estilos para tabelas */
.table th {
    font-weight: 600;
}

/* Ajustes para formulários */
.form-control:focus {
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Estilo para o JSON na página de detalhes */
pre {
    background-color: #1e1e1e;
    color: #d4d4d4;
    border-radius: 0.25rem;
    font-size: 0.9rem;
    max-height: 500px;
    overflow: auto;
}

/* Estilos responsivos */
@media (max-width: 576px) {
    .card-title {
        font-size: 1.25rem;
    }
    
    .table th, .table td {
        padding: 0.5rem;
    }
}

/* Animações */
.btn {
    transition: all 0.2s ease-in-out;
}

.btn:hover {
    transform: translateY(-2px);
}

/* Estilos para o histórico */
.list-group-item {
    transition: all 0.2s ease;
}

.list-group-item:hover {
    background-color: rgba(13, 110, 253, 0.1);
}

/* Animação para alertas */
.alert {
    animation: fadeInDown 0.5s;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
