
/* errors.css */

/* General Body and HTML styles for error pages */
html, body {
    height: 100%;
    margin: 0;
    font-family: 'Inter', sans-serif; /* Assuming Inter is used, adjust if different */
    color: var(--text-dark, #212529); /* Fallback to Bootstrap default text color */
    background-color: var(--background-light, #f8f9fa); /* Light background for error pages */
}

/* Ensure the section takes full viewport height and centers content vertically */
.auth-section, /* If this section class is also used for errors, uncomment and adjust */
.min-vh-100 { /* Bootstrap class, ensure it works correctly */
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem 0; /* Add some padding top/bottom */
    background: linear-gradient(135deg, rgba(178, 61, 19, 0.03) 0%, var(--citrine-white, #ffffff) 100%); /* Example background from auth-section */
}

/* Styling for the main error card/content area if it's within a distinct container */
.error-card {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(21, 20, 15, 0.08);
    padding: 3rem;
    text-align: center;
    max-width: 800px;
    margin: auto; /* Center the card horizontally */
}

/* Specific styling for the error code (e.g., 404, 500) */
.display-1.fw-bold.text-danger {
    font-size: 8rem; /* Larger font size for prominence */
    font-weight: 700 !important;
    color: var(--error-red, #dc3545) !important; /* Ensure a strong red */
    margin-bottom: 1rem;
    line-height: 1;
    animation: bounceIn 1s ease-out; /* Simple animation for impact */
}

/* Animation for the error code */
@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1);
    }
}

/* Styling for the main error message */
.h4.mb-3 {
    color: var(--text-dark, #212529);
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1.5rem !important;
}

/* Styling for the general description paragraph */
.section .container .row .col-md-8 p:not(.text-muted) { /* Targeting the specific p, excluding debug info */
    font-size: 1.1rem;
    color: var(--text-secondary, #6c757d);
    margin-bottom: 2rem;
}

/* Styling for the italicized error description */
p.text-muted.fst-italic.mb-4 {
    color: var(--text-light-muted, #999) !important;
    font-style: italic !important;
    font-size: 1rem;
    margin-top: -1rem; /* Bring it closer to the main message */
}

/* Button styling */
.btn-primary {
    background-color: var(--primary-color, #B23D13); /* Example primary color from auth-section */
    border-color: var(--primary-color, #B23D13);
    color: white;
    padding: 0.8rem 2rem;
    font-size: 1.1rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    text-decoration: none; /* Ensure no underline */
}

.btn-primary:hover {
    background-color: var(--primary-hover, #dc7628); /* Lighter shade on hover */
    border-color: var(--primary-hover, #dc7628);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(178, 61, 19, 0.2);
}

/* Styling for debug alert boxes */
.alert-warning {
    background-color: var(--alert-warning-bg, #fff3cd);
    border-color: var(--alert-warning-border, #ffeeba);
    color: var(--alert-warning-text, #664d03);
    text-align: left;
    border-radius: 0.5rem;
    padding: 1.5rem;
    max-width: 600px; /* Constrain width as in HTML */
    margin: 2rem auto; /* Center the alert */
}

.alert-info {
    background-color: var(--alert-info-bg, #d1ecf1);
    border-color: var(--alert-info-border, #bee5eb);
    color: var(--alert-info-text, #0c5460);
    text-align: left;
    border-radius: 0.5rem;
    padding: 1.5rem;
    max-width: 600px;
    margin: 2rem auto;
}

.alert-heading {
    color: inherit; /* Inherit color from alert */
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.alert hr {
    border-top-color: rgba(0,0,0,.1);
    margin: 1rem 0;
}

.alert pre {
    background-color: rgba(0, 0, 0, 0.05);
    padding: 0.75rem;
    border-radius: 0.25rem;
    overflow-x: auto; /* For long traceback lines */
    white-space: pre-wrap; /* Ensure wrapping within pre tags */
    word-break: break-all; /* Break long words */
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .display-1.fw-bold.text-danger {
        font-size: 6rem;
    }

    .h4.mb-3 {
        font-size: 1.75rem;
    }

    .section .container .row .col-md-8 p:not(.text-muted) {
        font-size: 1rem;
    }

    .error-card {
        padding: 2rem;
    }
}

@media (max-width: 576px) {
    .display-1.fw-bold.text-danger {
        font-size: 4rem;
    }

    .h4.mb-3 {
        font-size: 1.5rem;
    }

    .btn-primary {
        width: 100%;
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
}