﻿/* Hide scrollbar for Chrome, Safari and Opera */
.MO-page::-webkit-scrollbar {
    width: 0;
    height: 0;
}

/* Hide scrollbar for IE, Edge and Firefox */
.MO-page {
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
}

/* Main Layout Styles */
.MO-page {
    display: flex;
    min-height: 100vh;
    overflow: auto; /* Allow scrolling while hiding scrollbar */
}

/* Main Content Area */
.MO-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    transition: margin-left 0.3s ease;
    position: relative;
}

.MO-sidebar-expanded {
    margin-left: 250px;
}

.MO-sidebar-collapsed {
    margin-left: 60px;
}

/* Top Bar Styling */
.MO-topbar {
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 0 20px;
    margin-top: 0px;
    margin-bottom: -10px;
    position: sticky;
    top: 0;
    z-index: 100;
    transition: box-shadow 0.3s ease;
}

    .MO-topbar.scrolled {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    }

/* UserHeader Component Styling */
.notification-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: #f5f6f7;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

    .notification-icon:hover {
        background-color: #e2e8f0;
    }

    .notification-icon i {
        font-size: 1.25rem;
        color: #4a5568;
    }

.notification-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #e53e3e;
    border: 2px solid #ffffff;
}

.user-profile {
    padding: 6px 12px;
    border-radius: 8px;
    transition: background-color 0.2s ease;
}

    .user-profile:hover {
        background-color: #f5f6f7;
    }

.user-name {
    font-weight: 600;
    color: #2d3748;
    font-size: 14px;
    white-space: nowrap;
}

.user-avatar {
    position: relative;
    overflow: hidden;
    border-radius: 50%;
    border: 2px solid #e6e8eb;
    transition: transform 0.2s ease;
}

    .user-avatar:hover {
        transform: scale(1.05);
    }

    .user-avatar img {
        border: none !important;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    }

/* Content Wrapper */
.MO-content-wrapper {
    flex: 1;
    padding: 24px;
}

.MO-content-container {
    max-width: 70%;
    margin: auto;
    border-radius: 8px;
    padding: 24px;
    min-height: calc(100vh - 180px);
}

/* Footer Styling */
.MO-footer {
    padding: 16px 24px;
    text-align: center;
    color: #718096;
    font-size: 13px;
    border-top: 1px solid #eaedf1;
    margin-top: auto;
}

/* Page Loading Transition Prevention */
.loading-page .MO-main,
.loading-page .MO-topbar {
    transition: none !important;
}

/* Bootstrap Icons Enhancements */
.bi {
    line-height: 1;
}

.bi-bell {
    font-size: 1.25rem;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .MO-sidebar-expanded,
    .MO-sidebar-collapsed {
        margin-left: 0;
    }

    .MO-content-wrapper {
        padding: 16px;
    }

    .MO-content-container {
        padding: 16px;
    }

    .user-name {
        display: none;
    }

    .gap-4 {
        gap: 0.75rem !important;
    }
}
