


/* Main content should grow to fill available space */
main, .gc-home, .content-wrapper, 
.outer-container, .ticket-container,
.maintenance-container, .background-image,
.container, .ladder-container, .transparentbox {
    flex: 1;
}

/* Fallback for pages without specific content wrappers */
body > *:not(footer):not(script):not(.navbar-desktop):not(.navbar-mobile):not(.mobile-top-navbar):not(.mobile-bottom-navbar) {
    flex: 1;
}

/* Override for specific containers that shouldn't expand */
.modal, .popup, .tooltip, .dropdown-content,
.floating-drawer, .mobile-profile-drawer {
    flex: none !important;
}

/* Footer styling to match site theme */
footer {
    background: linear-gradient(135deg, #0B0B13 0%, #15152A 50%, #121223 100%);
    border-top: 2px solid transparent;
    border-image: linear-gradient(90deg, #8A5CFF, #FF3CAC, #8A5CFF) 1;
    color: #E7E9FF;
    padding: 20px;
    margin-top: auto; /* Push footer to bottom */
    position: relative;
    overflow: hidden;
    flex-shrink: 0; /* Prevent footer from shrinking */
}

/* Add subtle glow effect */
footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #8A5CFF, #FF3CAC, #8A5CFF, transparent);
    box-shadow: 0 0 12px rgba(138, 92, 255, 0.4);
}

/* Footer content layout */
.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Copyright section */
#footer-center {
    flex: 1;
    text-align: center;
    font-size: 14px;
    color: #99A0C2;
}

#footer-center p {
    margin: 0;
    font-weight: 300;
}

/* Links section */
#footer-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

footer a {
    color: #E7E9FF;
    text-decoration: none;
    font-size: 14px;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(138, 92, 255, 0.2);
}

footer a:hover {
    color: #8A5CFF;
    background: rgba(138, 92, 255, 0.1);
    border-color: #8A5CFF;
    text-shadow: 0 0 8px rgba(138, 92, 255, 0.6);
    transform: translateY(-1px);
}

/* Separator styling */
.footer-separator {
    color: #99A0C2;
    margin: 0 4px;
    font-size: 12px;
}

/* Responsive design */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
    
    #footer-center {
        order: 2;
    }
    
    #footer-right {
        order: 1;
        justify-content: center;
    }
    
    footer a {
        padding: 6px 10px;
        font-size: 13px;
    }
    
    /* Account for mobile navbar spacing */
    body.mobile-nav {
        padding-bottom: 55px;
    }
}

@media (max-width: 576px) {
    #footer-right {
        flex-direction: column;
        gap: 8px;
    }
    
    .footer-separator {
        display: none;
    }
    
    footer a {
        width: 100%;
        text-align: center;
        max-width: 200px;
    }
}