/* Custom styles for Ragnavera */

/* Alerta de erro semelhante ao alert-danger do Bootstrap */
.alert-error {
    color: #842029;
    background-color: #f8d7da;
    border-color: #f5c2c7;
    padding: 1rem;
    border: 1px solid transparent;
    border-radius: 0.375rem;
}

.alert-error .alert-link {
    color: #6a1a21;
}


:root {
    --custom-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

[data-bs-theme="dark"] {
    --custom-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.navbar {
    border-bottom: 1px solid var(--bs-border-color);
}

.navbar-brand {
    font-weight: bold;
}

.card {
    margin-bottom: 1rem;
    box-shadow: var(--custom-shadow);
}

pre {
    padding: 1rem;
    border-radius: 0.3rem;
    font-size: 0.9rem;
    background-color: var(--bs-tertiary-bg);
    border: 1px solid var(--bs-border-color);
}

.footer {
    border-top: 1px solid var(--bs-border-color);
}

#theme-toggle {
    padding: 0.5rem;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#theme-toggle:hover {
    background-color: var(--bs-tertiary-bg);
}


div#texto_integral table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid var(--bs-border-color);
    margin: 10px 0;
}

div#texto_integral table td {
    border: 1px solid var(--bs-border-color);
}

div#texto_integral table th {
    border: 1px solid var(--bs-border-color);
}


/* Responsive adjustments */
@media (max-width: 768px) {
    .card-header {
        padding: 0.75rem;
    }
    
    .table-responsive {
        margin-bottom: 1rem;
    }
}
