/**======================================================================
=========================================================================
Template Name: Dashboard Bootstrap 5 Admin Template
Author: Rajodiya Infotech
Support: [support link]
File: style.css
=========================================================================
=================================================================================== */
.pct-customizer {
    position: fixed;
    right: -360px;
    top: 160px;
    z-index: 1025;
    transition: all 0.15s ease-in-out;
}

.pct-customizer.active {
    right: 0;
}

.pct-customizer.active .pct-c-btn {
    padding-right: 0;
}

.pct-customizer .pct-c-btn {
    display: block;
    position: absolute;
    right: 100%;
    top: 0;
    transition: all 0.15s ease-in-out;
}

.pct-customizer .pct-c-btn .btn {
    padding: 17.5px 17.5px;
    display: block;
    border-radius: 8px 0 0 8px;
    box-shadow: 0 9px 9px -1px rgba(81, 69, 157, 0.3);
}

.pct-customizer .pct-c-btn .btn + .btn {
    margin-top: 8px;
}

.pct-customizer .pct-c-content {
    width: 360px;
    position: relative;
    top: 0;
    right: 0;
    background: #fff;
    overflow: hidden;
    border-radius: 0 0 0 4px;
    box-shadow: -9px 0 18px -1px rgba(69, 90, 100, 0.1);
}

.pct-customizer .pct-c-content .pct-header {
    padding: 20px 30px;
    border-bottom: 1px solid #f1f1f1;
}

.pct-customizer .pct-c-content .pct-body {
    padding: 20px 30px;
}

@media (max-width: 1024px) {
    .pct-customizer {
        display: none;
    }
}

.doc-img,
.theme-color {
    display: block;
    position: relative;
    padding: 0;
    margin-top: 10px;
    margin-bottom: 10px;
}

.doc-img > a,
  .theme-color > a {
    position: relative;
    width: 35px;
    height: 25px;
    border-radius: 3px;
    display: inline-block;
    background: #f8f9fd;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.28);
}

.doc-img > a + a,
    .theme-color > a + a {
    margin-left: 5px;
}

.doc-img > a span,
    .theme-color > a span {
    width: 100%;
    position: absolute;
}

.doc-img > a span:after, .doc-img > a span:before,
      .theme-color > a span:after,
      .theme-color > a span:before {
    content: "";
    height: 100%;
    position: absolute;
}

.doc-img > a span:before,
      .theme-color > a span:before {
    width: 32%;
    left: 0;
    background: #1c232f;
}

.doc-img > a span:after,
      .theme-color > a span:after {
    width: 70%;
    right: 0;
    background: #f8f9fd;
}

.doc-img > a > span:nth-child(1),
    .theme-color > a > span:nth-child(1) {
    height: 40%;
    top: 0;
}

.doc-img > a > span:nth-child(1):after,
      .theme-color > a > span:nth-child(1):after {
    background: #fff;
}

.doc-img > a > span:nth-child(2),
    .theme-color > a > span:nth-child(2) {
    height: 66%;
    bottom: 0;
}

.doc-img.header-color > a[data-value="bg-primary"] > span:nth-child(1):after,
  .theme-color.header-color > a[data-value="bg-primary"] > span:nth-child(1):after {
    background: #51459d;
}

.doc-img.header-color > a[data-value="bg-success"] > span:nth-child(1):after,
  .theme-color.header-color > a[data-value="bg-success"] > span:nth-child(1):after {
    background: #6fd943;
}

.doc-img.header-color > a[data-value="bg-info"] > span:nth-child(1):after,
  .theme-color.header-color > a[data-value="bg-info"] > span:nth-child(1):after {
    background: #3ec9d6;
}

.doc-img.header-color > a[data-value="bg-warning"] > span:nth-child(1):after,
  .theme-color.header-color > a[data-value="bg-warning"] > span:nth-child(1):after {
    background: #ffa21d;
}

.doc-img.header-color > a[data-value="bg-danger"] > span:nth-child(1):after,
  .theme-color.header-color > a[data-value="bg-danger"] > span:nth-child(1):after {
    background: #ff3a6e;
}

.doc-img.header-color > a[data-value="bg-dark"] > span:nth-child(1):after,
  .theme-color.header-color > a[data-value="bg-dark"] > span:nth-child(1):after {
    background: #1c232f;
}

.doc-img.brand-color > a[data-value="bg-primary"] > span:nth-child(1):before,
  .theme-color.brand-color > a[data-value="bg-primary"] > span:nth-child(1):before {
    background: #51459d;
}

