/* app/static/css/style.css */
body {
    padding-bottom: 60px; /* Add padding for footer */
    background-color: #f8f9fa; /* Light grey background */
}

.code-block {
    background-color: #e9ecef; /* Slightly darker background for code */
    padding: 15px;
    border-radius: 5px;
    border: 1px solid #ced4da;
    overflow-x: auto; /* Allow horizontal scrolling for long code lines */
    white-space: pre-wrap; /* Wrap long lines within the pre block */
    word-wrap: break-word; /* Break words if needed */
    font-family: Consolas, "Courier New", monospace; /* Monospace font */
    font-size: 0.9em;
    min-height: 200px; /* Ensure a minimum height */
    max-height: 400px; /* Limit max height, maybe add scroll */
    overflow-y: auto; /* Add vertical scroll if content exceeds max-height */
}

.card {
    margin-bottom: 1.5rem;
}

.card-body {
    display: flex;
    flex-direction: column;
}

footer {
    padding: 20px 0;
    margin-top: 40px;
    border-top: 1px solid #e7e7e7;
}

/* Ensure cards in a row have similar height */
.row {
    display: flex;
    flex-wrap: wrap;
}

.row > [class*='col-'] {
    display: flex;
    flex-direction: column;
}

.card.h-100 {
    height: 100%; /* Make card fill column height */
}

/* Adjustments for smaller screens */
@media (max-width: 767.98px) {
    .row > [class*='col-'] {
        margin-bottom: 1rem; /* Add space between stacked cards */
    }
    .code-block {
        min-height: 150px;
        max-height: 300px;
    }
}

/* Fade-in animation */
.fade-in {
    opacity: 0;
    transform: translateY(20px); /* Start slightly lower */
    transition: opacity 0.6s ease-out, transform 0.6s ease-out; /* Smoother ease-out */
}

.fade-in.show {
    opacity: 1;
    transform: translateY(0); /* Move to final position */
}