/* ============================================
   AdminNova - Premium Admin Template
   Custom Stylesheet
   ============================================ */

/* ---- CSS Variables ---- */
:root {
  --an-primary: #6366f1;
  --an-primary-rgb: 99, 102, 241;
  --an-primary-light: #818cf8;
  --an-primary-dark: #4f46e5;
  --an-secondary: #64748b;
  --an-success: #22c55e;
  --an-success-rgb: 34, 197, 94;
  --an-info: #06b6d4;
  --an-info-rgb: 6, 182, 212;
  --an-warning: #f59e0b;
  --an-warning-rgb: 245, 158, 11;
  --an-danger: #ef4444;
  --an-danger-rgb: 239, 68, 68;
  --an-pink: #ec4899;
  --an-pink-rgb: 236, 72, 153;
  --an-teal: #14b8a6;
  --an-teal-rgb: 20, 184, 166;
  --an-orange: #f97316;
  --an-orange-rgb: 249, 115, 22;
  --an-cyan: #22d3ee;
  --an-purple: #a855f7;
  --an-purple-rgb: 168, 85, 247;

  --an-body-bg: #f1f5f9;
  --an-card-bg: #ffffff;
  --an-sidebar-bg: #1e293b;
  --an-sidebar-width: 260px;
  --an-sidebar-collapsed-width: 70px;
  --an-topbar-height: 64px;
  --an-text-primary: #1e293b;
  --an-text-secondary: #64748b;
  --an-text-muted: #94a3b8;
  --an-border-color: #e2e8f0;
  --an-font-family: 'Inter', sans-serif;
  --an-transition: all 0.3s ease;
  --an-shadow-sm: 0 1px 2px 0 rgba(0,0,0,.05);
  --an-shadow: 0 1px 3px 0 rgba(0,0,0,.1), 0 1px 2px -1px rgba(0,0,0,.1);
  --an-shadow-md: 0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -2px rgba(0,0,0,.1);
  --an-shadow-lg: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -4px rgba(0,0,0,.1);
  --an-radius: 0.75rem;
  --an-radius-sm: 0.5rem;
  --an-radius-lg: 1rem;
}

/* ---- Dark Mode Variables ---- */
[data-theme="dark"] {
  --an-body-bg: #0f172a;
  --an-card-bg: #1e293b;
  --an-sidebar-bg: #0f172a;
  --an-text-primary: #f1f5f9;
  --an-text-secondary: #94a3b8;
  --an-text-muted: #64748b;
  --an-border-color: #334155;
  --an-shadow-sm: 0 1px 2px 0 rgba(0,0,0,.2);
  --an-shadow: 0 1px 3px 0 rgba(0,0,0,.3), 0 1px 2px -1px rgba(0,0,0,.3);
  --an-shadow-md: 0 4px 6px -1px rgba(0,0,0,.3), 0 2px 4px -2px rgba(0,0,0,.3);
  --an-shadow-lg: 0 10px 15px -3px rgba(0,0,0,.3), 0 4px 6px -4px rgba(0,0,0,.3);
}

[data-theme="dark"] .card,
[data-theme="dark"] .dropdown-menu,
[data-theme="dark"] .modal-content,
[data-theme="dark"] .offcanvas {
  background-color: var(--an-card-bg);
  border-color: var(--an-border-color);
}

[data-theme="dark"] body {
  color: var(--an-text-primary);
}

[data-theme="dark"] .table {
  --bs-table-bg: transparent;
  --bs-table-color: var(--an-text-primary);
  --bs-table-border-color: var(--an-border-color);
  --bs-table-striped-bg: rgba(255,255,255,.03);
  --bs-table-hover-bg: rgba(255,255,255,.05);
}

[data-theme="dark"] .form-control,
[data-theme="dark"] .form-select {
  background-color: #0f172a;
  border-color: var(--an-border-color);
  color: var(--an-text-primary);
}

[data-theme="dark"] .form-control:focus,
[data-theme="dark"] .form-select:focus {
  background-color: #0f172a;
  border-color: var(--an-primary);
  color: var(--an-text-primary);
}

[data-theme="dark"] .breadcrumb-item a {
  color: var(--an-text-secondary);
}

/* ---- Modern Pagination ---- */
.pagination {
  gap: 6px;
}

.page-link {
  border: none;
  border-radius: 10px !important;
  min-width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--an-text-secondary);
  background: var(--an-card-bg);
  box-shadow: var(--an-shadow-sm);
  padding: 0 12px;
  transition: all .2s ease;
}

.page-link:hover {
  background: rgba(var(--an-primary-rgb), .08);
  color: var(--an-primary);
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(0,0,0,.08);
}

.page-link:focus {
  box-shadow: 0 0 0 3px rgba(var(--an-primary-rgb), .15);
}

.page-item.active .page-link {
  background: var(--an-primary);
  color: #fff;
  box-shadow: 0 4px 12px rgba(var(--an-primary-rgb), .3);
}

.page-item.disabled .page-link {
  background: var(--an-body-bg);
  color: var(--an-text-muted);
  opacity: 0.6;
  box-shadow: none;
}

.pagination-lg .page-link {
  min-width: 44px;
  height: 44px;
  font-size: 0.9rem;
  border-radius: 12px !important;
}

.pagination-sm .page-link {
  min-width: 30px;
  height: 30px;
  font-size: 0.75rem;
  border-radius: 8px !important;
}

[data-theme="dark"] .page-link {
  background-color: var(--an-card-bg);
  color: var(--an-text-primary);
  box-shadow: none;
}

[data-theme="dark"] .page-link:hover {
  background: rgba(var(--an-primary-rgb), .15);
}

[data-theme="dark"] .page-item.disabled .page-link {
  background: rgba(255,255,255,.03);
}

[data-theme="dark"] .list-group-item {
  background-color: var(--an-card-bg);
  border-color: var(--an-border-color);
  color: var(--an-text-primary);
}

[data-theme="dark"] .text-dark {
  color: var(--an-text-primary) !important;
}

[data-theme="dark"] .text-muted {
  color: var(--an-text-muted) !important;
}

[data-theme="dark"] .bg-white {
  background-color: var(--an-card-bg) !important;
}

[data-theme="dark"] .bg-light {
  background-color: rgba(255,255,255,.05) !important;
}

[data-theme="dark"] .border {
  border-color: var(--an-border-color) !important;
}

[data-theme="dark"] .an-topbar {
  background-color: var(--an-card-bg);
  border-color: var(--an-border-color);
}

[data-theme="dark"] .an-topbar .form-control {
  background-color: rgba(255,255,255,.05);
}

[data-theme="dark"] .dropdown-menu {
  box-shadow: 0 10px 40px rgba(0,0,0,.4);
}

[data-theme="dark"] .dropdown-item {
  color: var(--an-text-secondary);
}

[data-theme="dark"] .dropdown-item:hover {
  background-color: rgba(255,255,255,.05);
  color: var(--an-text-primary);
}

[data-theme="dark"] .an-stat-card {
  border-color: var(--an-border-color);
}

[data-theme="dark"] .apexcharts-tooltip {
  background: var(--an-card-bg) !important;
  color: var(--an-text-primary) !important;
  border-color: var(--an-border-color) !important;
}

[data-theme="dark"] .apexcharts-xaxistooltip,
[data-theme="dark"] .apexcharts-yaxistooltip {
  background: var(--an-card-bg) !important;
  color: var(--an-text-primary) !important;
  border-color: var(--an-border-color) !important;
}

[data-theme="dark"] input::placeholder {
  color: var(--an-text-muted) !important;
}

/* ---- Base Styles ---- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--an-font-family);
  background-color: var(--an-body-bg);
  color: var(--an-text-primary);
  font-size: 0.875rem;
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: var(--an-primary);
  transition: var(--an-transition);
}

a:hover {
  color: var(--an-primary-dark);
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  color: var(--an-text-primary);
  line-height: 1.3;
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

[data-theme="dark"] ::-webkit-scrollbar-thumb {
  background: #475569;
}

/* ---- Layout ---- */
.an-wrapper {
  display: flex;
  min-height: 100vh;
}

.an-content-wrapper {
  flex: 1;
  margin-left: var(--an-sidebar-width);
  transition: var(--an-transition);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-width: 0;
  max-width: calc(100% - var(--an-sidebar-width));
}

.an-content {
  flex: 1;
  padding: 24px;
  margin-top: var(--an-topbar-height);
  overflow-x: hidden;
  max-width: 100%;
  min-width: 0;
}

.an-content > .card,
.an-content > .an-page-header {
  max-width: 100%;
}

/* Boxed Layout */
[data-layout="boxed"] body {
  background: #cbd5e1;
}

[data-theme="dark"][data-layout="boxed"] body {
  background: #020617;
}

[data-layout="boxed"] .an-sidebar {
  position: absolute;
}

[data-layout="boxed"] .an-topbar {
  position: absolute;
}

[data-layout="boxed"] .an-wrapper {
  max-width: 1400px;
  margin: 0 auto;
  box-shadow: var(--an-shadow-lg);
  position: relative;
  background: var(--an-body-bg);
  min-height: 100vh;
}

[data-layout="boxed"] .an-content {
  margin-top: 0;
}

[data-layout="boxed"] .an-content-wrapper {
  padding-top: var(--an-topbar-height);
}

/* ---- Sidebar ---- */
.an-sidebar {
  width: var(--an-sidebar-width);
  background: linear-gradient(180deg, #0f172a 0%, #1a1f3d 100%);
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  z-index: 1040;
  transition: var(--an-transition);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.an-sidebar-header {
  height: var(--an-topbar-height);
  display: flex;
  align-items: center;
  padding: 0 20px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  flex-shrink: 0;
}

.an-sidebar-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #ffffff;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.an-sidebar-logo .logo-icon {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, #6366f1, #a855f7);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  color: #fff;
  box-shadow: 0 4px 12px rgba(99,102,241,.35);
}

.an-sidebar-logo .logo-text {
  white-space: nowrap;
  overflow: hidden;
  transition: var(--an-transition);
  background: linear-gradient(135deg, #c7d2fe, #e9d5ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.an-sidebar-menu {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 8px 12px;
}

.an-sidebar-menu::-webkit-scrollbar {
  width: 3px;
}

.an-sidebar-menu::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,.08);
  border-radius: 3px;
}

.an-menu-category {
  padding: 20px 12px 8px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,.25);
  white-space: nowrap;
  overflow: hidden;
}

.an-menu-category::after {
  content: '';
  display: inline-block;
  width: 20px;
  height: 1px;
  background: rgba(255,255,255,.1);
  vertical-align: middle;
  margin-left: 8px;
}

.an-menu-item {
  position: relative;
  margin-bottom: 2px;
}

.an-menu-link {
  display: flex;
  align-items: center;
  padding: 10px 14px;
  color: rgba(255,255,255,.55);
  font-size: 0.8125rem;
  font-weight: 400;
  transition: all .2s ease;
  white-space: nowrap;
  gap: 12px;
  border-radius: 10px;
  border: 1px solid transparent;
  margin: 0;
}

.an-menu-link:hover {
  color: rgba(255,255,255,.95);
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.04);
}

.an-menu-link.active {
  color: #ffffff;
  background: linear-gradient(135deg, rgba(99,102,241,.2), rgba(168,85,247,.15));
  border-color: rgba(99,102,241,.25);
  box-shadow: 0 2px 8px rgba(99,102,241,.15);
}

.an-menu-link .menu-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  stroke-width: 1.8;
  font-size: 1.15rem;
  opacity: 0.8;
}

.an-menu-link:hover .menu-icon,
.an-menu-link.active .menu-icon {
  opacity: 1;
}

.an-menu-link.active .menu-icon {
  color: #a5b4fc;
}

.an-menu-link .menu-text {
  flex: 1;
  overflow: hidden;
  transition: var(--an-transition);
}

.an-menu-link .menu-arrow {
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
  flex-shrink: 0;
  opacity: 0.5;
}

.an-menu-item.open > .an-menu-link .menu-arrow {
  transform: rotate(90deg);
  opacity: 0.8;
}

.an-menu-link .menu-badge {
  font-size: 0.6rem;
  padding: 2px 8px;
  border-radius: 20px;
  font-weight: 600;
  flex-shrink: 0;
  letter-spacing: 0.02em;
}

.an-submenu {
  display: none;
  list-style: none;
  padding: 4px 0 4px 16px;
  margin: 2px 0 2px 22px;
  border-left: 1px solid rgba(255,255,255,.08);
  background: transparent;
}

.an-menu-item.open > .an-submenu {
  display: block;
}

.an-submenu .an-menu-link {
  padding: 7px 14px;
  font-size: 0.79rem;
  border-radius: 8px;
  color: rgba(255,255,255,.45);
}

.an-submenu .an-menu-link::before {
  content: '';
  width: 5px;
  height: 5px;
  border: 1.5px solid rgba(255,255,255,.2);
  border-radius: 50%;
  position: absolute;
  left: -19px;
  transition: var(--an-transition);
  top: 50%;
  margin-top: -2.5px;
}

.an-submenu .an-menu-link:hover {
  color: rgba(255,255,255,.9);
  background: rgba(255,255,255,.04);
}

.an-submenu .an-menu-link.active {
  color: #c7d2fe;
  background: rgba(99,102,241,.1);
  border-color: transparent;
  box-shadow: none;
}

.an-submenu .an-menu-link:hover::before,
.an-submenu .an-menu-link.active::before {
  background: #818cf8;
  border-color: #818cf8;
  box-shadow: 0 0 6px rgba(129,140,248,.5);
}

/* Sidebar Collapsed */
[data-sidebar="collapsed"] .an-sidebar {
  width: var(--an-sidebar-collapsed-width);
}

[data-sidebar="collapsed"] .an-content-wrapper {
  margin-left: var(--an-sidebar-collapsed-width);
  max-width: calc(100% - var(--an-sidebar-collapsed-width));
}

[data-sidebar="collapsed"] .an-sidebar-logo .logo-text,
[data-sidebar="collapsed"] .an-menu-category,
[data-sidebar="collapsed"] .an-menu-link .menu-text,
[data-sidebar="collapsed"] .an-menu-link .menu-arrow,
[data-sidebar="collapsed"] .an-menu-link .menu-badge {
  display: none;
}

[data-sidebar="collapsed"] .an-sidebar:hover {
  width: var(--an-sidebar-width);
  box-shadow: 8px 0 30px rgba(0,0,0,.2);
}

[data-sidebar="collapsed"] .an-sidebar:hover .an-sidebar-logo .logo-text,
[data-sidebar="collapsed"] .an-sidebar:hover .an-menu-category,
[data-sidebar="collapsed"] .an-sidebar:hover .an-menu-link .menu-text,
[data-sidebar="collapsed"] .an-sidebar:hover .an-menu-link .menu-arrow,
[data-sidebar="collapsed"] .an-sidebar:hover .an-menu-link .menu-badge {
  display: inline-flex;
}

[data-sidebar="collapsed"] .an-sidebar-menu {
  padding: 8px 6px;
}

[data-sidebar="collapsed"] .an-menu-link {
  justify-content: center;
  padding: 10px 0;
  border-radius: 10px;
}

[data-sidebar="collapsed"] .an-sidebar:hover .an-sidebar-menu {
  padding: 8px 12px;
}

[data-sidebar="collapsed"] .an-sidebar:hover .an-menu-link {
  justify-content: flex-start;
  padding: 10px 14px;
}

[data-sidebar="collapsed"] .an-submenu {
  display: none !important;
}

[data-sidebar="collapsed"] .an-sidebar:hover .an-menu-item.open > .an-submenu {
  display: block !important;
}

/* ---- Vertical Menu Groups ---- */
/* In vertical mode, groups are always open and group-link shows as category label */
.an-menu-group {
  margin-bottom: 0;
}

.an-group-link {
  padding: 20px 14px 8px !important;
  font-size: 0.65rem !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,.25) !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  pointer-events: none;
  cursor: default;
}

.an-group-link .menu-icon {
  display: none;
}

.an-group-link .menu-arrow {
  display: none;
}

.an-group-menu {
  display: block !important;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
  background: transparent !important;
}

/* Hide old category divs (no longer used) */
.an-menu-category {
  display: none;
}