.doc-img.brand-color > a[data-value="bg-success"] > span:nth-child(1):before,
  .theme-color.brand-color > a[data-value="bg-success"] > span:nth-child(1):before {
    background: #6fd943;
}

.doc-img.brand-color > a[data-value="bg-info"] > span:nth-child(1):before,
  .theme-color.brand-color > a[data-value="bg-info"] > span:nth-child(1):before {
    background: #3ec9d6;
}

.doc-img.brand-color > a[data-value="bg-warning"] > span:nth-child(1):before,
  .theme-color.brand-color > a[data-value="bg-warning"] > span:nth-child(1):before {
    background: #ffa21d;
}

.doc-img.brand-color > a[data-value="bg-danger"] > span:nth-child(1):before,
  .theme-color.brand-color > a[data-value="bg-danger"] > span:nth-child(1):before {
    background: #ff3a6e;
}

.doc-img.brand-color > a[data-value="bg-dark"] > span:nth-child(1):before,
  .theme-color.brand-color > a[data-value="bg-dark"] > span:nth-child(1):before {
    background: #1c232f;
}

.doc-img.themes-color > a[data-value="theme-1"],
  .theme-color.themes-color > a[data-value="theme-1"] {
    background: linear-gradient(141.55deg, rgba(81, 69, 157, 0) 3.46%, rgba(255, 58, 110, 0.6) 99.86%), #51459d;
}

