/* ============================================
   SIDEBAR
   ============================================  
*/
/* Prevent wrong theme flash */
/* Hide UI initially */
.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  width: var(--sidebar-width);
  height: 100vh;
  /*background: var(--sidebar-bg); */
  backdrop-filter: blur(40px);
  z-index: 1000;
  transition: var( --exm-transition);
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none; /* Firefox */  
  --webkit-scrollbar: none; /* Chrome, Safari, Edge */
}

.sidebar::-webkit-scrollbar {
  width: 4px;
}

.sidebar::-webkit-scrollbar-track {
  background: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
  background: #2d2d44;
  border-radius: 4px;
}

.sidebar.collapsed {
  width: var(--sidebar-collapsed-width);
  transition: var( --exm-transition);
}

.sidebar-brand {
  display: flex;
  align-items: center;
  padding: 0px 20px;
  text-decoration: none;
  min-height: var(--header-height);
   /* background: rgba(255, 255, 255, 0.05); */
}

    .sidebar-brand .brand-logo {
        width: 36px;
        height: 36px;
        background: linear-gradient(135deg, var(--exm-theme-80), var(--exm-theme-40));
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #fff;
        font-size: 18px;
        font-weight: 700;
        flex-shrink: 0;
        box-shadow: 0 4px 12px rgb(0 0 0 / 40%);
    }

.sidebar-brand .brand-text {
 /* margin-left: 12px;*/
  overflow: hidden;
  transition: var( --exm-transition);
}
    .sidebar-brand .brand-text-collpase {
        opacity: 0;
        width: 0;
        transition: var( --exm-transition);
    }
