/* /Layout/MainLayout.razor.rz.scp.css */
.page[b-tv91azknaz] {
    position: relative;
    display: flex;
    flex-direction: column;
}

main[b-tv91azknaz] {
    flex: 1;
}

.sidebar[b-tv91azknaz] {
    background-image: linear-gradient(180deg, rgb(5, 39, 103) 0%, #3a0647 70%);
}

.top-row[b-tv91azknaz] {
    background-color: #f7f7f7;
    border-bottom: 1px solid #d6d5d5;
    justify-content: flex-end;
    height: 3.5rem;
    display: flex;
    align-items: center;
}

    .top-row[b-tv91azknaz]  a, .top-row[b-tv91azknaz]  .btn-link {
        white-space: nowrap;
        margin-left: 1.5rem;
        text-decoration: none;
    }

    .top-row[b-tv91azknaz]  a:hover, .top-row[b-tv91azknaz]  .btn-link:hover {
        text-decoration: underline;
    }

    .top-row[b-tv91azknaz]  a:first-child {
        overflow: hidden;
        text-overflow: ellipsis;
    }

@media (max-width: 640.98px) {
    .top-row[b-tv91azknaz] {
        justify-content: space-between;
    }

    .top-row[b-tv91azknaz]  a, .top-row[b-tv91azknaz]  .btn-link {
        margin-left: 0;
    }
}

@media (min-width: 641px) {
    .page[b-tv91azknaz] {
        flex-direction: row;
    }

    .sidebar[b-tv91azknaz] {
        width: 250px;
        height: 100vh;
        position: sticky;
        top: 0;
    }

    .top-row[b-tv91azknaz] {
        position: sticky;
        top: 0;
        z-index: 1;
    }

    .top-row.auth[b-tv91azknaz]  a:first-child {
        flex: 1;
        text-align: right;
        width: 0;
    }

    .top-row[b-tv91azknaz], article[b-tv91azknaz] {
        padding-left: 2rem !important;
        padding-right: 1.5rem !important;
    }
}
/* /Layout/NavMenu.razor.rz.scp.css */
/* Top Navigation Bar Styles */
.top-navbar[b-ap104bh586] {
    background: linear-gradient(135deg, #1976d2 0%, #1565c0 100%) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    transition: all 0.3s ease;
    height: 70px;
}

.top-navbar .brand-section[b-ap104bh586] {
    min-width: 250px;
}

.top-navbar .brand-icon[b-ap104bh586] {
    color: white !important;
    font-size: 2rem !important;
}

.top-navbar .brand-text[b-ap104bh586] {
    color: white !important;
    font-weight: 600;
  font-size: 1.1rem !important;
    white-space: nowrap;
}

/* Desktop Navigation Links */
.nav-links-desktop[b-ap104bh586] {
  flex: 1;
    justify-content: center;
    gap: 4px;
}

.nav-link-desktop[b-ap104bh586] {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 0.95rem !important;
    font-weight: 500 !important;
    padding: 10px 20px !important;
    border-radius: 8px !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
height: 48px;
    position: relative;
}

.nav-link-desktop:hover[b-ap104bh586] {
    background-color: rgba(255, 255, 255, 0.15) !important;
    color: white !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.nav-link-desktop.active[b-ap104bh586] {
    background-color: rgba(13, 71, 161, 0.95) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3), inset 0 1px 3px rgba(255, 255, 255, 0.2);
}

.nav-link-desktop.active:hover[b-ap104bh586] {
    background-color: rgba(13, 71, 161, 1) !important;
    color: #ffffff !important;
    transform: translateY(-1px);
}

/* Fix icon color for active state */
.nav-link-desktop.active .mud-icon-root[b-ap104bh586] {
    color: #ffffff !important;
}

.nav-link-desktop .mud-button-label[b-ap104bh586] {
  font-family: 'IRANSans', 'YekanBakh', 'Tahoma', 'Arial', sans-serif !important;
}

/* User Actions Area */
.top-navbar .mud-icon-button[b-ap104bh586] {
    color: white !important;
}

.top-navbar .mud-icon-button:hover[b-ap104bh586] {
    background-color: rgba(255, 255, 255, 0.15) !important;
}

/* Mobile Drawer Styles */
.mobile-drawer-header[b-ap104bh586] {
    background: linear-gradient(135deg, #1976d2 0%, #1565c0 100%);
    padding: 20px;
}

.mobile-drawer-header .mud-text[b-ap104bh586] {
    color: white !important;
}

.mobile-drawer-header .mud-icon-button[b-ap104bh586] {
 color: white !important;
}

.mobile-nav-menu[b-ap104bh586] {
    padding: 16px 8px;
}

.mobile-nav-menu .mud-nav-link[b-ap104bh586] {
    border-radius: 8px;
    margin-bottom: 4px;
    padding: 12px 16px !important;
    font-size: 1rem !important;
    transition: all 0.3s ease;
}

.mobile-nav-menu .mud-nav-link:hover[b-ap104bh586] {
    background-color: rgba(25, 118, 210, 0.08);
}

.mobile-nav-menu .mud-nav-link-selected[b-ap104bh586] {
    background-color: rgba(13, 71, 161, 0.95) !important;
    color: #ffffff !important;
    font-weight: 700;
}

.mobile-nav-menu .mud-nav-link .mud-icon-root[b-ap104bh586] {
    margin-left: 12px;
}

/* Utility Classes */
.full-width[b-ap104bh586] {
    width: 100%;
}

/* Responsive Design */
@media (max-width: 1279px) {
    .top-navbar[b-ap104bh586] {
        height: 64px;
    }

    .top-navbar .brand-text[b-ap104bh586] {
        font-size: 1rem !important;
 }

    .nav-link-desktop[b-ap104bh586] {
        padding: 8px 16px !important;
     font-size: 0.9rem !important;
    }
}

@media (max-width: 959px) {
    .top-navbar[b-ap104bh586] {
        height: 56px;
    }

    .top-navbar .brand-section[b-ap104bh586] {
        min-width: auto;
    }

    .top-navbar .brand-text[b-ap104bh586] {
   display: none;
    }

    .top-navbar .brand-icon[b-ap104bh586] {
   font-size: 1.75rem !important;
    }
}

@media (max-width: 599px) {
    .top-navbar[b-ap104bh586] {
        padding: 0 8px !important;
    }
}

/* Animation for drawer */
.mud-drawer-temporary[b-ap104bh586] {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Fix for MudBlazor spacing issues */
.mud-appbar .mud-container[b-ap104bh586] {
    padding-left: 16px;
    padding-right: 16px;
}

/* Ensure proper RTL support */
.nav-link-desktop .mud-button-start-icon-margin[b-ap104bh586] {
    margin-right: 8px;
    margin-left: 0;
}

.mobile-nav-menu .mud-nav-link .mud-icon-root[b-ap104bh586] {
    margin-right: 0;
    margin-left: 12px;
}