/* ---- Horizontal Menu ---- */
[data-menu="horizontal"] .an-sidebar {
  width: 100%;
  height: auto;
  position: fixed;
  top: var(--an-topbar-height);
  flex-direction: row;
  overflow: visible !important;
  z-index: 1030;
  border-bottom: 1px solid rgba(255,255,255,.06);
  background: linear-gradient(180deg, #0f172a 0%, #1a1f3d 100%);
}

[data-menu="horizontal"] .an-sidebar-header {
  display: none;
}

[data-menu="horizontal"] .an-sidebar-menu {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: visible !important;
  overflow-y: visible !important;
  padding: 0 16px;
  width: 100%;
}

[data-menu="horizontal"] .an-sidebar-menu > .an-menu-group {
  position: relative;
  overflow: visible !important;
  margin-bottom: 0;
}

/* Ensure menu groups allow visible overflow in horizontal */
[data-menu="horizontal"] .an-menu-group {
  position: relative;
  overflow: visible !important;
}

/* In horizontal: group-link becomes a visible top-level menu item */
[data-menu="horizontal"] .an-group-link {
  padding: 13px 18px !important;
  font-size: 0.8125rem !important;
  font-weight: 500 !important;
  text-transform: none;
  letter-spacing: normal;
  color: rgba(255,255,255,.65) !important;
  pointer-events: auto;
  cursor: pointer;
  white-space: nowrap;
  border-radius: 0 !important;
  border-bottom: 2px solid transparent !important;
}

[data-menu="horizontal"] .an-group-link:hover {
  color: rgba(255,255,255,.95) !important;
  background: rgba(255,255,255,.05) !important;
  border-bottom-color: rgba(var(--an-primary-rgb), .4) !important;
}

[data-menu="horizontal"] .an-group-link .menu-icon {
  display: inline-flex;
  font-size: 1.1rem;
  opacity: 0.7;
}

[data-menu="horizontal"] .an-group-link .menu-arrow {
  display: inline-flex;
  width: 14px;
  height: 14px;
  opacity: 0.5;
  transform: none;
}

[data-menu="horizontal"] .an-menu-item.open > .an-group-link .menu-arrow,
[data-menu="horizontal"] .an-menu-group:hover > .an-group-link .menu-arrow {
  transform: rotate(180deg);
}

/* Group dropdown (first-level) */
[data-menu="horizontal"] .an-submenu.an-group-menu {
  display: none !important;
  position: absolute !important;
  top: 100% !important;
  left: 0 !important;
  min-width: 230px;
  overflow: visible !important;
  background: #1e293b !important;
  border-radius: 0 0 12px 12px !important;
  box-shadow: 0 12px 32px rgba(0,0,0,.35) !important;
  z-index: 9999 !important;
  padding: 8px 0 !important;
  margin: 0 !important;
  border: 1px solid rgba(255,255,255,.06) !important;
  border-top: none !important;
}

[data-theme="dark"] [data-menu="horizontal"] .an-group-menu {
  background: #1e293b;
}

/* Show on hover */
[data-menu="horizontal"] .an-menu-group:hover > .an-submenu.an-group-menu {
  display: block !important;
}

[data-menu="horizontal"] .an-menu-group.open > .an-submenu.an-group-menu {
  display: block !important;
}

/* Items inside horizontal dropdown */
[data-menu="horizontal"] .an-group-menu > .an-menu-item > .an-menu-link {
  padding: 9px 18px;
  font-size: 0.8rem;
  color: rgba(255,255,255,.6);
  border-radius: 0;
  border: none;
  gap: 10px;
}

[data-menu="horizontal"] .an-group-menu > .an-menu-item > .an-menu-link:hover {
  color: #fff;
  background: rgba(99,102,241,.15);
}

[data-menu="horizontal"] .an-group-menu > .an-menu-item > .an-menu-link.active {
  color: #fff;
  background: rgba(99,102,241,.2);
  box-shadow: none;
}

[data-menu="horizontal"] .an-group-menu > .an-menu-item > .an-menu-link .menu-icon {
  font-size: 1rem;
  opacity: 0.7;
  width: 18px;
}

[data-menu="horizontal"] .an-group-menu > .an-menu-item > .an-menu-link .menu-arrow {
  display: inline-flex;
  width: 14px;
  height: 14px;
  opacity: 0.4;
  transform: none;
}

/* Third-level dropdown (nested submenu inside horizontal dropdown) */
[data-menu="horizontal"] .an-group-menu .an-submenu:not(.an-group-menu) {
  display: none !important;
  position: absolute !important;
  top: 0 !important;
  left: 100% !important;
  min-width: 200px;
  background: #1e293b !important;
  border-radius: 8px !important;
  box-shadow: 0 8px 24px rgba(0,0,0,.3) !important;
  z-index: 99999 !important;
  padding: 8px 0 !important;
  margin: 0 !important;
  border: 1px solid rgba(255,255,255,.06) !important;
  overflow: visible !important;
}

[data-menu="horizontal"] .an-group-menu .an-menu-item:hover > .an-submenu:not(.an-group-menu) {
  display: block !important;
}

[data-menu="horizontal"] .an-group-menu .an-menu-item.open > .an-submenu:not(.an-group-menu) {
  display: block !important;
}

[data-menu="horizontal"] .an-group-menu .an-submenu .an-menu-link {
  padding: 8px 18px;
  font-size: 0.79rem;
  color: rgba(255,255,255,.55);
  border-radius: 0;
  border: none;
}

[data-menu="horizontal"] .an-group-menu .an-submenu .an-menu-link::before {
  display: none;
}

[data-menu="horizontal"] .an-group-menu .an-submenu .an-menu-link:hover {
  color: #fff;
  background: rgba(99,102,241,.12);
}

[data-menu="horizontal"] .an-group-menu .an-submenu .an-menu-link.active {
  color: #c7d2fe;
  background: rgba(99,102,241,.15);
  box-shadow: none;
}

/* Horizontal layout adjustments */
[data-menu="horizontal"] .an-content-wrapper {
  margin-left: 0;
  max-width: 100%;
}

[data-menu="horizontal"] .an-content {
  margin-top: calc(var(--an-topbar-height) + 50px);
}

[data-menu="horizontal"] .an-topbar {
  left: 0 !important;
  width: 100% !important;
}

[data-menu="horizontal"] .an-topbar .an-topbar-logo {
  display: flex !important;
}

[data-menu="horizontal"] .an-topbar .an-topbar-logo .logo-icon {
  width: 32px;
  height: 32px;
}

/* Boxed + horizontal */
[data-layout="boxed"][data-menu="horizontal"] .an-sidebar {
  position: absolute;
  max-width: 1400px;
  left: 50%;
  transform: translateX(-50%);
}

[data-layout="boxed"][data-menu="horizontal"] .an-topbar {
  position: absolute;
  max-width: 1400px;
  left: 50% !important;
  transform: translateX(-50%);
  width: 100% !important;
}

/* Collapsed + group: hide group link text like other items */
[data-sidebar="collapsed"] .an-group-link {
  padding: 12px 0 !important;
  justify-content: center;
}

[data-sidebar="collapsed"] .an-group-link .menu-text {
  display: none;
}

[data-sidebar="collapsed"] .an-group-menu {
  display: none !important;
}

[data-sidebar="collapsed"] .an-sidebar:hover .an-group-link {
  padding: 20px 14px 8px !important;
  justify-content: flex-start;
}

[data-sidebar="collapsed"] .an-sidebar:hover .an-group-link .menu-text {
  display: inline-flex;
}

[data-sidebar="collapsed"] .an-sidebar:hover .an-group-menu {
  display: block !important;
}

/* ---- Topbar ---- */
.an-topbar {
  height: var(--an-topbar-height);
  background: var(--an-card-bg);
  border-bottom: 1px solid var(--an-border-color);
  position: fixed;
  top: 0;
  right: 0;
  left: var(--an-sidebar-width);
  z-index: 1035;
  display: flex;
  align-items: center;
  padding: 0 24px;
  transition: var(--an-transition);
  box-shadow: var(--an-shadow-sm);
}

[data-sidebar="collapsed"] .an-topbar {
  left: var(--an-sidebar-collapsed-width);
}

.an-topbar-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.an-topbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

/* Topbar logo (hidden by default, shown in horizontal mode) */
.an-topbar-logo {
  display: none;
  align-items: center;
  gap: 10px;
  color: var(--an-text-primary);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-right: 16px;
  white-space: nowrap;
}

.an-topbar-logo .logo-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--an-primary), var(--an-pink));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.9rem;
  color: #fff;
}

.an-toggle-sidebar {
  background: none;
  border: none;
  color: var(--an-text-secondary);
  cursor: pointer;
  padding: 6px;
  border-radius: var(--an-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--an-transition);
}

.an-toggle-sidebar:hover {
  background: rgba(var(--an-primary-rgb), .08);
  color: var(--an-primary);
}

.an-topbar-search {
  position: relative;
  width: 280px;
}

.an-topbar-search .form-control {
  background: var(--an-body-bg);
  border: 1px solid var(--an-border-color);
  border-radius: 50px;
  padding: 8px 16px 8px 40px;
  font-size: 0.8125rem;
  transition: var(--an-transition);
}

.an-topbar-search .form-control:focus {
  border-color: var(--an-primary);
  box-shadow: 0 0 0 3px rgba(var(--an-primary-rgb), .1);
  width: 320px;
}

.an-topbar-search .search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--an-text-muted);
  width: 16px;
  height: 16px;
}

.an-topbar-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: none;
  color: var(--an-text-secondary);
  border-radius: 50%;
  cursor: pointer;
  position: relative;
  transition: var(--an-transition);
}

.an-topbar-btn:hover {
  background: rgba(var(--an-primary-rgb), .08);
  color: var(--an-primary);
}

.an-topbar-btn .badge-dot {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--an-danger);
  border: 2px solid var(--an-card-bg);
}

.an-topbar-btn .badge-count {
  position: absolute;
  top: 4px;
  right: 2px;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  background: var(--an-danger);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 2px solid var(--an-card-bg);
}

/* Topbar Dropdowns */
.an-topbar-dropdown {
  position: relative;
}

.an-topbar-dropdown .dropdown-menu {
  min-width: 320px;
  border: none;
  border-radius: var(--an-radius);
  box-shadow: 0 10px 40px rgba(0,0,0,.12);
  padding: 0;
  margin-top: 8px;
  overflow: hidden;
}

.an-dropdown-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--an-border-color);
}

.an-dropdown-header h6 {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
}

.an-dropdown-body {
  max-height: 320px;
  overflow-y: auto;
}

.an-dropdown-footer {
  padding: 10px 18px;
  text-align: center;
  border-top: 1px solid var(--an-border-color);
}

.an-dropdown-footer a {
  font-size: 0.8rem;
  font-weight: 500;
}

.an-notification-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 18px;
  transition: var(--an-transition);
  border-bottom: 1px solid var(--an-border-color);
}

.an-notification-item:hover {
  background: rgba(var(--an-primary-rgb), .04);
}

.an-notification-item:last-child {
  border-bottom: none;
}

.an-notification-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

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

.an-notification-content p {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--an-text-primary);
  line-height: 1.4;
}

.an-notification-content small {
  color: var(--an-text-muted);
  font-size: 0.75rem;
}

/* User Profile Dropdown */
.an-user-profile {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: var(--an-radius-sm);
  transition: var(--an-transition);
}

.an-user-profile:hover {
  background: rgba(var(--an-primary-rgb), .05);
}

.an-user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--an-primary), var(--an-pink));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 600;
  font-size: 0.85rem;
  flex-shrink: 0;
  overflow: hidden;
}

.an-user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.an-user-info {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.an-user-info .user-name {
  font-weight: 600;
  font-size: 0.8125rem;
  color: var(--an-text-primary);
}

.an-user-info .user-role {
  font-size: 0.7rem;
  color: var(--an-text-muted);
}

.an-user-dropdown .dropdown-menu {
  min-width: 220px;
}

.an-user-dropdown .dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  font-size: 0.8125rem;
  color: var(--an-text-secondary);
}

.an-user-dropdown .dropdown-item:hover {
  color: var(--an-primary);
  background: rgba(var(--an-primary-rgb), .05);
}

.an-user-dropdown .dropdown-item svg {
  width: 16px;
  height: 16px;
}

/* ---- Page Header ---- */
.an-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
  max-width: 100%;
  overflow: hidden;
}

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

.an-page-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
}

.an-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--an-text-muted);
  margin: 0;
  padding: 0;
  list-style: none;
}

.an-breadcrumb li + li::before {
  content: '/';
  margin-right: 6px;
  color: var(--an-text-muted);
}

.an-breadcrumb a {
  color: var(--an-text-secondary);
}

.an-breadcrumb a:hover {
  color: var(--an-primary);
}

/* ---- Cards ---- */
.card {
  border: 1px solid var(--an-border-color);
  border-radius: var(--an-radius);
  box-shadow: var(--an-shadow-sm);
  background: var(--an-card-bg);
  transition: var(--an-transition);
  overflow: hidden;
}

.card:hover {
  box-shadow: var(--an-shadow-md);
}

.card-header {
  background: transparent;
  border-bottom: 1px solid var(--an-border-color);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-header .card-title {
  font-size: 0.9375rem;
  font-weight: 600;
  margin: 0;
}

.card-body {
  padding: 20px;
}

.card-footer {
  background: transparent;
  border-top: 1px solid var(--an-border-color);
  padding: 12px 20px;
}

/* Stat Cards */
.an-stat-card {
  border-radius: var(--an-radius);
  padding: 20px;
  transition: var(--an-transition);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--an-border-color);
  background: var(--an-card-bg);
  height: 100%;
}

.an-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--an-shadow-md);
}

.an-stat-card .stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.an-stat-card .stat-icon svg {
  width: 24px;
  height: 24px;
  color: inherit;
}

.an-stat-card .stat-value {
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 4px;
}

.an-stat-card .stat-label {
  font-size: 0.8rem;
  color: var(--an-text-muted);
  margin-bottom: 10px;
}

.an-stat-card .stat-change {
  font-size: 0.75rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 8px;
  border-radius: 20px;
}

.stat-change.positive {
  color: var(--an-success);
  background: rgba(var(--an-success-rgb), .1);
}

.stat-change.negative {
  color: var(--an-danger);
  background: rgba(var(--an-danger-rgb), .1);
}