.sidebar-brand .brand-text h5 {
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    margin: 0;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.sidebar-brand .brand-text small {
  color: var(--accent-gold);
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  white-space: nowrap;
}

.sidebar.collapsed .brand-text {
  opacity: 0;
  width: 0;
}
.sidebar.collapsed .brand-text-collpase {
    opacity: 1;
    width: 100%;
}

/* Sidebar Nav */
.sidebar-nav {
  padding: 12px 0;
}

.nav-section-label {
  padding: 16px 20px 6px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  transition: var( --exm-transition);
}

.sidebar.collapsed .nav-section-label {
    opacity: 0;
    display: none;
}

.sidebar.collapsed .nav-item-link.has-sub {
    padding: 12px 28px;
}

.sidebar.collapsed .nav-item-link {
    position: relative;
    justify-content: center;
    transition: var(--exm-transition);
}

.nav-item-link {
  display: flex;
  align-items: center;
  padding: 12px 20px;
  color: var(--sidebar-text);
  text-decoration: none;
  transition: var( --exm-transition);
  border-radius: 12px;
  position: relative;
  white-space: nowrap;
  margin: 4px 12px 4px 12px;
}

    .nav-item-link.has-sub.open {
        background: rgb(228 231 228);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
    }
[data-bs-theme="dark"] .nav-item-link.has-sub.open {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}
    .nav-item-link:hover {
        color: var(--sidebar-hover);
        text-decoration: none;
        background: rgba(255, 255, 255, 0.08);
        transition: var( --exm-transition);
    }

    .nav-item-link.active {
        color: var( --sidebar-active-text);
        background: rgb(228 231 228);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
    }
[data-bs-theme="dark"] .nav-item-link.active {
    background: rgba(255, 255, 255, 0.08);
}
[data-bs-theme="dark"] .nav-icon img{
   filter:brightness(3.5);
}
[data-bs-theme="dark"] .topbar-btn img {
    filter: brightness(3.5);
}
.nav-sub.open .nav-item-link .nav-label {
    margin-left:20px;
}

.nav-sub .nav-item-link .nav-label {
    margin-left: 20px;
}

.nav-item-link .nav-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.nav-item-link .nav-label {
  margin-left: 12px;
  font-size: 13.5px;
  font-weight: 500;
  transition: var( --exm-transition);
  overflow: hidden;
}

.sidebar.collapsed .nav-label {
  opacity: 0;
  width: 0;
  margin: 0;
}

.nav-item-link .nav-badge {
  margin-left: auto;
  background: var(--accent-gold);
  color: #1e1e2e;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 20px;
  transition: var( --exm-transition);
}

.sidebar.collapsed .nav-badge {
  opacity: 0;
}

/* Sub-menu */
.nav-sub {
  list-style: none;
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

    .nav-sub.open {
        max-height: 100%;
        position: relative;
        transition: var(--exm-transition);
    }

        .nav-sub.open::before {
            content: "";
            height: 100%;
            display: block;
            width: 2px;
            background: var(--exm-border-color);
            position: absolute;
            left: 40px;
            z-index: 1;
            top: 0;
            transition: var(--exm-transition);
        }
    
.nav-sub .nav-item-link {
  padding: 9px 20px 9px 24px;
  font-size: 13px;
}

.nav-chevron {
  margin-left: auto;
  font-size: 11px;
  transition: transform 0.3s ease;
}

.nav-item-link.has-sub.open .nav-chevron {
  transform: rotate(90deg);
}

/* Sidebar Footer */
.sidebar-footer {
  padding: 16px 20px;
  margin-top: auto;
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.sidebar-user img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary);
  flex-shrink: 0;
}

.sidebar-user .user-info {
  overflow: hidden;
}

.sidebar-user .user-name {
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.sidebar-user .user-role {
  color: var(--sidebar-text);
  font-size: 11px;
  white-space: nowrap;
}

.sidebar.collapsed .sidebar-user .user-info {
  opacity: 0;
  width: 0;
}

/* Tooltip on collapsed */
.sidebar.collapsed .nav-item-link {
  position: relative;
  justify-content: center;
  transition: var( --exm-transition);
}

/* ============================================
   MAIN WRAPPER
   ============================================ */
.main-wrapper {
  margin-left: var(--sidebar-width);
  transition: var( --exm-transition);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.main-wrapper.sidebar-collapsed {
  margin-left: var(--sidebar-collapsed-width);
    transition: var( --exm-transition);

}

/* ============================================
   TOPBAR / HEADER
   ============================================ */
.topbar {
  height: var(--header-height);
  /* background: rgba(255, 255, 255, 0.05); */
  backdrop-filter: blur(40px);
  color: var(--header-text);
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 16px;
   position: sticky;
  /* width: calc(100% - var(--sidebar-width)); */
  top: 0; 
  z-index: 999;
  transition: var( --exm-transition);
}

.topbar-toggle{
  background: none;
  border: none;
  color: var(--text-color);
  font-size: 20px;
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
  transition: var( --exm-transition);
  display: flex;
  align-items: center;
}

.topbar-toggle:hover {
  background: var(--body-bg);
}

.main-wrapper.sidebar-collapsed .topbar{
  /*width: calc(100% - var(--sidebar-collapsed-width)); */
    transition: var( --exm-transition);
}

.topbar-search {
  flex: 1;
  max-width: 360px;
  position: relative;
}

    .topbar-search input {
        width: 100%;
        padding: 9px 16px 9px 40px;
        border: 1px solid var(--border-color);
        border-radius: 50px;
        font-size: 13.5px;
        background: var(--topbar-surface-bg);
        color: var(--exm-body-color);
        outline: none;
        transition: var( --exm-transition);
    }

.topbar-search input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px #AFB6AF;
}

.topbar-search .search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 14px;
}

.topbar-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.topbar-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    background: var(--topbar-surface-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    transition: var( --exm-transition);
    position: relative;
    color: var( --exm-body-color);
}
[data-bs-theme="dark"] .topbar-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    transition: var( --exm-transition);
    position: relative;
    color: var( --exm-body-color);
}
.topbar-btn:hover {
    background: var(--border-color);
}

.topbar-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 16px;
  height: 16px;
  background: var(--danger);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
}

.topbar-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  cursor: pointer;
  border: 2px solid var(--primary);
  transition: var( --exm-transition);
}

.topbar-avatar:hover {
  border-color: var(--primary-light);
}

.page-footer{
  height: 50px;
    /* background: var(--header-bg); */
    backdrop-filter: blur(40px);
    color: var(--header-text);
    display: flex;
    align-items: center;
    padding: 0 24px;
    gap: 16px;
   position: sticky;
    /* width: calc(100% - var(--sidebar-width)); */ 
    bottom: 0; 
    z-index: 999;
}

/* ============================================
   PAGE CONTENT
   ============================================ */
.page-content {
  padding:20px;
  flex: 1;
  transition: var( --exm-transition);
  /* background: var(--surface); */
    /* border-radius: var(--radius); */
}

