/* CRITICAL: Hide original footer completely - works during loading */
#footer .credit,
#footer p:not(.codak-copyright),
#footer>div:not(.codak-footer-container),
#footer>*:not(.codak-footer-container),
footer p.credit,
footer .credit {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    position: absolute !important;
    left: -9999px !important;
}

/* Force footer styling from the start */
#footer,
footer {
    display: block !important;
    visibility: visible !important;
    width: 100% !important;
    padding: 12px 20px !important;
    margin: 0 !important;
    border: none !important;
    border-top: none !important;
    border-bottom: none !important;
    background: transparent !important;
    min-height: 40px !important;
    text-align: center !important;
}

/* Remove any white lines */
body {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* Extra aggressive hiding for loading stage */
footer p.credit small,
footer .credit small,
footer p.credit a,
footer .credit a {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

#footer::before,
#footer::after {
    display: none !important;
}

/* Codak Footer Container */
.codak-footer-container {
    display: block !important;
    visibility: visible !important;
    width: 100% !important;
    text-align: center !important;
    background: transparent !important;
}

/* Copyright Text */
.codak-copyright {
    display: inline-block !important;
    visibility: visible !important;
    color: #333 !important;
    font-size: 13px !important;
    font-weight: normal !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
}

/* Codak Link */
.codak-link {
    color: #333 !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    transition: color 0.2s ease !important;
}

.codak-link:hover {
    color: #000 !important;
    text-decoration: underline !important;
}

/* Responsive */
@media (max-width: 768px) {

    #footer,
    footer {
        padding: 10px 15px !important;
    }

    .codak-copyright {
        font-size: 12px !important;
    }
}