.doc-img.themes-color > a[data-value="theme-2"],
  .theme-color.themes-color > a[data-value="theme-2"] {
    background: linear-gradient(141.55deg, rgba(81, 69, 157, 0) 3.46%, #4ebbd3 99.86%), #1f3996;
}

.doc-img.themes-color > a[data-value="theme-3"],
  .theme-color.themes-color > a[data-value="theme-3"] {
    background: linear-gradient(141.55deg, #6fd943 3.46%, #4b9b29 99.86%), #6fd943;
}

.doc-img.themes-color > a[data-value="theme-4"],
  .theme-color.themes-color > a[data-value="theme-4"] {
    background: linear-gradient(141.55deg, rgba(104, 94, 229, 0) 3.46%, #685ee5 99.86%), #584ed2;
}

.doc-img > a {
    width: 100px;
    height: 65px;
}

.dash-header[class*="bg-"], .dash-header.dark-header {
    box-shadow: none;
    background: #1c232f;
    color: #fff;
}

@media (min-width: 1025px) {
    .dash-header[class*="bg-"] .dash-head-link, .dash-header.dark-header .dash-head-link {
        color: #fff;
    }

    .dash-header[class*="bg-"] .dash-head-link i, .dash-header.dark-header .dash-head-link i {
        color: #fff;
    }

    .dash-header[class*="bg-"] .dash-head-link .material-icons-two-tone, .dash-header.dark-header .dash-head-link .material-icons-two-tone {
        background-color: #fff;
    }

    .dash-header[class*="bg-"] .dash-head-link.active, .dash-header[class*="bg-"] .dash-head-link:active, .dash-header[class*="bg-"] .dash-head-link:focus, .dash-header[class*="bg-"] .dash-head-link:hover, .dash-header.dark-header .dash-head-link.active, .dash-header.dark-header .dash-head-link:active, .dash-header.dark-header .dash-head-link:focus, .dash-header.dark-header .dash-head-link:hover {
        color: #fff;
        background: rgba(255, 255, 255, 0.15);
    }

    .dash-header[class*="bg-"] .dash-head-link.active .material-icons-two-tone, .dash-header[class*="bg-"] .dash-head-link:active .material-icons-two-tone, .dash-header[class*="bg-"] .dash-head-link:focus .material-icons-two-tone, .dash-header[class*="bg-"] .dash-head-link:hover .material-icons-two-tone, .dash-header.dark-header .dash-head-link.active .material-icons-two-tone, .dash-header.dark-header .dash-head-link:active .material-icons-two-tone, .dash-header.dark-header .dash-head-link:focus .material-icons-two-tone, .dash-header.dark-header .dash-head-link:hover .material-icons-two-tone {
        background-color: #fff;
    }

    .dash-header[class*="bg-"] .dash-head-link .user-desc, .dash-header.dark-header .dash-head-link .user-desc {
        color: rgba(255, 255, 255, 0.7);
    }
}

.dash-sidebar.light-sidebar {
    background: #fff;
    box-shadow: 0 1px 20px 0 rgba(69, 90, 100, 0.08);
}

.dash-sidebar.light-sidebar .dash-caption {
    color: #333333;
}

.dash-sidebar.light-sidebar .dash-navbar > .dash-item > .dash-link {
    border-radius: 12px;
    margin-left: 15px;
    margin-right: 15px;
    padding: 7px 10px 7px 7px;
}

.dash-sidebar.light-sidebar .dash-link {
    color: #333333;
    font-size: 14px;
}

.dash-sidebar.light-sidebar .dash-link .dash-micon {
    background-color: #fff;
    box-shadow: -3px 4px 23px rgba(0, 0, 0, 0.1);
}

.dash-sidebar.light-sidebar .dash-link .dash-micon i,
      .dash-sidebar.light-sidebar .dash-link .dash-micon svg {
    color: #525b69;
    stroke: #525b69;
    fill: #f2f2f2;
}

.dash-sidebar.light-sidebar .dash-link .dash-micon .material-icons-two-tone {
    background-color: #525b69;
}

.dash-sidebar.light-sidebar .dash-link .dash-arrow {
    margin-top: 7px;
}

.dash-sidebar.light-sidebar .dash-link:active, .dash-sidebar.light-sidebar .dash-link:focus, .dash-sidebar.light-sidebar .dash-link:hover {
    color: #51459d;
}

.dash-sidebar.light-sidebar .dash-submenu .dash-link .dash-arrow {
    margin-top: 2px;
}

.dash-sidebar.light-sidebar .dash-item.active > .dash-link,
  .dash-sidebar.light-sidebar .dash-item:hover > .dash-link {
    color: #51459d;
}

.dash-sidebar.light-sidebar .dash-item.active > .dash-link i,
    .dash-sidebar.light-sidebar .dash-item:hover > .dash-link i {
    color: #51459d;
}

.dash-sidebar.light-sidebar .dash-item.active > .dash-link .dash-micon i.material-icons-two-tone,
    .dash-sidebar.light-sidebar .dash-item:hover > .dash-link .dash-micon i.material-icons-two-tone {
    background-color: #51459d;
}

.dash-sidebar.light-sidebar .dash-navbar > .dash-item.active > .dash-link {
    font-weight: 700;
}

.dash-sidebar.light-sidebar .dash-navbar > .dash-item.active > .dash-link, .dash-sidebar.light-sidebar .dash-navbar > .dash-item:focus > .dash-link, .dash-sidebar.light-sidebar .dash-navbar > .dash-item:hover > .dash-link {
    box-shadow: -6px 11px 19px rgba(0, 0, 0, 0.04);
    background: #fff;
    color: #333333;
}

.minimenu .dash-sidebar.light-sidebar .dash-navbar > .dash-item > .dash-link {
    padding: 20px 25px;
    margin-left: 0;
    margin-right: 0;
    border-radius: 0;
}

.minimenu .dash-sidebar.light-sidebar .dash-item .dash-item:hover > .dash-link {
    background: transparent;
}

.minimenu .dash-sidebar.light-sidebar .dash-submenu {
    box-shadow: 0 1px 20px 0 rgba(69, 90, 100, 0.08);
    background: #fff;
}

.dash-horizontal .topbar.light-sidebar {
    background: #fff;
    box-shadow: 0 1px 20px 0 rgba(69, 90, 100, 0.08);
}

.dash-horizontal .topbar.light-sidebar .dash-link {
    color: #333333;
}

.dash-horizontal .topbar.light-sidebar .dash-link:active, .dash-horizontal .topbar.light-sidebar .dash-link:focus, .dash-horizontal .topbar.light-sidebar .dash-link:hover {
    color: #51459d;
}

.auth-wrapper ~ .pct-customizer {
    display: none;
}

/* Mobile sidebar overlay */
.dash-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1040;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
}

/* Mobile sidebar active state */
.dash-sidebar.mob-sidebar-active {
    transform: translateX(0);
    visibility: visible;
}

/* Mobile sidebar styles - consolidated */
@media (max-width: 1024px) {
    /* Hide sidebar by default on mobile - from right side */
    .dash-sidebar {
        display: none !important;
        position: fixed !important;
        top: 0 !important;
        right: 0 !important;
        height: 100vh !important;
        width: 280px !important;
        transform: translateX(100%) !important;
        visibility: hidden !important;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
        z-index: 1050 !important;
        background: #fff !important;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1) !important;
        overflow-y: auto !important;
        opacity: 0 !important;
    }
    
    /* Show sidebar when active - with highest priority */
    .dash-sidebar.mob-sidebar-active {
        display: block !important;
        position: fixed !important;
        top: 0 !important;
        right: 0 !important;
        height: 100vh !important;
        width: 280px !important;
        transform: translateX(0) !important;
        visibility: visible !important;
        opacity: 1 !important;
        z-index: 9999 !important;
        background: #fff !important;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1) !important;
        overflow-y: auto !important;
    }
    
    /* Force all sidebar elements to be visible when active */
    .dash-sidebar.mob-sidebar-active * {
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    /* Ensure specific sidebar components are visible */
    .dash-sidebar.mob-sidebar-active .navbar-wrapper,
    .dash-sidebar.mob-sidebar-active .navbar-content,
    .dash-sidebar.mob-sidebar-active .dash-navbar,
    .dash-sidebar.mob-sidebar-active .dash-navbar .dash-item {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    /* Override any conflicting desktop styles */
    .dash-sidebar.mob-sidebar-active.active {
        transform: translateX(0) !important;
    }
}

/* Hamburger icon animation */
.hamburger.is-active .hamburger-inner,
.hamburger.is-active .hamburger-inner::before,
.hamburger.is-active .hamburger-inner::after {
    background-color: #dc3545 !important;
}

.hamburger.is-active .hamburger-inner {
    transform: rotate(45deg);
}

.hamburger.is-active .hamburger-inner::before {
    transform: rotate(-45deg) translate(-6px, -6px);
    opacity: 0;
}

.hamburger.is-active .hamburger-inner::after {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile header positioning for dropdown */
.dash-mob-header {
    position: relative;
}

.dash-mob-header .mobile-user-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 5px;
}

/* Ensure dropdown is positioned correctly */
.dash-mob-header .mobile-user-dropdown {
    position: absolute;
    top: 100%;
    left: 5px;
    margin-top: 5px;
}

/* Mobile Wallet Dropdown Styles */
.mobile-wallet-dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 5px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    min-width: 280px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-wallet-dropdown.show {
    opacity: 1;
    visibility: visible;
}

.mobile-wallet-info {
    padding: 16px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    align-items: center;
    gap: 12px;
}

.wallet-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
}

.wallet-details h6 {
    color: #495057;
    font-size: 14px;
    margin-bottom: 4px;
}

.balance-amount {
    color: #28a745;
    font-size: 18px;
    font-weight: 600;
}

/* Language Switcher Styles */
.mobile-language-switcher {
    padding: 16px;
}

.language-title {
    color: #6c757d;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.language-flags {
    display: flex;
    gap: 12px;
}

.language-flag {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 6px;
    text-decoration: none;
    color: #495057;
    transition: all 0.2s ease;
    border: 1px solid #e9ecef;
}

.language-flag:hover {
    background: #f8f9fa;
    border-color: #dee2e6;
    text-decoration: none;
    color: #495057;
}

.language-flag.active {
    background: #007bff;
    border-color: #007bff;
    color: white;
}

.language-flag img {
    border-radius: 2px;
}

.language-flag span {
    font-size: 13px;
    font-weight: 500;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .mobile-wallet-dropdown {
        min-width: 260px;
        left: 10px;
        right: 10px;
        transform: none;
    }
    
    .language-flags {
        flex-direction: column;
        gap: 8px;
    }
}

/* Mobile Order Cards for Subscription Sales */
.mobile-order-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

.mobile-order-card:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-color: #dee2e6;
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f1f3f4;
}

.order-number a {
    font-weight: 600;
    color: #007bff;
    text-decoration: none;
    font-size: 14px;
}

.order-number a:hover {
    color: #0056b3;
    text-decoration: underline;
}

.order-status .badge {
    font-size: 11px;
    padding: 4px 8px;
}

.order-details {
    margin-bottom: 16px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid #f8f9fa;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-row .label {
    color: #6c757d;
    font-size: 12px;
    font-weight: 500;
    min-width: 80px;
}

.detail-row .value {
    color: #495057;
    font-size: 13px;
    font-weight: 500;
    text-align: left;
}

.detail-row .value.amount {
    color: #28a745;
    font-weight: 600;
}

.order-actions {
    padding-top: 12px;
    border-top: 1px solid #f1f3f4;
}

.order-actions .btn {
    font-size: 13px;
    padding: 8px 16px;
}

/* Responsive table improvements */
@media (max-width: 768px) {
    .table-responsive {
        border: none;
        border-radius: 0;
    }
    
    .table {
        font-size: 13px;
    }
    
    .table th,
    .table td {
        padding: 8px 6px;
        vertical-align: middle;
    }
    
    .table .btn-sm {
        padding: 4px 8px;
        font-size: 11px;
    }
}

/* Ensure no horizontal scroll on mobile */
@media (max-width: 576px) {
    .card-body {
        padding: 12px;
    }
    
    .mobile-order-card {
        margin-left: -12px;
        margin-right: -12px;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
}

/* Search and Filter Controls */
.search-controls {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
}

.input-group-text {
    background: #e9ecef;
    border-color: #ced4da;
}

/* Sortable Table Headers */
.sortable {
    cursor: pointer;
    user-select: none;
    position: relative;
    transition: background-color 0.2s ease;
}

.sortable:hover {
    background-color: #f8f9fa;
}

.sort-icon {
    margin-left: 8px;
    opacity: 0.5;
    transition: all 0.2s ease;
}

.sort-icon.active {
    opacity: 1;
    color: #007bff;
}

.sortable:hover .sort-icon {
    opacity: 0.8;
}

/* Loading Spinner */
#loading-spinner {
    min-height: 100px;
}

.spinner-border {
    width: 3rem;
    height: 3rem;
}

/* Pagination Styles */
.pagination-info {
    color: #6c757d;
    font-size: 14px;
    font-weight: 500;
    margin-right: 1rem;
    width: 17%;
}

@media (max-width: 576px) {
    .pagination-info {
        display: none;
    }
}

.pagination-result {
    display: none;
}

.pagination-container .pagination {
    margin: 0;
}

.pagination-container .page-link {
    border-radius: 4px;
    margin: 0 2px;
    border: 1px solid #dee2e6;
}

.pagination-container .page-item.active .page-link {
    background-color: #007bff;
    border-color: #007bff;
}

/* Responsive Search Controls */
@media (max-width: 768px) {
    .search-controls .row > div {
        margin-bottom: 12px;
    }
    
    .input-group {
        margin-bottom: 8px;
    }
}

/* Status Filter Styling */
#status-filter option {
    padding: 8px;
}

/* Per Page Select Styling */
#per-page-select {
    min-width: 120px;
}

