/* ===================================
   Unified Backend UI System
   =================================== */

:root {
    --admin-primary: var(--brand-primary);
    --admin-primary-dark: var(--brand-primary-dark);
    --admin-primary-soft: rgba(31, 134, 255, 0.1);
    --admin-success: var(--brand-success);
    --admin-success-dark: #21915b;
    --admin-success-soft: rgba(16, 185, 129, 0.12);
    --admin-warning: var(--brand-warning);
    --admin-warning-dark: #d3881c;
    --admin-warning-soft: rgba(245, 158, 11, 0.12);
    --admin-danger: var(--brand-danger);
    --admin-danger-dark: #cf4444;
    --admin-danger-soft: rgba(239, 68, 68, 0.12);
    --admin-info: var(--brand-info);
    --admin-info-dark: #1f77d0;
    --admin-info-soft: rgba(14, 165, 233, 0.12);
    --admin-surface: var(--brand-surface);
    --admin-surface-muted: #f7f9fc;
    --admin-surface-alt: #eef3f8;
    --admin-border: var(--brand-border);
    --admin-border-strong: var(--brand-border-strong);
    --admin-text: var(--brand-ink);
    --admin-text-muted: var(--brand-ink-soft);
    --admin-shadow-sm: var(--brand-shadow-sm);
    --admin-shadow-md: var(--brand-shadow-md);
    --admin-shadow-lg: var(--brand-shadow-lg);
    --admin-radius-sm: var(--brand-radius-sm);
    --admin-radius-md: var(--brand-radius-md);
    --admin-radius-lg: var(--brand-radius-lg);
    --admin-gradient-primary: var(--brand-gradient-deep);
    --admin-gradient-success: linear-gradient(135deg, #48bb78 0%, #2f855a 100%);
    --admin-gradient-warning: linear-gradient(135deg, #f6ad55 0%, #dd6b20 100%);
    --admin-gradient-danger: linear-gradient(135deg, #fc8181 0%, #e53e3e 100%);
    --admin-gradient-info: linear-gradient(135deg, #59a9ff 0%, #0b3470 100%);
}

body {
    background: #f6f8fc;
    color: var(--admin-text);
}

body.theme-dashboard {
    background: linear-gradient(180deg, #f8fbff 0%, #f3f6fb 100%);
}

.dashboard-layout-shell {
    padding: 0 !important;
}

.main-content,
.page-content,
#vue {
    background: transparent;
}

.page-content {
    padding-bottom: 2rem;
}

#layout-wrapper {
    min-height: 100vh;
}

#layout-wrapper.dashboard-shell {
    position: relative;
    isolation: isolate;
    min-height: 100vh;
}

#layout-wrapper.dashboard-shell::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top, rgba(31, 134, 255, 0.06), transparent 30%);
    pointer-events: none;
    z-index: -1;
}

body.theme-dashboard #page-topbar {
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 1px 0 rgba(226, 232, 240, 0.9);
    border-bottom: 1px solid rgba(226, 232, 240, 0.92);
    padding: 0;
    z-index: 1030;
    backdrop-filter: blur(12px);
}

@media (min-width: 993px) {
    [dir="ltr"] body.theme-dashboard #page-topbar {
        left: 286px;
        right: 0;
    }

    [dir="rtl"] body.theme-dashboard #page-topbar {
        right: 286px;
        left: 0;
    }

    [dir="ltr"] body.theme-dashboard.vertical-collpsed #page-topbar {
        left: 88px;
    }

    [dir="rtl"] body.theme-dashboard.vertical-collpsed #page-topbar {
        right: 88px;
    }
}

.navbar-header {
    min-height: 76px;
    padding: 0 1.5rem;
    background: transparent;
}

.topbar-shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 76px;
    padding: 0;
    border-radius: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
}

.topbar-start,
.topbar-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.topbar-start {
    flex: 1 1 auto;
    min-width: 0;
}

.topbar-actions {
    flex-wrap: nowrap;
    justify-content: flex-end;
    gap: 0.5rem;
}

.topbar-heading {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.topbar-heading__eyebrow {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--admin-text-muted);
}

.topbar-heading__title {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--admin-text);
    white-space: nowrap;
    line-height: 1.2;
}

.header-item,
.toggle-btn {
    min-width: 42px;
    height: 42px;
    padding: 0 0.78rem !important;
    border-radius: 12px !important;
    color: var(--admin-text-muted);
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: none !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.header-item:hover,
.toggle-btn:hover,
.header-item:focus,
.toggle-btn:focus {
    background: rgba(31, 134, 255, 0.08) !important;
    color: var(--admin-primary) !important;
    border-color: rgba(31, 134, 255, 0.22) !important;
}

.admin-account-trigger {
    gap: 0.55rem;
    padding-inline: 0.55rem 0.8rem !important;
}

.admin-account-avatar {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.admin-account-name {
    color: var(--admin-text) !important;
    font-weight: 700;
}

.vertical-menu {
    top: 0;
    bottom: 0;
    width: 286px;
    min-width: 286px;
    max-width: 286px;
    background: #ffffff;
    border: 0;
    border-inline-end: 1px solid rgba(226, 232, 240, 0.92);
    border-radius: 0;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.04);
    overflow: hidden;
}

[dir="ltr"] .vertical-menu {
    left: 0;
}

[dir="rtl"] .vertical-menu {
    right: 0;
}

.vertical-menu::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(248, 250, 255, 0.98), rgba(255, 255, 255, 1));
    pointer-events: none;
}

.vertical-menu::after {
    display: none;
}

.sidebar-shell {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 0;
}

.sidebar-brand-row {
    min-height: 76px;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0 1rem;
    border-bottom: 1px solid rgba(226, 232, 240, 0.92);
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    position: relative;
    z-index: 1;
}

.sidebar-brand-row__logo-link {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.35rem;
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.92);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
    flex-shrink: 0;
}

.sidebar-brand-row__logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.sidebar-brand-row__content {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.sidebar-brand-row__eyebrow {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--admin-text-muted);
}

.sidebar-brand-row__title {
    font-size: 1rem;
    font-weight: 800;
    color: var(--admin-text);
    line-height: 1.25;
}

.sidebar-content-shell {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 0.9rem 0.9rem 1rem;
    min-height: 0;
}

.sidebar-menu-shell {
    flex: 1;
    overflow-y: auto;
    padding: 0.55rem 0 1rem;
}

.vertical-menu .user-wid {
    margin: 0 0 1rem;
    padding: 0.7rem 0.7rem !important;
    border-radius: 14px;
    background: linear-gradient(180deg, #fbfdff 0%, #f4f8ff 100%);
    border: 1px solid rgba(226, 232, 240, 0.92);
    border-bottom: 1px solid rgba(226, 232, 240, 0.92);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
    text-align: initial;
}

.admin-sidebar-user {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
    padding-top: 0.7rem !important;
    padding-bottom: 0.7rem !important;
}

.admin-sidebar-user .mt-3 {
    margin-top: 0 !important;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
}

.vertical-menu .user-img {
    position: relative;
    width: 64px;
    height: 64px;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 64px;
}

.vertical-menu .user-img::after {
    content: "";
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    bottom: 2px;
    right: calc(50% - 20px);
    background: #34d399;
    border: 2px solid #ffffff;
    box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.16);
}

.vertical-menu .user-wid .avatar-md {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.92);
    box-shadow: 0 8px 16px rgba(31, 41, 55, 0.08);
}

.admin-avatar-fallback {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1f86ff 0%, #0b3470 100%);
    color: #fff;
    font-weight: 800;
    letter-spacing: 0.04em;
    box-shadow: 0 10px 22px rgba(31, 134, 255, 0.24);
}