/* Gradient Stat Cards */
.an-stat-gradient {
  border: none;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.an-stat-gradient .stat-label {
  color: rgba(255,255,255,.75);
}

.an-stat-gradient .stat-change {
  color: rgba(255,255,255,.9);
  background: rgba(255,255,255,.2);
}

.an-stat-gradient::after {
  content: '';
  position: absolute;
  top: -30%;
  right: -20%;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
}

.an-stat-gradient::before {
  content: '';
  position: absolute;
  bottom: -20%;
  right: 10%;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
}

.an-gradient-primary { background: linear-gradient(135deg, #6366f1, #8b5cf6); }
.an-gradient-success { background: linear-gradient(135deg, #22c55e, #16a34a); }
.an-gradient-info { background: linear-gradient(135deg, #06b6d4, #0891b2); }
.an-gradient-warning { background: linear-gradient(135deg, #f59e0b, #d97706); }
.an-gradient-danger { background: linear-gradient(135deg, #ef4444, #dc2626); }
.an-gradient-pink { background: linear-gradient(135deg, #ec4899, #db2777); }
.an-gradient-teal { background: linear-gradient(135deg, #14b8a6, #0d9488); }
.an-gradient-orange { background: linear-gradient(135deg, #f97316, #ea580c); }

/* Icon Stat Cards */
.an-stat-icon-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  border-radius: var(--an-radius);
  background: var(--an-card-bg);
  border: 1px solid var(--an-border-color);
  transition: var(--an-transition);
  height: 100%;
}

.an-stat-icon-card:hover {
  box-shadow: var(--an-shadow-md);
  transform: translateY(-2px);
}

.an-stat-icon-card .stat-icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.an-stat-icon-card .stat-icon-wrap svg {
  width: 26px;
  height: 26px;
}

.an-stat-icon-card .stat-details {
  flex: 1;
}

.an-stat-icon-card .stat-details .stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
}

.an-stat-icon-card .stat-details .stat-label {
  font-size: 0.8rem;
  color: var(--an-text-muted);
  margin: 0;
}

/* Mini chart stat card */
.an-stat-chart-card {
  border-radius: var(--an-radius);
  padding: 20px;
  background: var(--an-card-bg);
  border: 1px solid var(--an-border-color);
  transition: var(--an-transition);
  height: 100%;
}

.an-stat-chart-card:hover {
  box-shadow: var(--an-shadow-md);
}

.an-stat-chart-card .stat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.an-stat-chart-card .stat-value {
  font-size: 1.5rem;
  font-weight: 700;
}

.an-stat-chart-card .stat-label {
  font-size: 0.8rem;
  color: var(--an-text-muted);
}

/* Progress stat card */
.an-stat-progress-card {
  border-radius: var(--an-radius);
  padding: 20px;
  background: var(--an-card-bg);
  border: 1px solid var(--an-border-color);
  transition: var(--an-transition);
  height: 100%;
}

.an-stat-progress-card:hover {
  box-shadow: var(--an-shadow-md);
}

.an-stat-progress-card .stat-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 16px;
}

.an-stat-progress-card .stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
}

.an-stat-progress-card .stat-label {
  font-size: 0.8rem;
  color: var(--an-text-muted);
  margin-top: 4px;
}

/* ---- Tables ---- */
.table {
  margin-bottom: 0;
}

.table > thead > tr > th {
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--an-text-secondary);
  border-bottom-width: 1px;
  padding: 12px 16px;
  white-space: nowrap;
}

.table > tbody > tr > td {
  padding: 12px 16px;
  vertical-align: middle;
  font-size: 0.8125rem;
  border-color: var(--an-border-color);
}

.table-hover > tbody > tr:hover {
  background-color: rgba(var(--an-primary-rgb), .03);
}

/* ---- Progress Bars ---- */
.progress {
  height: 6px;
  border-radius: 3px;
  background-color: rgba(var(--an-primary-rgb), .1);
  overflow: hidden;
}

.progress-bar {
  border-radius: 3px;
  transition: width 0.6s ease;
}

/* ---- Badges ---- */
.badge {
  font-weight: 500;
  font-size: 0.7rem;
  padding: 4px 10px;
  border-radius: 6px;
}

.badge-soft-primary { background: rgba(var(--an-primary-rgb), .1); color: var(--an-primary); }
.badge-soft-success { background: rgba(var(--an-success-rgb), .1); color: var(--an-success); }
.badge-soft-info { background: rgba(var(--an-info-rgb), .1); color: var(--an-info); }
.badge-soft-warning { background: rgba(var(--an-warning-rgb), .1); color: var(--an-warning); }
.badge-soft-danger { background: rgba(var(--an-danger-rgb), .1); color: var(--an-danger); }
.badge-soft-pink { background: rgba(var(--an-pink-rgb), .1); color: var(--an-pink); }
.badge-soft-purple { background: rgba(var(--an-purple-rgb), .1); color: var(--an-purple); }
.badge-soft-teal { background: rgba(var(--an-teal-rgb), .1); color: var(--an-teal); }
.badge-soft-orange { background: rgba(var(--an-orange-rgb), .1); color: var(--an-orange); }

/* ---- Buttons Custom ---- */
.btn {
  font-size: 0.8125rem;
  font-weight: 500;
  border-radius: var(--an-radius-sm);
  padding: 8px 16px;
  transition: var(--an-transition);
}

.btn-primary {
  background: var(--an-primary);
  border-color: var(--an-primary);
}

.btn-primary:hover {
  background: var(--an-primary-dark);
  border-color: var(--an-primary-dark);
}

.btn-soft-primary {
  background: rgba(var(--an-primary-rgb), .1);
  color: var(--an-primary);
  border: none;
}

.btn-soft-primary:hover {
  background: var(--an-primary);
  color: #fff;
}

.btn-soft-success {
  background: rgba(var(--an-success-rgb), .1);
  color: var(--an-success);
  border: none;
}

.btn-soft-success:hover {
  background: var(--an-success);
  color: #fff;
}

.btn-soft-danger {
  background: rgba(var(--an-danger-rgb), .1);
  color: var(--an-danger);
  border: none;
}

.btn-soft-danger:hover {
  background: var(--an-danger);
  color: #fff;
}

.btn-soft-warning {
  background: rgba(var(--an-warning-rgb), .1);
  color: var(--an-warning);
  border: none;
}

.btn-soft-warning:hover {
  background: var(--an-warning);
  color: #fff;
}

.btn-soft-info {
  background: rgba(var(--an-info-rgb), .1);
  color: var(--an-info);
  border: none;
}

.btn-soft-info:hover {
  background: var(--an-info);
  color: #fff;
}

.btn-gradient-primary {
  background: linear-gradient(135deg, var(--an-primary), var(--an-purple));
  border: none;
  color: #fff;
}

.btn-gradient-primary:hover {
  background: linear-gradient(135deg, var(--an-primary-dark), #9333ea);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(var(--an-primary-rgb), .35);
}

/* ---- Avatar ---- */
.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.85rem;
  flex-shrink: 0;
  overflow: hidden;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-xs { width: 24px; height: 24px; font-size: 0.65rem; }
.avatar-sm { width: 32px; height: 32px; font-size: 0.75rem; }
.avatar-md { width: 40px; height: 40px; font-size: 0.85rem; }
.avatar-lg { width: 52px; height: 52px; font-size: 1rem; }
.avatar-xl { width: 72px; height: 72px; font-size: 1.25rem; }

.avatar-group {
  display: flex;
}

.avatar-group .avatar {
  margin-left: -10px;
  border: 2px solid var(--an-card-bg);
}

.avatar-group .avatar:first-child {
  margin-left: 0;
}

/* ---- Forms ---- */
.form-control,
.form-select {
  border-radius: var(--an-radius-sm);
  border-color: var(--an-border-color);
  font-size: 0.8125rem;
  padding: 8px 14px;
  transition: var(--an-transition);
}

.form-control:focus,
.form-select:focus {
  border-color: var(--an-primary);
  box-shadow: 0 0 0 3px rgba(var(--an-primary-rgb), .1);
}

.form-label {
  font-weight: 500;
  font-size: 0.8125rem;
  color: var(--an-text-primary);
  margin-bottom: 6px;
}

.form-check-input:checked {
  background-color: var(--an-primary);
  border-color: var(--an-primary);
}

.form-switch .form-check-input {
  height: 1.25em;
  width: 2.25em;
}

/* ---- Footer ---- */
.an-footer {
  padding: 16px 24px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--an-text-muted);
  border-top: 1px solid var(--an-border-color);
  margin-top: auto;
}

/* ---- Settings Panel ---- */
.an-settings-panel {
  position: fixed;
  top: 0;
  right: -360px;
  width: 360px;
  height: 100vh;
  background: var(--an-card-bg);
  z-index: 1060;
  box-shadow: -5px 0 25px rgba(0,0,0,.12);
  transition: var(--an-transition);
  display: flex;
  flex-direction: column;
}

.an-settings-panel.open {
  right: 0;
}

.an-settings-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,.4);
  z-index: 1055;
  opacity: 0;
  visibility: hidden;
  transition: var(--an-transition);
}

.an-settings-overlay.open {
  opacity: 1;
  visibility: visible;
}

.an-settings-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--an-border-color);
  flex-shrink: 0;
}

.an-settings-header h5 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}

.an-settings-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}

.an-settings-section {
  margin-bottom: 24px;
}

.an-settings-section h6 {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--an-text-secondary);
  margin-bottom: 14px;
}

.an-settings-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--an-border-color);
}

.an-settings-option:last-child {
  border-bottom: none;
}

.an-settings-option label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--an-text-primary);
  cursor: pointer;
}

.an-settings-btn {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background: var(--an-primary);
  color: #fff;
  border: none;
  border-radius: 8px 0 0 8px;
  cursor: pointer;
  z-index: 1045;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: -2px 0 8px rgba(0,0,0,.1);
}

@keyframes an-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.an-settings-btn svg {
  width: 20px;
  height: 20px;
  animation: an-spin 3s linear infinite;
  transform-origin: center;
}

.an-settings-btn:hover svg {
  animation-play-state: paused;
}

/* ---- RTL Support ---- */
[dir="rtl"] .an-sidebar {
  left: auto;
  right: 0;
}

[dir="rtl"] .an-content-wrapper {
  margin-left: 0;
  margin-right: var(--an-sidebar-width);
}

[dir="rtl"] .an-topbar {
  left: 0;
  right: var(--an-sidebar-width);
}

[dir="rtl"] .an-menu-link {
  border: 1px solid transparent;
}

[dir="rtl"] .an-menu-link.active {
  border-color: rgba(99,102,241,.25);
}

[dir="rtl"] .an-submenu .an-menu-link {
  padding: 7px 14px;
}

[dir="rtl"] .an-submenu .an-menu-link::before {
  left: auto;
  right: -19px;
}

[dir="rtl"] .an-submenu {
  padding-left: 0;
  padding-right: 16px;
  margin-left: 0;
  margin-right: 22px;
  border-left: none;
  border-right: 1px solid rgba(255,255,255,.08);
}

[dir="rtl"][data-sidebar="collapsed"] .an-content-wrapper {
  margin-right: var(--an-sidebar-collapsed-width);
}

[dir="rtl"][data-sidebar="collapsed"] .an-topbar {
  right: var(--an-sidebar-collapsed-width);
}

[dir="rtl"] .an-settings-panel {
  right: auto;
  left: -360px;
}

[dir="rtl"] .an-settings-panel.open {
  left: 0;
}

[dir="rtl"] .an-settings-btn {
  right: auto;
  left: 0;
  border-radius: 0 8px 8px 0;
}

/* ---- Activity Timeline ---- */
.an-timeline {
  position: relative;
  padding-left: 28px;
}

.an-timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--an-border-color);
}

.an-timeline-item {
  position: relative;
  padding-bottom: 20px;
}

.an-timeline-item:last-child {
  padding-bottom: 0;
}

.an-timeline-dot {
  position: absolute;
  left: -24px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--an-primary);
  background: var(--an-card-bg);
}

.an-timeline-item .timeline-title {
  font-weight: 600;
  font-size: 0.8125rem;
  margin-bottom: 2px;
}

.an-timeline-item .timeline-text {
  font-size: 0.8rem;
  color: var(--an-text-secondary);
  margin-bottom: 2px;
}

.an-timeline-item .timeline-time {
  font-size: 0.75rem;
  color: var(--an-text-muted);
}

/* ---- Utilities ---- */
.text-gradient-primary {
  background: linear-gradient(135deg, var(--an-primary), var(--an-pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bg-soft-primary { background-color: rgba(var(--an-primary-rgb), .1) !important; }
.bg-soft-success { background-color: rgba(var(--an-success-rgb), .1) !important; }
.bg-soft-info { background-color: rgba(var(--an-info-rgb), .1) !important; }
.bg-soft-warning { background-color: rgba(var(--an-warning-rgb), .1) !important; }
.bg-soft-danger { background-color: rgba(var(--an-danger-rgb), .1) !important; }
.bg-soft-pink { background-color: rgba(var(--an-pink-rgb), .1) !important; }
.bg-soft-purple { background-color: rgba(var(--an-purple-rgb), .1) !important; }
.bg-soft-teal { background-color: rgba(var(--an-teal-rgb), .1) !important; }
.bg-soft-orange { background-color: rgba(var(--an-orange-rgb), .1) !important; }

.text-primary-an { color: var(--an-primary) !important; }
.text-success-an { color: var(--an-success) !important; }
.text-info-an { color: var(--an-info) !important; }
.text-warning-an { color: var(--an-warning) !important; }
.text-danger-an { color: var(--an-danger) !important; }
.text-pink-an { color: var(--an-pink) !important; }
.text-teal-an { color: var(--an-teal) !important; }
.text-orange-an { color: var(--an-orange) !important; }

.rounded-an { border-radius: var(--an-radius) !important; }
.rounded-an-sm { border-radius: var(--an-radius-sm) !important; }
.rounded-an-lg { border-radius: var(--an-radius-lg) !important; }

/* Welcome banner */
.an-welcome-banner {
  border-radius: var(--an-radius);
  padding: 28px;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.an-welcome-banner::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
}

.an-welcome-banner::before {
  content: '';
  position: absolute;
  bottom: -30%;
  right: 20%;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
}

.an-welcome-banner h3 {
  color: #fff;
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.an-welcome-banner p {
  color: rgba(255,255,255,.85);
  margin-bottom: 16px;
  max-width: 500px;
}

/* Revenue card */
.an-revenue-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--an-border-color);
}

.an-revenue-item:last-child {
  border-bottom: none;
}

/* Product list */
.an-product-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--an-border-color);
}

.an-product-item:last-child {
  border-bottom: none;
}

.an-product-img {
  width: 44px;
  height: 44px;
  border-radius: var(--an-radius-sm);
  background: var(--an-body-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

/* Country list */
.an-country-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--an-border-color);
}

.an-country-item:last-child {
  border-bottom: none;
}

.an-country-flag {
  width: 28px;
  height: 20px;
  border-radius: 3px;
  flex-shrink: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

/* Todo / Task list */
.an-task-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--an-border-color);
}

.an-task-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.an-task-item .form-check-input {
  flex-shrink: 0;
}

.an-task-item.completed .task-text {
  text-decoration: line-through;
  color: var(--an-text-muted);
}

/* Chat widget */
.an-chat-message {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}

.an-chat-message.sent {
  flex-direction: row-reverse;
}

.an-chat-bubble {
  max-width: 70%;
  padding: 10px 16px;
  border-radius: 16px;
  font-size: 0.8125rem;
  line-height: 1.5;
}

.an-chat-message:not(.sent) .an-chat-bubble {
  background: var(--an-body-bg);
  border-bottom-left-radius: 4px;
}

.an-chat-message.sent .an-chat-bubble {
  background: var(--an-primary);
  color: #fff;
  border-bottom-right-radius: 4px;
}

/* Social card */
.an-social-card {
  text-align: center;
  padding: 24px;
}

.an-social-card .social-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  font-size: 1.5rem;
}

/* Pricing card */
.an-pricing-card {
  text-align: center;
  padding: 32px 24px;
  border-radius: var(--an-radius-lg);
  transition: var(--an-transition);
}

.an-pricing-card:hover {
  transform: translateY(-4px);
}

.an-pricing-card.popular {
  background: linear-gradient(135deg, var(--an-primary), var(--an-purple));
  color: #fff;
  border: none;
}

.an-pricing-card.popular .card-header,
.an-pricing-card.popular .card-footer {
  border-color: rgba(255,255,255,.15);
}

/* Loading skeleton */
.an-skeleton {
  background: linear-gradient(90deg, var(--an-border-color) 25%, rgba(var(--an-primary-rgb), .05) 50%, var(--an-border-color) 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: 4px;
}

@keyframes skeleton-loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ---- Auth Pages ---- */
.an-auth-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 30%, #ec4899 70%, #f43f5e 100%);
  padding: 20px;
}

.an-auth-card {
  width: 100%;
  max-width: 440px;
  background: var(--an-card-bg);
  border-radius: var(--an-radius-lg);
  box-shadow: 0 20px 60px rgba(0,0,0,.15);
  padding: 40px;
}

.an-auth-card .auth-logo {
  text-align: center;
  margin-bottom: 32px;
}

.an-auth-card .auth-logo .logo-icon {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, var(--an-primary), var(--an-pink));
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
}

.an-auth-card h2 {
  text-align: center;
  font-size: 1.5rem;
  margin-bottom: 6px;
}

.an-auth-card .auth-subtitle {
  text-align: center;
  color: var(--an-text-muted);
  margin-bottom: 28px;
  font-size: 0.875rem;
}

.an-auth-social {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}

.an-auth-social .btn {
  flex: 1;
  padding: 10px;
  border: 1px solid var(--an-border-color);
  background: transparent;
  border-radius: var(--an-radius-sm);
  font-size: 1.1rem;
  transition: var(--an-transition);
}

.an-auth-social .btn:hover {
  background: var(--an-body-bg);
  border-color: var(--an-primary);
}

.an-auth-divider {
  position: relative;
  text-align: center;
  margin-bottom: 24px;
}

.an-auth-divider::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: var(--an-border-color);
}

.an-auth-divider span {
  background: var(--an-card-bg);
  padding: 0 14px;
  position: relative;
  font-size: 0.8rem;
  color: var(--an-text-muted);
}

/* ---- Error Pages ---- */
.an-error-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px;
}

.an-error-code {
  font-size: 8rem;
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, var(--an-primary), var(--an-pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
}

/* ---- Form Wizard ---- */
.an-wizard-circle {
  width: 40px;
  height: 40px;
  font-size: 0.875rem;
  font-weight: 600;
  transition: var(--an-transition);
}

.an-wizard-steps::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: var(--an-border-color);
  z-index: 0;
}

.an-wizard-step {
  position: relative;
  z-index: 1;
}

/* ---- Code Editor ---- */
.an-code-editor {
  font-family: 'Courier New', Consolas, monospace;
  font-size: 0.8125rem;
  line-height: 1.6;
  background-color: #1e293b;
  color: #e2e8f0;
  resize: vertical;
  tab-size: 2;
}

.an-code-editor:focus {
  background-color: #1e293b;
  color: #e2e8f0;
  box-shadow: 0 0 0 3px rgba(var(--an-primary-rgb), .2);
}

/* ---- Dropzone ---- */
.an-dropzone {
  border-color: var(--an-border-color);
  transition: var(--an-transition);
  cursor: pointer;
}

.an-dropzone:hover {
  border-color: var(--an-primary);
  background-color: rgba(var(--an-primary-rgb), .03);
}

.an-dropzone .bx-cloud-upload {
  font-size: 3rem;
}

.an-dropzone .bx-camera {
  font-size: 2rem;
}

/* ---- Image Preview ---- */
.an-image-preview {
  min-height: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: var(--an-transition);
}

.an-image-preview:hover {
  border-color: var(--an-primary) !important;
}

.an-image-preview .bx {
  font-size: 1.5rem;
}

/* ---- Responsive ---- */
@media (max-width: 1199.98px) {
  .an-topbar-search {
    width: 200px;
  }
}