.page-header {
  margin-bottom: 20px;
}

    .page-header h4 {
        font-size: 1.4rem;
        font-weight: 700;
        margin-bottom: 4px;
    }

.breadcrumb {
  margin: 0;
  background: none;
  padding: 0;
}

.breadcrumb-item {
  font-size: 13px;
  color: var(--text-muted);
}

.breadcrumb-item a {
  color: var(--primary);
  text-decoration: none;
}

.breadcrumb-item.active {
  color: var(--text-muted);
}

/* ============================================
   STAT CARDS
   ============================================ */

.stat-card {
    background: #ffffff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 18px;
    transition: var( --exm-transition);
    border: 1px solid #E4E7E4;
    position: relative;
    overflow: hidden;
}
[data-bs-theme="dark"] .stat-card {
    background: #0C0D0C;
    border-radius: 8px;
    padding: 20px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 18px;
    transition: var( --exm-transition);
    border: 1px solid #181B18;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgb(54 98 54 / 5%);
    transform: translate(20px, -20px);
}
[data-bs-theme="dark"] .stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #2d3a2d1a;
    transform: translate(20px, -20px);
}

.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.stat-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}

.stat-icon.purple {
  background: rgba(111, 66, 193, 0.12);
  color: var(--primary);
}

.stat-icon.gold {
  background: rgba(245, 158, 11, 0.12);
  color: var(--accent-gold);
}

.stat-icon.green {
  background: rgba(16, 185, 129, 0.12);
  color: var(--success);
}

.stat-icon.red {
  background: rgba(239, 68, 68, 0.12);
  color: var(--danger);
}

.stat-icon.blue {
  background: rgba(59, 130, 246, 0.12);
  color: var(--info);
}

.stat-info {
  flex: 1;
}

.stat-label {
  font-size: 12.5px;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 4px;
}

.stat-value {
  font-size: 26px;
  font-weight: 700;
  color: var(--text-color);
  line-height: 1;
}

.stat-change {
  font-size: 12px;
  margin-top: 6px;
}

.stat-change.up {
  color: var(--success);
}

.stat-change.down {
  color: var(--danger);
}

.stat-change i {
  font-size: 10px;
}

/* ============================================
   CARDS
   ============================================ */
.lux-card {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: var(--shadow);
    border: 1px solid #E4E7E4;
    overflow: hidden;
}
[data-bs-theme="dark"] .lux-card {
    background: #0C0D0C;
    border-radius: 8px;
    box-shadow: var(--shadow);
    border: 1px solid #181B18;
    overflow: hidden;
}

.lux-card-header {
  padding: 18px 22px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.lux-card-header h6 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-color);
  margin: 0;
}

.lux-card-body {
  padding: 22px;
}

.card-menu-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 16px;
  transition: var( --exm-transition);
}

.card-menu-btn:hover {
  background: var(--body-bg);
  color: var(--text-color);
}

/* ============================================
   GRADIENT CARDS
   ============================================ */