.admin-avatar-fallback--lg {
    width: 64px;
    height: 64px;
    font-size: 1rem;
}

.admin-sidebar-role {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.15rem;
    padding: 0.22rem 0.5rem;
    border-radius: 999px;
    background: rgba(31, 134, 255, 0.08);
    color: var(--admin-primary-dark);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.admin-sidebar-name {
    display: block;
    line-height: 1.25;
    font-size: 0.92rem;
    margin: 0;
    word-break: break-word;
    text-align: start;
}

[dir="rtl"] .admin-sidebar-user .mt-3 {
    align-items: flex-start;
}

.vertical-menu .user-wid a,
.vertical-menu .user-wid .text-dark {
    color: var(--admin-text) !important;
    font-weight: 800 !important;
}

.vertical-menu .user-wid p,
.vertical-menu .user-wid .text-body {
    color: var(--admin-text-muted) !important;
}

#sidebar-menu,
#sidebar-menu .metismenu {
    position: relative;
    z-index: 1;
}

a {
    color: var(--admin-primary);
}

.table tbody td a {
    color: var(--admin-primary);
}

a:hover {
    color: var(--admin-primary-dark);
    text-decoration: none;
}

.table tbody td a:hover {
    color: var(--admin-primary-dark);
    text-decoration: none;
}

.scroll-to-top {
    position: fixed;
    bottom: 1.5rem;
    width: 56px;
    height: 56px;
    border: 1px solid rgba(31, 134, 255, 0.14);
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ffffff 0%, #eaf3ff 100%);
    color: var(--admin-primary-dark);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(14px) scale(0.92);
    transition: transform 0.25s ease, opacity 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
    z-index: 1025;
    overflow: hidden;
}

.scroll-to-top::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(31, 134, 255, 0.16) 0%, rgba(11, 52, 112, 0.08) 100%);
    opacity: 0.95;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.scroll-to-top i {
    position: relative;
    z-index: 1;
    font-size: 1.45rem;
    line-height: 1;
}

.scroll-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.scroll-to-top:hover,
.scroll-to-top:focus {
    color: #ffffff;
    background: linear-gradient(135deg, #1f86ff 0%, #0b3470 100%);
    box-shadow: 0 22px 46px rgba(31, 134, 255, 0.28);
    transform: translateY(-3px);
    outline: none;
}

.scroll-to-top:hover::before,
.scroll-to-top:focus::before {
    opacity: 0;
}

[dir="rtl"] .scroll-to-top {
    left: 1.5rem;
    right: auto;
}

[dir="ltr"] .scroll-to-top {
    right: 1.5rem;
    left: auto;
}

.text-muted,
.admin-muted-text {
    color: var(--admin-text-muted) !important;
}

.card,
.card.card-custom,
.info-card,
.table-responsive,
.inbox-modern-card,
.notif-modern-card {
    border: 1px solid var(--admin-border);
    border-radius: var(--admin-radius-md);
    background: var(--admin-surface);
    box-shadow: var(--admin-shadow-sm);
    overflow: hidden;
}

.info-card {
    display: block;
    height: auto;
    min-height: 0;
    position: relative;
    border: 1px solid rgba(205, 218, 236, 0.9);
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, #f8fbff 100%);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.07);
}

.card.card-custom,
.info-card,
.table-responsive,
.inbox-modern-card,
.notif-modern-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.card.card-custom:hover,
.info-card:hover,
.inbox-modern-card:hover,
.notif-modern-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 48px rgba(15, 23, 42, 0.12);
    border-color: rgba(85, 105, 255, 0.18);
}

.card-header,
.card.card-custom .card-header,
.info-card-header,
.table-responsive .toolbar {
    background: linear-gradient(180deg, #fbfdff 0%, #f4f7fb 100%);
    border-bottom: 1px solid var(--admin-border);
}

.admin-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 1.1rem 1.35rem 1rem;
    border: 0 !important;
    border-bottom: 1px solid var(--admin-border) !important;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.admin-card-header .card-title {
    display: flex;
    align-items: center;
    margin: 0;
    min-width: 0;
}

.admin-card-header .card-label {
    margin: 0;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.45;
    color: var(--admin-text);
}

.admin-card-header .card-tools {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.65rem;
    margin-inline-start: auto;
}

.admin-card-header .card-tools > * {
    margin-bottom: 0 !important;
}

.admin-card-toolbar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.65rem;
    flex-wrap: wrap;
    width: 100%;
}

.admin-card-toolbar-group {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: wrap;
}

.admin-card-toolbar .admin-toolbar-btn,
.admin-card-toolbar .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 40px;
    padding: 0.55rem 1rem;
    border-radius: 12px;
    white-space: nowrap;
}

.admin-card-toolbar .admin-toolbar-btn i,
.admin-card-toolbar .btn i {
    margin: 0;
}

.accordion .card-header .card-title {
    width: 100%;
    text-align: right;
}

.accordion .card-header .card-title .row {
    width: 100%;
    align-items: center;
    margin: 0;
}

.accordion .card-header .card-title .col-11,
.accordion .card-header .card-title .col-1 {
    padding-inline: 0.25rem;
}

.accordion .card-header .card-title .col-1 {
    text-align: center;
}

.accordion .card-header .card-label {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.35;
    text-align: right;
}



.card-title,
.card-label,
.info-card-title,
.inbox-modern-card-title,
.notif-modern-card-title {
    margin: 0;
    font-weight: 700;
    color: var(--admin-text);
}

.table-responsive {
    margin-bottom: 1.5rem;
}

.admin-table-wrap {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
}

.table {
    margin-bottom: 0;
    border-collapse: separate;
    border-spacing: 0;
}

.admin-table {
    width: 100%;
    min-width: 100%;
}

.table thead th {
    background: #f9fbff;
    color: var(--admin-text);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border-bottom: 1px solid var(--admin-border);
    padding: 1rem 1.1rem;
    white-space: nowrap;
}