@media (max-width: 991.98px) {
  .an-sidebar {
    transform: translateX(-100%);
  }

  .an-sidebar.show {
    transform: translateX(0);
  }

  .an-content-wrapper {
    margin-left: 0;
    max-width: 100%;
  }

  .an-topbar {
    left: 0;
  }

  [data-sidebar="collapsed"] .an-content-wrapper {
    margin-left: 0;
    max-width: 100%;
  }

  [data-sidebar="collapsed"] .an-topbar {
    left: 0;
  }

  .an-topbar-search {
    display: none;
  }

  .an-user-info {
    display: none;
  }

  [dir="rtl"] .an-sidebar {
    transform: translateX(100%);
  }

  [dir="rtl"] .an-sidebar.show {
    transform: translateX(0);
  }

  [dir="rtl"] .an-content-wrapper {
    margin-right: 0;
  }

  [dir="rtl"] .an-topbar {
    right: 0;
  }

  [data-menu="horizontal"] .an-sidebar {
    transform: translateX(-100%);
    top: 0;
    width: var(--an-sidebar-width);
    height: 100vh;
    flex-direction: column;
    background: linear-gradient(180deg, #0f172a 0%, #1a1f3d 100%);
  }

  [data-menu="horizontal"] .an-sidebar.show {
    transform: translateX(0);
  }

  [data-menu="horizontal"] .an-sidebar-header {
    display: flex;
  }

  [data-menu="horizontal"] .an-sidebar-menu {
    flex-direction: column;
    overflow-y: auto;
    padding: 8px 12px;
  }

  /* On mobile, revert group-link to vertical label style */
  [data-menu="horizontal"] .an-group-link {
    padding: 20px 14px 8px !important;
    font-size: 0.65rem !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(255,255,255,.25) !important;
    pointer-events: none;
    border-bottom: none !important;
    border-radius: 0 !important;
  }

  [data-menu="horizontal"] .an-group-link .menu-icon {
    display: none;
  }

  [data-menu="horizontal"] .an-group-link .menu-arrow {
    display: none;
  }

  [data-menu="horizontal"] .an-group-menu {
    display: block !important;
    position: static !important;
    max-height: none;
    overflow: visible;
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    border-radius: 0 !important;
  }

  [data-menu="horizontal"] .an-group-menu .an-submenu {
    position: static !important;
    box-shadow: none !important;
    background: transparent !important;
    border: none !important;
  }

  [data-menu="horizontal"] .an-group-menu > .an-menu-item > .an-menu-link {
    border-radius: 10px;
  }

  [data-menu="horizontal"] .an-content {
    margin-top: var(--an-topbar-height);
  }
}

@media (max-width: 767.98px) {
  .an-content {
    padding: 16px;
  }

  .an-page-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .an-stat-card .stat-value {
    font-size: 1.4rem;
  }

  .an-welcome-banner {
    padding: 20px;
  }

  .an-welcome-banner h3 {
    font-size: 1.15rem;
  }

  .an-settings-panel {
    width: 300px;
    right: -300px;
  }

  .an-auth-card {
    padding: 28px;
  }

  .an-error-code {
    font-size: 5rem;
  }
}

@media (max-width: 575.98px) {
  .an-topbar {
    padding: 0 12px;
  }

  .an-content {
    padding: 12px;
  }
}

/* ---- Mobile Sidebar Overlay ---- */
.an-sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,.4);
  z-index: 1039;
  opacity: 0;
  visibility: hidden;
  transition: var(--an-transition);
}

.an-sidebar-overlay.show {
  opacity: 1;
  visibility: visible;
}

/* ---- Print Styles ---- */
@media print {
  .an-sidebar,
  .an-topbar,
  .an-settings-panel,
  .an-settings-btn,
  .an-sidebar-overlay {
    display: none !important;
  }

  .an-content-wrapper {
    margin-left: 0 !important;
  }

  .card {
    box-shadow: none !important;
    border: 1px solid #ddd !important;
  }
}

/* Kanban styles */
.an-kanban-board {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 16px;
  -webkit-overflow-scrolling: touch;
}

.an-kanban-board::-webkit-scrollbar {
  height: 6px;
}

.an-kanban-board::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px;
}

.an-kanban-column {
  min-width: 300px;
  width: 300px;
  flex: 0 0 300px;
  background: var(--an-body-bg);
  border-radius: var(--an-radius);
  padding: 16px;
}

.an-kanban-card {
  background: var(--an-card-bg);
  border-radius: var(--an-radius-sm);
  padding: 14px;
  margin-bottom: 12px;
  border: 1px solid var(--an-border-color);
  cursor: grab;
  transition: var(--an-transition);
}

.an-kanban-card:hover {
  box-shadow: var(--an-shadow-md);
  transform: translateY(-2px);
}

/* Email styles */
.an-email-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--an-border-color);
  cursor: pointer;
  transition: var(--an-transition);
}

.an-email-item:hover {
  background: rgba(var(--an-primary-rgb), .03);
}

.an-email-item.unread {
  background: rgba(var(--an-primary-rgb), .04);
  font-weight: 600;
}

/* File Manager */
.an-file-card {
  text-align: center;
  padding: 24px 16px;
  border-radius: var(--an-radius);
  border: 1px solid var(--an-border-color);
  background: var(--an-card-bg);
  transition: var(--an-transition);
  cursor: pointer;
}

.an-file-card:hover {
  border-color: var(--an-primary);
  box-shadow: var(--an-shadow-md);
}

.an-file-icon {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

/* Weather widget */
.an-weather-widget {
  background: linear-gradient(135deg, #06b6d4, #3b82f6);
  color: #fff;
  border-radius: var(--an-radius);
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.an-weather-widget::after {
  content: '';
  position: absolute;
  top: -40%;
  right: -15%;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
}

/* Calendar events */
.an-event-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--an-border-color);
}

.an-event-item:last-child {
  border-bottom: none;
}

.an-event-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Project cards */
.an-project-card {
  padding: 20px;
  border-radius: var(--an-radius);
  border: 1px solid var(--an-border-color);
  background: var(--an-card-bg);
  transition: var(--an-transition);
  height: 100%;
}

.an-project-card:hover {
  box-shadow: var(--an-shadow-md);
}

/* Invoice */
.an-invoice-header {
  background: linear-gradient(135deg, var(--an-primary), var(--an-purple));
  color: #fff;
  padding: 40px;
  border-radius: var(--an-radius) var(--an-radius) 0 0;
}

/* Gallery */
.an-gallery-item {
  border-radius: var(--an-radius);
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

.an-gallery-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.an-gallery-item:hover img {
  transform: scale(1.05);
}

.an-gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--an-transition);
}

.an-gallery-item:hover .an-gallery-overlay {
  opacity: 1;
}

/* Notification dot animation */
@keyframes an-pulse {
  0% { box-shadow: 0 0 0 0 rgba(var(--an-danger-rgb), .4); }
  70% { box-shadow: 0 0 0 8px rgba(var(--an-danger-rgb), 0); }
  100% { box-shadow: 0 0 0 0 rgba(var(--an-danger-rgb), 0); }
}

.an-topbar-btn .badge-dot {
  animation: an-pulse 2s infinite;
}

/* Highlight animation for numbers */
@keyframes an-count-up {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.an-animate-number {
  animation: an-count-up 0.5s ease-out;
}

/* Hover grow effect */
.an-hover-grow {
  transition: transform 0.3s ease;
}

.an-hover-grow:hover {
  transform: scale(1.02);
}

/* Page transition */
.an-content {
  animation: an-fade-in 0.3s ease;
}

@keyframes an-fade-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---- Map Placeholders ---- */
.an-map-placeholder {
  height: 350px;
  background-color: var(--an-body-bg);
  border: 2px dashed var(--an-border-color);
}

/* ---- Icon Sizes ---- */
.an-icon-lg { font-size: 24px; }
.an-icon-md { font-size: 22px; }
.an-icon-sm { font-size: 20px; }
.an-icon-xs { font-size: 16px; }
.an-icon-xl { font-size: 3rem; }
.an-icon-26 { font-size: 26px; }
.an-icon-18 { font-size: 18px; }
.an-icon-28 { font-size: 28px; }
.an-icon-32 { font-size: 32px; }
.an-icon-48 { font-size: 48px; }
.an-icon-2x { font-size: 2rem; }
.an-icon-2-5x { font-size: 2.5rem; }
.an-icon-4x { font-size: 4rem; }
.an-icon-5x { font-size: 5rem; }

/* ---- Event Dot Colors ---- */
.an-event-dot-primary { background-color: var(--an-primary); }
.an-event-dot-success { background-color: var(--an-success); }
.an-event-dot-warning { background-color: var(--an-warning); }
.an-event-dot-danger { background-color: var(--an-danger); }
.an-event-dot-info { background-color: var(--an-info); }
.an-event-dot-pink { background-color: var(--an-pink); }
.an-event-dot-teal { background-color: var(--an-teal); }
.an-event-dot-orange { background-color: var(--an-orange); }

/* ---- Color Swatch ---- */
.an-color-swatch {
  height: 80px;
  border-radius: var(--an-radius-sm);
}

/* ---- Card Image Placeholder ---- */
.an-card-img-placeholder {
  padding: 40px 0;
  font-size: 3rem;
}

/* ---- Chat Sidebar ---- */
.an-chat-sidebar {
  border-right: 1px solid var(--an-border-color);
}

[data-theme="dark"] .an-chat-sidebar {
  border-color: var(--an-border-color);
}

/* ---- Drag Drop Upload ---- */
.an-upload-area {
  border: 2px dashed var(--an-border-color);
  border-radius: var(--an-radius);
  padding: 40px;
  text-align: center;
  transition: var(--an-transition);
  cursor: pointer;
}

.an-upload-area:hover {
  border-color: var(--an-primary);
  background: rgba(var(--an-primary-rgb), .03);
}

/* ---- Code Editor Mockup ---- */
.an-code-editor {
  background: #1e293b;
  color: #e2e8f0;
  font-family: 'Courier New', monospace;
  border-radius: var(--an-radius-sm);
  min-height: 200px;
  font-size: 0.8125rem;
}

/* ---- Status Dots ---- */
.an-status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.an-status-online { background-color: var(--an-success); }
.an-status-offline { background-color: var(--an-text-muted); }
.an-status-busy { background-color: var(--an-danger); }
.an-status-away { background-color: var(--an-warning); }

/* ---- Chat Messages Area ---- */
.an-chat-messages-area {
  height: 460px;
  overflow-y: auto;
}

/* ---- Progress Heights ---- */
.progress-h8 { height: 8px; }
.progress-h4 { height: 4px; }
.progress-h12 { height: 12px; }
.progress-h20 { height: 20px; }

/* ---- Max Width Helpers ---- */
.an-max-w-140 { max-width: 140px; }
.an-max-w-200 { max-width: 200px; }
.an-max-w-300 { max-width: 300px; }

/* ============================================
   Dashboard Component Styles
   ============================================ */

/* ---- Welcome Banner Content ---- */
.an-welcome-content {
  position: relative;
  z-index: 1;
}

.an-welcome-illustration {
  position: absolute;
  right: 30px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 5rem;
  opacity: 0.15;
  color: #fff;
}

/* ---- Stat Card Content ---- */
.an-stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 14px;
  background: rgba(255,255,255,.2);
  color: inherit;
}

.an-stat-content h6 {
  font-size: 0.8rem;
  font-weight: 500;
  margin-bottom: 6px;
  opacity: 0.85;
}

.an-stat-content h3 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.an-stat-change {
  font-size: 0.75rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 10px;
  border-radius: 20px;
}

.an-stat-up {
  color: #22c55e;
  background: rgba(34, 197, 94, .15);
}

.an-stat-down {
  color: #ef4444;
  background: rgba(239, 68, 68, .15);
}

.an-gradient-primary .an-stat-up,
.an-gradient-success .an-stat-up,
.an-gradient-info .an-stat-up,
.an-gradient-warning .an-stat-up,
.an-gradient-danger .an-stat-up,
.an-gradient-primary .an-stat-down,
.an-gradient-success .an-stat-down,
.an-gradient-info .an-stat-down,
.an-gradient-warning .an-stat-down,
.an-gradient-danger .an-stat-down {
  color: rgba(255,255,255,.9);
  background: rgba(255,255,255,.2);
}

/* ---- Card Options ---- */
.an-card-options {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ---- Chart Legend ---- */
.an-chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--an-border-color);
}

.an-legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
}

.an-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.an-legend-label {
  color: var(--an-text-secondary);
}

.an-legend-value {
  font-weight: 600;
  color: var(--an-text-primary);
}

/* ---- Background Colors for Legends/Dots ---- */
.an-bg-primary { background-color: var(--an-primary) !important; }
.an-bg-success { background-color: var(--an-success) !important; }
.an-bg-info { background-color: var(--an-info) !important; }
.an-bg-warning { background-color: var(--an-warning) !important; }
.an-bg-danger { background-color: var(--an-danger) !important; }
.an-bg-pink { background-color: var(--an-pink) !important; }
.an-bg-teal { background-color: var(--an-teal) !important; }
.an-bg-orange { background-color: var(--an-orange) !important; }
.an-bg-purple { background-color: var(--an-purple) !important; }

.an-bg-primary-subtle { background-color: rgba(var(--an-primary-rgb), .1) !important; }
.an-bg-success-subtle { background-color: rgba(var(--an-success-rgb), .1) !important; }
.an-bg-info-subtle { background-color: rgba(var(--an-info-rgb), .1) !important; }
.an-bg-warning-subtle { background-color: rgba(var(--an-warning-rgb), .1) !important; }
.an-bg-danger-subtle { background-color: rgba(var(--an-danger-rgb), .1) !important; }

/* ---- Text Colors ---- */
.an-text-primary { color: var(--an-primary) !important; }
.an-text-success { color: var(--an-success) !important; }
.an-text-info { color: var(--an-info) !important; }
.an-text-warning { color: var(--an-warning) !important; }
.an-text-danger { color: var(--an-danger) !important; }

/* ---- Channel / Revenue List ---- */
.an-channel-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.an-channel-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.an-channel-info {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.an-channel-info i {
  font-size: 1.4rem;
  width: 28px;
  text-align: center;
  flex-shrink: 0;
}

.an-channel-info h6 {
  font-size: 0.8125rem;
  font-weight: 600;
  margin: 0;
}

.an-channel-info span {
  font-size: 0.75rem;
  color: var(--an-text-muted);
}

.an-channel-progress {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  max-width: 140px;
}

.an-channel-progress .progress {
  flex: 1;
}

.an-channel-progress > span {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--an-text-secondary);
  min-width: 32px;
  text-align: right;
}

/* ---- Transaction List ---- */
.an-transaction-list {
  display: flex;
  flex-direction: column;
}

.an-transaction-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--an-border-color);
}

.an-transaction-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.an-transaction-item:first-child {
  padding-top: 0;
}

.an-transaction-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.an-transaction-info {
  flex: 1;
  min-width: 0;
}

.an-transaction-info h6 {
  font-size: 0.8125rem;
  font-weight: 600;
  margin: 0 0 2px;
}

.an-transaction-info span {
  font-size: 0.75rem;
  color: var(--an-text-muted);
}

.an-transaction-amount {
  font-weight: 600;
  font-size: 0.875rem;
  white-space: nowrap;
}

/* ---- Upcoming Events List ---- */
.an-upcoming-list {
  display: flex;
  flex-direction: column;
}

.an-upcoming-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--an-border-color);
}

.an-upcoming-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.an-upcoming-item:first-child {
  padding-top: 0;
}

.an-upcoming-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-top: 5px;
  flex-shrink: 0;
}

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

.an-upcoming-content h6 {
  font-size: 0.8125rem;
  font-weight: 600;
  margin: 0 0 2px;
}

.an-upcoming-content p {
  font-size: 0.75rem;
  color: var(--an-text-muted);
  margin: 0;
}

.an-upcoming-date {
  font-size: 0.75rem;
  color: var(--an-text-muted);
  white-space: nowrap;
}

/* ---- Table Styles ---- */
.an-table {
  width: 100%;
}

.an-table-user {
  display: flex;
  align-items: center;
  gap: 10px;
}

.an-table-user .avatar {
  flex-shrink: 0;
}

.an-table-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px 16px;
  border-top: 1px solid var(--an-border-color);
}

.an-table-footer span {
  font-size: 0.8rem;
  color: var(--an-text-muted);
}

.an-table-footer a {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--an-primary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 14px;
  border-radius: 6px;
  background: rgba(var(--an-primary-rgb), .08);
  transition: var(--an-transition);
}

.an-table-footer a:hover {
  background: var(--an-primary);
  color: #fff;
}

/* ---- Audience / Location List ---- */
.an-audience-list {
  display: flex;
  flex-direction: column;
}

.an-audience-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--an-border-color);
}

.an-audience-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.an-audience-item:first-child {
  padding-top: 0;
}

.an-audience-info {
  flex: 1;
  min-width: 0;
}

.an-audience-info h6 {
  font-size: 0.8125rem;
  font-weight: 600;
  margin: 0;
}

.an-audience-count {
  font-weight: 600;
  font-size: 0.8125rem;
  margin-right: 8px;
}

.an-audience-stats {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
}

/* ---- Browser List ---- */
.an-browser-list {
  display: flex;
  flex-direction: column;
}

.an-browser-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--an-border-color);
}

.an-browser-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.an-browser-item:first-child {
  padding-top: 0;
}

.an-browser-info {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
}

.an-browser-info i {
  font-size: 1.3rem;
  width: 24px;
  text-align: center;
}

.an-browser-info span {
  font-size: 0.8125rem;
  font-weight: 500;
}

.an-browser-stats {
  font-weight: 600;
  font-size: 0.8125rem;
}

/* ---- Activity Timeline (Dashboard) ---- */
.an-activity-timeline {
  position: relative;
  padding-left: 24px;
}

.an-activity-timeline::before {
  content: '';
  position: absolute;
  left: 5px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--an-border-color);
}