.gradient-card {
  border-radius: var(--radius);
  padding: 22px 24px;
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.gradient-card::after {
  content: '';
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}

.gc-purple {
  background: linear-gradient(135deg, #6f42c1, #8b5cf6);
}

.gc-gold {
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
}

.gc-green {
  background: linear-gradient(135deg, #10b981, #34d399);
}

.gc-blue {
  background: linear-gradient(135deg, #3b82f6, #60a5fa);
}

.gc-red {
  background: linear-gradient(135deg, #ef4444, #f87171);
}

.gc-dark {
  background: linear-gradient(135deg, #1e1e2e, #2d2d44);
}

/* ============================================
   TABLE STYLES
   ============================================ */
.lux-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.lux-table thead th {
  background: var(--body-bg);
  color: var(--text-muted);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 12px 16px;
  border: none;
  white-space: nowrap;
}

.lux-table tbody tr {
  transition: var( --exm-transition);
}

.lux-table tbody tr:hover {
  background: rgba(111, 66, 193, 0.03);
}

.lux-table tbody td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-color);
  font-size: 13.5px;
  color: var(--text-color);
  vertical-align: middle;
}

.lux-table tbody tr:last-child td {
  border-bottom: none;
}

/* ============================================
   BADGES
   ============================================ */
.lux-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 11.5px;
  font-weight: 600;
}

.badge-success {
  background: rgba(16, 185, 129, 0.12);
  color: var(--success);
}

.badge-warning {
  background: rgba(245, 158, 11, 0.12);
  color: #d97706;
}

.badge-danger {
  background: rgba(239, 68, 68, 0.12);
  color: var(--danger);
}

.badge-info {
  background: rgba(59, 130, 246, 0.12);
  color: var(--info);
}

.badge-purple {
  background: rgba(111, 66, 193, 0.12);
  color: var(--primary);
}

.badge-dark {
  background: rgba(30, 30, 46, 0.08);
  color: var(--text-color);
}

/* ============================================
   AVATAR / USER CELL
   ============================================ */
.avatar-sm {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
}

.avatar-placeholder {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.user-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-cell .user-details .name {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-color);
}

.user-cell .user-details .email {
  font-size: 12px;
  color: var(--text-muted);
}

/* ============================================
   PROGRESS BARS
   ============================================ */
.lux-progress {
  height: 6px;
  background: var(--border-color);
  border-radius: 10px;
  overflow: hidden;
}

.lux-progress-bar {
  height: 100%;
  border-radius: 10px;
  transition: width 1s ease;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn-lux {
  padding: 9px 20px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: var( --exm-transition);
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.btn-lux-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  box-shadow: 0 4px 12px rgba(111, 66, 193, 0.3);
}

.btn-lux-primary:hover {
  box-shadow: 0 6px 18px rgba(111, 66, 193, 0.45);
  transform: translateY(-1px);
  color: #fff;
}

.btn-lux-outline {
  background: transparent;
  border: 1.5px solid var(--border-color);
  color: var(--text-color);
}

.btn-lux-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* ============================================
   PRODUCT IMAGE CELL
   ============================================ */
.product-img-cell {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid var(--border-color);
}

.product-img-placeholder {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  background: var(--body-bg);
  flex-shrink: 0;
}

/* ============================================
   CHART CONTAINERS
   ============================================ */
.chart-container {
  position: relative;
}

.chart-container canvas {
  max-width: 100%;
}

/* ============================================
   RATING STARS
   ============================================ */
.stars {
  color: var(--accent-gold);
  font-size: 13px;
  letter-spacing: 1px;
}

/* ============================================
   TOGGLE SWITCH
   ============================================ */
.lux-switch {
  position: relative;
  display: inline-block;
  width: 42px;
  height: 22px;
}

.lux-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.lux-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--border-color);
  border-radius: 22px;
  transition: .3s;
}

.lux-slider:before {
  content: '';
  position: absolute;
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background: #fff;
  border-radius: 50%;
  transition: .3s;
}

.lux-switch input:checked+.lux-slider {
  background: var(--primary);
}

.lux-switch input:checked+.lux-slider:before {
  transform: translateX(20px);
}

/* ============================================
   NOTIFICATIONS DROPDOWN
   ============================================ */
.notif-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-color);
  transition: var( --exm-transition);
}

.notif-item:hover {
  background: var(--body-bg);
}

.notif-item:last-child {
  border-bottom: none;
}

.notif-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}

.notif-text .notif-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-color);
}

.notif-text .notif-time {
  font-size: 11.5px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ============================================
   LOGIN PAGE
   ============================================ */
.login-page {
  min-height: 100vh;
  background: linear-gradient(135deg, #0d0d1a 0%, #1a1a2e 50%, #16213e 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.login-card {
  background: #ffffff;

  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 48px 40px;
  width: 100%;
  max-width: 440px;
 box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4);
        /* margin-left:auto; */
      animation: cardIn 0.45s cubic-bezier(0.22,1,0.36,1) both;
}

.login-logo {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  margin: 0 auto 20px;
  box-shadow: 0 8px 24px rgba(111, 66, 193, 0.4);
}

.login-card h3 {
  color: #fff;
  font-size: 24px;
  font-weight: 700;
}

.login-card p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 14px;
}

.login-label {
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 6px;
}

.login-input {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: #fff;
  font-size: 14px;
  outline: none;
  transition: var( --exm-transition);
}

.login-input:focus {
  border-color: var(--primary);
  background: rgba(111, 66, 193, 0.1);
  box-shadow: 0 0 0 3px rgba(111, 66, 193, 0.2);
}