.table tbody tr {
    transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.table tbody tr:hover {
    background: #f8fbff;
    box-shadow: inset 4px 0 0 rgba(85, 105, 255, 0.12);
}

[dir="rtl"] .table tbody tr:hover {
    box-shadow: inset -4px 0 0 rgba(85, 105, 255, 0.12);
}

.table tbody td {
    padding: 1rem 1.1rem;
    vertical-align: middle;
    color: var(--admin-text);
    border-top: 1px solid #f1f4f8;
}

.admin-table thead th,
.admin-table tbody td {
    padding-inline: 1.25rem;
}

[dir="rtl"] .admin-table thead th,
[dir="rtl"] .admin-table tbody td {
    text-align: right;
}

.table-mobile-actions {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.table-mobile-actions form {
    margin: 0;
}

.table-mobile-actions .btn {
    white-space: nowrap;
}

.table .admin-actions-column {
    white-space: nowrap;
    width: auto;
    min-width: max-content;
}

.table thead .admin-actions-column,
.table tbody .admin-actions-column {
    width: auto;
}

.table tbody td.admin-actions-column {
    display: table-cell;
    text-align: center;
    vertical-align: middle;
    padding-inline: 1rem;
}

.table tbody td.admin-actions-column > .table-mobile-actions {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    flex-wrap: nowrap;
    width: auto;
    max-width: 100%;
}

.table tbody td.admin-actions-column > .table-mobile-actions > form {
    display: inline-flex;
    margin: 0;
}

.table tbody td.admin-actions-column > .table-mobile-actions > a,
.table tbody td.admin-actions-column > .table-mobile-actions > button,
.table tbody td.admin-actions-column > .table-mobile-actions > form > button {
    flex: 0 0 auto;
}

.admin-table tbody td.admin-actions-column .btn {
    min-width: 44px;
}

td {
    vertical-align: middle !important;
}

.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1;
}

.badge-lg,
.badge-xl {
    padding: 0.65rem 1.05rem;
    font-size: 0.86rem;
}

.badge-primary {
    background: var(--admin-primary-soft);
    color: var(--admin-primary-dark);
}

.badge-success {
    background: var(--admin-success-soft);
    color: var(--admin-success-dark);
}

.badge-warning {
    background: var(--admin-warning-soft);
    color: var(--admin-warning-dark);
}

.badge-danger {
    background: var(--admin-danger-soft);
    color: var(--admin-danger-dark);
}

.badge-info {
    background: var(--admin-info-soft);
    color: var(--admin-info-dark);
}

.badge-success-soft {
    background: #dff7eb;
    color: #146a43;
}

.badge-danger-soft {
    background: #fee2e2;
    color: #b42318;
}

.badge-warning-soft {
    background: #fff1d6;
    color: #a15c07;
}

.badge-info-soft {
    background: #dff0ff;
    color: #155eef;
}

.btn {
    border-radius: 10px;
    font-weight: 600;
    box-shadow: none !important;
}

.btn-sm {
    padding: 0.45rem 0.9rem;
}

.btn-lg {
    padding: 0.75rem 1.3rem;
}

.btn-primary,
.btn-info,
.btn-success,
.btn-danger,
.btn-warning {
    border: 0;
    color: #fff;
}

.btn-primary {
    background: var(--admin-gradient-primary);
}

.btn-success {
    background: var(--admin-gradient-success);
}

.btn-warning {
    background: var(--admin-gradient-warning);
}

.btn-danger {
    background: var(--admin-gradient-danger);
}

.btn-info {
    background: var(--admin-gradient-info);
}

.btn-primary:hover,
.btn-success:hover,
.btn-warning:hover,
.btn-danger:hover,
.btn-info:hover,
.inbox-modern-btn:hover,
.notif-modern-btn:hover {
    color: #fff;
    transform: translateY(-1px);
    filter: brightness(0.98);
}

.page-title-box {
    background: var(--admin-gradient-primary);
    border-radius: var(--admin-radius-lg);
    box-shadow: var(--admin-shadow-md);
    padding: 1.75rem 2rem;
    margin-bottom: 1.75rem;
    position: relative;
    overflow: hidden;
}

.page-title-box::before,
.page-title-box::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
}

.page-title-box::before {
    width: 220px;
    height: 220px;
    top: -110px;
    inset-inline-end: -80px;
}

.page-title-box::after {
    width: 140px;
    height: 140px;
    bottom: -75px;
    inset-inline-start: -40px;
}

.page-title-box > * {
    position: relative;
    z-index: 1;
}

.page-title-box h4,
.page-title-box .breadcrumb-item,
.page-title-box .breadcrumb-item a,
.page-title-box .page-title-right {
    color: #fff;
}

.page-title-box .breadcrumb {
    background: transparent;
    margin: 0;
    padding: 0;
}

.page-title-box .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.7);
}

#sidebar-menu ul li a {
    font-size: 14px;
    padding: 0.78rem 0.9rem;
    line-height: 1.45;
    margin: 0.04rem 0;
    border-radius: 12px;
    color: #3f5576;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    position: relative;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

#sidebar-menu ul li a::before {
    content: "";
    position: absolute;
    inset-block: 11px;
    inset-inline-start: 0;
    width: 3px;
    border-radius: 999px;
    background: transparent;
    transition: background-color 0.2s ease;
}

#sidebar-menu ul li a:hover,
#sidebar-menu ul li.mm-active > a,
#sidebar-menu ul li a.active {
    background: linear-gradient(90deg, rgba(31, 134, 255, 0.12), rgba(31, 134, 255, 0.04));
    color: var(--admin-primary-dark);
    box-shadow: none;
}

#sidebar-menu ul li a:hover::before,
#sidebar-menu ul li.mm-active > a::before,
#sidebar-menu ul li a.active::before {
    background: var(--admin-primary);
}

[dir="rtl"] #sidebar-menu ul li a:hover,
[dir="rtl"] #sidebar-menu ul li.mm-active > a,
[dir="rtl"] #sidebar-menu ul li a.active {
    transform: translateX(-2px);
}

#sidebar-menu ul li a i {
    font-size: 0.96rem;
    min-width: 34px;
    width: 34px;
    margin-inline-end: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    color: #496387;
    background: #f1f5f9;
    box-shadow: none;
}

#sidebar-menu ul li.mm-active > a i,
#sidebar-menu ul li a:hover i,
#sidebar-menu ul li a.active i {
    color: var(--admin-primary);
    background: rgba(31, 134, 255, 0.12);
}

#sidebar-menu ul li ul.sub-menu li a {
    font-size: 12.75px;
    padding-inline-start: 3.1rem;
    color: #64748b;
    background: transparent;
}

#sidebar-menu ul li ul.sub-menu li ul.sub-menu li a {
    padding-inline-start: 3.9rem;
}

#sidebar-menu ul li ul.sub-menu {
    margin: 0.35rem 0 0.55rem;
    padding: 0.2rem 0;
    border-radius: 0;
    background: transparent;
    border-inline-start: 1px dashed rgba(148, 163, 184, 0.4);
    margin-inline-start: 1.25rem;
}

#sidebar-menu .has-arrow::after {
    font-size: 0.9rem;
    color: #94a3b8;
    margin-inline-start: auto;
}

.menu-title {
    font-size: 11px;
    letter-spacing: 0.08em;
    padding: 0.8rem 0.6rem 0.4rem;
    color: #94a3b8;
}

[dir="ltr"] .main-content {
    margin-left: 286px;
    margin-right: 0;
}

[dir="rtl"] .main-content {
    margin-right: 286px;
    margin-left: 0;
}

.main-content {
    position: relative;
    min-height: 100vh;
    padding: 92px 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
}

[dir="ltr"] body.vertical-collpsed .main-content {
    margin-left: 88px;
}

[dir="rtl"] body.vertical-collpsed .main-content {
    margin-right: 88px;
}

.page-content {
    padding: 0;
    flex: 1 0 auto;
}

.main-content::before {
    display: none;
}

.header-profile-user {
    width: 40px;
    height: 40px;
    padding: 3px;
    border: 2px solid rgba(31, 134, 255, 0.16);
    background: #fff;
    box-shadow: 0 8px 16px rgba(15, 23, 42, 0.08);
}

.noti-icon i,
.header-item i {
    font-size: 1.15rem;
}

.notification-render .header-item,
.dropdown .header-item {
    position: relative;
}

.notification-render .badge {
    position: absolute;
    top: 1px;
    inset-inline-end: 5px;
   /* min-width: 20px;
    min-height: 20px;*/
    padding: 0.2rem 0.35rem;
    font-size: 0.68rem;
    box-shadow: 0 8px 16px rgba(239, 68, 68, 0.22);
}

.footer {
    background: transparent;
    border-top: 0;
    position: relative;
    left: auto !important;
    right: auto !important;
    bottom: auto;
    width: 100%;
    height: auto;
    padding: 1rem 0 0;
    margin-top: auto;
}

.footer .container-fluid {
    padding-inline: 0.25rem;
}

.footer-shell {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(248, 250, 252, 0.98) 100%);
    border: 1px solid rgba(226, 232, 240, 0.96);
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
    padding: 0.95rem 1.2rem;
}