.an-timeline-dot {
  position: absolute;
  left: -22px;
  top: 5px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.an-timeline-content {
  padding-bottom: 18px;
  position: relative;
}

.an-timeline-content:last-child {
  padding-bottom: 0;
}

.an-timeline-content h6 {
  font-size: 0.8125rem;
  font-weight: 600;
  margin: 0 0 3px;
}

.an-timeline-content p {
  font-size: 0.8rem;
  color: var(--an-text-secondary);
  margin: 0 0 3px;
}

.an-timeline-time {
  font-size: 0.75rem;
  color: var(--an-text-muted);
}

/* ---- Flag Icon ---- */
.an-flag-icon {
  font-size: 1.2rem;
  line-height: 1;
}

/* ---- Avatar Variants (used in dropdowns/messages) ---- */
.an-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.8rem;
  flex-shrink: 0;
}

.an-avatar-sm {
  width: 28px;
  height: 28px;
  font-size: 0.7rem;
}

.an-avatar-primary { background: rgba(var(--an-primary-rgb), .15); color: var(--an-primary); }
.an-avatar-success { background: rgba(var(--an-success-rgb), .15); color: var(--an-success); }
.an-avatar-info { background: rgba(var(--an-info-rgb), .15); color: var(--an-info); }
.an-avatar-warning { background: rgba(var(--an-warning-rgb), .15); color: var(--an-warning); }
.an-avatar-danger { background: rgba(var(--an-danger-rgb), .15); color: var(--an-danger); }

