/**
 * Footer styles for Gregal Cloud Portal
 * AdminLTE 3.2.0 compatible - Fix positioning issues
 * 
 * @author Gregal Cloud
 * @version 1.0.0
 */

/* Override AdminLTE footer positioning issues */
.main-footer {
    /* Reset positioning completely */
    position: static !important;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
    z-index: auto !important;
    
    /* Clean AdminLTE styling */
    background-color: #f4f4f4 !important;
    border-top: 1px solid #dee2e6 !important;
    padding: 1rem !important;
    margin-left: 250px !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    color: #495057 !important;
    font-size: 0.875rem !important;
    transition: margin-left .3s ease-in-out !important;
}

/* Responsive sidebar adjustments */
.sidebar-collapse .main-footer {
    margin-left: 4.6rem !important;
}

@media (max-width: 767.98px) {
    .main-footer {
        margin-left: 0 !important;
    }
}

/* Clean pseudo-elements */
.main-footer::before,
.main-footer::after,
.content-wrapper::after,
.content-wrapper::before {
    display: none !important;
    content: none !important;
}

/* Footer links */
.main-footer a {
    color: #007bff !important;
}

.main-footer a:hover {
    color: #0056b3 !important;
}

/* Version float */
.main-footer .float-right {
    float: right !important;
}

/* Footer content styling */
.main-footer .row {
    margin: 0 !important;
}

.main-footer .col-md-8,
.main-footer .col-md-4 {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.main-footer small {
    font-size: 0.75rem !important;
    line-height: 1.4 !important;
}

.main-footer .text-muted {
    color: #6c757d !important;
}

.main-footer .text-muted:hover {
    color: #495057 !important;
    text-decoration: none !important;
}

.main-footer i {
    margin-right: 4px !important;
}

/* Social media links styling */
.main-footer .fab {
    font-size: 1rem !important;
    margin-right: 8px !important;
}

.main-footer .fab:hover {
    color: #007bff !important;
}

/* Fix sidebar height issue - minimal override approach */
.wrapper {
    min-height: 100vh;
}

.main-sidebar {
    height: 100vh;
    overflow-y: auto;
}

.content-wrapper {
    min-height: calc(100vh - 3.5rem);
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
    .main-footer .col-md-8,
    .main-footer .col-md-4 {
        text-align: left !important;
        margin-bottom: 0.5rem !important;
    }
    
    .main-footer .text-right {
        text-align: left !important;
    }
    
    .main-footer .float-right {
        float: none !important;
        display: block !important;
    }
}