.footer-shell__brand,
.footer-shell__credit {
    color: var(--admin-text-muted);
    font-size: 0.92rem;
}

.footer-shell__brand {
    font-weight: 600;
}

.footer-version {
    display: inline-flex;
    align-items: center;
    padding: 0.28rem 0.6rem;
    border-radius: 999px;
    background: rgba(31, 134, 255, 0.08);
    color: var(--admin-primary-dark);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.03em;
}

.footer-shell a {
    color: var(--admin-primary-dark);
    font-weight: 700;
}

.footer-credit-fallback {
    color: var(--admin-primary-dark);
    font-weight: 700;
}

@media (min-width: 993px) {
    body.vertical-collpsed .vertical-menu {
        width: 88px !important;
        min-width: 88px !important;
        max-width: 88px !important;
    }

    body.vertical-collpsed .sidebar-shell {
        padding-inline: 0;
    }

    body.vertical-collpsed .sidebar-brand-row {
        padding-inline: 0.5rem;
        justify-content: center;
    }

    body.vertical-collpsed .sidebar-brand-row__logo-link {
        width: 50px;
        height: 50px;
        margin-inline: auto;
    }

    body.vertical-collpsed .admin-sidebar-user {
        flex-direction: column;
        gap: 0.35rem;
        padding: 0.65rem 0.2rem !important;
    }

    body.vertical-collpsed .sidebar-brand-row__eyebrow,
    body.vertical-collpsed .sidebar-brand-row__title,
    body.vertical-collpsed .admin-sidebar-user .mt-3,
    body.vertical-collpsed .admin-sidebar-role,
    body.vertical-collpsed .admin-sidebar-name,
    body.vertical-collpsed #sidebar-menu .menu-title,
    body.vertical-collpsed #sidebar-menu ul li a span,
    body.vertical-collpsed #sidebar-menu .has-arrow::after {
        display: none !important;
    }

    body.vertical-collpsed .vertical-menu .user-img,
    body.vertical-collpsed .vertical-menu .user-wid .avatar-md,
    body.vertical-collpsed .admin-avatar-fallback--lg {
        width: 52px;
        height: 52px;
    }

    body.vertical-collpsed .admin-avatar-fallback--lg {
        font-size: 1rem;
    }

    body.vertical-collpsed .vertical-menu .user-img::after {
        width: 10px;
        height: 10px;
        bottom: 2px;
        right: calc(50% - 18px);
        box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.16);
    }

    body.vertical-collpsed #sidebar-menu ul li a {
        justify-content: center;
        padding: 0.8rem 0.5rem;
    }

    body.vertical-collpsed #sidebar-menu ul li a::before {
        inset-block: 8px;
    }

    body.vertical-collpsed #sidebar-menu ul li a i {
        margin: 0;
    }

    body.vertical-collpsed .footer {
        left: auto !important;
        right: auto !important;
    }
}

@media (max-width: 768px) {
    .footer-shell {
        padding: 0.85rem 1rem;
        border-radius: 16px;
    }

    .footer-shell__brand,
    .footer-shell__credit {
        text-align: center !important;
    }

    .footer-shell__credit {
        margin-top: 0.5rem;
    }
}

.form-group label,
.col-form-label,
label {
    color: var(--admin-text);
    font-weight: 700;
    margin-bottom: 0.55rem;
}

.form-group{
    margin-bottom: 1.25rem;
    padding: 1rem 1.25rem;
}
.form-control,
.custom-select,
.input-group-text,
.bootstrap-select > .dropdown-toggle,
.custom-file-label {
    min-height: 46px;
    border-radius: 14px;
    border-color: var(--admin-border);
    box-shadow: none;
}

.form-control,
.custom-select,
.bootstrap-select > .dropdown-toggle,
.custom-file-label {
    background: rgba(255, 255, 255, 0.96);
}

textarea.form-control {
    min-height: 120px;
}

.form-control:focus,
.custom-select:focus,
.bootstrap-select > .dropdown-toggle:focus,
.custom-file-input:focus ~ .custom-file-label {
    border-color: rgba(31, 134, 255, 0.42);
    box-shadow: 0 0 0 4px rgba(31, 134, 255, 0.1) !important;
}

.input-group-text {
    background: #f8fbff;
    color: var(--admin-text-muted);
}

.dropdown-menu,
.bootstrap-select .dropdown-menu,
.modal-content {
    border: 1px solid var(--admin-border);
    border-radius: 18px;
    box-shadow: var(--admin-shadow-md);
}

.modal-header,
.modal-footer {
    border-color: #edf2f7;
}

.nav-tabs,
.nav-pills {
    gap: 0.65rem;
    border-bottom-color: var(--admin-border);
}

.nav-tabs .nav-link,
.nav-pills .nav-link {
    border-radius: 14px;
    color: var(--admin-text-muted);
    font-weight: 700;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.nav-tabs .nav-link:hover,
.nav-pills .nav-link:hover,
.nav-tabs .nav-link.active,
.nav-pills .nav-link.active {
    color: var(--admin-primary);
    background: rgba(31, 134, 255, 0.08);
    border-color: rgba(31, 134, 255, 0.14);
}

.pagination {
    gap: 0.45rem;
    flex-wrap: wrap;
}

.page-link {
    border: 1px solid var(--admin-border);
    color: var(--admin-primary);
    border-radius: 12px !important;
    min-width: 42px;
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
}

.page-link:hover,
.page-item.active .page-link {
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
    padding: 1.25rem 1.4rem;
    margin-bottom: 1.25rem;
.password-toggle-icon {
    cursor: pointer;
    inset-inline-start: 2%;
    top: 50%;
    transform: translateY(25%);
    color: var(--admin-text-muted);
    display: none;
    transition: color 0.2s ease, transform 0.2s ease;
    border: 1px solid var(--admin-border);
    box-shadow: var(--admin-shadow-sm);
    overflow: hidden;
    background: linear-gradient(135deg, #eef4ff 0%, #f8fbff 100%);
}

.contact-card {
    border: 1px solid var(--admin-border);
    border-radius: 20px;
    box-shadow: var(--admin-shadow-md);
    color: var(--admin-text);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.contact-card:hover {
    transform: translateY(-2px);
    border-color: var(--admin-border-strong);
    box-shadow: var(--admin-shadow-lg);
}

    color: #94a3b8;
}

.page-title-box .page-title {
    font-size: 1.15rem;
    font-weight: 800;
}

.page-title-box .breadcrumb-item,
.page-title-box .breadcrumb-item a {
    color: var(--admin-text-muted);
    color: #fff;
    padding: 0.15rem;
    position: relative;
    overflow: hidden;
}

.contact-header::after {
    content: "";
    position: absolute;
    inset-inline-end: -40px;
    top: -40px;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
}

.contact-header h3,
.contact-header .meta {
    position: relative;
    z-index: 1;
    color: #fff;
}

.contact-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 800;
}

.contact-header .meta {
    margin-top: 0.45rem;
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.9rem;
}

.info-row {
    padding: 1.3rem 1.5rem;
    border-bottom: 1px solid #eef2f7;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    transition: background-color 0.2s ease;
}

.info-row:last-child {
    border-bottom: 0;
}

.info-row:hover {
    background: #f8fbff;
}

.info-label {
    min-width: 140px;
    font-weight: 700;
    color: var(--admin-text);
    font-size: 0.92rem;
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.info-label i {
    color: var(--admin-primary);
    font-size: 0.95rem;
}

.info-value {
    flex: 1;
    color: var(--admin-text);
    font-size: 0.95rem;
    line-height: 1.75;
    word-break: break-word;
}

.message-box {
    background: linear-gradient(135deg, #f8fbff 0%, #eef4ff 100%);
    padding: 1rem 1.1rem;
    border-radius: 14px;
    border-inline-start: 4px solid var(--admin-primary);
    min-height: 100px;
    white-space: pre-wrap;
}

.type-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    background: rgba(31, 134, 255, 0.12);
    color: var(--admin-primary-dark);
}

.switch {
    position: relative;
    display: inline-block;
    width: 30px;
    height: 17px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background-color: #cbd5e1;
    transition: 0.4s;
}

.slider::before {
    position: absolute;
    content: "";
    height: 13px;
    width: 13px;
    left: 2px;
    bottom: 2px;
    background-color: #fff;
    transition: 0.4s;
}

.switch input:checked + .slider {
    background: var(--admin-success);
}

.switch input:focus + .slider {
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.16);
}

.switch input:checked + .slider::before {
    transform: translateX(13px);
}

.slider.round {
    border-radius: 17px;
}

.slider.round::before {
    border-radius: 50%;
}

.stats-card {
    background: #fff;
    border-radius: 18px;
    padding: 1.5rem;
    box-shadow: var(--admin-shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    border: 1px solid var(--admin-border);
    height: 100%;
}

.stats-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--admin-shadow-md);
    border-color: var(--admin-border-strong);
}

.stats-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 16px;
    color: #fff;
}