/* Pagination Icons Fix */
.pagination {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    flex-wrap: nowrap !important;
}

.pagination .page-item {
    list-style: none !important;
    margin: 0 !important;
    display: inline-block !important;
    float: none !important;
}

.pagination .page-link {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 38px !important;
    height: 38px !important;
    padding: 6px 10px !important;
    font-size: 14px !important;
    line-height: 1.2 !important;
    border-radius: 6px !important;
    border: 1px solid #dee2e6 !important;
    background-color: #fff !important;
    color: #495057 !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    position: relative !important;
    float: none !important;
    display: inline-flex !important;
}

.pagination .page-item:first-child .page-link,
.pagination .page-item:last-child .page-link {
    min-width: 42px !important;
    font-weight: 500 !important;
}

.pagination .page-link:hover {
    background-color: #e9ecef !important;
    border-color: #adb5bd !important;
    color: #495057 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
    text-decoration: none !important;
}

.pagination .page-item.active .page-link {
    background-color: #007bff !important;
    border-color: #007bff !important;
    color: white !important;
    box-shadow: 0 2px 4px rgba(0, 123, 255, 0.3) !important;
    font-weight: 600 !important;
}

.pagination .page-item.disabled .page-link {
    color: #adb5bd !important;
    background-color: #f8f9fa !important;
    border-color: #e9ecef !important;
    cursor: not-allowed !important;
    opacity: 0.7 !important;
    pointer-events: none !important;
}

