/* =========
   FOOTER 
   ========= */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap');

:root {
    --footer-bg: #1A4E63;
    --footer-text: #E6ECEF;
    --footer-link: #A1C9D3;
    --footer-link-hover: #D4E9EE;
    --footer-border: rgba(161, 201, 211, 0.2);
}

/* Footer Container */
.footer {
    background: var(--footer-bg);
    color: var(--footer-text);
    font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    padding: 0;
    margin-top: auto;
    margin-bottom: 0;
    width: 100%;
}

/* Footer Bottom */
.footer-bottom {
    padding: 1.5rem 0;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-copyright {
    font-size: 14px;
    color: var(--footer-text);
    margin: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.footer-legal-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

    .footer-legal-links a {
        color: var(--footer-link);
        text-decoration: none;
        font-size: 14px;
        font-weight: 400;
        transition: color 0.2s ease;
    }

        .footer-legal-links a:hover {
            color: var(--footer-link-hover);
        }

/* Build Version Badge */
.footer-build-badge {
    display: inline-block;
    background: rgba(161, 201, 211, 0.15);
    color: var(--footer-link);
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 767.98px) {
    .footer-bottom {
        padding: 1.25rem 0;
    }

    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .footer-copyright {
        flex-direction: column;
        gap: 0.5rem;
    }

    .footer-legal-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    .footer-build-badge {
        margin-left: 0;
    }
}

@media (max-width: 575.98px) {
    .footer-bottom {
        padding: 1rem 0;
    }

    .footer-copyright,
    .footer-legal-links a {
        font-size: 13px;
    }

    .footer-legal-links {
        gap: 0.75rem;
    }
}

/* Ensure footer stays at bottom */
body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

/* Make the outer flex container take full height */
body > .d-flex {
    min-height: 100vh;
}

#content {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

#content > .container-fluid {
    flex: 1 0 auto;
    padding-bottom: 0;
}

#content > .container-fluid > main {
    padding-bottom: 1rem;
}

.footer {
    margin-top: auto;
    margin-bottom: 0 !important;
    flex-shrink: 0;
}