/* ---- Badge Variants ---- */
.an-badge-primary { background: var(--an-primary); color: #fff; font-size: 0.7rem; padding: 3px 8px; border-radius: 6px; }
.an-badge-success { background: var(--an-success); color: #fff; font-size: 0.7rem; padding: 3px 8px; border-radius: 6px; }
.an-badge-info { background: var(--an-info); color: #fff; font-size: 0.7rem; padding: 3px 8px; border-radius: 6px; }
.an-badge-warning { background: var(--an-warning); color: #fff; font-size: 0.7rem; padding: 3px 8px; border-radius: 6px; }
.an-badge-danger { background: var(--an-danger); color: #fff; font-size: 0.7rem; padding: 3px 8px; border-radius: 6px; }

/* ---- Message Item (topbar dropdown) ---- */
.an-message-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 18px;
  transition: var(--an-transition);
  border-bottom: 1px solid var(--an-border-color);
}

.an-message-item:hover {
  background: rgba(var(--an-primary-rgb), .04);
}

.an-message-item:last-child {
  border-bottom: none;
}

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

.an-message-content h6 {
  font-size: 0.8125rem;
  font-weight: 600;
  margin: 0 0 2px;
}

.an-message-content p {
  font-size: 0.8rem;
  color: var(--an-text-secondary);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.an-message-content span {
  font-size: 0.75rem;
  color: var(--an-text-muted);
}

/* ---- Topbar dropdown sizes ---- */
.an-dropdown-lg {
  min-width: 200px;
}

.an-dropdown-xl {
  min-width: 340px;
}

/* ---- Notification text/time ---- */
.an-notification-text {
  font-size: 0.8125rem;
  margin: 0 0 2px;
  color: var(--an-text-primary);
}

.an-notification-time {
  font-size: 0.75rem;
  color: var(--an-text-muted);
}

/* ---- Badge dot (animated) on topbar ---- */
.an-badge-dot {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--an-danger);
  border: 2px solid var(--an-card-bg);
  animation: an-pulse 2s infinite;
}

/* ---- Topbar user ---- */
.an-topbar-user {
  margin-left: 8px;
}

.an-topbar-user > a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 0;
}

/* ============================================
   Premium Styles
   ============================================ */

/* ---- Premium Topbar Icons ---- */
.an-topbar-btn.an-tb-bell {
  color: #f59e0b;
  background: rgba(245,158,11,.1);
  border-radius: 12px;
}
.an-topbar-btn.an-tb-bell:hover {
  background: rgba(245,158,11,.2);
  color: #d97706;
  transform: scale(1.05);
}

.an-topbar-btn.an-tb-message {
  color: #6366f1;
  background: rgba(99,102,241,.1);
  border-radius: 12px;
}
.an-topbar-btn.an-tb-message:hover {
  background: rgba(99,102,241,.2);
  color: #4f46e5;
  transform: scale(1.05);
}

.an-topbar-btn.an-tb-fullscreen {
  color: #06b6d4;
  background: rgba(6,182,212,.1);
  border-radius: 12px;
}
.an-topbar-btn.an-tb-fullscreen:hover {
  background: rgba(6,182,212,.2);
  color: #0891b2;
  transform: scale(1.05);
}

.an-topbar-btn.an-tb-lang {
  color: #22c55e;
  background: rgba(34,197,94,.1);
  border-radius: 12px;
}
.an-topbar-btn.an-tb-lang:hover {
  background: rgba(34,197,94,.2);
  color: #16a34a;
  transform: scale(1.05);
}

/* All colored topbar btns shared */
.an-topbar-btn.an-tb-bell,
.an-topbar-btn.an-tb-message,
.an-topbar-btn.an-tb-fullscreen,
.an-topbar-btn.an-tb-lang {
  width: 40px;
  height: 40px;
  transition: all .25s ease;
  position: relative;
}

.an-topbar-btn.an-tb-bell i,
.an-topbar-btn.an-tb-message i,
.an-topbar-btn.an-tb-fullscreen i,
.an-topbar-btn.an-tb-lang i {
  font-size: 1.2rem;
}

/* Badge positions on circle buttons */
.an-topbar-btn.an-tb-bell .badge-dot {
  top: 5px;
  right: 6px;
}

.an-topbar-btn.an-tb-message .badge-count {
  top: 1px;
  right: 0;
}

/* Premium Dropdown */
.an-dropdown-premium {
  border-radius: 16px;
  border: none;
  box-shadow: 0 12px 40px rgba(0,0,0,.12);
  overflow: hidden;
  max-width: calc(100vw - 24px);
}

.an-dropdown-premium .an-dropdown-header {
  background: linear-gradient(135deg, var(--an-primary), var(--an-purple));
  color: #fff;
  padding: 16px 20px;
}

.an-dropdown-premium .an-dropdown-header h6 {
  color: #fff;
  font-size: 0.875rem;
}

.an-dropdown-premium .an-dropdown-header .badge {
  background: rgba(255,255,255,.25) !important;
  color: #fff !important;
}

.an-dropdown-premium .dropdown-item {
  font-size: 0.8125rem;
  padding: 9px 20px;
  color: var(--an-text-secondary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.an-dropdown-premium .dropdown-item:hover {
  background: rgba(var(--an-primary-rgb), .06);
  color: var(--an-primary);
}

.an-dropdown-premium .dropdown-item i {
  font-size: 1.1rem;
  width: 18px;
  text-align: center;
}

.an-dropdown-premium .dropdown-divider {
  margin: 4px 0;
  border-color: var(--an-border-color);
}

.an-dropdown-premium .an-dropdown-footer {
  background: var(--an-body-bg);
}

.an-dropdown-premium .an-dropdown-footer a {
  color: var(--an-primary);
  font-weight: 600;
  font-size: 0.8125rem;
}

[data-theme="dark"] .an-dropdown-premium {
  background: var(--an-card-bg);
  box-shadow: 0 12px 40px rgba(0,0,0,.35);
}

[data-theme="dark"] .an-dropdown-premium .dropdown-item {
  color: var(--an-text-secondary);
}

[data-theme="dark"] .an-dropdown-premium .dropdown-item:hover {
  background: rgba(255,255,255,.05);
  color: var(--an-primary);
}

[data-theme="dark"] .an-dropdown-premium .an-dropdown-footer {
  background: rgba(255,255,255,.03);
}

/* Language dropdown specific width */
.an-lang-dropdown {
  min-width: 180px;
}

.an-lang-dropdown .dropdown-item {
  font-size: 0.8125rem;
  padding: 9px 20px;
  gap: 8px;
}

.an-lang-dropdown .dropdown-item span {
  font-size: 1.15rem;
}

/* Notification/Message dropdown width */
.an-notif-dropdown {
  min-width: 340px;
}

/* Topbar dropdown positioning - prevent overflow */
.an-topbar-dropdown .dropdown-menu {
  right: 0 !important;
  left: auto !important;
  margin-top: 10px;
}

@media (max-width: 575.98px) {
  .an-topbar-dropdown .dropdown-menu {
    position: fixed !important;
    top: var(--an-topbar-height) !important;
    right: 12px !important;
    left: 12px !important;
    width: auto !important;
    max-width: none;
    transform: none !important;
  }

  .an-dropdown-premium {
    border-radius: 12px;
  }
}

/* Notification icon circles - colorful */
.an-noti-icon { width: 42px; height: 42px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0; }
.an-noti-primary { background: rgba(99,102,241,.12); color: #6366f1; }
.an-noti-success { background: rgba(34,197,94,.12); color: #22c55e; }
.an-noti-warning { background: rgba(245,158,11,.12); color: #f59e0b; }
.an-noti-info { background: rgba(6,182,212,.12); color: #06b6d4; }
.an-noti-danger { background: rgba(239,68,68,.12); color: #ef4444; }
.an-noti-pink { background: rgba(236,72,153,.12); color: #ec4899; }

/* Message avatars - gradient */
.an-msg-avatar { width: 42px; height: 42px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.8rem; color: #fff; flex-shrink: 0; }
.an-msg-avatar-1 { background: linear-gradient(135deg, #6366f1, #8b5cf6); }
.an-msg-avatar-2 { background: linear-gradient(135deg, #22c55e, #14b8a6); }
.an-msg-avatar-3 { background: linear-gradient(135deg, #06b6d4, #3b82f6); }
.an-msg-avatar-4 { background: linear-gradient(135deg, #f59e0b, #f97316); }

/* User dropdown premium */
.an-user-dropdown-header {
  padding: 20px;
  background: linear-gradient(135deg, #6366f1, #ec4899);
  color: #fff;
  text-align: center;
}

.an-user-dropdown-header .an-ud-avatar {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(255,255,255,.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
  color: #fff;
  margin-bottom: 10px;
  backdrop-filter: blur(4px);
}

.an-user-dropdown-header .an-ud-name {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
}

.an-user-dropdown-header .an-ud-role {
  font-size: 0.75rem;
  opacity: 0.8;
  display: block;
  margin-top: 2px;
}

/* User dropdown menu width */
.an-topbar-dropdown .an-user-dropdown-menu {
  min-width: 220px;
}

/* Stat cards row-style (horizontal layout) */
.an-stat-row { display: flex; align-items: center; gap: 16px; padding: 22px; }
.an-stat-row .an-stat-icon-box { width: 56px; height: 56px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; flex-shrink: 0; }
.an-stat-row .an-stat-data { flex: 1; }
.an-stat-row .an-stat-data .stat-label { font-size: 0.78rem; color: rgba(255,255,255,.75); margin-bottom: 4px; }
.an-stat-row .an-stat-data .stat-value { font-size: 1.65rem; font-weight: 700; line-height: 1.1; margin-bottom: 6px; }
.an-stat-row .an-stat-data .stat-change { font-size: 0.72rem; font-weight: 600; display: inline-flex; align-items: center; gap: 3px; padding: 3px 10px; border-radius: 20px; background: rgba(255,255,255,.18); color: rgba(255,255,255,.9); }
.an-stat-row .an-stat-sparkline { flex-shrink: 0; opacity: 0.4; }

/* Gradient cards - premium variants */
.an-grad-violet { background: linear-gradient(135deg, #7c3aed, #6366f1); color: #fff; }
.an-grad-emerald { background: linear-gradient(135deg, #059669, #10b981); color: #fff; }
.an-grad-sky { background: linear-gradient(135deg, #0284c7, #06b6d4); color: #fff; }
.an-grad-amber { background: linear-gradient(135deg, #d97706, #f59e0b); color: #fff; }

/* Card header with colored left border */
.an-card-accent-primary { border-left: 3px solid var(--an-primary); }
.an-card-accent-success { border-left: 3px solid var(--an-success); }
.an-card-accent-info { border-left: 3px solid var(--an-info); }
.an-card-accent-warning { border-left: 3px solid var(--an-warning); }
.an-card-accent-danger { border-left: 3px solid var(--an-danger); }

/* Order table premium */
.an-order-customer { display: flex; align-items: center; gap: 10px; }
.an-order-avatar { width: 34px; height: 34px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 0.75rem; color: #fff; flex-shrink: 0; }

/* Top Countries flag box */
.an-country-flag-box { width: 36px; height: 28px; border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; background: var(--an-body-bg); flex-shrink: 0; }

/* ---- Welcome Card (light single color) ---- */
.an-welcome-card {
  background: #eef2ff;
  border-radius: var(--an-radius-lg);
  border: 1px solid #ddd6fe;
  overflow: hidden;
  height: 100%;
}

[data-theme="dark"] .an-welcome-card {
  background: rgba(99,102,241,.08);
  border-color: rgba(99,102,241,.2);
}

.an-welcome-card-body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.an-welcome-text {
  margin-bottom: 20px;
}

.an-welcome-wave {
  font-size: 1.6rem;
  display: inline-block;
  margin-bottom: 6px;
  animation: an-wave-hand 1.8s ease-in-out infinite;
  transform-origin: 70% 70%;
}

@keyframes an-wave-hand {
  0%, 60%, 100% { transform: rotate(0deg); }
  10%, 30% { transform: rotate(14deg); }
  20% { transform: rotate(-8deg); }
  40% { transform: rotate(-4deg); }
  50% { transform: rotate(10deg); }
}

.an-welcome-text h4 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--an-text-primary);
}

.an-welcome-text p {
  font-size: 0.85rem;
  color: var(--an-text-secondary);
  margin-bottom: 0;
  line-height: 1.6;
}

.an-welcome-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: auto;
}

.an-wm-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  background: var(--an-card-bg);
  border-radius: var(--an-radius-sm);
  border: 1px solid var(--an-border-color);
}

.an-wm-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.an-wm-data {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.an-wm-value {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--an-text-primary);
}

.an-wm-label {
  font-size: 0.7rem;
  color: var(--an-text-muted);
  white-space: nowrap;
}

@media (max-width: 991.98px) {
  .an-welcome-metrics {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 575.98px) {
  .an-welcome-metrics {
    grid-template-columns: 1fr;
  }
}

/* ---- Upgrade Card ---- */
.an-upgrade-card {
  background: #fdf4ff;
  border: 1px solid #f0abfc;
  border-radius: var(--an-radius-lg);
  padding: 28px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

[data-theme="dark"] .an-upgrade-card {
  background: rgba(168,85,247,.08);
  border-color: rgba(168,85,247,.2);
}

.an-upgrade-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, #a855f7, #ec4899);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: #fff;
  margin-bottom: 16px;
}

.an-upgrade-card h5 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.an-upgrade-card > p {
  font-size: 0.8rem;
  color: var(--an-text-secondary);
  margin-bottom: 16px;
  line-height: 1.6;
}

.an-upgrade-features {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  width: 100%;
  text-align: left;
}

.an-upgrade-features li {
  font-size: 0.8rem;
  color: var(--an-text-secondary);
  padding: 6px 0;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--an-border-color);
}

.an-upgrade-features li:last-child {
  border-bottom: none;
}

.an-upgrade-features li i {
  color: var(--an-success);
  font-size: 1rem;
}

.an-upgrade-card .btn {
  margin-top: auto;
}

/* Quick actions bar */
.an-quick-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.an-quick-action { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px; border-radius: var(--an-radius); background: var(--an-card-bg); border: 1px solid var(--an-border-color); flex: 1; min-width: 100px; text-align: center; transition: var(--an-transition); cursor: pointer; text-decoration: none; color: var(--an-text-primary); }
.an-quick-action:hover { border-color: var(--an-primary); box-shadow: var(--an-shadow-md); transform: translateY(-2px); color: var(--an-primary); }
.an-quick-action .qa-icon { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; }
.an-quick-action .qa-label { font-size: 0.78rem; font-weight: 500; }

/* ============================================
   Calendar Styles
   ============================================ */

/* Calendar card */
.an-cal-card {
  overflow: hidden;
}

.an-cal-card .card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.an-cal-nav {
  width: 32px;
  height: 32px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Calendar table */
.an-cal-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.an-cal-table thead th {
  text-align: center;
  padding: 12px 8px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--an-text-muted);
  border-bottom: 1px solid var(--an-border-color);
  background: var(--an-body-bg);
}

.an-cal-table tbody td {
  border: 1px solid var(--an-border-color);
  padding: 8px;
  vertical-align: top;
  height: 100px;
  transition: background .2s ease;
}

.an-cal-table tbody td:hover {
  background: rgba(var(--an-primary-rgb), .03);
}

.an-cal-date {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--an-text-primary);
  margin-bottom: 4px;
}

.an-cal-other {
  background: rgba(0,0,0,.015);
}

.an-cal-other .an-cal-date {
  color: var(--an-text-muted);
  opacity: 0.5;
}

[data-theme="dark"] .an-cal-other {
  background: rgba(255,255,255,.02);
}

.an-cal-today {
  background: rgba(var(--an-primary-rgb), .05) !important;
}

.an-cal-today .an-cal-date {
  background: var(--an-primary);
  color: #fff;
  font-weight: 700;
}

/* Calendar events */
.an-cal-event {
  display: block;
  font-size: 0.68rem;
  font-weight: 500;
  padding: 3px 7px;
  border-radius: 4px;
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  transition: opacity .2s ease;
  line-height: 1.4;
}

.an-cal-event:hover {
  opacity: 0.8;
}

.an-cal-ev-primary { background: rgba(var(--an-primary-rgb), .12); color: var(--an-primary); border-left: 2px solid var(--an-primary); }
.an-cal-ev-success { background: rgba(var(--an-success-rgb), .12); color: var(--an-success); border-left: 2px solid var(--an-success); }
.an-cal-ev-danger { background: rgba(var(--an-danger-rgb), .12); color: var(--an-danger); border-left: 2px solid var(--an-danger); }
.an-cal-ev-warning { background: rgba(var(--an-warning-rgb), .12); color: var(--an-warning); border-left: 2px solid var(--an-warning); }
.an-cal-ev-info { background: rgba(var(--an-info-rgb), .12); color: var(--an-info); border-left: 2px solid var(--an-info); }
.an-cal-ev-pink { background: rgba(var(--an-pink-rgb), .12); color: var(--an-pink); border-left: 2px solid var(--an-pink); }

/* Schedule items */
.an-schedule-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--an-border-color);
  transition: background .2s ease;
}

.an-schedule-item:last-child {
  border-bottom: none;
}

.an-schedule-item:hover {
  background: rgba(var(--an-primary-rgb), .03);
}

.an-schedule-time {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--an-text-muted);
  min-width: 42px;
  padding-top: 2px;
}

.an-schedule-bar {
  width: 3px;
  min-height: 36px;
  border-radius: 3px;
  flex-shrink: 0;
}

.an-sbar-primary { background: var(--an-primary); }
.an-sbar-success { background: var(--an-success); }
.an-sbar-danger { background: var(--an-danger); }
.an-sbar-warning { background: var(--an-warning); }
.an-sbar-info { background: var(--an-info); }

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

.an-schedule-content h6 {
  font-size: 0.8125rem;
  font-weight: 600;
  margin: 0 0 3px;
}

.an-schedule-content span {
  font-size: 0.75rem;
}

/* Category tags */
.an-cat-tag {
  display: flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--an-transition);
  width: 100%;
}

.an-cat-tag:hover {
  transform: translateX(3px);
  box-shadow: var(--an-shadow-sm);
}

.an-cat-tag .bxs-circle {
  font-size: 0.5rem;
}

.an-cat-primary { background: rgba(var(--an-primary-rgb), .1); color: var(--an-primary); }
.an-cat-success { background: rgba(var(--an-success-rgb), .1); color: var(--an-success); }
.an-cat-danger { background: rgba(var(--an-danger-rgb), .1); color: var(--an-danger); }
.an-cat-warning { background: rgba(var(--an-warning-rgb), .1); color: var(--an-warning); }
.an-cat-info { background: rgba(var(--an-info-rgb), .1); color: var(--an-info); }
.an-cat-pink { background: rgba(var(--an-pink-rgb), .1); color: var(--an-pink); }

/* Calendar responsive */
@media (max-width: 767.98px) {
  .an-cal-table tbody td {
    height: 70px;
    padding: 4px;
  }

  .an-cal-date {
    width: 24px;
    height: 24px;
    font-size: 0.7rem;
  }

  .an-cal-event {
    font-size: 0.6rem;
    padding: 2px 4px;
  }

  .an-cal-card .card-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ============================================
   Premium Chat App Styles
   ============================================ */

.an-chat-app {
  height: calc(100vh - var(--an-topbar-height));
  overflow: hidden;
}

.an-chat-app .row {
  height: 100%;
}

/* Contacts Panel */
.an-chat-contacts {
  border-right: 1px solid var(--an-border-color);
  display: flex;
  flex-direction: column;
  height: calc(100vh - var(--an-topbar-height));
}

[data-theme="dark"] .an-chat-contacts {
  border-color: var(--an-border-color);
}

.an-chat-profile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  flex-shrink: 0;
}

.an-chat-icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: none;
  background: rgba(255,255,255,.15);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all .2s ease;
  font-size: 1.1rem;
}

.an-chat-icon-btn:hover {
  background: rgba(255,255,255,.3);
}

/* Chat Avatar */
.an-chat-avatar {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  color: #fff;
  flex-shrink: 0;
}

.an-chat-avatar-sm {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.7rem;
  color: #fff;
  flex-shrink: 0;
}

.an-ca-gradient-1 { background: linear-gradient(135deg, #6366f1, #8b5cf6); }
.an-ca-gradient-2 { background: linear-gradient(135deg, #22c55e, #14b8a6); }
.an-ca-gradient-3 { background: linear-gradient(135deg, #f59e0b, #f97316); }
.an-ca-gradient-4 { background: linear-gradient(135deg, #ef4444, #ec4899); }
.an-ca-gradient-5 { background: linear-gradient(135deg, #06b6d4, #3b82f6); }
.an-ca-gradient-6 { background: linear-gradient(135deg, #a855f7, #6366f1); }
.an-ca-gradient-7 { background: linear-gradient(135deg, #14b8a6, #22c55e); }
.an-ca-gradient-8 { background: linear-gradient(135deg, #f97316, #ef4444); }

/* Search */
.an-chat-search {
  position: relative;
}

.an-chat-search i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--an-text-muted);
  font-size: 1.1rem;
}

.an-chat-search .form-control {
  padding-left: 40px;
  border-radius: 12px;
  background: var(--an-body-bg);
  border-color: var(--an-border-color);
  font-size: 0.8125rem;
}

/* Filter tabs */
.an-chat-filter {
  padding: 5px 14px;
  border-radius: 20px;
  border: 1px solid var(--an-border-color);
  background: transparent;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--an-text-secondary);
  cursor: pointer;
  transition: all .2s ease;
  display: inline-flex;
  align-items: center;
}

.an-chat-filter:hover {
  border-color: var(--an-primary);
  color: var(--an-primary);
}

.an-chat-filter.active {
  background: var(--an-primary);
  border-color: var(--an-primary);
  color: #fff;
}

/* Contact List */
.an-chat-contact-list {
  flex: 1;
  overflow-y: auto;
}

.an-chat-contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--an-border-color);
  cursor: pointer;
  transition: all .2s ease;
  text-decoration: none;
  color: var(--an-text-primary);
  position: relative;
}

.an-chat-contact-item:hover {
  background: rgba(var(--an-primary-rgb), .04);
  color: var(--an-text-primary);
}

.an-chat-contact-item.active {
  background: rgba(var(--an-primary-rgb), .08);
  border-left: 3px solid var(--an-primary);
}

.an-chat-contact-info {
  flex: 1;
  min-width: 0;
}

.an-chat-contact-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3px;
}

.an-chat-contact-top h6 {
  font-size: 0.8125rem;
  font-weight: 600;
  margin: 0;
}

.an-chat-time {
  font-size: 0.7rem;
  color: var(--an-text-muted);
  flex-shrink: 0;
}

.an-chat-contact-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.an-chat-contact-bottom p {
  font-size: 0.78rem;
  color: var(--an-text-muted);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.an-chat-unread {
  min-width: 20px;
  height: 20px;
  border-radius: 10px;
  background: var(--an-primary);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.an-chat-status-dot {
  position: absolute;
  left: 48px;
  top: 40px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--an-card-bg);
}

.an-chat-status-dot.online { background: #22c55e; }
.an-chat-status-dot.away { background: #f59e0b; }
.an-chat-status-dot.busy { background: #ef4444; }
.an-chat-status-dot.offline { background: #94a3b8; }

/* Chat Area */
.an-chat-area {
  height: calc(100vh - var(--an-topbar-height));
}

.an-chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  border-bottom: 1px solid var(--an-border-color);
  flex-shrink: 0;
  background: var(--an-card-bg);
}

/* Chat Body */
.an-chat-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  background: var(--an-body-bg);
}

.an-chat-date-badge {
  display: inline-block;
  padding: 4px 16px;
  border-radius: 20px;
  background: var(--an-card-bg);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--an-text-muted);
  box-shadow: var(--an-shadow-sm);
}

/* Messages */
.an-chat-msg {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
  align-items: flex-end;
}

.an-chat-msg.sent {
  flex-direction: row-reverse;
}

.an-chat-msg-content {
  max-width: 65%;
}

.an-chat-bubble-modern {
  padding: 12px 18px;
  font-size: 0.8125rem;
  line-height: 1.6;
  border-radius: 18px 18px 18px 4px;
  background: var(--an-card-bg);
  color: var(--an-text-primary);
  box-shadow: var(--an-shadow-sm);
}

.an-chat-msg.sent .an-chat-bubble-modern {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
  border-radius: 18px 18px 4px 18px;
  box-shadow: 0 4px 12px rgba(99,102,241,.25);
}

.an-chat-msg-time {
  display: block;
  font-size: 0.68rem;
  color: var(--an-text-muted);
  margin-top: 4px;
  padding: 0 4px;
}

.an-chat-msg.sent .an-chat-msg-time {
  text-align: right;
}

/* Typing indicator */
.an-chat-typing {
  display: flex;
  align-items: center;
  gap: 10px;
}

.an-typing-indicator {
  display: flex;
  gap: 4px;
  padding: 12px 18px;
  background: var(--an-card-bg);
  border-radius: 18px 18px 18px 4px;
  box-shadow: var(--an-shadow-sm);
}

.an-typing-indicator span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--an-text-muted);
  animation: an-typing 1.4s ease-in-out infinite;
}

.an-typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.an-typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

@keyframes an-typing {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-6px); opacity: 1; }
}

/* Chat Input */
.an-chat-input {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 20px;
  border-top: 1px solid var(--an-border-color);
  background: var(--an-card-bg);
  flex-shrink: 0;
}

.an-chat-input-actions {
  display: flex;
  gap: 2px;
}

.an-chat-action-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: none;
  background: transparent;
  color: var(--an-text-muted);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all .2s ease;
}

.an-chat-action-btn:hover {
  background: rgba(var(--an-primary-rgb), .08);
  color: var(--an-primary);
}

.an-chat-input-field {
  border-radius: 12px !important;
  border-color: var(--an-border-color) !important;
  font-size: 0.8125rem !important;
  padding: 10px 18px !important;
}

.an-chat-send-btn {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all .2s ease;
  flex-shrink: 0;
}

.an-chat-send-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(99,102,241,.35);
}

/* Chat Responsive */
@media (max-width: 991.98px) {
  .an-chat-contacts {
    height: auto;
    border-right: none;
    border-bottom: 1px solid var(--an-border-color);
    max-height: 300px;
  }

  .an-chat-area {
    height: 500px;
  }

  .an-chat-app {
    height: auto;
  }
}

/* ============================================
   Email Sidebar Styles
   ============================================ */

.an-email-sidebar {
  overflow: hidden;
}

/* Navigation items */
.an-email-nav {
  padding: 0 12px 16px;
}

.an-email-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--an-text-secondary);
  transition: all .2s ease;
  text-decoration: none;
  margin-bottom: 2px;
}

.an-email-nav-item:hover {
  background: rgba(var(--an-primary-rgb), .05);
  color: var(--an-text-primary);
}

.an-email-nav-item.active {
  background: rgba(var(--an-primary-rgb), .1);
  color: var(--an-primary);
  font-weight: 600;
}

.an-email-nav-item.active .an-email-nav-icon,
.an-email-nav-item.active .an-email-nav-icon i {
  background: var(--an-primary) !important;
  color: #fff !important;
}

.an-email-nav-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.an-email-nav-text {
  flex: 1;
}

/* Labels */
.an-email-label-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--an-border-color);
}

.an-email-label-header span {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--an-text-muted);
}

.an-email-label-add {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  border: 1px dashed var(--an-border-color);
  background: transparent;
  color: var(--an-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all .2s ease;
}

.an-email-label-add:hover {
  border-color: var(--an-primary);
  color: var(--an-primary);
  background: rgba(var(--an-primary-rgb), .05);
}

.an-email-labels {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.an-email-label-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 0.8rem;
  color: var(--an-text-secondary);
  text-decoration: none;
  transition: all .2s ease;
}

.an-email-label-item:hover {
  background: rgba(var(--an-primary-rgb), .04);
  color: var(--an-text-primary);
  transform: translateX(3px);
}

.an-email-label-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Storage */
.an-email-storage {
  padding: 14px;
  background: var(--an-body-bg);
  border-radius: 10px;
}

.an-email-storage .progress {
  height: 4px;
}

/* Purple text utility */
.text-purple-an { color: var(--an-purple) !important; }
.bg-soft-purple { background-color: rgba(var(--an-purple-rgb), .1) !important; }

/* ============================================
   Todo App Styles
   ============================================ */

/* Input wrap with icon */
.an-todo-input-wrap {
  position: relative;
  flex: 1;
}

.an-todo-input-wrap i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--an-primary);
  font-size: 1.2rem;
}

.an-todo-input-wrap .form-control {
  padding-left: 40px;
  border-radius: 10px;
}

/* Filter buttons */
.an-todo-filter {
  padding: 5px 14px;
  border-radius: 20px;
  border: none;
  background: rgba(var(--an-primary-rgb), .08);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--an-primary);
  cursor: pointer;
  transition: all .2s ease;
}

.an-todo-filter:hover {
  background: rgba(var(--an-primary-rgb), .15);
}

.an-todo-filter.active {
  background: var(--an-primary);
  color: #fff;
}

.an-todo-filter-danger {
  background: rgba(var(--an-danger-rgb), .08);
  color: var(--an-danger);
}

.an-todo-filter-danger:hover {
  background: rgba(var(--an-danger-rgb), .15);
}

/* Search */
.an-todo-search {
  position: relative;
  width: 200px;
}

.an-todo-search i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--an-text-muted);
}

.an-todo-search .form-control {
  padding-left: 34px;
  border-radius: 20px;
  font-size: 0.78rem;
  height: 34px;
  background: var(--an-body-bg);
}

/* Task items */
.an-todo-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--an-border-color);
  transition: all .2s ease;
}

.an-todo-item:last-child {
  border-bottom: none;
}

.an-todo-item:hover {
  background: rgba(var(--an-primary-rgb), .02);
  margin: 0 -20px;
  padding-left: 20px;
  padding-right: 20px;
  border-radius: 8px;
}

.an-todo-check {
  padding-top: 2px;
}

.an-todo-check .form-check-input {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  cursor: pointer;
}

.an-todo-check .form-check-input:checked {
  background-color: var(--an-success);
  border-color: var(--an-success);
}

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

.an-todo-content h6 {
  font-size: 0.8125rem;
  font-weight: 600;
  margin: 0 0 6px;
  line-height: 1.4;
}

.an-todo-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 0.75rem;
  color: var(--an-text-muted);
}

.an-todo-tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 0.68rem;
  font-weight: 600;
}

.an-todo-tag-danger { background: rgba(var(--an-danger-rgb), .1); color: var(--an-danger); }
.an-todo-tag-warning { background: rgba(var(--an-warning-rgb), .1); color: var(--an-warning); }
.an-todo-tag-info { background: rgba(var(--an-info-rgb), .1); color: var(--an-info); }

.an-todo-assignee {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.an-todo-avatar {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.55rem;
  font-weight: 700;
  color: #fff;
}

/* Overdue state */
.an-todo-overdue {
  border-left: 3px solid var(--an-danger);
  padding-left: 14px;
  margin-left: -3px;
}

/* Completed state */
.an-todo-done {
  opacity: 0.55;
}

.an-todo-done .an-todo-content h6 {
  text-decoration: line-through;
}

/* Action buttons */
.an-todo-actions {
  display: flex;
  gap: 4px;
  opacity: 0;
  transition: opacity .2s ease;
}

.an-todo-item:hover .an-todo-actions {
  opacity: 1;
}

.an-todo-action-btn {
  width: 30px;
  height: 30px;
  border: none;
  background: transparent;
  border-radius: 8px;
  color: var(--an-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all .2s ease;
}

.an-todo-action-btn:hover {
  background: var(--an-body-bg);
}

/* Progress ring */
.an-todo-progress-ring {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: conic-gradient(var(--an-success) 0% 62%, var(--an-border-color) 62% 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  position: relative;
}

.an-todo-progress-ring::before {
  content: '';
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  background: var(--an-card-bg);
}

.an-todo-ring-value {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--an-success);
  position: relative;
  z-index: 1;
  line-height: 1;
}

.an-todo-ring-label {
  font-size: 0.7rem;
  color: var(--an-text-muted);
  position: relative;
  z-index: 1;
}

/* Team list */
.an-todo-team-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--an-border-color);
}

.an-todo-team-item:last-child {
  border-bottom: none;
}

/* ============================================
   Contact Card Styles
   ============================================ */

.an-contact-card {
  overflow: hidden;
  transition: all .3s ease;
}

.an-contact-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0,0,0,.1);
}

.an-contact-cover {
  height: 70px;
  position: relative;
}

.an-contact-body {
  margin-top: -40px;
  position: relative;
}

.an-contact-img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 4px solid var(--an-card-bg);
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0,0,0,.12);
}

.an-contact-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  transition: all .2s ease;
}

.an-contact-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,.12);
}

.an-cb-primary {
  background: rgba(var(--an-primary-rgb), .1);
  color: var(--an-primary);
}
.an-cb-primary:hover { background: var(--an-primary); color: #fff; }

.an-cb-success {
  background: rgba(var(--an-success-rgb), .1);
  color: var(--an-success);
}
.an-cb-success:hover { background: var(--an-success); color: #fff; }

.an-cb-warning {
  background: rgba(var(--an-warning-rgb), .1);
  color: var(--an-warning);
}
.an-cb-warning:hover { background: var(--an-warning); color: #fff; }

.an-cb-danger {
  background: rgba(var(--an-danger-rgb), .1);
  color: var(--an-danger);
}
.an-cb-danger:hover { background: var(--an-danger); color: #fff; }

/* ============================================
   Login Page - Premium Split Layout
   ============================================ */

.an-login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f1f5f9;
  padding: 20px;
  font-family: var(--an-font-family);
}

.an-login-container {
  display: flex;
  width: 100%;
  max-width: 1000px;
  min-height: 600px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.1);
}

/* Left Branding Panel */
.an-login-left {
  flex: 0 0 45%;
  background: linear-gradient(160deg, #1e1b4b 0%, #312e81 40%, #4338ca 100%);
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  color: #fff;
}

.an-login-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  position: relative;
  z-index: 2;
}

.an-login-logo {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
}

.an-login-hero {
  position: relative;
  z-index: 2;
}

.an-login-hero h1 {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.2;
  color: #fff;
  margin-bottom: 14px;
}

.an-login-hero p {
  font-size: 0.9rem;
  color: rgba(255,255,255,.7);
  line-height: 1.7;
  max-width: 320px;
}

.an-login-stats {
  display: flex;
  gap: 28px;
  margin-top: 30px;
}

.an-login-stat {
  text-align: center;
}

.an-ls-value {
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.2;
  color: #fff;
}

.an-ls-label {
  font-size: 0.72rem;
  color: rgba(255,255,255,.5);
  margin-top: 2px;
}

/* Decorative shapes */
.an-login-shapes {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.an-shape {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,.04);
}

.an-shape-1 {
  width: 300px;
  height: 300px;
  top: -80px;
  right: -60px;
}

.an-shape-2 {
  width: 200px;
  height: 200px;
  bottom: -40px;
  left: -40px;
}

.an-shape-3 {
  width: 100px;
  height: 100px;
  top: 50%;
  left: 60%;
  background: rgba(255,255,255,.06);
}

/* Right Form Panel */
.an-login-right {
  flex: 1;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.an-login-form-wrap {
  width: 100%;
  max-width: 380px;
}

.an-login-form-header h2 {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.an-login-form-header p {
  font-size: 0.85rem;
  color: #64748b;
  margin-bottom: 28px;
}

/* Social buttons */
.an-login-social {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}

.an-social-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #334155;
  cursor: pointer;
  transition: all .2s ease;
}

.an-social-btn:hover {
  border-color: #94a3b8;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}

.an-social-btn i {
  font-size: 1.2rem;
}

.an-social-google i { color: #ea4335; }
.an-social-github i { color: #24292e; }

/* Divider */
.an-login-divider {
  position: relative;
  text-align: center;
  margin-bottom: 24px;
}

.an-login-divider::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: #e2e8f0;
}

.an-login-divider span {
  background: #fff;
  padding: 0 16px;
  position: relative;
  font-size: 0.75rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Input with icon */
.an-login-input-wrap {
  position: relative;
}

.an-login-input-wrap > i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 1.15rem;
}

.an-login-input-wrap .form-control {
  padding-left: 42px;
  padding-right: 14px;
  border-radius: 12px;
  height: 46px;
  border-color: #e2e8f0;
  font-size: 0.8125rem;
}

.an-login-input-wrap .form-control::placeholder {
  color: #b0b8c4;
  opacity: 1;
}

.an-login-input-wrap .form-control:focus::placeholder {
  opacity: 0;
}

.an-login-input-wrap .form-control:focus {
  border-color: var(--an-primary);
  box-shadow: 0 0 0 3px rgba(var(--an-primary-rgb), .1);
}

.an-login-toggle-pw {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  font-size: 1.15rem;
  padding: 0;
}

.an-login-toggle-pw:hover {
  color: var(--an-primary);
}

/* Submit */
.an-login-submit {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
  border: none;
  border-radius: 12px;
  height: 46px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all .25s ease;
}

.an-login-submit:hover {
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(99,102,241,.35);
}

/* Responsive */
@media (max-width: 767.98px) {
  .an-login-container {
    flex-direction: column;
    max-width: 440px;
  }

  .an-login-left {
    flex: none;
    padding: 30px;
    min-height: auto;
  }

  .an-login-hero h1 {
    font-size: 1.4rem;
  }

  .an-login-stats {
    gap: 20px;
    margin-top: 20px;
  }

  .an-ls-value {
    font-size: 1.1rem;
  }

  .an-login-right {
    padding: 30px;
  }
}

@media (max-width: 480px) {
  .an-login-page {
    padding: 0;
  }

  .an-login-container {
    border-radius: 0;
    min-height: 100vh;
  }
}

/* Forgot password icon */
.an-forgot-icon {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  background: rgba(var(--an-primary-rgb), .1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--an-primary);
  margin-bottom: 8px;
}

/* Lock screen avatar */
.an-lock-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 4px solid var(--an-primary);
  box-shadow: 0 6px 20px rgba(var(--an-primary-rgb), .25);
  object-fit: cover;
  margin-bottom: 12px;
}

/* ============================================
   Error Page - Modern Design
   ============================================ */

.an-error-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8fafc;
  position: relative;
  overflow: hidden;
  font-family: var(--an-font-family);
  padding: 40px 20px;
}

/* Floating shapes */
.an-error-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.an-err-shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.6;
}

.an-err-s1 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(99,102,241,.08), transparent 70%);
  top: -100px;
  left: -100px;
}

.an-err-s2 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(236,72,153,.06), transparent 70%);
  bottom: -80px;
  right: -60px;
}

.an-err-s3 {
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(34,197,94,.06), transparent 70%);
  top: 20%;
  right: 15%;
}

.an-err-s4 {
  width: 16px;
  height: 16px;
  background: var(--an-primary);
  top: 30%;
  left: 20%;
  animation: an-err-float 6s ease-in-out infinite;
}

.an-err-s5 {
  width: 10px;
  height: 10px;
  background: var(--an-pink);
  bottom: 30%;
  right: 25%;
  animation: an-err-float 8s ease-in-out infinite reverse;
}

@keyframes an-err-float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(180deg); }
}

/* Content */
.an-error-content {
  text-align: center;
  position: relative;
  z-index: 1;
  max-width: 520px;
}

/* Error number 4_4 */
.an-error-number {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-bottom: 24px;
}

.an-err-digit {
  font-size: 8rem;
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(135deg, #6366f1, #a855f7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.an-err-circle {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1, #a855f7);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 2.5rem;
  animation: an-err-pulse 2s ease-in-out infinite;
  box-shadow: 0 8px 30px rgba(99,102,241,.3);
}

@keyframes an-err-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

.an-error-title {
  font-size: 1.8rem;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 10px;
}

.an-error-desc {
  font-size: 0.9rem;
  color: #64748b;
  line-height: 1.7;
  margin-bottom: 28px;
}

/* Search */
.an-error-search {
  max-width: 360px;
  margin: 0 auto 24px;
}

.an-error-search .form-control {
  border-radius: 12px;
  height: 46px;
  padding-left: 42px;
  font-size: 0.8125rem;
  border-color: #e2e8f0;
}

/* Actions */
.an-error-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.an-error-actions .btn {
  border-radius: 12px;
  padding: 10px 24px;
  font-weight: 600;
  font-size: 0.875rem;
}

/* Quick links */
.an-error-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.an-error-links a {
  font-size: 0.8rem;
  color: var(--an-primary);
  font-weight: 500;
  transition: all .2s ease;
}

.an-error-links a:hover {
  color: var(--an-primary-dark);
  text-decoration: underline;
}

@media (max-width: 575.98px) {
  .an-err-digit {
    font-size: 5rem;
  }

  .an-err-circle {
    width: 70px;
    height: 70px;
    font-size: 1.8rem;
  }

  .an-error-title {
    font-size: 1.4rem;
  }
}

/* 500 Error - danger color variants */
.an-err-digit-danger {
  background: linear-gradient(135deg, #ef4444, #ec4899) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
}

.an-err-circle-danger {
  background: linear-gradient(135deg, #ef4444, #ec4899) !important;
  box-shadow: 0 8px 30px rgba(239,68,68,.3) !important;
}

/* 500 Status cards */
.an-500-status {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.an-500-status-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  text-align: left;
  min-width: 160px;
}

.an-500-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}

@media (max-width: 575.98px) {
  .an-500-status {
    flex-direction: column;
    align-items: center;
  }

  .an-500-status-item {
    width: 100%;
    max-width: 280px;
  }
}

/* ============================================
   Profile Page Styles
   ============================================ */

.an-profile-header {
  overflow: hidden;
}

.an-profile-cover {
  height: 180px;
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 40%, #4338ca 80%, #6366f1 100%);
  position: relative;
}

.an-profile-cover::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(255,255,255,.04);
}

.an-profile-info {
  margin-top: -50px;
  padding: 0 28px 24px !important;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.an-profile-main {
  display: flex;
  align-items: flex-end;
  gap: 20px;
}

.an-profile-avatar {
  width: 110px;
  height: 110px;
  border-radius: 20px;
  border: 5px solid var(--an-card-bg);
  box-shadow: 0 6px 20px rgba(0,0,0,.12);
  object-fit: cover;
}

.an-profile-details {
  padding-bottom: 8px;
}

.an-profile-details h4 {
  font-weight: 800;
}

.an-profile-stats {
  display: flex;
  gap: 24px;
}

.an-ps-item {
  text-align: center;
  padding: 10px 16px;
  background: var(--an-body-bg);
  border-radius: 12px;
  min-width: 70px;
}

.an-ps-value {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--an-primary);
  line-height: 1.2;
}

.an-ps-label {
  font-size: 0.68rem;
  color: var(--an-text-muted);
  margin-top: 2px;
}

/* Profile Detail List */
.an-profile-detail-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.an-pd-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.an-pd-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.an-pd-item div:last-child {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.an-pd-item small {
  font-size: 0.68rem;
  line-height: 1.2;
}

.an-pd-item span,
.an-pd-item a {
  font-size: 0.8125rem;
  font-weight: 500;
}

/* Skill Tags */
.an-skill-tag {
  display: inline-flex;
  align-items: center;
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  transition: all .2s ease;
}

.an-skill-tag:hover {
  transform: translateY(-2px);
  box-shadow: 0 3px 8px rgba(0,0,0,.1);
}

.an-skill-primary { background: rgba(var(--an-primary-rgb), .1); color: var(--an-primary); }
.an-skill-success { background: rgba(var(--an-success-rgb), .1); color: var(--an-success); }
.an-skill-info { background: rgba(var(--an-info-rgb), .1); color: var(--an-info); }
.an-skill-warning { background: rgba(var(--an-warning-rgb), .1); color: var(--an-warning); }
.an-skill-danger { background: rgba(var(--an-danger-rgb), .1); color: var(--an-danger); }
.an-skill-pink { background: rgba(var(--an-pink-rgb), .1); color: var(--an-pink); }

@media (max-width: 767.98px) {
  .an-profile-info {
    flex-direction: column;
    align-items: flex-start;
  }

  .an-profile-main {
    flex-direction: column;
    align-items: flex-start;
  }

  .an-profile-avatar {
    width: 80px;
    height: 80px;
  }

  .an-profile-stats {
    gap: 12px;
    flex-wrap: wrap;
  }
}

/* ============================================
   Profile Page - Flat Modern Style
   ============================================ */

.an-pf-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.an-pf-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.an-pf-photo {
  width: 100px;
  height: 100px;
  border-radius: 22px;
  object-fit: cover;
  border: 3px solid var(--an-border-color);
  flex-shrink: 0;
}

.an-pf-identity h3 {
  font-weight: 800;
  font-size: 1.3rem;
}

.an-pf-social-btn {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--an-body-bg);
  border: 1px solid var(--an-border-color);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--an-text-secondary);
  font-size: 1.1rem;
  transition: all .2s ease;
}

.an-pf-social-btn:hover {
  background: var(--an-primary);
  border-color: var(--an-primary);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(var(--an-primary-rgb), .3);
}

.an-pf-right {
  flex-shrink: 0;
}

.an-pf-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.an-pf-stat {
  text-align: center;
  padding: 14px 12px;
  border-radius: 14px;
  min-width: 80px;
}

.an-pf-stat i {
  font-size: 1.3rem;
  margin-bottom: 4px;
  display: block;
}

.an-pf-stat-val {
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.2;
}

.an-pf-stat-lbl {
  font-size: 0.68rem;
  color: var(--an-text-muted);
  margin-top: 2px;
}

.an-avatar-overlap {
  margin-left: -8px;
}

@media (max-width: 767.98px) {
  .an-pf-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .an-pf-left {
    flex-direction: column;
    align-items: flex-start;
  }

  .an-pf-stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}


/* ============================================
   Pricing Page Styles
   ============================================ */

.an-pricing-toggle {
  display: inline-flex;
  align-items: center;
}

.an-pt-label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--an-text-muted);
}