.stats-primary { background: var(--admin-gradient-primary); }
.stats-success { background: var(--admin-gradient-success); }
.stats-danger { background: var(--admin-gradient-danger); }
.stats-warning { background: var(--admin-gradient-warning); }
.stats-info { background: var(--admin-gradient-info); }
.stats-purple { background: linear-gradient(135deg, #7c8bff 0%, #5c6cff 100%); }
.stats-pink { background: linear-gradient(135deg, #f472b6 0%, #db2777 100%); }
.stats-teal { background: linear-gradient(135deg, #2dd4bf 0%, #0f766e 100%); }

.stats-value {
    font-size: 32px;
    font-weight: 800;
    color: var(--admin-text);
    margin: 8px 0;
    direction: ltr;
}

.stats-label {
    font-size: 14px;
    color: var(--admin-text-muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.chart-container {
    background: #fff;
    border-radius: 18px;
    padding: 1.5rem;
    box-shadow: var(--admin-shadow-sm);
    border: 1px solid var(--admin-border);
    margin-top: 1.5rem;
}

.chart-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--admin-text);
    margin-bottom: 1.25rem;
}

.select2-selection__choice {
    position: relative !important;
    padding: 2px 0 2px 20px !important;
}

.select2-container {
    width: 100% !important;
}

.select2-container--default .select2-selection--single,
.select2-container--bootstrap4 .select2-selection--single {
    min-height: 44px;
    border: 1px solid var(--admin-border) !important;
    border-radius: 14px !important;
    background: #ffffff !important;
    display: flex !important;
    align-items: center !important;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.02);
}

.select2-container--default .select2-selection--single .select2-selection__rendered,
.select2-container--bootstrap4 .select2-selection--single .select2-selection__rendered {
    width: 100%;
    padding-inline: 0.95rem 2.25rem !important;
    color: var(--admin-text) !important;
    line-height: 1.5 !important;
}

.select2-container[dir="rtl"] .select2-selection--single .select2-selection__arrow {
    left: 0.8rem;
    right: auto;
}

.select2-container[dir="ltr"] .select2-selection--single .select2-selection__arrow {
    right: 0.8rem;
    left: auto;
}

.select2-container--open .select2-dropdown {
    z-index: 1085;
    border: 1px solid var(--admin-border) !important;
    border-radius: 14px !important;
    box-shadow: 0 16px 35px rgba(15, 23, 42, 0.12);
    overflow: hidden;
}

.select2-dropdown--hide-search .select2-search--dropdown {
    display: none;
}

.select2-selection__choice__remove {
    background: transparent !important;
    border: 0 !important;
    position: absolute !important;
    left: 5% !important;
}

.notification-drop.show {
    width: 320px !important;
}

[dir="rtl"] .notification-drop.dropdown-menu-right {
    right: -275px !important;
    left: auto !important;
}

[dir="ltr"] .notification-drop.dropdown-menu-right {
    left: -275px !important;
}

.profile-header-card {
    background: var(--admin-gradient-primary);
    border-radius: var(--admin-radius-lg);
    padding: 1.35rem 1.5rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.14);
    position: relative;
    overflow: hidden;
}

.profile-header-card::before,
.profile-header-card::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.09);
}

.profile-header-card::before {
    width: 220px;
    height: 220px;
    top: -120px;
    inset-inline-end: -70px;
}

.profile-header-card::after {
    width: 150px;
    height: 150px;
    bottom: -85px;
    inset-inline-start: -35px;
}

.profile-header-content,
.profile-header-card .row {
    position: relative;
    z-index: 1;
}

.profile-header-content {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.profile-avatar,
.profile-avatar-large,
.admin-hero-avatar {
    width: 92px;
    height: 92px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.96);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 10px 22px rgba(17, 24, 39, 0.18);
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.profile-avatar img,
.profile-avatar-large img,
.admin-hero-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.admin-hero-avatar {
    width: 98px;
    height: 98px;
}

.admin-hero-avatar--primary {
    background: linear-gradient(135deg, #7c8bff 0%, #4d5dde 100%);
}

.admin-hero-avatar--success {
    background: linear-gradient(135deg, #5fd39a 0%, #229b68 100%);
}

.admin-hero-avatar--warning {
    background: linear-gradient(135deg, #ffc163 0%, #eb8b1f 100%);
}

.admin-hero-avatar--danger {
    background: linear-gradient(135deg, #ff8b8b 0%, #d94b4b 100%);
}

.admin-hero-icon {
    font-size: 2.2rem;
    color: #fff;
}

.admin-icon-modernized {
    line-height: 1;
    vertical-align: middle;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: geometricPrecision;
}

#sidebar-menu .admin-icon-modernized,
.header-item .admin-icon-modernized,
.info-card-title .admin-icon-modernized,
.notif-modern-card-title .admin-icon-modernized,
.inbox-modern-card-title .admin-icon-modernized,
.btn .admin-icon-modernized,
.dropdown-item .admin-icon-modernized,
.profile-meta .admin-icon-modernized,
.table .admin-icon-modernized {
    transition: transform 0.18s ease, color 0.18s ease, opacity 0.18s ease;
    transform: translateY(-0.02em);
}

.profile-name {
    color: #fff;
    font-size: 1.45rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
    line-height: 1.25;
}

.profile-meta {
    color: rgba(255, 255, 255, 0.9);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.9rem;
}

.profile-status-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.info-card-header {
    padding: 0.85rem 1rem 0.75rem;
    flex-shrink: 0;
    position: relative;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(244, 248, 255, 0.98) 100%);
    border-bottom: 1px solid rgba(219, 228, 240, 0.95);
}

.info-card-header::after {
    content: "";
    position: absolute;
    inset-inline-start: 1rem;
    inset-inline-end: 1rem;
    bottom: 0;
    height: 1px;
    background: linear-gradient(90deg, rgba(31, 134, 255, 0), rgba(31, 134, 255, 0.18), rgba(31, 134, 255, 0));
}

.info-card > .info-table,
.info-card > .p-3,
.info-card > .p-4,
.info-card > .info-card-body,
.info-card > .text-center.p-3,
.info-card > .text-center.p-4 {
    width: 100%;
}

.info-card > .p-3,
.info-card > .p-4,
.info-card > .info-card-body,
.info-card > .text-center.p-3,
.info-card > .text-center.p-4 {
    display: block;
}

.info-card > .info-card-body:not(.p-0),
.info-card > .p-3,
.info-card > .p-4,
.info-card > .text-center.p-3,
.info-card > .text-center.p-4 {
    padding: 0.95rem 1rem;
}

.info-card > .info-card-body.p-0,
.info-card > .p-0,
.info-card > .text-center.p-0 {
    padding: 0 !important;
}

.info-card-title,
.inbox-modern-card-title,
.notif-modern-card-title {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.65rem;
    font-size: 0.98rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    line-height: 1.35;
    min-width: 0;
}

.info-card-title i,
.inbox-modern-card-title i,
.notif-modern-card-title i {
    width: 34px;
    height: 34px;
    border-radius: 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(85, 105, 255, 0.12) 0%, rgba(49, 130, 246, 0.18) 100%);
    color: #3558d6;
    font-size: 0.88rem;
    box-shadow: inset 0 0 0 1px rgba(85, 105, 255, 0.08);
    flex: 0 0 34px;
}

.notif-modern-card-title i {
    background: rgba(47, 177, 113, 0.12);
    color: var(--admin-success);
}

.info-card img,
.info-card iframe,
.info-card video,
.info-card canvas,
.info-card svg {
    max-width: 100%;
}

.info-card .admin-media-preview,
.info-card .admin-thumb-preview,
.info-card > .text-center.p-3 img,
.info-card > .text-center.p-4 img,
.info-card .info-card-body.text-center img {
    display: block;
    margin-inline: auto;
}

.info-card .empty-state {
    padding: 1.6rem 1rem;
}

.info-card .empty-state p,
.info-card .description-content,
.info-card .info-value,
.info-card .message-box {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.inbox-modern-card,
.notif-modern-card {
    padding: 1.5rem;
    height: 100%;
}

.inbox-list,
.notification-list,
.notifications-list {
    max-height: 400px;
    overflow-y: auto;
    padding-inline-end: 4px;
}

.inbox-item,
.notification-item {
    border: 1px solid transparent;
    border-radius: 14px;
    background: var(--admin-surface-muted);
    margin-bottom: 0.8rem;
    transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.inbox-item a,
.notification-item a {
    color: inherit;
    text-decoration: none;
    padding: 1rem;
    width: 100%;
}

.inbox-item a {
    display: block;
}

.notification-item a {
    display: flex;
    gap: 0.85rem;
}

.inbox-item {
    padding: 0;
}

.inbox-item:hover,
.notification-item:hover {
    transform: translateY(-1px);
    border-color: rgba(85, 105, 255, 0.12);
    background: #eef4ff;
}

.notification-item:hover {
    border-color: rgba(47, 177, 113, 0.15);
    background: #eefbf4;
}

.notification-avatar,
.admin-avatar-placeholder {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.notification-avatar {
    border: 2px solid var(--admin-border);
}

.admin-avatar-placeholder {
    background: var(--admin-gradient-success);
    color: #fff;
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.25);
}

.notification-content {
    flex: 1;
    min-width: 0;
}

.notification-text,
.inbox-item-name {
    color: var(--admin-text);
    font-weight: 700;
}

.inbox-item-name {
    margin-bottom: 0.3rem;
}

.inbox-item-message,
.notification-text {
    font-size: 0.92rem;
    line-height: 1.55;
}

.inbox-item-message {
    color: var(--admin-text-muted);
    margin-bottom: 0;
}

.notification-time,
.inbox-item-time {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--admin-text-muted);
    font-size: 0.78rem;
    margin-top: 0.4rem;
}

.inbox-modern-btn,
.notif-modern-btn {
    border-radius: 10px;
    color: #fff;
    padding: 0.75rem 1.1rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.inbox-modern-btn {
    background: var(--admin-gradient-primary);
}

.notif-modern-btn {
    background: var(--admin-gradient-success);
}

.info-table {
    width: 100%;
    margin: 0;
    border-collapse: separate;
    border-spacing: 0;
}

.info-table tr {
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.info-table th,
.info-table td {
    padding: 0.72rem 0.9rem;
    border-top: 1px solid rgba(234, 240, 247, 0.95);
    vertical-align: middle;
}

.info-table tr:first-child th,
.info-table tr:first-child td {
    border-top: 0;
}

.info-table th {
    width: 170px;
    background: linear-gradient(180deg, rgba(248, 251, 255, 0.98) 0%, rgba(244, 248, 252, 0.98) 100%);
    color: #51627d;
    font-weight: 700;
    border-inline-end: 1px solid rgba(224, 232, 243, 0.95);
    font-size: 0.88rem;
}

[dir="rtl"] .info-table th {
    border-inline-end: 0;
    border-inline-start: 1px solid var(--admin-border);
}

.info-table td {
    color: var(--admin-text);
    background: rgba(255, 255, 255, 0.72);
    font-weight: 600;
    font-size: 0.9rem;
    line-height: 1.65;
}

.info-table tr:hover th {
    background: linear-gradient(180deg, rgba(242, 247, 255, 1) 0%, rgba(236, 243, 252, 1) 100%);
}

.info-table tr:hover td {
    background: rgba(247, 250, 255, 0.96);
}

.action-footer {
    background: linear-gradient(180deg, rgba(250, 252, 255, 0.96) 0%, rgba(245, 249, 255, 0.96) 100%);
    border-top: 1px solid rgba(224, 232, 243, 0.95);
    padding: 0.75rem 0.9rem 0.85rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.55rem;
}

.stat-card {
    height: 100%;
    border: 1px solid var(--admin-border);
    border-radius: var(--admin-radius-md);
    background: var(--admin-surface);
    box-shadow: var(--admin-shadow-sm);
    padding: 1.4rem;
    text-align: center;
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.6rem;
    color: #fff;
}

.stat-icon.primary { background: var(--admin-gradient-primary); }
.stat-icon.success { background: var(--admin-gradient-success); }
.stat-icon.warning { background: var(--admin-gradient-warning); }
.stat-icon.danger { background: var(--admin-gradient-danger); }
.stat-icon.info { background: var(--admin-gradient-info); }

.admin-stat-value {
    margin: 0;
    font-size: 2rem;
    font-weight: 800;
}

.admin-stat-value--primary { color: var(--admin-primary); }
.admin-stat-value--success { color: var(--admin-success); }
.admin-stat-value--warning { color: var(--admin-warning-dark); }
.admin-stat-value--danger { color: var(--admin-danger); }
.admin-stat-label {
    margin: 0.45rem 0 0;
    color: var(--admin-text-muted);
    font-size: 0.92rem;
}

.admin-content-panel {
    background: var(--admin-surface-muted);
    border: 1px solid var(--admin-border);
    border-radius: 12px;
    padding: 1.25rem;
    min-height: 200px;
}

.admin-highlight-value {
    color: var(--admin-primary);
    font-size: 1.45rem;
    font-weight: 800;
}

.admin-code-pill {
    display: inline-flex;
    align-items: center;
    background: #f3f6fb;
    color: var(--admin-primary-dark);
    border-radius: 10px;
    padding: 0.55rem 0.95rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 1rem;
    font-weight: 700;
}

.admin-strike-price {
    color: #8a97aa;
    text-decoration: line-through;
    font-weight: 600;
}

.admin-status-banner {
    border: 0;
    border-radius: 18px;
    padding: 1.2rem 1.35rem;
    box-shadow: var(--admin-shadow-sm);
}

.admin-status-banner--primary {
    background: linear-gradient(135deg, rgba(85, 105, 255, 0.95), rgba(53, 72, 212, 0.95));
    color: #fff;
}

.admin-status-banner--success {
    background: linear-gradient(135deg, #edf9f1 0%, #dff4e7 100%);
    color: #146a43;
}

.admin-status-banner--warning {
    background: linear-gradient(135deg, #fff8ea 0%, #ffefcf 100%);
    color: #a15c07;
}

.admin-status-banner--danger {
    background: linear-gradient(135deg, #fff3f3 0%, #ffe3e3 100%);
    color: #b42318;
}

.admin-status-banner__title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: inherit;
}

.admin-inline-form {
    display: inline-block;
}

.admin-inline-form + .admin-inline-form {
    margin-inline-start: 0.65rem;
}

.admin-media-preview {
    max-width: 400px;
    max-height: 300px;
    width: 100%;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: var(--admin-shadow-sm);
}

.admin-profile-preview {
    width: min(220px, 100%);
    max-width: 220px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 18px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
}

.admin-thumb-preview {
    max-height: 180px;
    width: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.admin-empty-icon {
    font-size: 48px;
    color: #cbd5e0;
    margin-bottom: 16px;
}

.empty-state {
    text-align: center;
    color: var(--admin-text-muted);
    padding: 2.5rem 1.5rem;
}

.empty-state i {
    color: #cbd5e0;
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.admin-summary-table {
    width: 320px;
    max-width: 100%;
    margin-inline-start: auto;
}

.admin-timeline-card {
    background: var(--admin-surface-muted);
    border: 1px solid var(--admin-border);
    border-radius: 14px;
    padding: 1.35rem;
}

.admin-timeline {
    position: relative;
    height: 64px;
}

.admin-timeline__line,
.admin-timeline__progress {
    position: absolute;
    top: 32px;
    inset-inline-start: 0;
    height: 5px;
    border-radius: 999px;
}

.admin-timeline__line {
    width: 100%;
    background: #dbe4ef;
}

.admin-timeline__progress {
    background: linear-gradient(90deg, var(--admin-success), var(--admin-primary));
}

.admin-timeline__dot {
    position: absolute;
    top: 23px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.12);
}

.admin-timeline__dot--start {
    inset-inline-start: 0;
    background: var(--admin-success);
}

.admin-timeline__dot--end {
    inset-inline-end: 0;
    background: #dbe4ef;
}

.admin-timeline__dot--expired {
    background: var(--admin-danger);
}

.admin-timeline__label {
    position: absolute;
    top: 0;
    font-size: 0.78rem;
    font-weight: 700;
}

.admin-timeline__label--start {
    inset-inline-start: 0;
    color: var(--admin-success-dark);
}

.admin-timeline__label--end {
    inset-inline-end: 0;
    color: var(--admin-text-muted);
}

.admin-timeline__label--expired {
    color: var(--admin-danger-dark);
}

#countdown {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--admin-danger);
}

.page-loader,
.app-loader {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    background: radial-gradient(circle at top, rgba(92, 122, 255, 0.2), transparent 45%), linear-gradient(135deg, #0e173b 0%, #253c8d 100%);
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.page-loader.hide,
.app-loader.hide {
    opacity: 0;
    visibility: hidden;
}

.app-loader[hidden] {
    display: none;
}

.app-loader__particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.app-loader__particle {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    animation: adminLoaderFloat 7s linear infinite;
}

.app-loader__particle:nth-child(1) { inset-inline-start: 12%; animation-delay: 0s; }
.app-loader__particle:nth-child(2) { inset-inline-start: 24%; animation-delay: 0.7s; }
.app-loader__particle:nth-child(3) { inset-inline-start: 37%; animation-delay: 1.4s; }
.app-loader__particle:nth-child(4) { inset-inline-start: 50%; animation-delay: 2.1s; }
.app-loader__particle:nth-child(5) { inset-inline-start: 62%; animation-delay: 2.8s; }
.app-loader__particle:nth-child(6) { inset-inline-start: 74%; animation-delay: 3.5s; }
.app-loader__particle:nth-child(7) { inset-inline-start: 86%; animation-delay: 4.2s; }

.app-loader__content {
    width: min(460px, calc(100vw - 2rem));
    text-align: center;
    position: relative;
    z-index: 2;
}

.app-loader__device {
    width: 220px;
    height: 220px;
    margin: 0 auto 1.5rem;
    border-radius: 32px;
    padding: 18px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 20px 55px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(8px);
    animation: adminLoaderPulse 2.2s ease-in-out infinite;
}

.app-loader__screen {
    width: 100%;
    height: 100%;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255,255,255,0.12) 0%, rgba(255,255,255,0.04) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    position: relative;
    overflow: hidden;
}

.app-loader__screen::before {
    content: "";
    position: absolute;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: 86px;
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
}

.app-loader__logo {
    width: 86px;
    height: 86px;
    object-fit: contain;
    filter: drop-shadow(0 10px 22px rgba(17, 24, 39, 0.25));
}

.app-loader__ring {
    position: absolute;
    width: 126px;
    height: 126px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.15);
    border-top-color: #fff;
    animation: adminLoaderSpin 1.2s linear infinite;
}

.app-loader__dots {
    display: flex;
    gap: 0.45rem;
}

.app-loader__dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    animation: adminLoaderBounce 1.25s ease-in-out infinite;
}

.app-loader__dots span:nth-child(2) { animation-delay: 0.12s; }
.app-loader__dots span:nth-child(3) { animation-delay: 0.24s; }

.app-loader__title {
    margin: 0;
    color: #fff;
    font-size: 1.75rem;
    font-weight: 800;
}

.app-loader__subtitle {
    margin: 0.5rem 0 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.98rem;
}

.app-loader__progress {
    width: 100%;
    height: 8px;
    margin-top: 1.5rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    overflow: hidden;
}

.app-loader__progress-bar {
    width: 45%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, rgba(255,255,255,0.3) 0%, #ffffff 45%, rgba(255,255,255,0.25) 100%);
    animation: adminLoaderProgress 1.6s ease-in-out infinite;
}

@keyframes adminLoaderSpin {
    to { transform: rotate(360deg); }
}

@keyframes adminLoaderPulse {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

@keyframes adminLoaderBounce {
    0%, 80%, 100% {
        transform: scale(0.7);
        opacity: 0.45;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes adminLoaderFloat {
    0% {
        transform: translateY(110vh) scale(0.5);
        opacity: 0;
    }
    20%, 80% {
        opacity: 1;
    }
    100% {
        transform: translateY(-20vh) scale(1.1);
        opacity: 0;
    }
}

@keyframes adminLoaderProgress {
    0% { transform: translateX(-110%); }
    100% { transform: translateX(260%); }
}

@media (max-width: 992px) {
    body.theme-dashboard #page-topbar {
        padding: 0;
    }

    .navbar-header {
        padding: 0 1rem;
    }

    .topbar-shell {
        min-height: 72px;
    }

    .topbar-heading__eyebrow {
        display: none;
    }

    .vertical-menu {
        width: 286px;
        min-width: 286px;
        max-width: 286px;
        top: 0;
        bottom: 0;
    }

    [dir="ltr"] .main-content,
    [dir="rtl"] .main-content {
        margin-left: 0;
        margin-right: 0;
    }

    .main-content {
        padding: 88px 1rem 1rem;
    }

    .profile-header-card {
        padding: 1.1rem 1.15rem;
    }

    .profile-avatar,
    .profile-avatar-large,
    .admin-hero-avatar {
        width: 78px;
        height: 78px;
    }

    .profile-name {
        font-size: 1.25rem;
    }

    .info-table th {
        width: 150px;
    }
}

@media (max-width: 768px) {
    .page-title-box {
        padding: 1.1rem 1rem;
    }

    .navbar-header {
        min-height: 68px;
        padding: 0 0.75rem;
    }

    .topbar-shell {
        min-height: 68px;
        flex-wrap: nowrap;
        padding: 0;
    }

    .topbar-heading__title {
        font-size: 0.92rem;
    }

    .topbar-actions {
        gap: 0.35rem;
        position: static;
    }

    .header-item,
    .toggle-btn {
        min-width: 40px;
        height: 40px;
        padding: 0 0.55rem !important;
    }

    .topbar-actions .dropdown,
    .topbar-actions .notification-render {
        position: static !important;
    }

    .topbar-actions .dropdown-menu,
    .topbar-actions .notification-drop.dropdown-menu {
        position: fixed !important;
        top: 76px !important;
        left: 0.75rem !important;
        right: 0.75rem !important;
        width: auto !important;
        min-width: 0 !important;
        max-width: none !important;
        max-height: calc(100vh - 92px) !important;
        overflow-y: auto !important;
        border-radius: 18px !important;
        z-index: 1060 !important;
    }

    .topbar-actions .dropdown-menu-right,
    [dir="rtl"] .topbar-actions .dropdown-menu-right,
    [dir="ltr"] .topbar-actions .dropdown-menu-right,
    [dir="rtl"] .notification-drop.dropdown-menu-right,
    [dir="ltr"] .notification-drop.dropdown-menu-right {
        left: 0.75rem !important;
        right: 0.75rem !important;
    }

    .notification-drop.show {
        width: auto !important;
    }

    .scroll-to-top {
        bottom: 1rem;
        width: 50px;
        height: 50px;
        border-radius: 16px;
    }

    [dir="rtl"] .scroll-to-top {
        left: 1rem;
    }

    [dir="ltr"] .scroll-to-top {
        right: 1rem;
    }

    .vertical-menu {
        width: min(286px, calc(100vw - 1rem));
        min-width: min(286px, calc(100vw - 1rem));
        max-width: min(286px, calc(100vw - 1rem));
        top: 0;
        bottom: 0;
        border-radius: 0;
        border-inline-end: 1px solid rgba(226, 232, 240, 0.92);
    }

    [dir="ltr"] .vertical-menu {
        left: 0;
    }

    [dir="rtl"] .vertical-menu {
        right: 0;
    }

    .main-content {
        padding: 80px 0.75rem 0.75rem;
    }

    .profile-header-content,
    .profile-header-card .row {
        text-align: center;
    }

    .info-row {
        flex-direction: column;
        gap: 0.6rem;
    }

    .info-label {
        min-width: 0;
    }

    .profile-meta {
        justify-content: center;
    }

    .action-footer {
        justify-content: center;
    }

    .info-table,
    .info-table tbody,
    .info-table tr,
    .info-table th,
    .info-table td {
        display: block;
        width: 100%;
    }

    .info-table th {
        border-inline-start: 0 !important;
        border-inline-end: 0 !important;
        border-bottom: 0;
        padding-bottom: 0.35rem;
    }

    .info-table td {
        padding-top: 0.5rem;
    }

    .table thead {
        display: none;
    }

    .admin-table-wrap,
    .admin-mobile-table .admin-table-wrap {
        overflow: visible;
    }

    .table tbody tr {
        display: block;
        padding: 0.75rem;
        margin-bottom: 0.75rem;
        border: 1px solid var(--admin-border);
        border-radius: 12px;
    }

    .table tbody td {
        display: block;
        padding: 0.55rem 0;
        border-top: 0;
    }

    .table tbody td::before {
        content: attr(data-label);
        display: block;
        margin-bottom: 0.3rem;
        color: var(--admin-text-muted);
        font-size: 0.78rem;
        font-weight: 700;
        text-transform: uppercase;
    }

    .table tbody td[data-label="الإجراءات"] {
        text-align: center !important;
    }

    .table tbody td[data-label="الإجراءات"]::before {
        text-align: center;
    }

    .table-mobile-actions {
        width: 100%;
        justify-content: center;
        gap: 0.55rem;
        flex-wrap: nowrap;
    }

    .admin-mobile-table .admin-card-header {
        gap: 0.85rem;
    }

    .admin-mobile-table .admin-card-header .card-title,
    .admin-mobile-table .admin-card-header .card-tools {
        width: 100%;
    }

    .admin-mobile-table .admin-card-header .card-label {
        width: 100%;
        text-align: center;
    }

    .admin-mobile-table .admin-card-header .card-tools {
        justify-content: center;
        margin-inline-start: 0;
    }

    .admin-mobile-table .admin-card-header .card-tools .admin-card-toolbar,
    .admin-mobile-table .admin-card-header .card-tools .admin-card-toolbar-group {
        justify-content: center;
    }

    .admin-mobile-table .admin-card-header .card-tools .btn {
        min-width: min(100%, 260px);
        justify-content: center;
    }

    .admin-mobile-table .admin-card-header .card-tools .admin-card-toolbar .btn,
    .admin-mobile-table .admin-card-header .card-tools .admin-card-toolbar .admin-toolbar-btn {
        flex: 1 1 180px;
        min-width: min(100%, 180px);
        max-width: 100%;
    }

    .admin-mobile-table .table tbody tr {
        padding: 1rem 1rem 0.9rem;
        margin-bottom: 1rem;
        border-radius: 18px;
        background: #fff;
        box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
    }

    .admin-mobile-table .table tbody td[data-label] {
        display: grid;
        grid-template-columns: minmax(88px, 96px) minmax(0, 1fr);
        align-items: center;
        gap: 0.9rem;
        padding: 0.8rem 0;
        text-align: start !important;
        border-bottom: 1px dashed rgba(148, 163, 184, 0.28);
    }

    .admin-mobile-table .table tbody td[data-label]:last-child {
        border-bottom: 0;
        padding-bottom: 0;
    }

    .admin-mobile-table .table tbody td[data-label]::before {
        min-width: 88px;
        margin-bottom: 0;
        text-transform: none;
        font-size: 0.82rem;
        text-align: start;
    }

    .admin-mobile-table .table tbody td[data-label="الوصف"] {
        align-items: flex-start;
    }

    .admin-mobile-table .table tbody td[data-label="الوصف"]::before {
        padding-top: 0.1rem;
    }

    .admin-mobile-table .table tbody td[data-label="الإجراءات"] {
        display: block;
        text-align: center !important;
        padding-top: 1rem;
        margin-top: 0.2rem;
        border-top: 1px solid rgba(226, 232, 240, 0.85);
        min-width: 0;
        width: 100%;
    }

    .admin-mobile-table .table tbody td[data-label="الإجراءات"]::before {
        display: block;
        min-width: 0;
        margin-bottom: 0.65rem;
        text-align: center;
    }

    .admin-mobile-table .table-mobile-actions {
        width: 100%;
        justify-content: center;
        gap: 0.7rem;
        flex-wrap: nowrap;
    }

    .admin-mobile-table .table-mobile-actions .btn {
        min-width: 48px;
        min-height: 46px;
    }

    .admin-mobile-table .badge {
        max-width: 100%;
    }

    .app-loader__device {
        width: 190px;
        height: 190px;
    }

    .app-loader__title {
        font-size: 1.45rem;
    }
}
.info-card-body_gallery {
    padding: 1.25rem 1.4rem;
}