/* Layout Fixes for Full Width Header and Footer */

/* Reset page wrapper and content container */
.page-wrapper {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box;
}

.content {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box;
}

/* Header full width fixes */
header,
.header-container,
.modern-header,
.header-wrapper {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box;
}

/* Footer full width fixes */
footer,
.footer-container,
.footer-wrapper {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box;
}

/* Container inside content can have max-width */
.container,
.container-fluid {
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 15px;
    padding-right: 15px;
}

/* Modal positioning fixes */
.modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    z-index: 1050 !important;
    width: 100% !important;
    height: 100% !important;
    outline: 0;
    display: none;
}

.modal.show {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.modal-backdrop {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    z-index: 1040 !important;
    width: 100vw !important;
    height: 100vh !important;
    background-color: rgba(0, 0, 0, 0.5) !important;
}

.modal-dialog {
    position: relative !important;
    margin: 1.75rem auto !important;
    max-width: 500px !important;
    width: calc(100% - 3.5rem) !important;
    pointer-events: none;
}

.modal-content {
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    pointer-events: auto !important;
    background-color: #fff !important;
    background-clip: padding-box !important;
    border: 1px solid rgba(0, 0, 0, 0.2) !important;
    border-radius: 0.3rem !important;
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.5) !important;
    outline: 0 !important;
}

/* Footer responsive design fixes */
.footer-category-column {
    padding-left: 15px;
    padding-right: 15px;
}

/* Mobile footer */
@media (max-width: 767px) {
    .footer-category-column {
        display: none !important;
    }
    
    #footer-mobile {
        display: block !important;
    }
    
    .modal-dialog {
        margin: 1rem !important;
        width: calc(100% - 2rem) !important;
    }
}

/* Desktop footer */
@media (min-width: 768px) {
    #footer-mobile {
        display: none !important;
    }
    
    .footer-category-column {
        display: block !important;
    }
}

/* Ensure no horizontal scroll */
html, body {
    overflow-x: hidden;
    width: 100%;
    margin: 0;
    padding: 0;
}

/* Fix any containers that might be too wide */
.row {
    margin-left: 0;
    margin-right: 0;
}

.col-12, .col-md-12, .col-lg-12, .col-xl-12 {
    padding-left: 0;
    padding-right: 0;
}

/* Specific content sections can have constrained width */
.content-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}