.an-pt-label.active {
  color: var(--an-text-primary);
  font-weight: 600;
}

.an-pricing-card-new {
  border-radius: 16px;
  transition: all .3s ease;
  position: relative;
  overflow: visible;
}

.an-pricing-card-new:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0,0,0,.1);
}

.an-pricing-popular {
  border: 2px solid var(--an-primary);
  box-shadow: 0 8px 24px rgba(var(--an-primary-rgb), .15);
}

.an-pricing-ribbon {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--an-primary);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 18px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.an-pc-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.an-pc-price {
  display: flex;
  align-items: baseline;
  gap: 2px;
  margin: 16px 0;
}

.an-pc-currency {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--an-text-primary);
}

.an-pc-amount {
  font-size: 3rem;
  font-weight: 900;
  line-height: 1;
  color: var(--an-text-primary);
}

.an-pc-period {
  font-size: 0.85rem;
  color: var(--an-text-muted);
}

.an-pc-features {
  list-style: none;
  padding: 0;
  margin: 0;
}

.an-pc-features li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 0;
  font-size: 0.8125rem;
}

.an-pcf-yes i {
  color: var(--an-success);
  font-size: 1.1rem;
}

.an-pcf-no {
  color: var(--an-text-muted);
  opacity: 0.6;
}

.an-pcf-no i {
  color: var(--an-text-muted);
}

.an-trust-logo {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--an-text-muted);
  padding: 8px 16px;
  background: var(--an-card-bg);
  border-radius: 8px;
  border: 1px solid var(--an-border-color);
}

.an-trust-logo i {
  font-size: 1.3rem;
}

/* ============================================
   FAQ Page Styles
   ============================================ */

.an-faq-search {
  position: relative;
  max-width: 440px;
}

.an-faq-search i {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--an-text-muted);
  font-size: 1.2rem;
}

.an-faq-search .form-control {
  padding-left: 44px;
  border-radius: 50px;
  height: 48px;
  font-size: 0.875rem;
  border-color: var(--an-border-color);
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
}

.an-faq-topic-card {
  transition: all .3s ease;
  cursor: pointer;
}

.an-faq-topic-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,.08);
  border-color: var(--an-primary);
}

.an-faq-topic-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.an-faq-help-card {
  background: linear-gradient(135deg, #eef2ff, #fdf4ff);
  border: none;
}

[data-theme="dark"] .an-faq-help-card {
  background: linear-gradient(135deg, rgba(99,102,241,.08), rgba(168,85,247,.08));
}

/* ============================================
   Modern Accordion Styles
   ============================================ */

.accordion-item {
  border: none;
  border-bottom: 1px solid var(--an-border-color);
  background: transparent;
}

.accordion-item:last-child {
  border-bottom: none;
}

.accordion-button {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--an-text-primary);
  background: transparent;
  padding: 16px 0;
  box-shadow: none !important;
  border-radius: 0 !important;
  gap: 12px;
}

.accordion-button:not(.collapsed) {
  color: var(--an-primary);
  background: transparent;
}

.accordion-button::after {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background-color: rgba(var(--an-primary-rgb), .08);
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%236366f1'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
  background-size: 14px;
  background-position: center;
  flex-shrink: 0;
  transition: all .3s ease;
}

.accordion-button:not(.collapsed)::after {
  background-color: var(--an-primary);
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffffff'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
  border-radius: 8px;
}

.accordion-button:hover {
  color: var(--an-primary);
}

.accordion-body {
  padding: 0 0 16px;
  font-size: 0.8125rem;
  line-height: 1.7;
}

[data-theme="dark"] .accordion-button {
  color: var(--an-text-primary);
  background: transparent;
}

[data-theme="dark"] .accordion-button:not(.collapsed) {
  color: var(--an-primary-light);
}

[data-theme="dark"] .accordion-item {
  border-color: var(--an-border-color);
  background: transparent;
}