.login-input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.btn-login {
  width: 100%;
  padding: 13px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border: none;
  border-radius: 10px;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: var( --exm-transition);
  box-shadow: 0 6px 18px rgba(111, 66, 193, 0.35);
}

.btn-login:hover {
  box-shadow: 0 8px 24px rgba(111, 66, 193, 0.5);
  transform: translateY(-1px);
}

/* ============================================
   SETTINGS PAGE
   ============================================ */
.settings-tab-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border: none;
  background: none;
  color: var(--text-muted);
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  border-radius: var(--radius-sm);
  width: 100%;
  text-align: left;
  transition: var( --exm-transition);
}

.settings-tab-btn:hover {
  background: var(--body-bg);
  color: var(--text-color);
}

.settings-tab-btn.active {
  background: rgba(111, 66, 193, 0.1);
  color: var(--primary);
  font-weight: 600;
}

.settings-tab-btn i {
  font-size: 16px;
}

/* ============================================
   FORM STYLES
   ============================================ */
.lux-input {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  color: var(--text-color);
  background: #fff;
  outline: none;
  transition: var( --exm-transition);
}

.lux-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(111, 66, 193, 0.1);
}

.lux-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 6px;
  display: block;
}

.lux-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

/* ============================================
   ANALYTICS PAGE
   ============================================ */
.analytics-metric {
  text-align: center;
  padding: 20px;
}

.analytics-metric .metric-value {
  font-size: 32px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.analytics-metric .metric-label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ============================================
   SCROLLBAR
   ============================================ */
::-webkit-scrollbar {
  width: 2px;
  height: 2px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--exm-neutral-60);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
  background: #9ca3af;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 992px) {
  .sidebar {
    transform: translateX(-100%);
    z-index: 1050;
  }

  .sidebar.mobile-open {
    transform: translateX(0);
  }

  .main-wrapper {
    margin-left: 0 !important;
  }

  .sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1040;
  }

  .sidebar-overlay.show {
    display: block;
  }

  .page-content {
    padding: 20px 16px;
  }
}

@media (max-width: 576px) {
  .topbar-search {
    display: none;
  }

  .stat-value {
    font-size: 22px;
  }
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.4s ease forwards;
}

.fade-in-up:nth-child(1) {
  animation-delay: 0.05s;
}

.fade-in-up:nth-child(2) {
  animation-delay: 0.1s;
}

.fade-in-up:nth-child(3) {
  animation-delay: 0.15s;
}

.fade-in-up:nth-child(4) {
  animation-delay: 0.2s;
}

.fade-in-up:nth-child(5) {
  animation-delay: 0.25s;
}

.fade-in-up:nth-child(6) {
  animation-delay: 0.3s;
}

/* ============================================
   MISC
   ============================================ */
.divider {
  height: 1px;
  background: var(--border-color);
  margin: 16px 0;
}

.text-purple {
  color: var(--primary) !important;
}

.text-gold {
  color: var(--accent-gold) !important;
}

.bg-purple-soft {
  background: rgba(111, 66, 193, 0.08);
}

.rounded-lux {
  border-radius: var(--radius) !important;
}

.fw-700 {
  font-weight: 700;
}

/* Order Status Colors */
.order-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 6px;
}

.dot-success {
  background: var(--success);
}

.dot-warning {
  background: var(--warning);
}

.dot-danger {
  background: var(--danger);
}

.dot-info {
  background: var(--info);
}

.dot-purple {
  background: var(--primary);
}


/*----------------------------------------------------Login starts-------------------------------------------*/
.login-wrapper {
    position: relative;
    z-index: 1;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
   background:url('../img/login/loginbg.png') no-repeat;
    background-size: cover;
}
.login-wrapper-resetpassword {
    position: relative;
    z-index: 1;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;

}

/* ── Card ── */


