/* Reusable Footer Styles */
.site-footer {
    background: linear-gradient(135deg, #002868 0%, #001a4d 100%);
    color: white;
    padding: 2rem 1rem;
    margin-top: auto;
    border-top: 3px solid #DC143C;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-link {
    color: white !important;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.footer-link:hover {
    color: #DC143C !important;
    background: rgba(255, 255, 255, 0.1);
}

.footer-separator {
    color: rgba(255, 255, 255, 0.5);
    font-weight: 300;
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 0.9rem;
    font-weight: 400;
}

/* Ensure body uses flexbox for sticky footer - only on simple pages */
body:not(.dashboard-body):not(.login-body) {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* For dashboard pages - work with existing sidebar layout */
body.dashboard-body .main-content {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Footer inside main-content for dashboard layouts */
body.dashboard-body .site-footer {
    width: 100%;
    margin-top: auto;
}

/* For simple pages without main-content wrapper */
body:not(.dashboard-body):not(.login-body) > *:not(.site-footer) {
    flex: 1 0 auto;
}

.site-footer {
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .site-footer {
        padding: 1.5rem 1rem;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .footer-separator {
        display: none;
    }
    
    .footer-copyright {
        font-size: 0.85rem;
    }
}