/* ============================================
   Gallery Page - Modern Lightbox
   ============================================ */

.an-gallery-filter {
  padding: 5px 16px;
  border-radius: 20px;
  border: 1px solid var(--an-border-color);
  background: transparent;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--an-text-secondary);
  cursor: pointer;
  transition: all .2s ease;
}

.an-gallery-filter:hover {
  border-color: var(--an-primary);
  color: var(--an-primary);
}

.an-gallery-filter.active {
  background: var(--an-primary);
  border-color: var(--an-primary);
  color: #fff;
}

.an-gallery-card {
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  background: var(--an-card-bg);
  border: 1px solid var(--an-border-color);
  transition: all .3s ease;
}

.an-gallery-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0,0,0,.12);
}

.an-gallery-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}

.an-gallery-card:hover .an-gallery-img {
  transform: scale(1.06);
}

.an-gallery-hover {
  position: absolute;
  inset: 0;
  bottom: auto;
  height: 200px;
  background: rgba(0,0,0,.35);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .3s ease;
}

.an-gallery-card:hover .an-gallery-hover {
  opacity: 1;
}

.an-gallery-hover i {
  font-size: 2rem;
  color: #fff;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,.2);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.an-gallery-info {
  padding: 14px 16px;
}

.an-gallery-info h6 {
  font-size: 0.85rem;
  font-weight: 600;
  margin: 0 0 2px;
}

.an-gallery-info span {
  font-size: 0.72rem;
  color: var(--an-text-muted);
}

/* Lightbox Modal */
.an-gallery-modal {
  border: none;
  border-radius: 16px;
  overflow: hidden;
  background: var(--an-card-bg);
}

.an-gallery-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 10;
  background: rgba(0,0,0,.5) !important;
  border-radius: 50%;
  padding: 8px;
  filter: invert(1);
}

.an-gallery-modal-img {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
  display: block;
}

.an-gallery-modal-info {
  padding: 20px 24px;
}

.an-gallery-modal-info h5 {
  font-weight: 700;
  margin: 0 0 6px;
}

.an-gallery-modal-info p {
  color: var(--an-text-muted);
  font-size: 0.85rem;
  margin: 0;
}

/* ============================================
   Timeline Page - 3 Styles
   ============================================ */

/* --- Center Alternating Timeline --- */
.an-tl-center {
  position: relative;
  padding: 20px 0;
}

.an-tl-center::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--an-border-color);
  transform: translateX(-50%);
}

.an-tl-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 32px;
  position: relative;
}

.an-tl-item:last-child {
  margin-bottom: 0;
}

.an-tl-left {
  flex-direction: row;
  padding-right: calc(50% + 30px);
}

.an-tl-right {
  flex-direction: row-reverse;
  padding-left: calc(50% + 30px);
}

.an-tl-dot {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: #fff;
  z-index: 2;
  box-shadow: 0 4px 10px rgba(0,0,0,.1);
}

.an-tl-dot-primary { background: linear-gradient(135deg, #6366f1, #8b5cf6); }
.an-tl-dot-success { background: linear-gradient(135deg, #22c55e, #14b8a6); }
.an-tl-dot-info { background: linear-gradient(135deg, #06b6d4, #3b82f6); }
.an-tl-dot-warning { background: linear-gradient(135deg, #f59e0b, #f97316); }
.an-tl-dot-danger { background: linear-gradient(135deg, #ef4444, #dc2626); }
.an-tl-dot-pink { background: linear-gradient(135deg, #ec4899, #a855f7); }

.an-tl-card {
  flex: 1;
  background: var(--an-card-bg);
  border: 1px solid var(--an-border-color);
  border-radius: 14px;
  padding: 20px;
  transition: all .3s ease;
}

.an-tl-card:hover {
  box-shadow: 0 6px 16px rgba(0,0,0,.06);
  transform: translateY(-2px);
}

.an-tl-date {
  font-size: 0.72rem;
  color: var(--an-text-muted);
  margin-bottom: 6px;
}

.an-tl-card h6 {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.an-tl-card p {
  font-size: 0.8rem;
  color: var(--an-text-secondary);
  margin: 0;
  line-height: 1.6;
}

@media (max-width: 767.98px) {
  .an-tl-center::before {
    left: 20px;
  }

  .an-tl-left,
  .an-tl-right {
    flex-direction: row;
    padding-left: 60px;
    padding-right: 0;
  }

  .an-tl-dot {
    left: 20px;
    transform: translateX(-50%);
  }
}

/* --- Horizontal Timeline --- */
.an-tl-horizontal {
  display: flex;
  gap: 0;
  overflow-x: auto;
  padding-bottom: 10px;
  position: relative;
}

.an-tl-horizontal::before {
  content: '';
  position: absolute;
  top: 24px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--an-border-color);
}

.an-tl-h-item {
  flex: 1;
  min-width: 180px;
  text-align: center;
  position: relative;
  padding: 0 12px;
}

.an-tl-h-dot {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin: 0 auto 14px;
  position: relative;
  z-index: 2;
  border: 3px solid var(--an-card-bg);
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
}

.an-tl-h-content h6 {
  font-size: 0.85rem;
  font-weight: 700;
  margin: 0 0 2px;
}

.an-tl-h-content small {
  color: var(--an-text-muted);
}

.an-tl-h-content p {
  font-size: 0.78rem;
  color: var(--an-text-secondary);
  margin: 8px 0 0;
  line-height: 1.5;
}

/* --- Simple Left Timeline --- */
.an-tl-simple {
  position: relative;
  padding-left: 28px;
}

.an-tl-simple::before {
  content: '';
  position: absolute;
  left: 5px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: var(--an-border-color);
}

.an-tl-s-item {
  position: relative;
  padding-bottom: 24px;
}

.an-tl-s-item:last-child {
  padding-bottom: 0;
}

.an-tl-s-dot {
  position: absolute;
  left: -25px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--an-card-bg);
  box-shadow: 0 0 0 2px var(--an-border-color);
}

.an-tl-s-content h6 {
  font-size: 0.875rem;
  font-weight: 700;
  margin: 0 0 2px;
}

.an-tl-s-content p {
  font-size: 0.8rem;
  color: var(--an-text-secondary);
  line-height: 1.6;
}

/* ============================================
   Maintenance Page
   ============================================ */

.an-maint-gears {
  position: relative;
  height: 90px;
  width: 120px;
  margin: 0 auto 20px;
}

.an-maint-gear-1 {
  font-size: 4.5rem;
  color: var(--an-primary);
  position: absolute;
  left: 0;
  top: 0;
  animation: an-gear-spin 4s linear infinite;
}

.an-maint-gear-2 {
  font-size: 3rem;
  color: var(--an-pink);
  position: absolute;
  right: 8px;
  bottom: 0;
  animation: an-gear-spin 3s linear infinite reverse;
}

@keyframes an-gear-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.an-maint-progress {
  max-width: 360px;
  margin: 0 auto 28px;
  padding: 18px 24px;
  background: var(--an-card-bg);
  border-radius: 14px;
  border: 1px solid var(--an-border-color);
  box-shadow: var(--an-shadow-sm);
}

.an-maint-info {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.an-maint-info-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  background: var(--an-card-bg);
  border-radius: 12px;
  border: 1px solid var(--an-border-color);
  text-align: left;
  box-shadow: var(--an-shadow-sm);
}

.an-maint-notify {
  max-width: 420px;
  margin: 0 auto;
  text-align: center;
}

.an-maint-form {
  display: flex;
  gap: 8px;
  background: var(--an-card-bg);
  border: 1px solid var(--an-border-color);
  border-radius: 14px;
  padding: 6px;
  box-shadow: var(--an-shadow-sm);
}

.an-maint-email {
  border: none !important;
  box-shadow: none !important;
  height: 40px;
  font-size: 0.8125rem;
  background: transparent !important;
  padding-left: 12px;
}

.an-maint-btn {
  border-radius: 10px !important;
  padding: 8px 20px !important;
  white-space: nowrap;
  flex-shrink: 0;
}

@media (max-width: 575.98px) {
  .an-maint-info {
    flex-direction: column;
    align-items: center;
  }

  .an-maint-info-item {
    width: 100%;
    max-width: 280px;
  }
}

/* ============================================
   Coming Soon Page
   ============================================ */

.an-cs-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, #0f172a 0%, #1e1b4b 50%, #312e81 100%);
  position: relative;
  overflow: hidden;
  padding: 40px 20px;
  font-family: var(--an-font-family);
}

.an-cs-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.an-cs-shape {
  position: absolute;
  border-radius: 50%;
}

.an-cs-s1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(99,102,241,.15), transparent 70%);
  top: -150px;
  right: -100px;
}

.an-cs-s2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(236,72,153,.1), transparent 70%);
  bottom: -120px;
  left: -80px;
}

.an-cs-s3 {
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(34,197,94,.08), transparent 70%);
  top: 40%;
  left: 20%;
}

.an-cs-content {
  text-align: center;
  position: relative;
  z-index: 1;
  max-width: 600px;
  color: #fff;
}

.an-cs-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 36px;
}

.an-cs-logo .an-login-logo {
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(8px);
}

.an-cs-title {
  font-size: 2.8rem;
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #fff 0%, #c7d2fe 50%, #e9d5ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.an-cs-desc {
  font-size: 0.95rem;
  color: rgba(255,255,255,.6);
  line-height: 1.7;
  margin-bottom: 40px;
}

/* Countdown */
.an-cs-countdown {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 36px;
}

.an-cs-timer-box {
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 16px;
  padding: 18px 22px;
  min-width: 80px;
}

.an-cs-timer-value {
  font-size: 2.2rem;
  font-weight: 900;
  line-height: 1;
  color: #fff;
  font-variant-numeric: tabular-nums;
}

.an-cs-timer-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,.4);
  margin-top: 6px;
}

.an-cs-timer-sep {
  font-size: 2rem;
  font-weight: 700;
  color: rgba(255,255,255,.25);
  padding-bottom: 16px;
}

/* Progress */
.an-cs-progress {
  max-width: 360px;
  margin: 0 auto 32px;
  color: rgba(255,255,255,.7);
}

.an-cs-accent {
  color: #818cf8;
}

.an-cs-progress-bar {
  height: 6px;
  background: rgba(255,255,255,.1);
  border-radius: 3px;
}

.an-cs-progress-bar .progress-bar {
  background: linear-gradient(90deg, #6366f1, #a855f7);
  border-radius: 3px;
}

/* Subscribe */
.an-cs-subscribe {
  max-width: 420px;
  margin: 0 auto 32px;
  color: rgba(255,255,255,.5);
}

.an-cs-form {
  display: flex;
  gap: 0;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px;
  padding: 5px;
  backdrop-filter: blur(8px);
}

.an-cs-input {
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
  color: #fff !important;
  height: 42px;
  font-size: 0.8125rem;
  padding-left: 14px;
}

.an-cs-input::placeholder {
  color: rgba(255,255,255,.35) !important;
}

.an-cs-btn {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
  border: none;
  border-radius: 10px !important;
  padding: 8px 22px;
  font-weight: 600;
  font-size: 0.8125rem;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all .25s ease;
}

.an-cs-btn:hover {
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  color: #fff;
  box-shadow: 0 4px 16px rgba(99,102,241,.4);
  transform: translateY(-1px);
}

/* Social */
.an-cs-social {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.an-cs-social-btn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.5);
  font-size: 1.2rem;
  transition: all .25s ease;
}

.an-cs-social-btn:hover {
  background: rgba(255,255,255,.15);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0,0,0,.2);
}

@media (max-width: 575.98px) {
  .an-cs-title {
    font-size: 1.8rem;
  }

  .an-cs-timer-box {
    padding: 12px 14px;
    min-width: 60px;
  }

  .an-cs-timer-value {
    font-size: 1.5rem;
  }

  .an-cs-timer-sep {
    font-size: 1.4rem;
  }
}

/* ============================================
   Form Wizard Styles
   ============================================ */

/* Horizontal Steps */
.an-wiz-steps {
  display: flex;
  justify-content: center;
  position: relative;
  padding: 0 40px;
  margin-bottom: 32px;
}

.an-wiz-steps::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 15%;
  right: 15%;
  height: 2px;
  background: var(--an-border-color);
}

.an-wiz-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  position: relative;
  z-index: 1;
}

.an-wiz-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--an-card-bg);
  border: 2px solid var(--an-border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--an-text-muted);
  margin-bottom: 8px;
  transition: all .3s ease;
}

.an-wiz-step.active .an-wiz-num {
  background: var(--an-primary);
  border-color: var(--an-primary);
  color: #fff;
  box-shadow: 0 4px 12px rgba(var(--an-primary-rgb), .3);
}

.an-wiz-step.completed .an-wiz-num {
  background: var(--an-success);
  border-color: var(--an-success);
  color: #fff;
}

.an-wiz-step span {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--an-text-muted);
}

.an-wiz-step.active span {
  color: var(--an-primary);
  font-weight: 600;
}

.an-wiz-step.completed span {
  color: var(--an-success);
}

/* Icon Steps */
.an-wiz-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--an-body-bg);
  border: 2px solid var(--an-border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--an-text-muted);
  margin-bottom: 8px;
  transition: all .3s ease;
}

.an-wiz-icon-steps::before {
  top: 24px;
}

.an-wiz-step.active .an-wiz-icon {
  background: var(--an-primary);
  border-color: var(--an-primary);
  color: #fff;
  box-shadow: 0 4px 12px rgba(var(--an-primary-rgb), .3);
}

.an-wiz-step.completed .an-wiz-icon {
  background: var(--an-success);
  border-color: var(--an-success);
  color: #fff;
}

/* Wizard Pane */
.an-wiz-pane {
  display: none;
}

.an-wiz-pane.active {
  display: block;
  animation: an-fade-in .3s ease;
}

/* Vertical Steps */
.an-wiz-vertical-nav {
  background: var(--an-body-bg);
  border-right: 1px solid var(--an-border-color);
  padding: 24px;
  border-radius: var(--an-radius) 0 0 var(--an-radius);
}

.an-wiz-v-steps {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.an-wiz-v-step {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 12px;
  cursor: default;
  transition: all .2s ease;
}

.an-wiz-v-step.active {
  background: rgba(var(--an-primary-rgb), .1);
}

.an-wiz-v-num {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--an-card-bg);
  border: 2px solid var(--an-border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--an-text-muted);
  flex-shrink: 0;
  transition: all .3s ease;
}

.an-wiz-v-step.active .an-wiz-v-num {
  background: var(--an-primary);
  border-color: var(--an-primary);
  color: #fff;
  box-shadow: 0 3px 8px rgba(var(--an-primary-rgb), .3);
}

.an-wiz-v-step.completed .an-wiz-v-num {
  background: var(--an-success);
  border-color: var(--an-success);
  color: #fff;
}

.an-wiz-v-step h6 {
  font-size: 0.8125rem;
  font-weight: 600;
  margin: 0;
  color: var(--an-text-muted);
}

.an-wiz-v-step.active h6 {
  color: var(--an-primary);
}

.an-wiz-v-step.completed h6 {
  color: var(--an-success);
}

.an-wiz-v-step small {
  font-size: 0.7rem;
  color: var(--an-text-muted);
}

/* Payment method cards */
.an-pay-option {
  border: 2px solid var(--an-border-color);
  border-radius: 14px;
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: all .2s ease;
}

.an-pay-option:hover {
  border-color: rgba(var(--an-primary-rgb), .4);
}

.an-pay-option.selected {
  border-color: var(--an-primary);
  background: rgba(var(--an-primary-rgb), .04);
  box-shadow: 0 0 0 3px rgba(var(--an-primary-rgb), .1);
}

.an-pay-option input[type="radio"] {
  display: none;
}

.an-pay-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 10px;
}

/* Wizard complete icon */
.an-wiz-success {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(var(--an-success-rgb), .1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 2.5rem;
  color: var(--an-success);
}

@media (max-width: 991.98px) {
  .an-wiz-vertical-nav {
    border-right: none;
    border-bottom: 1px solid var(--an-border-color);
    border-radius: var(--an-radius) var(--an-radius) 0 0;
  }

  .an-wiz-v-steps {
    flex-direction: row;
    overflow-x: auto;
  }

  .an-wiz-v-step {
    min-width: 140px;
  }
}

@media (max-width: 575.98px) {
  .an-wiz-steps {
    padding: 0 10px;
  }

  .an-wiz-num {
    width: 34px;
    height: 34px;
    font-size: 0.78rem;
  }

  .an-wiz-step span {
    font-size: 0.65rem;
  }
}

/* ---- Fix table overflow in cards ---- */
.an-content .row > [class*="col-"] {
  min-width: 0;
}

.card {
  min-width: 0;
}

.card-body {
  min-width: 0;
}

.card .table-responsive {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch;
}

.card .table-responsive .table {
  margin-bottom: 0;
  width: auto;
  min-width: 100%;
}

/* Custom scrollbar for table-responsive */
.card .table-responsive::-webkit-scrollbar {
  height: 8px;
}

.card .table-responsive::-webkit-scrollbar-track {
  background: var(--an-body-bg);
  border-radius: 4px;
}

.card .table-responsive::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

.card .table-responsive::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}