/* Pagination Icons - Fixed */
.pagination .page-link i,
.pagination .page-link svg {
    width: 14px !important;
    height: 14px !important;
    display: inline-block !important;
    vertical-align: middle !important;
    line-height: 1 !important;
}

/* Previous/Next Icons */
.pagination .page-item:first-child .page-link i,
.pagination .page-item:last-child .page-link i {
    font-size: 12px !important;
    font-weight: bold !important;
}

/* Page Numbers */
.pagination .page-item:not(:first-child):not(:last-child) .page-link {
    font-weight: 500 !important;
    min-width: 36px !important;
}

/* Override any conflicting Bootstrap styles */
.pagination-container .pagination {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
}

.pagination-container .page-item {
    display: inline-block !important;
    float: none !important;
}

/* Force horizontal layout */
.pagination,
.pagination-container .pagination,
.pagination-container ul.pagination {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    width: auto !important;
    min-width: auto !important;
    text-align: center !important;
}

/* Ensure pagination container is centered */
.pagination-container {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
}

.h-5 {
    width: 30px;
}

.pagination li,
.pagination .page-item,
.pagination-container .pagination li,
.pagination-container .pagination .page-item {
    display: inline-block !important;
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    width: auto !important;
    min-width: auto !important;
}

/* Ensure links are inline */
.pagination a,
.pagination .page-link,
.pagination-container .pagination a,
.pagination-container .pagination .page-link {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    float: none !important;
    width: auto !important;
    min-width: 38px !important;
    height: 38px !important;
    padding: 6px 10px !important;
    margin: 0 !important;
    border-radius: 6px !important;
    text-decoration: none !important;
    white-space: nowrap !important;
}