@keyframes cardIn {
    from {
        opacity: 0;
        transform: translateY(28px) scale(0.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ── Logo Badge ── */
.brand-logologin {

 
    display: flex;
    align-items: center;
    justify-content: center;

}

    .brand-logologin span {
        font-size: 26px;
        font-weight: 800;
        color: var(--theme-20);
        letter-spacing: -1px;
        line-height: 1;
    }

/* ── Brand Text ── */
.brand-name {
    font-size: 22px;
    font-weight: 800;
    color: var(--neutral-30);
    text-align: center;
    margin-bottom: 4px;
    letter-spacing: -0.3px;
}

.brand-tagline {
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 2.2px;
    text-transform: uppercase;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 28px;
}

/* ── Divider ── */


/* ── Sign In Button ── */


/* ── Secure Portal Badge ── */
.secure-badge {
    width: 100%;
    padding: 11px 14px;
    margin-top: 12px;
     background: rgba(207,228,206,0.35);
      border: 1px solid var(--theme-20); 
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: var(--theme-70);
}

    .secure-badge i {
        font-size: 13px;
        color: var(--theme-60);
    }



    /*---------------------LOGIN ENDS---------------------*/


    /*---------------------DATATABLE STARTS---------------------*/
.dt-scroll-headInner{
    width:100% !important;
}
.dt-container .row:first-child {
    display: none !important;
}

.dt-container .row:nth-child(2) {
    margin-top: 0 !important;
}
.dt-layout-full {
        padding: 0 !important;
    }


.dt-container .row:last-child {
    margin-bottom: .5rem !important;
}
.dt-productimg {
    height: 60px;
    width: 60px;
    object-fit: contain;
    display: block;
    margin: auto;
}
.toast-container {
    z-index: 9999 !important;
}

/*Skeleton*/
/* Skeleton Base */

.skeleton {
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.08);
    border-radius: var(--exm-radius, 12px);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

    /* Shimmer Effect */
    .skeleton::after {
        content: "";
        position: absolute;
        inset: 0;
        transform: translateX(-100%);
        background: linear-gradient( 90deg, transparent, rgba(255, 255, 255, 0.25), transparent );
        animation: skeleton-loading 1.4s infinite;
    }

@keyframes skeleton-loading {
    100% {
        transform: translateX(100%);
    }
}
:root[data-bs-theme="light"] .skeleton {
    background: rgba(0, 0, 0, 0.06);
}
.page-skeleton {
    position: absolute;
    width: 100%;
    height: 100vh;
    z-index: 999999;
    overflow: hidden;
    display: block;
    background-color: var(--exm-body-bg);
    background-image: var(--exm-gradient-overlay);
    opacity: 1;
    transition: opacity 0.3s ease;
}

.skeleton-text {
    height: 12px;
    margin-bottom: 10px;
    border-radius: 6px;
}

.skeleton-title {
    height: 40px;
    width: 40%;
    margin-bottom: 15px;
}

.skeleton-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.skeleton-card {
    height: 120px;
    border-radius: var(--exm-radius);
}

.skeleton-table-row {
    height: 16px;
    margin-bottom: 12px;
}
.skeleton-table-card {
    height: 300px;
    margin-bottom: 12px;
}


/* Screenshoot Upload Box */
.proof {
    border-radius: 15px;
    padding: 12px;
    text-align: center;
    background-color: white;
    box-shadow: 5px 5px 15px #c7c7c7,-5px -5px 24px #f9f9f9;
}
[data-bs-theme=dark] .proof {
    border-radius: 15px;
    padding: 12px;
    text-align: center;
    background-color: var(--exm-body-bg);
    box-shadow: 5px 5px 15px #181818, -5px -5px 24px #181818;
}
.imgArea {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 10px;
    padding: 15px;
    height: 200px;
    width: 100%;
    background-color: rgb(242, 242, 242);
    border-radius: 10px;
}
[data-bs-theme=dark] .imgArea {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 10px;
    padding: 15px;
    height: 200px;
    width: 100%;
    background-color: rgb(0, 0,0);
    border-radius: 10px;
}

    .imgArea i {
        font-size: 100px;
    }

   

        .imgArea p span {
            font-weight: 600;
        }

    .imgArea img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        border-radius: 10px;
        z-index: 3;
    }

    .imgArea::before {
        content: attr(data-title);
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        color: white;
        display: flex;
        justify-content: center;
        align-items: center;
        z-index: 4;
        pointer-events: none;
        opacity: 0;
        transition: .5s;
    }

    .imgArea.active:hover::before {
        opacity: 1;
    }

.selectImage {
    margin-top: 10px;
    padding: 10px 15px;
    border-radius: 10px;
    width: 100%;
}

.agreement {
    padding: 15px 15px 30px;
    margin: 15px 0 20px;
}
/* Screenshoot Upload Box */

.custom-card-img-top{

    height:200px;
    object-fit:cover;
    object-position:center;
}