/* Custom AdminLTE overrides and fixes */

/* Ensure proper navbar styling */
.main-header.navbar {
    border-bottom: 1px solid #dee2e6;
}

/* Fix sidebar styling */
.main-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
}

/* Ensure content wrapper has proper margins */
.content-wrapper {
    margin-left: 250px;
    margin-top: 57px;
    min-height: calc(100vh - 57px);
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
    .content-wrapper {
        margin-left: 0;
    }
    
    .sidebar-open .content-wrapper {
        margin-left: 250px;
    }
}

/* Fix info boxes */
.info-box {
    box-shadow: 0 0 1px rgba(0,0,0,.125), 0 1px 3px rgba(0,0,0,.2);
    border-radius: .25rem;
    background: #fff;
    display: flex;
    margin-bottom: 1rem;
    min-height: 80px;
    padding: .5rem;
    position: relative;
    width: 100%;
}

.info-box .info-box-icon {
    border-radius: .25rem;
    align-items: center;
    display: flex;
    font-size: 1.875rem;
    justify-content: center;
    text-align: center;
    width: 80px;
}

.info-box .info-box-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.8;
    margin-left: .5rem;
    padding: 0 10px;
}

/* Fix card styling */
.card {
    box-shadow: 0 0 1px rgba(0,0,0,.125), 0 1px 3px rgba(0,0,0,.2);
    margin-bottom: 1rem;
}

/* Preloader styling */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    background-color: #f4f4f4;
}

/* Brand logo styling */
.brand-link {
    display: block;
    font-size: 1.25rem;
    font-weight: 300;
    line-height: 1.5;
    padding: .8125rem .5rem;
    text-decoration: none;
    white-space: nowrap;
}

.brand-image {
    float: left;
    line-height: .8;
    margin-left: .8rem;
    margin-right: .5rem;
    margin-top: -3px;
    max-height: 33px;
    width: auto;
}