/* Mobile responsive pagination */
@media (max-width: 576px) {
    .pagination,
    .pagination-container .pagination {
        gap: 2px !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
    }
    
    .pagination .page-link,
    .pagination-container .pagination .page-link {
        min-width: 36px !important;
        height: 36px !important;
        padding: 4px 8px !important;
        font-size: 13px !important;
    }
    
    .pagination .page-item:first-child .page-link,
    .pagination .page-item:last-child .page-link {
        min-width: 40px !important;
    }
}

/* Compact Language Flags in User Dropdown */
.mobile-language-section {
    padding: 12px 16px;
    border-top: 1px solid #e9ecef;
    background: #f8f9fa;
}

.language-flags-compact {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.language-flag-compact {
    display: inline-block;
    padding: 6px;
    border-radius: 4px;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.language-flag-compact:hover {
    background: #e9ecef;
    border-color: #dee2e6;
    transform: scale(1.1);
}

.language-flag-compact.active {
    background: #f4eeee;
    border-color: #007bff;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
}

.language-flag-compact img {
    border-radius: 2px;
    display: block;
    width: 20px;
    height: 14px;
    object-fit: cover;
    border: 1px solid #dee2e6;
}

/* Mobile User Profile Dropdown Styles */
.mobile-user-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    border: 1px solid #e3e6f0;
    border-radius: 0.35rem;
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15);
    min-width: 250px;
    z-index: 1050;
    display: none;
    flex-direction: column;
    margin-top: 5px;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease-in-out;
}

.mobile-user-dropdown.show {
    opacity: 1;
    transform: translateY(0);
}

.mobile-user-info {
    display: flex;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid #e3e6f0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 0.35rem 0.35rem 0 0;
}

.mobile-user-info img {
    margin-right: 0.3rem;
}

.user-details h6 {
    margin: 0;
    font-size: 0.875rem;
    font-weight: 600;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.user-details small {
    color: rgba(255, 255, 255, 0.6) !important;
    font-size: 0.75rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.mobile-user-menu {
    padding: 0.5rem 0;
}

.mobile-menu-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    color: rgba(255, 255, 255, 0.6) !important;
    text-decoration: none;
    transition: all 0.15s ease-in-out;
    border: none;
    background: none;
    width: 100%;
    text-align: right;
}

.mobile-menu-item:hover {
    background-color: #f8f9fc;
    color: #4e73df;
    text-decoration: none;
}

.mobile-menu-item i {
    margin-left: 0.75rem;
    font-size: 1rem;
    width: 16px;
    color: black;
}

.mobile-menu-item span {
    font-size: 0.875rem;
    color: black;
}

/* Dark mode support */
[data-bs-theme="dark"] .mobile-user-dropdown {
    background: #212529;
    border-color: #495057;
}

[data-bs-theme="dark"] .mobile-user-info {
    border-bottom-color: #495057;
}

[data-bs-theme="dark"] .mobile-user-info h6 {
    color: #e9ecef;
}

[data-bs-theme="dark"] .mobile-user-info small {
    color: #adb5bd;
}

[data-bs-theme="dark"] .mobile-menu-item {
    color: #e9ecef;
}

[data-bs-theme="dark"] .mobile-menu-item:hover {
    background-color: #343a40;
    color: #6ea8fe;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .mobile-user-dropdown {
        min-width: 200px;
        left: 10px;
    }
    
    .mobile-user-info {
        padding: 0.75rem;
    }
    
    .mobile-menu-item {
        padding: 0.5rem 0.75rem;
    }
}


