/*
============================================================
    Template Name: Admio - AI Bootstrap 5 Admin Dashboard Template
    Author: Themiverse
    Support: techsupport@themiverse.com
    Description: Admio - AI Bootstrap 5 Admin Dashboard Template
    Version: 1.0
  
============================================================

  TABLE OF CONTENTS
  01. CSS Variables
  02. Base & Reset
  03. Typography & Utilities
  04. Layout Structure
  05. Sidebar
  06. Topbar
  07. Content Area & Footer
  08. Page Header
  09. Cards & Panels
  10. Stat Widgets
  11. AI Insight Banner
  12. Data Tables
  13. Buttons
  14. Badges & Status Labels
  15. Avatars & Groups
  16. Form Elements
  17. File Upload
  18. Progress Bars
  19. Activity Feed & Timeline
  20. Notification Panel
  21. AI Chat Interface
  22. AI Models Page
  23. AI Playground
  24. Analytics & Charts Pages
  25. Kanban Board
  26. Calendar
  27. File Manager
  28. Inbox / Email
  29. Settings Page
  30. Login / Auth Pages
  31. DataTable Customisation
  32. Modals & Offcanvas
  33. Alerts & Toasts
  34. Empty States
  35. Dark Mode
  36. Animations & Transitions
  37. Print Styles
  38. back to top Button
  39. Responsive / Media Queries
============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

/* ============================================================
   01. CSS VARIABLES
   ============================================================ */
:root {
  /* Brand Palette */
  --tmv-primary: #7C3AED;
  --tmv-primary-dark: #6D28D9;
  --tmv-primary-light: #8B5CF6;
  --tmv-primary-xlight: #EDE9FE;
  --tmv-primary-xxlight: rgba(139, 92, 246, 0.08);
  --tmv-secondary: #06B6D4;
  --tmv-secondary-light: #CFFAFE;
  --tmv-secondary-xlight: #ECFEFF;
  
  /* Semantic Colours */
  --tmv-success: #10B981;
  --tmv-success-light: #D1FAE5;
  --tmv-warning: #F59E0B;
  --tmv-warning-light: #FEF3C7;
  --tmv-danger: #EF4444;
  --tmv-danger-light: #FEE2E2;
  --tmv-info: #3B82F6;
  --tmv-info-light: #DBEAFE;
  --tmv-white: #FFFFFF;
  --tmv-google: #4285F4;
  --tmv-gpt: #10A37F;
  --tmv-claude: #CC785c;
  --tmv-cyan: #0891B2;
  --tmv-pink: #EC4899;
  --tmv-pink-dark: #BE185D;
  --tmv-orange: #D97706;
  --tmv-blue: #1D4ED8;
  /* Sidebar */
  --tmv-sidebar-bg: #0F0F23;
  --tmv-sidebar-bg-2: #13132B;
  --tmv-sidebar-hover: rgba(124, 58, 237, 0.12);
  --tmv-sidebar-active-bg: rgba(124, 58, 237, 0.18);
  --tmv-sidebar-active-border: #7C3AED;
  --tmv-sidebar-text: #9CA3AF;
  --tmv-sidebar-text-active: #F9FAFB;
  --tmv-sidebar-text-muted: #6B7280;
  --tmv-sidebar-section-color: #4B5563;
  --tmv-sidebar-width: 265px;
  --tmv-sidebar-width-collapsed: 72px;

  /* Layout */
  --tmv-topbar-height: 64px;
  --tmv-body-bg: #F4F6FA;
  --tmv-card-bg: #FFFFFF;
  --tmv-border-color: #E5E7EB;
  --tmv-border-light: #F3F4F6;

  /* Text */
  --tmv-text-primary: #111827;
  --tmv-text-secondary: #6B7280;
  --tmv-text-muted: #4a5565;
  --text-inverse: #FFFFFF;

  /* Shadows */
  --tmv-shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
  --tmv-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --tmv-shadow-md: 0 4px 6px rgba(0, 0, 0, 0.06), 0 2px 4px rgba(0, 0, 0, 0.04);
  --tmv-shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.06), 0 4px 10px rgba(0, 0, 0, 0.04);
  --tmv-shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.08);
  --tmv-shadow-ai: 0 4px 20px rgba(124, 58, 237, 0.20);
  --tmv-shadow-card: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);

  /* Border Radii */
  --tmv-radius-xs: 4px;
  --tmv-radius-sm: 6px;
  --tmv-radius-md: 8px;
  --tmv-radius-lg: 12px;
  --tmv-radius-xl: 16px;
  --tmv-radius-2xl: 20px;
  --tmv-radius-3xl: 24px;
  --tmv-radius-pill: 100px;

  /* Typography — fonts */
  --tmv-font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --tmv-font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  --tmv-fs-2xs: 10px;
  --tmv-fs-xs: 12px;
  --tmv-fs-sm: 13px;
  --tmv-fs-base: 14px;
  --tmv-fs-md: 15px;
  --tmv-fs-lg: 16px;
  --tmv-fs-xl: 18px;
  --tmv-fs-2xl: 21px;
  --tmv-fs-3xl: 26px;
  --tmv-fs-4xl: 28px;

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-base: 0.25s ease;
  --transition-slow: 0.4s ease;

  /* Chart container heights */
  --tmv-chart-h-xs: 160px;
  --tmv-chart-h-sm: 200px;
  --tmv-chart-h-md: 220px;
  --tmv-chart-h-lg: 280px;
  --tmv-chart-h-xl: 340px;
}

/* Spin animation for loader icons */
.lucide-spin {
  animation: iconSpin 0.8s linear infinite;
  display: inline-block;
}

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

/* ============================================================
   02. BASE & RESET
   ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 15px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--tmv-font-sans);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--tmv-text-primary);
  background-color: var(--tmv-body-bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

img {
  max-width: 100%;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

p:last-child {
  margin-bottom: 0;
}

::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}

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

::-webkit-scrollbar-thumb {
  background: var(--tmv-border-color);
  border-radius: var(--tmv-radius-pill);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--tmv-text-muted);
}

/* ============================================================
   03. TYPOGRAPHY & UTILITIES
   ============================================================ */

/* Heading scale — uses CSS variables for easy global resizing */
h1,
h2,
h3,
h4,
h5,
h6 ,
.h1, .h2, .h3, .h4, .h5, .h6{
  font-family: var(--tmv-font-sans);
  font-weight: 600;
  line-height: 1.3;
  color: var(--tmv-text-primary);
  margin-bottom: 0;
}

h1 {
  font-size: var(--tmv-fs-4xl);
  font-weight: 800;
}

h2 {
  font-size: var(--tmv-fs-3xl);
  font-weight: 700;
}

h3 {
  font-size: var(--tmv-fs-2xl);
  font-weight: 700;
}

h4 {
  font-size: var(--tmv-fs-xl);
  font-weight: 600;
}

h5 {
  font-size: var(--tmv-fs-lg);
  font-weight: 600;
}

h6 {
  font-size: var(--tmv-fs-md);
  font-weight: 600;
}

/* Page-level labels */
.page-title {
  font-size: var(--tmv-fs-2xl);
  font-weight: 700;
  color: var(--tmv-text-primary);
}

.page-subtitle {
  font-size: 14px;
  color: var(--tmv-text-secondary);
  margin-top: 3px;
}

.section-title {
  font-size: var(--tmv-fs-md);
  font-weight: 600;
  color: var(--tmv-text-primary);
}

.card-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--tmv-text-primary);
}

.label-text {
  font-size: var(--tmv-fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--tmv-text-muted);
}

/* Font-size utilities — map to scale variables */
.text-3xs {
  font-size: var(--tmv-fs-2xs) !important;
}

.text-xs {
  font-size: var(--tmv-fs-xs) !important;
}

.text-sm {
  font-size: var(--tmv-fs-sm) !important;
}

.text-base {
  font-size: var(--tmv-fs-md) !important;
}

.text-lg {
  font-size: var(--tmv-fs-lg) !important;
}

.text-xl {
  font-size: var(--tmv-fs-xl) !important;
}

.text-2xl {
  font-size: var(--tmv-fs-2xl) !important;
}

.text-3xl {
  font-size: var(--tmv-fs-3xl) !important;
}

.fw-400 {
  font-weight: 400;
}

.fw-500 {
  font-weight: 500;
}

.fw-600 {
  font-weight: 600;
}

.fw-700 {
  font-weight: 700;
}

.fw-800 {
  font-weight: 800;
}

.fs-24 {
  font-size: 24px !important;
}

.fs-22 {
  font-size: 22px !important;
}

.fs-20 {
  font-size: 20px !important;
}

.fs-12-5 {
  font-size: 12.5px !important;
}

.fs-18 {
  font-size: 18px !important;
}

.fs-16 {
  font-size: 16px !important;
}

.fs-13 {
  font-size: 13px !important;
}

.fs-12 {
  font-size: 12px !important;
}

.fs-11 {
  font-size: 11px !important;
}

.fs-10 {
  font-size: 10px !important;
}

.fs-9 {
  font-size: 9px !important;
}

.p-32 {
  padding: 32px;
}

.pt-50 {
  padding-top: 50px !important;
}

.text-inverse {
  color: var(--text-inverse) !important;
}

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

.text-secondary-c {
  color: var(--tmv-text-secondary) !important;
}

.text-primary-c {
  color: var(--tmv-primary) !important;
}

.text-admio-secondary {
  color: var(--tmv-secondary) !important;
}

.text-success-c {
  color: var(--tmv-success) !important;
}

.text-danger-c {
  color: var(--tmv-danger) !important;
}

.text-warning-c {
  color: var(--tmv-warning) !important;
}

.text-primary-dark-c {
  color: var(--tmv-primary-dark) !important;
}

.text-primary-light-c {
  color: var(--tmv-primary-light) !important;
}

.text-info-c {
  color: var(--tmv-info) !important;
}

.text-google-c {
  color: var(--tmv-google) !important;
}

.text-gpt-c {
  color: var(--tmv-gpt) !important;
}

.text-claude-c {
  color: var(--tmv-claude) !important;
}

.text-pink-c {
  color: var(--tmv-pink) !important;
}


.text-cyan-c {
  color: var(--tmv-cyan) !important;
}

.text-orange-dark-c {
  color: var(--tmv-orange) !important;
}

.text-success-dark-c {
  color: #059669 !important;
}

.text-blue-dark-c {
  color: var(--tmv-blue) !important;
}

.text-purple-dark-c {
  color: var(--tmv-primary-dark) !important;
}

.text-pink-dark-c {
  color: var(--tmv-primary-dark) !important;
}

.text-underline {
  text-decoration: underline;
}

.bg-primary-c {
  background-color: var(--tmv-primary) !important;
}

.admio-bg-primary {
  background-color: var(--tmv-primary);
}

.admio-bg-secondary {
  background-color: var(--tmv-secondary);
}

.admio-bg-success {
  background-color: var(--tmv-success);
}

.admio-bg-danger {
  background-color: var(--tmv-danger);
}

.admio-bg-warning {
  background-color: var(--tmv-warning);
}

.mark,
mark {
  background: rgba(124, 58, 237, 0.15);
  color: var(--tmv-primary);
  padding: 1px 3px;
  border-radius: 2px;
}

.mono {
  font-family: var(--tmv-font-mono);
}

.gap-xs {
  gap: 4px;
}

.gap-sm {
  gap: 8px;
}

.gap-md {
  gap: 12px;
}

.gap-lg {
  gap: 16px;
}

.gap-xl {
  gap: 24px;
}

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

.w-full {
  width: 100%;
}

.h-full {
  height: 100%;
}

.h-260 {
  height: 260px;
}

.h-240 {
  height: 240px;
}

.h-220 {
  height: 220px;
}

.h-180 {
  height: 180px;
}

.pointer {
  cursor: pointer;
}

.divider {
  border: 0;
  border-top: 1px solid var(--tmv-border-color);
  margin: 0;
}

.admio-border-bottom {
  border-bottom: 1px solid var(--tmv-border-light);
}

.admio-border-top {
  border-top: 1px solid var(--tmv-border-light)
}

.admio-border-light {
  border-color: var(--tmv-border-light);
}

.admio-border-radius-md {
  border-radius: var(--tmv-radius-md) !important;
}

.admio-border-radius-lg {
  border-radius: var(--tmv-radius-lg) !important;
}

.admio-border-radius-xl {
  border-radius: var(--tmv-radius-xl) !important;
}
.admio-border-radius-pill{  
  border-radius:var(--tmv-radius-pill) !important;
}
@media(max-width:480px) {
  .flex-1 {
    flex: auto;
  }
}

/* Gradient text helper */
.gradient-text {
  background: var(--tmv-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================================
   04. LAYOUT STRUCTURE
   ============================================================ */
.admio-wrapper {
  display: flex;
  min-height: 100vh;
}

.admio-main {
  flex: 1;
  min-width: 0;
  min-height: 100vh;
  margin-left: var(--tmv-sidebar-width);
  display: flex;
  flex-direction: column;
  transition: margin-left var(--transition-base);
}

.admio-main.sidebar-collapsed {
  margin-left: var(--tmv-sidebar-width-collapsed);
}

.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  backdrop-filter: blur(2px);
}

.sidebar-overlay.active {
  display: block;
}

/* ============================================================
   05. SIDEBAR
   ============================================================ */
.admio-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--tmv-sidebar-width);
  height: 100vh;
  background: var(--tmv-sidebar-bg);
  display: flex;
  flex-direction: column;
  z-index: 1000;
  overflow: hidden;
  transition: width var(--transition-base), transform var(--transition-base);
  border-right: 1px solid rgba(255, 255, 255, 0.04);
}

/* Brand */
.sidebar-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 18px 16px;
  flex-shrink: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  outline: none;
}

.brand-text {
  overflow: hidden;
}

.brand-name {
  display: block;
  font-size: 20px;
  font-weight: 700;
  color: var(--tmv-sidebar-text-active);
  white-space: nowrap;
}

.brand-name.black {
  color: var(--tmv-text-primary);
}

.brand-name span {
  color: var(--tmv-primary-light);
}

.brand-tag {
  display: block;
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--tmv-sidebar-text-muted);
  white-space: nowrap;
  margin-top: 1px;
}

.sidebar-close-btn {
  background: none;
  border: none;
  color: var(--tmv-sidebar-text);
  cursor: pointer;
  width: 28px;
  height: 28px;
  border-radius: var(--tmv-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.sidebar-close-btn:hover {
  background: var(--tmv-sidebar-hover);
  color: #fff;
}

/* AI Status Bar */
.sidebar-ai-status {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: rgba(124, 58, 237, 0.10);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  flex-shrink: 0;
}

.ai-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--tmv-success);
  box-shadow: 0 0 6px var(--tmv-success);
  flex-shrink: 0;
  animation: aiPulse 2s ease-in-out infinite;
}

.ai-status-text {
  font-size: 12px;
  font-weight: 600;
  color: #A78BFA;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
}

.ai-status-indicator {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 14px;
}

.ai-status-indicator span {
  display: block;
  width: 3px;
  background: var(--tmv-primary-light);
  border-radius: 2px;
  opacity: 0.6;
  animation: aiBar 1.2s ease-in-out infinite;
}

.ai-status-indicator span:nth-child(1) {
  height: 5px;
  animation-delay: 0s;
}

.ai-status-indicator span:nth-child(2) {
  height: 10px;
  animation-delay: 0.2s;
}

.ai-status-indicator span:nth-child(3) {
  height: 7px;
  animation-delay: 0.4s;
}

/* Navigation */
.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 10px 0 20px;
}

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

.sidebar-nav::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.08);
}

.nav-section {
  padding: 0 10px;
  margin-bottom: 4px;
}

.nav-section-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--tmv-sidebar-section-color);
  padding: 14px 8px 6px;
  white-space: nowrap;
  overflow: hidden;
}

.nav-list {
  padding: 0;
  margin: 0;
  list-style: none;
}

.nav-item {
  margin-bottom: 1px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: var(--tmv-radius-lg);
  color: var(--tmv-sidebar-text);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--transition-fast), color var(--transition-fast);
  white-space: nowrap;
  position: relative;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
}

.nav-link:hover,
.nav-link:focus {
  background: var(--tmv-sidebar-hover);
  color: #E5E7EB;
}

.nav-link.active {
  background: var(--tmv-sidebar-active-bg);
  color: var(--tmv-sidebar-text-active);
  font-weight: 600;
}

.nav-link.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 60%;
  background: var(--tmv-sidebar-active-border);
  border-radius: 0 3px 3px 0;
}

.nav-icon,
i.nav-icon {
  font-size: 16px;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  line-height: normal;
}

.nav-text {
  flex: 1;
}

.nav-count {
  background: var(--tmv-danger);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: var(--tmv-radius-pill);
  flex-shrink: 0;
  margin-bottom: auto;
  min-width: 20px;
  height: 20px;
}

.nav-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: var(--tmv-radius-pill);
  flex-shrink: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.ai-badge {
  background: var(--tmv-primary);
  color: #fff;
  box-shadow: 0 2px 6px rgba(124, 58, 237, 0.35);
}

.new-badge {
  background: var(--tmv-success);
  color: #fff;
}

/* Dropdown Nav */
.nav-dropdown-toggle {
  cursor: pointer;
}

.nav-dropdown-arrow {
  font-size: 10px;
  margin-left: auto;
  transition: transform var(--transition-fast);
  flex-shrink: 0;
}

.has-dropdown.open>.nav-dropdown-toggle .nav-dropdown-arrow {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  display: none;
  padding: 2px 0 2px 26px;
  margin: 0;
  list-style: none;
}

.has-dropdown.open>.nav-dropdown-menu {
  display: block;
}

.nav-sublink {
  padding: 7px 10px;
  font-size: 13px;
}

.nav-sub-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--tmv-sidebar-section-color);
  flex-shrink: 0;
  transition: background var(--transition-fast);
}

.nav-sublink:hover .nav-sub-dot,
.nav-sublink.active .nav-sub-dot {
  background: var(--tmv-primary-light);
}

/* Sidebar User */
.sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
  cursor: pointer;
  transition: background var(--transition-fast);
  position: relative;
}

.sidebar-user:hover {
  background: var(--tmv-sidebar-hover);
}

.sidebar-user-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  flex-shrink: 0;
  object-fit: cover;
}

.sidebar-user-info {
  flex: 1;
  overflow: hidden;
}

.sidebar-user-name {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--tmv-sidebar-text-active);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-user-role {
  display: block;
  font-size: 10.5px;
  color: var(--tmv-sidebar-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-user-settings {
  background: none;
  border: none;
  padding: 4px 6px;
  color: var(--tmv-sidebar-text-muted);
  cursor: pointer;
  font-size: 14px;
  border-radius: var(--tmv-radius-sm);
  transition: color var(--transition-fast), background var(--transition-fast);
  line-height: 1;
}

.sidebar-user-settings:hover {
  color: var(--tmv-sidebar-text-active);
  background: rgba(255, 255, 255, 0.08);
}

/* Collapsed Sidebar */
.admio-sidebar.collapsed {
  width: var(--tmv-sidebar-width-collapsed);
}

.admio-sidebar.collapsed .brand-text,
.admio-sidebar.collapsed .ai-status-text,
.admio-sidebar.collapsed .ai-status-indicator,
.admio-sidebar.collapsed .nav-section-label,
.admio-sidebar.collapsed .nav-text,
.admio-sidebar.collapsed .nav-count,
.admio-sidebar.collapsed .nav-badge,
.admio-sidebar.collapsed .nav-dropdown-arrow,
.admio-sidebar.collapsed .sidebar-user-info,
.admio-sidebar.collapsed .sidebar-user-settings,
.admio-sidebar.collapsed .nav-dropdown-menu {
  display: none;
}

.admio-sidebar.collapsed .sidebar-brand {
  padding: 20px 17px 16px;
}

.admio-sidebar.collapsed .nav-section {
  padding: 0 8px;
}

.admio-sidebar.collapsed .nav-link {
  padding: 10px;
  justify-content: center;
}

.admio-sidebar.collapsed .nav-link::before {
  display: none;
}

.admio-sidebar.collapsed .nav-icon {
  margin: 0;
  font-size: 16px;
}

.admio-sidebar.collapsed .sidebar-user {
  padding: 14px;
  justify-content: center;
}

.admio-sidebar.collapsed .sidebar-user-avatar {
  border: none;
}

.admio-sidebar.collapsed .ai-status-dot {
  margin: 8px auto;
}

.admio-sidebar.collapsed .sidebar-ai-status {
  justify-content: center;
  padding: 8px;
}

/* ============================================================
   06. TOPBAR
   ============================================================ */
.admio-topbar {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--tmv-border-color);
  height: var(--tmv-topbar-height);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 24px;
  flex-shrink: 0;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.topbar-center {
  flex: 1;
  max-width: 420px;
}

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

/* Hamburger */
.sidebar-toggle-btn {
  width: 34px;
  height: 34px;
  border-radius: var(--tmv-radius-md);
  border: none;
  background: transparent;
  color: var(--tmv-text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  cursor: pointer;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.sidebar-toggle-btn:hover {
  background: var(--tmv-border-light);
  color: var(--tmv-text-primary);
}

@media(max-width: 991px) {
  .sidebar-toggle-btn {
    width: 24px;
  }
}

/* Breadcrumb */
.topbar-breadcrumb .breadcrumb {
  margin: 0;
  padding: 0;
  background: none;
}

.topbar-breadcrumb .breadcrumb-item {
  font-size: 13px;
  color: var(--tmv-text-muted);
}

.topbar-breadcrumb .breadcrumb-item a {
  color: var(--tmv-text-muted);
  text-decoration: none;
}

.topbar-breadcrumb .breadcrumb-item a:hover {
  color: var(--tmv-primary);
}

.topbar-breadcrumb .breadcrumb-item.active {
  color: var(--tmv-text-secondary);
  font-weight: 500;
}

.topbar-breadcrumb .breadcrumb-item+.breadcrumb-item::before {
  content: "/";
  color: var(--tmv-border-color);
}

/* Search */
.topbar-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--tmv-body-bg);
  border: 1px solid var(--tmv-border-color);
  border-radius: var(--tmv-radius-pill);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  padding: 6px 20px;
  color: var(--tmv-text-secondary);
}

header .topbar-search {
  background: var(--tmv-body-bg);
  padding: 7px 14px;
}

.topbar-search.box-white {
  background: var(--tmv-white);
}

.topbar-search:focus-within {
  border-color: var(--tmv-primary-light);
}

.search-icon {
  color: var(--tmv-text-muted);
  font-size: 12px;
  flex-shrink: 0;
}

.search-input {
  background: none;
  border: none;
  outline: none;
  font-size: 14px;
  font-family: var(--tmv-font-sans);
  color: var(--tmv-text-primary);
  flex: 1;
  min-width: 0;
}

.search-input::placeholder {
  color: var(--tmv-text-muted);
}

.search-kbd {
  background: var(--tmv-border-light);
  border: 1px solid var(--tmv-border-color);
  border-radius: var(--tmv-radius-xs);
  font-size: 10px;
  padding: 1px 5px;
  color: var(--tmv-text-muted);
  font-family: var(--tmv-font-mono);
  white-space: nowrap;
}

.topbar-btn-notification {
  position: relative;
}

.topbar-btn {
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: var(--tmv-radius-md);
  border: none;
  background: transparent;
  color: var(--tmv-text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  transition: background var(--transition-fast), color var(--transition-fast);
  flex-shrink: 0;
}

.topbar-btn:hover {
  background: var(--tmv-border-light);
  color: var(--tmv-text-primary);
}

.topbar-divider {
  width: 1px;
  height: 22px;
  background: var(--tmv-border-color);
  flex-shrink: 0;
}

/* Notification Badge */
.notif-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--tmv-danger);
  border: 2px solid var(--tmv-card-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8px;
  font-weight: 700;
  color: #fff;
}

/* Notification Panel */
.notif-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  left: auto;
  width: 340px;
  background: var(--tmv-card-bg);
  border: 1px solid var(--tmv-border-color);
  border-radius: var(--tmv-radius-xl);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15), 0 4px 16px rgba(0, 0, 0, 0.08);
  z-index: 900;
  display: none;
  overflow: hidden;
  animation: fadeIn 0.15s ease;
}

.notif-panel.open {
  display: block;
}

.notif-bg {
  background: rgba(124, 58, 237, 0.03);
}

.notif-bg .notif-icon {
  flex-shrink: 0;
  border-radius: var(--tmv-radius-md);
}

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

.notif-header h6 {
  font-size: 14px;
  font-weight: 600;
  margin: 0;
}

.btn-text {
  background: none;
  border: none;
  font-size: 12px;
  color: var(--tmv-primary);
  cursor: pointer;
  font-family: var(--tmv-font-sans);
  font-weight: 600;
  padding: 0;
}

.notif-list {
  max-height: 320px;
  overflow-y: auto;
}

.notif-item {
  display: flex;
  gap: 12px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--tmv-border-light);
  transition: background var(--transition-fast);
  cursor: pointer;
}

.notif-item:hover {
  background: var(--tmv-body-bg);
}

.notif-item.unread {
  background: rgba(124, 58, 237, 0.03);
}

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

.notif-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--tmv-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #fff;
  flex-shrink: 0;
}

.notif-icon.bg-primary {
  background: var(--tmv-primary);
}

.notif-icon.bg-success {
  background: var(--tmv-success);
}

.notif-icon.bg-warning {
  background: var(--tmv-warning);
}

.notif-icon.bg-danger {
  background: var(--tmv-danger);
}

.notif-icon.bg-info {
  background: var(--tmv-info);
}

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

.notif-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--tmv-text-primary);
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.notif-desc {
  font-size: 13px;
  color: var(--tmv-text-secondary);
  margin-bottom: 2px;
}

.notif-time {
  font-size: 12px;
  color: var(--tmv-text-muted);
}

.notif-footer {
  padding: 10px 18px;
  border-top: 1px solid var(--tmv-border-light);
  text-align: center;
}

.notif-footer a {
  font-size: 12px;
  font-weight: 600;
  color: var(--tmv-primary);
}

/* User Dropdown */
.topbar-user {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 4px 0px 4px 6px;
  border-radius: var(--tmv-radius-md);
  transition: background var(--transition-fast);
  position: relative;
}


.topbar-user-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
}

.topbar-user-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--tmv-text-primary);
}

.topbar-user-arrow {
  font-size: 10px;
  color: var(--tmv-text-muted);
}

.user-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 240px;
  background: var(--tmv-card-bg);
  border: 1px solid var(--tmv-border-color);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15), 0 4px 16px rgba(0, 0, 0, 0.08);
  z-index: 900;
  display: none;
  overflow: hidden;
  animation: fadeIn 0.15s ease;
}

.user-dropdown-menu.open {
  display: block;
}

.user-dropdown-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 14px 13px;
  border-bottom: 1px solid var(--tmv-border-light);
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.06) 0%, transparent 100%);
}

.udm-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.udm-info {
  flex: 1;
  overflow: hidden;
}

.user-dropdown-header p {
  margin: 0;
}

.user-dropdown-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--tmv-text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-dropdown-email {
  font-size: 13px;
  color: var(--tmv-text-muted);
  margin-top: 1px !important;
}

.udm-body {
  padding: 6px;
}

.user-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 10px;
  font-size: 13px;
  color: var(--tmv-text-secondary);
  text-decoration: none;
  transition: background var(--transition-fast), color var(--transition-fast);
  cursor: pointer;
}

.user-dropdown-item:hover {
  background: var(--tmv-body-bg);
  color: var(--tmv-text-primary);
}

.user-dropdown-item i {
  width: 16px;
  font-size: 14px;
  text-align: center;
  color: var(--tmv-text-muted);
  flex-shrink: 0;
}

.user-dropdown-item span:first-of-type {
  flex: 1;
}

.user-dropdown-divider {
  border: 0;
  border-top: 1px solid var(--tmv-border-light);
  margin: 4px 0;
}

.user-dropdown-item.danger {
  color: var(--tmv-danger);
}

.user-dropdown-item.danger i {
  color: var(--tmv-danger);
}

.user-dropdown-item.danger:hover {
  background: var(--tmv-danger-light);
  color: var(--tmv-danger);
}

.udm-badge {
  background: var(--tmv-danger);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 20px;
  line-height: 1.6;
  flex-shrink: 0;
}

/* ============================================================
   06B. BOOTSTRAP DROPDOWN — ADMIO OVERRIDES
   Override Bootstrap's default dropdown to match Admio's
   design system typography, colours, radius, and shadows.
   ============================================================ */
.dropdown-menu {
  font-family: var(--tmv-font-sans);
  font-size: 13px;
  background-color: var(--tmv-card-bg);
  border: 1px solid var(--tmv-border-color);
  border-radius: var(--tmv-radius-xl);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12), 0 4px 16px rgba(0, 0, 0, 0.07);
  padding: 6px;
  min-width: 200px;
  animation: fadeIn 0.15s ease;
}

.dropdown-item {
  font-family: var(--tmv-font-sans);
  font-size: 13px;
  color: var(--tmv-text-secondary);
  border-radius: var(--tmv-radius-md);
  padding: 9px 10px;
  display: flex;
  align-items: center;
  transition: background var(--transition-fast), color var(--transition-fast);
  line-height: 1.4;
}

.dropdown-item i {
  font-size: 13px;
  width: 16px;
  text-align: center;
  color: var(--tmv-text-muted);
  flex-shrink: 0;
  transition: color var(--transition-fast);
}

.dropdown-item:hover,
.dropdown-item:focus {
  background-color: var(--tmv-body-bg);
  color: var(--tmv-text-primary);
}

.dropdown-item:hover i,
.dropdown-item:focus i {
  color: var(--tmv-primary);
}

.dropdown-item:active {
  background-color: var(--tmv-primary-xlight);
  color: var(--tmv-primary);
}

.dropdown-item.text-danger {
  color: var(--tmv-danger);
}

.dropdown-item.text-danger i {
  color: var(--tmv-danger);
}

.dropdown-item.text-danger:hover {
  background-color: var(--tmv-danger-light);
  color: var(--tmv-danger);
}

.dropdown-divider {
  border-top: 1px solid var(--tmv-border-light);
  margin: 4px 0;
  opacity: 1;
}

/* Dark theme */
[data-theme="dark"] .dropdown-menu {
  background-color: var(--tmv-card-bg);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 4px 16px rgba(0, 0, 0, 0.2);
}

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

/* ============================================================
   07. CONTENT AREA & FOOTER
   ============================================================ */
.admio-content {
  flex: 1;
  padding: 24px;
}

.admio-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-top: 1px solid var(--tmv-border-color);
  background: var(--tmv-card-bg);
  font-size: 14px;
  color: var(--tmv-text-muted);
  flex-shrink: 0;
  font-weight: 500;
}

.admio-footer a {
  color: inherit;
  ;
}

.admio-footer a:hover {
  color: var(--tmv-primary);

}

/* Search result tabs — override Bootstrap nav-tabs to match site btn-admio style */
.search-nav-tabs {
  border-bottom: none;
  gap: 8px;
  flex-wrap: wrap;
}

.search-nav-tabs .nav-link {
  display: inline-flex;
  align-items: center;
  transition: all var(--transition-fast);
  line-height: 1;
}

.search-nav-tabs .nav-link:hover,
.search-nav-tabs .nav-link:focus {
  color: var(--tmv-primary);
  border-color: var(--tmv-border-color);
}

.search-nav-tabs .nav-link.active,
.search-nav-tabs .nav-link:focus {
  background: var(--tmv-primary) !important;
  color: #fff !important;
  border-color: var(--tmv-primary) !important;
  box-shadow: 0 2px 8px rgba(124, 58, 237, 0.30);
}

/* Pagination styled to match site */
.search-pagination .page-link {
  color: var(--tmv-text-secondary);
  border-color: var(--tmv-border-color);
  background: var(--tmv-card-bg);
  font-size: 13px;
  font-weight: 600;
  font-family: var(--tmv-font-sans);
  padding: 6px 12px;
}

.search-pagination .page-link:hover {
  color: var(--tmv-primary);
  border-color: var(--tmv-primary-light);
  background: var(--tmv-body-bg);
}

.search-pagination .page-item.active .page-link {
  background: var(--tmv-primary);
  border-color: var(--tmv-primary);
  color: #fff;
  box-shadow: 0 2px 8px rgba(124, 58, 237, 0.25);
}

.search-pagination .page-item.disabled .page-link {
  opacity: 0.45;
  background: var(--tmv-card-bg);
}

.sr-item a {
  text-decoration: none;
}

.sr-item .admio-card {
  transition: border-color .15s;
  border-color: var(--tmv-border-color);
}

.sr-item .admio-card:hover {
  border-color: var(--tmv-primary);
}

/* ============================================================
   08. PAGE HEADER
   ============================================================ */
.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.page-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

/* ============================================================
   09. CARDS & PANELS
   ============================================================ */
.admio-card {
  background: var(--tmv-card-bg);
  border: 1px solid var(--tmv-border-color);
  border-radius: var(--tmv-radius-xl);
  box-shadow: var(--tmv-shadow-card);
}

.admio-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--tmv-border-light);
  font-size: 15px;
}

.admio-card-body {
  padding: 20px;
}

.admio-card-body-sm {
  padding: 16px 20px;
}

.admio-card-footer {
  padding: 12px 20px;
  border-top: 1px solid var(--tmv-border-light);
  background: var(--tmv-body-bg);
  border-radius: 0 0 var(--tmv-radius-xl) var(--tmv-radius-xl);
}

/* ============================================================
   10. STAT WIDGETS
   ============================================================ */
.stat-card {
  background: var(--tmv-card-bg);
  border: 1px solid var(--tmv-border-color);
  border-radius: var(--tmv-radius-xl);
  padding: 20px;
  box-shadow: var(--tmv-shadow-card);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

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

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

.stat-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--tmv-radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.stat-icon i,
.header-icon i,
.notif-icon i {
  font-size: 22px;
}

.admio-bg-purple {
  background: var(--tmv-primary-xlight);
  color: var(--tmv-primary);
}

.admio-bg-cyan {
  background: var(--tmv-secondary-xlight);
  color: var(--tmv-cyan);
}

.admio-bg-green {
  background: var(--tmv-success-light);
  color: var(--tmv-success);
}

.admio-bg-orange {
  background: var(--tmv-warning-light);
  color: var(--tmv-orange);
}

.admio-bg-red {
  background: var(--tmv-danger-light);
  color: var(--tmv-danger);
}

.admio-bg-blue {
  background: var(--tmv-info-light);
  color: var(--tmv-info);
}

.stat-value {
  font-size: 26px;
  font-weight: 800;
  color: var(--tmv-text-primary);
  font-family: var(--tmv-font-sans);
  letter-spacing: -0.5px;
  line-height: 1;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 13px;
  color: var(--tmv-text-muted);
  font-weight: 500;
}

.stat-trend {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: var(--tmv-radius-pill);
}

/* ============================================================
   11. AI INSIGHT BANNER
   ============================================================ */
.ai-insight-banner {
  background: linear-gradient(135deg, var(--tmv-primary-dark) 0%, #4C1D95 40%, #0F172A 100%);
  border-radius: var(--tmv-radius-xl);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
  border: none;
  box-shadow: var(--tmv-shadow-ai);
}

.ai-insight-banner::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
}

.ai-insight-banner::after {
  content: '';
  position: absolute;
  bottom: -50px;
  right: 100px;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: rgba(6, 182, 212, 0.1);
}

.ai-banner-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--tmv-radius-lg);
  background: rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #fff;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.ai-banner-content {
  flex: 1;
  position: relative;
  z-index: 1;
}

.ai-banner-title {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.ai-banner-text {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.75);
}

.ai-banner-action {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: var(--tmv-radius-pill);
  cursor: pointer;
  font-family: var(--tmv-font-sans);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  transition: background var(--transition-fast);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.ai-banner-action:hover {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
}

.ai-banner-close {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  font-size: 14px;
  padding: 4px;
  position: relative;
  z-index: 1;
  transition: color var(--transition-fast);
  flex-shrink: 0;
}

.ai-banner-close:hover {
  color: #fff;
}

.figure-bg {
  height: 120px;
  background: linear-gradient(135deg, var(--tmv-primary), var(--tmv-secondary));
  border-radius: var(--tmv-radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.figure-bg i {
  font-size: 40px;
  color: rgba(255, 255, 255, 0.5);
}

/* ============================================================
   12. DATA TABLES
   ============================================================ */
.admio-table-wrapper {
  overflow-x: auto;
  border-radius: 0 0 var(--tmv-radius-xl) var(--tmv-radius-xl);
}

.admio-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.admio-table thead tr {
  border-bottom: 2px solid var(--tmv-border-light);
}

.admio-table thead th {
  padding: 11px 16px;
  text-align: left;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: var(--tmv-text-muted);
  white-space: nowrap;
  background: var(--tmv-body-bg);
}

.admio-table tbody tr {
  border-bottom: 1px solid var(--tmv-border-light);
  transition: background var(--transition-fast);
}

.admio-table tbody tr:hover {
  background: var(--tmv-body-bg);
}

.admio-table tbody tr:last-child {
  border-bottom: none;
}

.admio-table tbody td {
  padding: 13px 16px;
  font-size: 14px;
  color: var(--tmv-text-primary);
  vertical-align: middle;
}

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

.table-user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.table-user-info {
  min-width: 0;
}

.table-user-name {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--tmv-text-primary);
}

.table-user-email {
  display: block;
  font-size: 11px;
  color: var(--tmv-text-muted);
}

/* Table Pagination & Footer */
.table-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  border-top: 1px solid var(--tmv-border-light);
  font-size: 12px;
  color: var(--tmv-text-muted);
  background: var(--tmv-card-bg);
  flex-wrap: wrap;
  gap: 8px;
  border-radius: 0 0 var(--tmv-radius-xl) var(--tmv-radius-xl);
}

.table-pagination {
  display: flex;
  gap: 4px;
}

.page-btn {
  width: 30px;
  height: 30px;
  border-radius: var(--tmv-radius-md);
  border: 1px solid var(--tmv-border-color);
  background: var(--tmv-card-bg);
  font-size: 12px;
  font-weight: 500;
  color: var(--tmv-text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  font-family: var(--tmv-font-sans);
}

.page-btn:hover {
  background: var(--tmv-body-bg);
  border-color: var(--tmv-primary-light);
  color: var(--tmv-primary);
}

.page-btn.active {
  background: var(--tmv-primary);
  border-color: var(--tmv-primary);
  color: #fff;
}

.page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ============================================================
   13. BUTTONS
   ============================================================ */
.btn-admio {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: var(--tmv-radius-md);
  border: none;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--tmv-font-sans);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
  white-space: nowrap;
  line-height: 1;
}

.btn-admio i {
  font-weight: 500;
}

.btn-admio.btn-sm {
  font-size: 13px;
}

.btn-admio.btn-xs {
  font-size: 12px;
}

.btn-admio.btn-sm.tab-border {
  border: 1px solid var(--tmv-border-color);
}

.btn-admio:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn-primary {
  background: var(--tmv-primary);
  color: #fff;
  box-shadow: 0 2px 8px rgba(124, 58, 237, 0.30);
}

.btn-primary:hover {
  background: var(--tmv-primary-dark);
  color: #fff;
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.40);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--tmv-text-secondary);
  border: 1px solid var(--tmv-border-color);
}

.btn-outline:hover {
  background: var(--tmv-body-bg);
  border-color: var(--tmv-primary-light);
  color: var(--tmv-primary);
}

.btn-outline-warning {
  background: transparent;
  color: var(--tmv-warning);
  border: 1px solid var(--tmv-border-color);
}

.btn-outline-warning:hover {
  background: transparent;
  color: var(--tmv-warning);
  border: 1px solid var(--tmv-warning);
}

.btn-outline-danger {
  background: transparent;
  color: var(--tmv-danger);
  border: 1px solid var(--tmv-border-color);
}

.btn-outline-danger:hover {
  background: transparent;
  border-color: var(--tmv-danger);
  color: var(--tmv-danger);
}

.btn-ghost {
  background: transparent;
  color: var(--tmv-text-secondary);
  border: none;
}

.btn-ghost:hover {
  background: var(--tmv-border-light);
  color: var(--tmv-text-primary);
}

.btn-primary-ghost {
  background: transparent;
  color: var(--tmv-primary);
  border-color: transparent;
}

.btn-primary-ghost:hover {
  background: var(--tmv-primary-xlight);
}

.btn-danger {
  background: var(--tmv-danger);
  color: #fff;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.25);
}

.btn-danger:hover {
  background: #DC2626;
  color: #fff;
  transform: translateY(-1px);
}

.btn-success {
  background: var(--tmv-success);
  color: #fff;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.25);
}

.btn-success:hover {
  background: #059669;
  color: #fff;
  transform: translateY(-1px);
}

.btn-warning {
  background: var(--tmv-warning);
  color: #fff;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.25);
}

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

.btn-ai {
  background: var(--tmv-primary);
  color: #fff;
  box-shadow: var(--tmv-shadow-ai);
}

.btn-ai:hover {
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.45);
  transform: translateY(-1px);
  color: #fff;
}

.btn-white {
  background: var(--tmv-white);
  color: var(--tmv-text-secondary);
  border: 1px solid var(--tmv-border-color);
}

.btn-white:hover {
  background: var(--tmv-white);
  border-color: var(--tmv-primary-light);
  color: var(--tmv-primary);
}

.btn-sm {
  padding: 10px 12px;
  font-size: 12px;
  border-radius: var(--tmv-radius-md);
}

.btn-sm.dropdown-toggle.dropdown-toggle-split {
  padding: 11px 12px;
}

.btn-xs {
  padding: 6px 20px;
}

.btn-lg {
  padding: 12px 24px;
  font-size: 14px;
  border-radius: var(--tmv-radius-xl);
}

.btn-icon {
  padding: 8px;
  width: 36px;
  height: 36px;
  justify-content: center;
}

.btn-icon.btn-sm {
  width: 30px;
  height: 30px;
  padding: 6px;
}

.btn-icon.btn-lg {
  width: 44px;
  height: 44px;
  padding: 12px;
}

.border-outline-danger {
  border-color: rgba(239, 68, 68, 0.3);
}

/* ============================================================
   14. BADGES & STATUS LABELS
   ============================================================ */
.badge-admio {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: var(--tmv-radius-pill);
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
}

.badge-admio.badge-lg {
  padding: 8px 10px;
  width: max-content;
}

.badge-purple {
  background: var(--tmv-primary-xlight);
  color: var(--tmv-primary);
}

.badge-cyan {
  background: var(--tmv-secondary-xlight);
  color: var(--tmv-cyan);
}

.badge-green {
  background: var(--tmv-success-light);
  color: #065F46;
}

.badge-orange {
  background: var(--tmv-warning-light);
  color: #92400E;
}

.badge-red {
  background: var(--tmv-danger-light);
  color: #991B1B;
}

.badge-teal {
  background: #CCFBF1;
  color: #0F766E;
}

.badge-pink {
  background: #FCE7F3;
  color: #9D174D;
}

.prompt-preview {
  max-width: 280px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.badge-blue {
  background: var(--tmv-info-light);
  color: #1E40AF;
}

.badge-gray {
  background: var(--tmv-border-light);
  color: var(--tmv-text-secondary);
}

.badge-dark {
  background: #1F2937;
  color: var(--tmv-sidebar-text-active);
}

.badge-dot::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

/* ============================================================
   15. AVATARS & GROUPS
   ============================================================ */
.avatar {
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #fff;
}

.avatar-xs {
  width: 24px;
  height: 24px;
  font-size: 9px;
}

.avatar-sm {
  width: 32px;
  height: 32px;
  font-size: 11px;
}

.avatar-md {
  width: 38px;
  height: 38px;
  font-size: 12px;
}

.avatar-10 {
  width: 10px;
  height: 10px;
}

.avatar-12 {
  width: 12px;
  height: 12px;
}

.avatar-14 {
  width: 14px;
  height: 14px;
}

.avatar-28 {
  width: 28px;
  height: 28px;
}

.avatar-32 {
  width: 32px;
  height: 32px;
}

.avatar-36 {
  width: 36px;
  height: 36px;
}

.avatar-40 {
  width: 40px;
  height: 40px;
}

.avatar-44 {
  width: 44px;
  height: 44px;
}

.avatar-48 {
  width: 48px;
  height: 48px;
}

.avatar-52 {
  width: 52px;
  height: 52px;
}

.avatar-56 {
  width: 56px;
  height: 56px;
}

.avatar-64 {
  width: 64px;
  height: 64px;
}

.avatar-72 {
  width: 72px;
  height: 72px;
}

.avatar-80 {
  width: 80px;
  height: 80px;
}

.avatar-lg {
  width: 48px;
  height: 48px;
  font-size: 16px;
}

.avatar-xl {
  width: 64px;
  height: 64px;
  font-size: 20px;
}

.avatar-2xl {
  width: 80px;
  height: 80px;
  font-size: 26px;
}

.avatar-group {
  display: flex;
}

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

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

/* ============================================================
   16. FORM ELEMENTS
   ============================================================ */
.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--tmv-text-secondary);
  margin-bottom: 6px;
}

.form-label .required {
  color: var(--tmv-danger);
  margin-left: 2px;
}

.form-control-admio {
  width: 100%;
  padding: 6px 13px;
  border: 1px solid var(--tmv-border-color);
  border-radius: var(--tmv-radius-md);
  font-size: 14px;
  font-family: var(--tmv-font-sans);
  color: var(--tmv-text-primary);
  background: var(--tmv-card-bg);
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-control-admio::placeholder {
  color: var(--tmv-text-muted);
}

.form-control-admio:focus {
  border-color: var(--tmv-primary-light);
}

.form-control-admio:disabled {
  background: var(--tmv-border-light);
  opacity: 0.7;
  cursor: not-allowed;
}

.form-control-admio.is-invalid {
  border-color: var(--tmv-danger);
}

.form-control-admio.is-valid {
  border-color: var(--tmv-success);
}

.form-select-admio {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239CA3AF' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 36px;
  cursor: pointer;
}

textarea.form-control-admio {
  resize: vertical;
  min-height: 90px;
}

.form-hint {
  font-size: 11.5px;
  color: var(--tmv-text-muted);
  margin-top: 4px;
}

.form-hint-danger {
  height: 3px;
  flex: 1;
  border-radius: 2px;
  background: var(--tmv-danger);
}

.form-hint-warning {
  height: 3px;
  flex: 1;
  border-radius: 2px;
  background: var(--tmv-warning);
}

.form-hint-border {
  height: 3px;
  flex: 1;
  border-radius: 2px;
  background: var(--tmv-border-color);
}

.form-error {
  font-size: 11.5px;
  color: var(--tmv-danger);
  margin-top: 4px;
}

/* Input Group */
.input-group-admio {
  display: flex;
  border: 1px solid var(--tmv-border-color);
  border-radius: var(--tmv-radius-lg);
  overflow: hidden;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.input-group-admio:focus-within {
  border-color: var(--tmv-primary-light);
}

.input-right-rounded {
  border-bottom-right-radius: var(--tmv-radius-lg);
  border-top-right-radius: var(--tmv-radius-lg);
}

.input-group-addon {
  display: flex;
  align-items: center;
  padding: 0 12px;
  background: var(--tmv-body-bg);
  border-right: 1px solid var(--tmv-border-color);
  color: var(--tmv-text-muted);
  font-size: 13px;
  white-space: nowrap;
}

.input-group-addon.input-right {
  border-left: 1px solid var(--tmv-border-color);
  cursor: pointer
}

.input-group-admio .form-control-admio {
  border: none;
  border-radius: 0;
  box-shadow: none !important;
}

/* Toggle Switch */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 22px;
  flex-shrink: 0;
  cursor: pointer;
}

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

.toggle-slider {
  position: absolute;
  inset: 0;
  background: var(--tmv-border-color);
  border-radius: var(--tmv-radius-pill);
  transition: background var(--transition-fast);
}

.toggle-slider::before {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  left: 3px;
  top: 3px;
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--tmv-shadow-xs);
  transition: transform var(--transition-fast);
}

.toggle-switch input:checked+.toggle-slider {
  background: var(--tmv-primary);
}

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

/* Settings Row */
.settings-section {
  background: var(--tmv-card-bg);
  border: 1px solid var(--tmv-border-color);
  border-radius: var(--tmv-radius-xl);
  padding: 20px;
  margin-bottom: 20px;
}

.settings-section-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--tmv-text-primary);
  margin-bottom: 4px;
}

.settings-section-desc {
  font-size: 12.5px;
  color: var(--tmv-text-muted);
  margin-bottom: 16px;
}

.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--tmv-border-light);
}

.settings-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.settings-row-info {
  flex: 1;
}

.settings-row-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--tmv-text-primary);
  margin-bottom: 2px;
}

.settings-row-desc {
  font-size: 11.5px;
  color: var(--tmv-text-muted);
}

.settings-divider {
  border: 0;
  border-top: 1px solid var(--tmv-border-light);
  margin: 16px 0;
}

/* Settings Tabs */
.settings-tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: var(--tmv-white);
  border: 1px solid var(--tmv-border-color);
  border-radius: var(--tmv-radius-pill);
  margin-bottom: 24px;
  overflow-x: auto;
  flex-wrap: nowrap;
}

.settings-tab {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border-radius: var(--tmv-radius-pill);
  border: none;
  background: transparent;
  font-size: 12.5px;
  font-weight: 600;
  font-family: var(--tmv-font-sans);
  color: var(--tmv-text-muted);
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.settings-tab.active {
  background: var(--tmv-primary);
  color: #fff;
  box-shadow: var(--tmv-shadow-sm);
}

.settings-tab:hover:not(.active) {
  color: var(--tmv-text-primary);
}

.settings-panel .settings-content hr {
  border-color: var(--tmv-border-light);
  margin: 16px 0;
}

.settings-panel .model-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #fff;
  font-size: 18px;
}

.settings-panel .info-box-bg input {
  height: 32px;
  font-size: 12px;
}

.settings-panel {
  display: none;
}

.settings-panel.active {
  display: block;
}

/* ============================================================
   17. FILE UPLOAD
   ============================================================ */
.file-upload-zone {
  border: 2px dashed var(--tmv-border-color);
  border-radius: var(--tmv-radius-xl);
  padding: 40px 24px;
  text-align: center;
  transition: border-color var(--transition-fast), background var(--transition-fast);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.file-upload-zone:hover,
.file-upload-zone.dragover {
  border-color: var(--tmv-primary-light);
  background: var(--tmv-primary-xxlight);
}

.file-upload-zone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

.file-upload-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--tmv-radius-xl);
  background: var(--tmv-primary-xlight);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 24px;
  color: var(--tmv-primary);
}

.file-upload-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--tmv-text-primary);
}

.file-upload-desc {
  font-size: 12.5px;
  color: var(--tmv-text-muted);
}

.file-upload-desc span {
  color: var(--tmv-primary);
  font-weight: 600;
}

.file-list {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.file-list-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: var(--tmv-body-bg);
  border: 1px solid var(--tmv-border-color);
  border-radius: var(--tmv-radius-lg);
}

.file-list-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--tmv-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.file-list-name {
  font-size: 13px;
  font-weight: 600;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-list-size {
  font-size: 11px;
  color: var(--tmv-text-muted);
  flex-shrink: 0;
}

.file-list-remove {
  background: none;
  border: none;
  color: var(--tmv-text-muted);
  cursor: pointer;
  width: 24px;
  height: 24px;
  border-radius: var(--tmv-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.file-list-remove:hover {
  background: var(--tmv-danger-light);
  color: var(--tmv-danger);
}

/* ============================================================
   18. PROGRESS BARS
   ============================================================ */
.progress-admio {
  height: 6px;
  background: #FFFFFF;
  border-radius: var(--tmv-radius-pill);
  overflow: hidden;
}

.progress-admio.thick {
  height: 10px;
}

.progress-fill {
  height: 100%;
  border-radius: var(--tmv-radius-pill);
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.progress-purple {
  background: var(--tmv-primary);
}

.progress-cyan {
  background: var(--tmv-secondary);
}

.progress-green {
  background: var(--tmv-success);
}

.progress-orange {
  background: var(--tmv-warning);
}

.progress-red {
  background: var(--tmv-danger);
}

.progress-blue {
  background: var(--tmv-info);
}

.progress-gradient {
  background: linear-gradient(90deg, var(--tmv-primary), var(--tmv-secondary));
}

/* ============================================================
   19. ACTIVITY FEED & TIMELINE
   ============================================================ */
.activity-list {
  display: flex;
  flex-direction: column;
}

.activity-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--tmv-border-light);
}

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

.activity-icon {
  width: 34px;
  height: 34px;
  border-radius: var(--tmv-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
}

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

.activity-title {
  font-size: 13px;
  color: var(--tmv-text-secondary);
  margin-bottom: 2px;
}

.activity-title strong {
  color: var(--tmv-text-primary);
}

.activity-time {
  font-size: 11px;
  color: var(--tmv-text-muted);
}

/* ============================================================
   20. NOTIFICATION PANEL (see topbar section)
   ============================================================ */

/* ============================================================
   21. AI CHAT INTERFACE
   ============================================================ */
.chat-layout-ai {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 200px);
  min-height: 500px;
  background: var(--tmv-card-bg);
  border: 1px solid var(--tmv-border-color);
  border-radius: var(--tmv-radius-xl);
  overflow: hidden;
}

.chat-layout {
  display: flex;
  gap: 0;
  border: 1px solid var(--tmv-border-color);
  border-radius: var(--tmv-radius-xl);
  overflow: hidden;
  background: var(--tmv-card-bg);
  height: calc(100vh - 220px);
  min-height: 550px
}

.chat-main {
  flex: 1;
  display: flex;
  flex-direction: column
}

.chat-main-header {
  padding: 14px 20px;
  border-bottom: 1px solid var(--tmv-border-light);
  display: flex;
  align-items: center;
  justify-content: space-between
}

.chat-contacts {
  width: 300px;
  border-right: 1px solid var(--tmv-border-color);
  flex-shrink: 0;
  display: flex;
  flex-direction: column
}

.chat-header {
  padding: 12px;
}

.chat-label {
  padding: 6px 12px 4px;
}

.chat-contacts hr {
  border-color: var(--tmv-border-light);
  margin: 4px 0;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.chat-message {
  display: flex;
  gap: 12px;
  max-width: 78%;
  animation: fadeSlideUp 0.3s ease;
}

.chat-message.user-message {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.chat-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.chat-avatar.ai-avatar {
  background: var(--tmv-primary);
  box-shadow: var(--tmv-shadow-ai);
}

.chat-avatar.user-avatar {
  background: #374151;
}

.chat-bubble {
  padding: 12px 16px;
  border-radius: var(--tmv-radius-xl);
  font-size: 13.5px;
  line-height: 1.6;
  max-width: 100%;
}

.ai-message .chat-bubble {
  background: var(--tmv-card-bg);
  border: 1px solid var(--tmv-border-color);
  border-bottom-left-radius: var(--tmv-radius-xs);
  color: var(--tmv-text-primary);
}

.user-message .chat-bubble {
  background: var(--tmv-primary);
  color: #fff;
  border-bottom-right-radius: var(--tmv-radius-xs);
}

.chat-time {
  font-size: 10px;
  color: var(--tmv-text-muted);
  margin-top: 5px;
  display: block;
}

.ai-message .chat-time {
  text-align: left;
}

.user-message .chat-time {
  text-align: right;
}

/* Typing Indicator */
.typing-indicator {
  display: flex;
  gap: 4px;
  padding: 10px 14px;
  background: var(--tmv-body-bg);
  border: 1px solid var(--tmv-border-light);
  border-radius: var(--tmv-radius-xl);
  align-items: center;
  width: fit-content;
}

.typing-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--tmv-text-muted);
  animation: typingBounce 1.2s ease-in-out infinite;
}

.typing-dot:nth-child(2) {
  animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
  animation-delay: 0.4s;
}

/* Suggested Prompts */
.suggested-prompts {
  display: flex;
  gap: 8px;
  padding: 12px 24px;
  overflow-x: auto;
  border-top: 1px solid var(--tmv-border-light);
  flex-wrap: nowrap;
}

.prompt-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--tmv-body-bg);
  border: 1px solid var(--tmv-border-color);
  border-radius: var(--tmv-radius-pill);
  font-size: 12px;
  font-weight: 500;
  color: var(--tmv-text-secondary);
  cursor: pointer;
  white-space: nowrap;
  font-family: var(--tmv-font-sans);
  transition: all var(--transition-fast);
}

.prompt-chip:hover {
  border-color: var(--tmv-primary-light);
  color: var(--tmv-primary);
  background: var(--tmv-primary-xxlight);
}

/* Chat Input Area */
.chat-input-area {
  padding: 16px 24px 20px;
  border-top: 1px solid var(--tmv-border-light);
  background: var(--tmv-card-bg);
}

.chat-input-wrapper {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  background: var(--tmv-body-bg);
  border: 1px solid var(--tmv-border-color);
  border-radius: var(--tmv-radius-pill);
  padding: 10px 14px;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.chat-input-wrapper:focus-within {
  border-color: var(--tmv-primary-light);
}

.chat-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  font-size: 13.5px;
  font-family: var(--tmv-font-sans);
  color: var(--tmv-text-primary);
  resize: none;
  max-height: 120px;
  line-height: 2.1;
}

.chat-input::placeholder {
  color: var(--tmv-text-muted);
}

.chat-send-btn {
  width: 34px;
  height: 34px;
  border-radius: var(--tmv-radius-pill);
  background: var(--tmv-primary);
  border: none;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  cursor: pointer;
  flex-shrink: 0;
  transition: background var(--transition-fast), transform var(--transition-fast);
}

.chat-send-btn:hover {
  background: var(--tmv-primary-dark);
  transform: scale(1.05);
}

@media (max-width: 480px) {
  .chat-input-wrapper {
    gap: 0;
  }

  .chat-main-header .btn-icon.btn-sm {
    width: 22px;
    height: 22px;
  }

  .chat-main-header {
    padding-left: 5px;
    padding-right: 5px;
  }
}

/* ============================================================
   22. AI MODELS PAGE
   ============================================================ */
.model-card {
  background: var(--tmv-card-bg);
  border: 1px solid var(--tmv-border-color);
  border-radius: var(--tmv-radius-xl);
  padding: 20px;
  transition: all var(--transition-fast);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.model-card:hover {
  border-color: var(--tmv-primary-light);
  box-shadow: var(--tmv-shadow-md);
  transform: translateY(-2px);
}

.model-card.active {
  border-color: var(--tmv-primary);
  box-shadow: var(--tmv-shadow-ai);
}

.model-card.active::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--tmv-primary), var(--tmv-secondary));
}

.model-provider-logo {
  width: 44px;
  height: 44px;
  border-radius: var(--tmv-radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 12px;
  font-weight: 800;
  color: #fff;
}

.model-name {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 4px;
}

.model-type {
  font-size: 11.5px;
  color: var(--tmv-text-muted);
  margin-bottom: 12px;
}

.model-stats {
  display: flex;
  gap: 16px;
}

.model-stat {
  text-align: center;
}

.model-stat-val {
  font-size: 16px;
  font-weight: 800;
  color: var(--tmv-primary);
}

.model-stat-lbl {
  font-size: 10px;
  color: var(--tmv-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ============================================================
   23. AI PLAYGROUND
   ============================================================ */
.playground-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  height: calc(100vh - 220px);
  min-height: 500px;
}

.playground-panel {
  display: flex;
  flex-direction: column;
  background: var(--tmv-card-bg);
  border: 1px solid var(--tmv-border-color);
  border-radius: var(--tmv-radius-xl);
  overflow: hidden;
}

.playground-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--tmv-border-light);
  background: var(--tmv-body-bg);
}

.playground-editor {
  flex: 1;
  padding: 16px;
  font-family: var(--tmv-font-mono);
  font-size: 13px;
  border: none;
  outline: none;
  resize: none;
  color: var(--tmv-text-primary);
  background: var(--tmv-card-bg);
  line-height: 1.7;
}

.playground-footer {
  padding: 10px 16px;
  border-top: 1px solid var(--tmv-border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.playground-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.playground-editor-input {
  flex: 0 0 40%;
  border-bottom: 1px solid var(--tmv-border-light);
}

.playground-response-sep {
  background: var(--tmv-body-bg);
  padding: 6px 12px;
  font-size: 10px;
  color: var(--tmv-text-muted);
  border-bottom: 1px solid var(--tmv-border-light);
}

.playground-editor-response {
  flex: 1;
  color: var(--tmv-text-secondary);
}

/* ============================================================
   24. ANALYTICS & CHARTS
   ============================================================ */
.chart-container {
  position: relative;
  width: 100%;
}

/* ============================================================
   25. KANBAN BOARD
   ============================================================ */
.kanban-board {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 16px;
  min-height: 500px;
}

.kanban-col {
  min-width: 270px;
  max-width: 285px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
}

.kanban-col-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-radius: var(--tmv-radius-lg) var(--tmv-radius-lg) 0 0;
  font-size: 12.5px;
  font-weight: 700;
}

.kanban-col-body {
  background: var(--tmv-body-bg);
  border: 1px solid var(--tmv-border-light);
  border-top: none;
  border-radius: 0 0 var(--tmv-radius-lg) var(--tmv-radius-lg);
  padding: 10px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 200px;
}

.kanban-card {
  background: var(--tmv-card-bg);
  border: 1px solid var(--tmv-border-color);
  border-radius: var(--tmv-radius-lg);
  padding: 14px;
  cursor: grab;
  box-shadow: var(--tmv-shadow-xs);
  transition: box-shadow var(--transition-fast), transform var(--transition-fast);
}

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

.kanban-card-title {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
}

.kanban-card-desc {
  font-size: 11.5px;
  color: var(--tmv-text-secondary);
  margin-bottom: 10px;
  line-height: 1.5;
}

.kanban-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.kanban-add-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: transparent;
  border: 1px dashed var(--tmv-border-color);
  border-radius: var(--tmv-radius-md);
  font-size: 12px;
  color: var(--tmv-text-muted);
  cursor: pointer;
  font-family: var(--tmv-font-sans);
  margin-top: 4px;
  transition: all var(--transition-fast);
}

.kanban-add-btn:hover {
  background: var(--tmv-card-bg);
  color: var(--tmv-primary);
  border-color: var(--tmv-primary-light);
}

/* ============================================================
   26. CALENDAR
   ============================================================ */
.cal-header-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  margin-bottom: 4px;
}

.cal-header-days span {
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--tmv-text-muted);
  padding: 6px 0;
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}

.cal-day {
  min-height: 88px;
  padding: 6px 8px;
  border: 1px solid var(--tmv-border-light);
  border-radius: var(--tmv-radius-md);
  background: var(--tmv-card-bg);
  cursor: pointer;
  transition: border-color var(--transition-fast);
}

.cal-day:hover {
  border-color: var(--tmv-primary-light);
}

.cal-day.other-month {
  background: var(--tmv-body-bg);
  opacity: 0.5;
}

.cal-day.today {
  border-color: var(--tmv-primary);
  background: var(--tmv-primary-xxlight);
}

.cal-day-num {
  font-size: 12px;
  font-weight: 700;
  color: var(--tmv-text-secondary);
  margin-bottom: 3px;
}

.cal-day.today .cal-day-num {
  color: var(--tmv-primary);
}

.cal-event {
  font-size: 10px;
  font-weight: 600;
  color: #fff;
  padding: 2px 5px;
  border-radius: 3px;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ============================================================
   CALENDAR — RESPONSIVE FIXES
   ============================================================ */

@media (max-width: 768px) {

  .cal-day {
    min-height: 68px;
    padding: 4px 5px;
  }

  .cal-event-popup {
    width: min(300px, calc(100vw - 24px));
  }
}

@media (max-width: 576px) {

  .cal-main-card .admio-card-header {
    padding: 10px 12px;
    gap: 6px;
  }

  .cal-header-days span {
    font-size: 9px;
    padding: 4px 0;
  }

  .cal-day {
    min-height: 50px;
    padding: 3px 3px;
  }

  .cal-day-num {
    font-size: 10px;
    margin-bottom: 1px;
  }

  .cal-event {
    font-size: 0;
    height: 5px;
    padding: 0;
    min-height: 5px;
    margin-bottom: 2px;
    border-radius: 2px;
  }

  .cal-view-tabs {
    flex: 1;
  }

  .cal-view-tab {
    flex: 1;
    text-align: center;
    padding: 5px 6px;
    font-size: 11px;
  }

  .cal-event-popup {
    width: calc(100vw - 24px);
    max-width: 340px;
  }
}

@media (max-width: 480px) {

  .cal-day {
    min-height: 40px;
    padding: 2px 3px;
  }
  .cal-header-days span {
    font-size: 8px;
    padding: 3px 0;
  }
  .cal-day-num {
    font-size: 9px;
  }
  .cal-view-tabs {
    width: 100%;
  }
}
/* ============================================================
   27. FILE MANAGER
   ============================================================ */
.fm-layout {
  display: flex;
  gap: 0;
  border: 1px solid var(--tmv-border-color);
  border-radius: var(--tmv-radius-xl);
  overflow: hidden;
}

.fm-sidebar {
  width: 220px;
  border-right: 1px solid var(--tmv-border-color);
  flex-shrink: 0;
  padding: 16px 8px;
  background: var(--tmv-body-bg);
}

.fm-sidebar hr {
  border-color: var(--tmv-border-light);
  margin: 10px 0;
}

.fm-storage-block {
  padding: 0 4px 12px;
}

.fm-storage-inner {
  padding: 6px 10px;
}

.fm-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: var(--tmv-card-bg);
}

.fm-toolbar {
  padding: 12px 16px;
  border-bottom: 1px solid var(--tmv-border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--tmv-card-bg);
  flex-wrap: wrap;
}

.fm-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 10px;
  padding: 16px;
}

.fm-item {
  padding: 14px 12px;
  border: 1px solid var(--tmv-border-color);
  border-radius: var(--tmv-radius-lg);
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.fm-item:hover {
  border-color: var(--tmv-primary-light);
  background: var(--tmv-primary-xxlight);
}

.fm-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: var(--tmv-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 8px;
  font-size: 20px;
}

.fm-item-name {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--tmv-text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fm-item-meta {
  font-size: 10px;
  color: var(--tmv-text-muted);
  margin-top: 2px;
}

.fm-folder-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: var(--tmv-radius-md);
  font-size: 12.5px;
  color: var(--tmv-text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
  font-weight: 500;
}

.fm-folder-link:hover {
  background: var(--tmv-border-light);
  color: var(--tmv-text-primary);
}

.fm-folder-link.active {
  background: var(--tmv-primary-xlight);
  color: var(--tmv-primary);
  font-weight: 600;
}

@media(max-width:480px) {
  .fm-grid {
    grid-template-columns: repeat(auto-fill, minmax(125px, 1fr));
  }

}

/* ============================================================
   28. INBOX / EMAIL
   ============================================================ */
.inbox-layout {
  display: flex;
  gap: 0;
  border: 1px solid var(--tmv-border-color);
  border-radius: var(--tmv-radius-xl);
  overflow: hidden;
  background: var(--tmv-card-bg);
  height: calc(100vh - 220px);
  min-height: 550px;
}

.inbox-email-body {
  font-size: 14px;
  line-height: 1.8;
  color: var(--tmv-text-secondary)
}

.inbox-sidebar {
  width: 280px;
  border-right: 1px solid var(--tmv-border-color);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
}

.inbox-sidebar hr {
  border-color: var(--tmv-border-light);
  margin: 8px 0;
}

.inbox-sidebar .label-sidebar {
  padding: 4px 12px 6px
}

.inbox-folder-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  font-size: 13px;
  color: var(--tmv-text-secondary);
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
  border-radius: var(--tmv-radius-md);
  margin: 1px 8px;
  background: var(--tmv-card-bg);
}

.inbox-folder-link:hover {
  background: var(--tmv-card-bg);
  color: var(--tmv-text-primary);
}

.inbox-folder-link.active {
  background: var(--tmv-primary-xlight);
  color: var(--tmv-primary);
  font-weight: 600;
}

.inbox-folder-count {
  margin-left: auto;
  font-size: 11px;
  font-weight: 700;
  background: var(--tmv-primary);
  color: #fff;
  border-radius: var(--tmv-radius-pill);
  padding: 1px 7px;
}

.inbox-list {
  width: 320px;
  border-right: 1px solid var(--tmv-border-color);
  overflow-y: auto;
  flex-shrink: 0;
}

.inbox-email-row {
  display: flex;
  gap: 10px;
  padding: 13px 14px;
  border-bottom: 1px solid var(--tmv-border-light);
  cursor: pointer;
  transition: background var(--transition-fast);
  position: relative;
}

.inbox-email-row:hover {
  background: var(--tmv-body-bg);
}

.inbox-email-row.unread {
  background: rgba(124, 58, 237, 0.02);
}

.inbox-email-row.unread::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--tmv-primary);
}

.inbox-email-row.selected {
  background: var(--tmv-primary-xxlight);
}

.inbox-email-subject {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--tmv-text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.inbox-email-row.unread .inbox-email-subject {
  font-weight: 700;
}

.inbox-email-preview {
  font-size: 11.5px;
  color: var(--tmv-text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.inbox-email-time {
  font-size: 11px;
  color: var(--tmv-text-muted);
  white-space: nowrap;
  flex-shrink: 0;
}

.inbox-detail {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.inbox-detail-header {
  padding: 14px 20px;
  border-bottom: 1px solid var(--tmv-border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.inbox-detail-body {
  flex: 1;
  padding: 24px;
  overflow-y: auto;
}

.inbox-reply-box {
  padding: 12px 20px;
  border-top: 1px solid var(--tmv-border-light);
}

.inbox-reply-inner {
  border: 1px solid var(--tmv-border-color);
  border-radius: var(--tmv-radius-lg);
  overflow: hidden;
}

.inbox-reply-toolbar {
  display: flex;
  justify-content: space-between;
  padding: 8px 12px;
  background: var(--tmv-body-bg);
}

/* ============================================================
   29. SETTINGS PAGE (see form section)
   ============================================================ */

/* ============================================================
   30. LOGIN / AUTH PAGES
   ============================================================ */
.auth-page {
  display: flex;
  min-height: 100vh;
}

.auth-left {
  flex: 1;
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #0f172a 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px;
  position: relative;
  overflow: hidden;
}

.auth-left-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.auth-left-orb-1 {
  width: 400px;
  height: 400px;
  background: rgba(124, 58, 237, 0.08);
  top: -150px;
  right: -100px;
}

.auth-left-orb-2 {
  width: 300px;
  height: 300px;
  background: rgba(6, 182, 212, 0.06);
  bottom: -100px;
  left: -80px;
}

.auth-left-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 48px;
}

.auth-left-logo-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--tmv-radius-xl);
  background: var(--tmv-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #fff;
}

.auth-left-logo-text {
  font-size: 22px;
  font-weight: 800;
  color: var(--tmv-sidebar-text-active);
  letter-spacing: -0.3px;
}

.auth-tagline {
  font-size: 28px;
  font-weight: 800;
  color: var(--tmv-sidebar-text-active);
  line-height: 1.25;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.auth-tagline span {
  background: linear-gradient(90deg, #A78BFA, #67E8F9);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.auth-description {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.7;
  margin-bottom: 36px;
}

.auth-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.auth-feature-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--tmv-radius-md);
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #A78BFA;
  flex-shrink: 0;
}

.auth-feature span {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
}

.auth-right {
  width: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 56px;
  background: var(--tmv-body-bg);
}

.auth-form-container {
  width: 100%;
  max-width: 420px;
}

.auth-form-header {
  margin-bottom: 28px;
}

.auth-form-title {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 6px;
}

.auth-form-subtitle {
  font-size: 13.5px;
  color: var(--tmv-text-secondary);
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--tmv-text-muted);
  margin: 20px 0;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--tmv-border-color);
}

.auth-card {
  background: var(--tmv-card-bg);
  border: 1px solid var(--tmv-border-color);
  border-radius: var(--tmv-radius-2xl);
  padding: 28px;
  box-shadow: var(--tmv-shadow-lg);
}

/* ============================================================
   31. DATATABLE CUSTOMISATION
   ============================================================ */
.dataTables_wrapper {
  padding: 0;
  overflow-y: hidden;
}

.dataTables_wrapper input.form-check-input {
  padding: 0 !important;
}

div.dataTables_wrapper div.dataTables_filter label {
  position: relative;
}

div.dataTables_wrapper div.dataTables_filter label::before {
  content: "\e151";
  color: var(--tmv-text-muted);
  font-family: 'lucide' !important;
  font-weight: 500;
  top: 7px;
  left: 1.8em;
  position: absolute;
}

.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select {
  border: 1px solid var(--tmv-border-color);
  border-radius: var(--tmv-radius-lg);
  padding: 6px 12px;
  font-size: 13px;
  font-family: var(--tmv-font-sans);
  color: var(--tmv-text-primary);
  background-color: var(--tmv-card-bg);
  outline: none;
}

.dataTables_wrapper .dataTables_length select {
  width: 70% !important;
}

div.dataTables_wrapper div.dataTables_filter input {
  margin-left: .5em;
  display: inline-block;
  width: auto;
  padding-left: 3em;
  border-radius: var(--tmv-radius-pill);
  background: var(--tmv-body-bg);
}

.dataTables_wrapper .dataTables_filter input:focus {
  border-color: var(--tmv-primary-light);
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
  margin: 2px;
}

.dataTables_wrapper .dataTables_paginate .paginate_button .page-link {
  width: 30px;
  height: 30px;
  border-radius: var(--tmv-radius-md);
  border: 1px solid var(--tmv-border-color);
  background: var(--tmv-card-bg);
  font-size: 12px;
  font-weight: 500;
  color: var(--tmv-text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 0;
  justify-content: center;
  transition: all var(--transition-fast);
  font-family: var(--tmv-font-sans);
}

.dataTables_wrapper .dataTables_paginate .paginate_button.next .page-link,
.dataTables_wrapper .dataTables_paginate .paginate_button.previous .page-link {
  font-size: 20px;
  padding: 0 0 5px;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover .page-link {
  background: var(--tmv-primary);
  border-color: var(--tmv-primary);
  color: #fff;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.active .page-link,
.dataTables_wrapper .dataTables_paginate .paginate_button.current .page-link {
  background: var(--tmv-primary);
  border-color: var(--tmv-primary);
  color: #fff;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.dataTables_wrapper .dataTables_info {
  font-size: 12px;
  color: var(--tmv-text-muted);
  padding-top: 4px;
}

.dataTables_wrapper .dataTables_length label,
.dataTables_wrapper .dataTables_filter label {
  font-size: 12.5px;
  color: var(--tmv-text-secondary);
}

table.dataTable thead th {
  background: var(--tmv-body-bg);
  border-bottom: 2px solid var(--tmv-border-light) !important;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: var(--tmv-text-muted);
  padding: 11px 16px;
}

table.dataTable thead th.sorting::after,
table.dataTable thead th.sorting_asc::after,
table.dataTable thead th.sorting_desc::after {
  opacity: 0.5;
}

/* ============================================================
   32. MODALS & OFFCANVAS
   ============================================================ */
.admio-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 1050;
  display: none;
  align-items: center;
  justify-content: center;
}

.admio-modal-backdrop.open {
  display: flex;
}

.admio-modal {
  background: var(--tmv-card-bg);
  border-radius: var(--tmv-radius-2xl);
  box-shadow: var(--tmv-shadow-xl);
  width: 100%;
  max-width: 540px;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: modalSlideIn 0.2s ease;
  margin: 16px;
}

.admio-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid var(--tmv-border-light);
}

.admio-modal-title {
  font-size: 15px;
  font-weight: 700;
}

.admio-modal-close {
  background: none;
  border: none;
  color: var(--tmv-text-muted);
  cursor: pointer;
  font-size: 16px;
  width: 28px;
  height: 28px;
  border-radius: var(--tmv-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.admio-modal-close:hover {
  background: var(--tmv-border-light);
  color: var(--tmv-text-primary);
}

.admio-modal-body {
  padding: 22px;
  overflow-y: auto;
  flex: 1;
}

.admio-modal-footer {
  padding: 14px 22px;
  border-top: 1px solid var(--tmv-border-light);
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

/* ============================================================
   33. ALERTS & TOASTS
   ============================================================ */
.alert-admio {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 18px;
  border-radius: var(--tmv-radius-lg);
  border: 1px solid transparent;
  font-size: 13px;
}

.alert-admio .alert-icon {
  font-size: 16px;
  flex-shrink: 0;
  margin-top: 1px;
}

.alert-admio .alert-content {
  flex: 1;
}

.alert-admio .alert-title {
  font-weight: 600;
  margin-bottom: 2px;
}

.alert-admio .alert-close {
  background: none;
  border: none;
  cursor: pointer;
  opacity: 0.6;
  font-size: 14px;
  padding: 0;
  margin-left: auto;
  transition: opacity var(--transition-fast);
}

.alert-admio .alert-close:hover {
  opacity: 1;
}

.alert-primary {
  background: var(--tmv-primary-xlight);
  border-color: rgba(124, 58, 237, 0.2);
  color: var(--tmv-primary-dark);
}

.alert-success {
  background: var(--tmv-success-light);
  border-color: rgba(16, 185, 129, 0.2);
  color: #065F46;
}

.alert-warning {
  background: var(--tmv-warning-light);
  border-color: rgba(245, 158, 11, 0.2);
  color: #92400E;
}

.alert-danger {
  background: var(--tmv-danger-light);
  border-color: rgba(239, 68, 68, 0.2);
  color: #991B1B;
}

.alert-info {
  background: var(--tmv-info-light);
  border-color: rgba(59, 130, 246, 0.2);
  color: #1E40AF;
}

/* Toast */
.toast-container {
  position: fixed;
  top: 80px;
  right: 20px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--tmv-card-bg);
  border: 1px solid var(--tmv-border-color);
  border-radius: var(--tmv-radius-xl);
  box-shadow: var(--tmv-shadow-lg);
  pointer-events: auto;
  animation: toastIn 0.3s ease;
  font-size: 14px;
}

.toast-item.removing {
  animation: toastOut 0.3s ease forwards;
}

/* ============================================================
   34. EMPTY STATES
   ============================================================ */
.empty-state {
  text-align: center;
  padding: 60px 24px;
}

.empty-state-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--tmv-radius-xl);
  background: var(--tmv-primary-xlight);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 26px;
  color: var(--tmv-primary);
}

.empty-state-title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
}

.empty-state-desc {
  font-size: 13.5px;
  color: var(--tmv-text-secondary);
  max-width: 380px;
  margin: 0 auto 24px;
}

/* ============================================================
   35. DARK MODE
   ============================================================ */
[data-theme="dark"] {
  --tmv-body-bg: #0D0D1A;
  --tmv-card-bg: #13132B;
  --tmv-border-color: #37393d;
  --tmv-border-light: rgba(255, 255, 255, 0.05);
  --tmv-text-primary: #F1F5F9;
  --tmv-text-secondary: #94A3B8;
  --tmv-text-muted: #9CA3AF;
  --tmv-white: #13132B;
}

/* ── Date / Time inputs in dark mode ─────────────────────────── */
[data-theme="dark"] input[type="date"],
[data-theme="dark"] input[type="time"],
[data-theme="dark"] input[type="datetime-local"],
[data-theme="dark"] input[type="month"],
[data-theme="dark"] input[type="week"] {
  color-scheme: dark;
  color: var(--tmv-text-primary);
  background-color: var(--tmv-card-bg);
  border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] input[type="date"]::-webkit-calendar-picker-indicator,
[data-theme="dark"] input[type="time"]::-webkit-calendar-picker-indicator,
[data-theme="dark"] input[type="datetime-local"]::-webkit-calendar-picker-indicator,
[data-theme="dark"] input[type="month"]::-webkit-calendar-picker-indicator,
[data-theme="dark"] input[type="week"]::-webkit-calendar-picker-indicator {
  filter: brightness(0) invert(1);
  opacity: 0.65;
  cursor: pointer;
}

[data-theme="dark"] .admio-topbar {
  background: rgba(19, 19, 43, 0.95);
  border-bottom-color: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .admio-modal-backdrop {
  background: rgba(0, 0, 0, .7);
}

[data-theme="dark"] .admio-footer {
  background: var(--tmv-card-bg);
  border-top-color: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .sidebar-collapse-toggle {
  background: var(--tmv-card-bg);
  border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .admio-table thead th {
  background: rgba(255, 255, 255, 0.03);
}

[data-theme="dark"] .admio-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

[data-theme="dark"] .notif-panel {
  background: var(--tmv-card-bg);
  border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .user-dropdown-menu {
  background: var(--tmv-card-bg);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 4px 16px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .user-dropdown-item:hover {
  background: rgba(255, 255, 255, 0.05);
}


[data-theme="dark"] .page-btn {
  background: var(--tmv-card-bg);
  border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .auth-right {
  background: #080812;
}

[data-theme="dark"] .auth-card {
  background: #13132B;
  border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .kanban-col-body {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .chat-bubble {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.08);
  color: var(--tmv-text-primary);
}

[data-theme="dark"] .playground-editor {
  background: rgba(255, 255, 255, 0.04);
  color: var(--tmv-text-primary);
}

[data-theme="dark"] .fm-sidebar {
  background: rgba(255, 255, 255, 0.02);
}

[data-theme="dark"] .dataTables_wrapper .dataTables_filter input,
[data-theme="dark"] .dataTables_wrapper .dataTables_length select {
  background: var(--tmv-card-bg);
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--tmv-text-primary);
}

[data-theme="dark"] .dataTables_wrapper .dataTables_paginate .paginate_button {
  background: var(--tmv-card-bg);
  border-color: rgba(255, 255, 255, 0.1) !important;
}

[data-theme="dark"] table.dataTable thead th {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.08) !important;
}

[data-theme="dark"] .lang-dropdown {
  background: var(--tmv-card-bg);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .lang-dropdown-header {
  border-bottom-color: rgba(255, 255, 255, 0.06);
  color: var(--tmv-text-muted);
}

[data-theme="dark"] .lang-item:hover {
  background: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .lang-item.active {
  background: rgba(124, 58, 237, 0.15);
}

[data-theme="dark"] .lang-no-results {
  color: var(--tmv-text-muted);
}

[data-theme="dark"] .gallery-filter-btn {
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--tmv-text-secondary);
}

[data-theme="dark"] .gallery-filter-btn:hover {
  background: rgba(124, 58, 237, 0.15);
  border-color: var(--tmv-primary);
}

[data-theme="dark"] .gallery-filter-btn.active {
  background: var(--tmv-primary);
  border-color: var(--tmv-primary);
  color: #fff;
}

[data-theme="dark"] .table-toolbar {
  background: rgba(124, 58, 237, 0.12);
  border-color: rgba(124, 58, 237, 0.25);
}


/* ============================================================
   36. ANIMATIONS & TRANSITIONS
   ============================================================ */
@keyframes aiPulse {

  0%,
  100% {
    box-shadow: 0 0 6px var(--tmv-success);
    opacity: 1;
  }

  50% {
    box-shadow: 0 0 12px var(--tmv-success);
    opacity: 0.7;
  }
}

@keyframes aiBar {

  0%,
  100% {
    opacity: 0.4;
  }

  50% {
    opacity: 1;
  }
}

@keyframes typingBounce {

  0%,
  60%,
  100% {
    transform: translateY(0);
  }

  30% {
    transform: translateY(-6px);
  }
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px) scale(0.97);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateX(100%);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes toastOut {
  from {
    opacity: 1;
    transform: translateX(0);
  }

  to {
    opacity: 0;
    transform: translateX(100%);
  }
}

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

.spin {
  animation: spin 1s linear infinite;
}

.fade-in {
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================================
   37. PRINT STYLES
   ============================================================ */
@media print {

  .admio-sidebar,
  .admio-topbar,
  .admio-footer,
  .page-header-actions,
  .btn-admio {
    display: none !important;
  }

  .admio-main {
    margin-left: 0 !important;
  }

  .admio-content {
    padding: 0 !important;
  }

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

/* ============================================================
   38. RESPONSIVE / MEDIA QUERIES
   ============================================================ */
.chart-h-xs {
  height: var(--tmv-chart-h-xs);
}

.chart-h-sm {
  height: var(--tmv-chart-h-sm);
}

.chart-h-md {
  height: var(--tmv-chart-h-md);
}

.chart-h-lg {
  height: var(--tmv-chart-h-lg);
}

.chart-h-xl {
  height: var(--tmv-chart-h-xl);
}

.bar-primary {
  background: var(--tmv-primary);
}

.bar-secondary {
  background: var(--tmv-secondary);
}

.bar-success {
  background: var(--tmv-success);
}

.bar-warning {
  background: var(--tmv-warning);
}

.bar-danger {
  background: var(--tmv-danger);
}

.bar-info {
  background: var(--tmv-info);
}

.op-10 {
  opacity: 0.10;
}

.op-20 {
  opacity: 0.20;
}

.op-30 {
  opacity: 0.30;
}

.op-40 {
  opacity: 0.40;
}

.op-50 {
  opacity: 0.50;
}

.op-60 {
  opacity: 0.60;
}

.op-70 {
  opacity: 0.70;
}

.op-75 {
  opacity: 0.75;
}

.op-85 {
  opacity: 0.85;
}

.op-100 {
  opacity: 1;
}

.mh-30 {
  height: 30%;
}

.mh-35 {
  height: 35%;
}

.mh-40 {
  height: 40%;
}

.mh-45 {
  height: 45%;
}

.mh-50 {
  height: 50%;
}

.mh-55 {
  height: 55%;
}

.mh-60 {
  height: 60%;
}

.mh-65 {
  height: 65%;
}

.mh-70 {
  height: 70%;
}

.mh-75 {
  height: 75%;
}

.mh-80 {
  height: 80%;
}

.mh-85 {
  height: 85%;
}

.mh-90 {
  height: 90%;
}

.mh-100 {
  height: 100%;
}
.h-4px{
  height: 4px;
}
.h-16px{
  height: 16px;
}
.legend-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.legend-rect {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  flex-shrink: 0;
}
.legend-price{
  flex:1;margin:0 12px;
}
.legend-primary {
  background: var(--tmv-primary);
}

.legend-secondary {
  background: var(--tmv-secondary);
}

.legend-success {
  background: var(--tmv-success);
}

.legend-warning {
  background: var(--tmv-warning);
}

.legend-danger {
  background: var(--tmv-danger);
}

.legend-info {
  background: var(--tmv-info);
}

.text-2xs {
  font-size: var(--tmv-fs-2xs);
}

.text-xs {
  font-size: var(--tmv-fs-xs);
}

.text-sm {
  font-size: var(--tmv-fs-sm);
}

.text-base {
  font-size: var(--tmv-fs-base);
}

.text-md {
  font-size: var(--tmv-fs-md);
}

.text-lg {
  font-size: var(--tmv-fs-lg);
}

.text-xl {
  font-size: var(--tmv-fs-xl);
}

.text-2xl {
  font-size: var(--tmv-fs-2xl);
}

.text-3xl {
  font-size: var(--tmv-fs-3xl);
}

.fw-400 {
  font-weight: 400;
}

.fw-500 {
  font-weight: 500;
}

.fw-600 {
  font-weight: 600;
}

.fw-700 {
  font-weight: 700;
}

.fw-800 {
  font-weight: 800;
}

/* Width utilities */
.w-select-sm {
  width: 145px;
}

.w-select-normal {
  width: 155px;
}

.w-select-md {
  width: 180px;
}

.w-50-px {
  width: 50px;
}

.w-80-px {
  width: 80px;
}

.w-150-px {
  width: 150px;
}

.w-160-px {
  width: 160px;
}

.w-180-px {
  width: 180px;
}

.w-90 {
  width: 90%;
}

.w-91 {
  width: 91%;
}

.w-94 {
  width: 94%;
}

.w-97 {
  width: 97%;
}

.w-87 {
  width: 87%;
}

.w-88 {
  width: 88%;
}

.w-84 {
  width: 84%;
}

.w-82 {
  width: 82%;
}

.w-78 {
  width: 78%;
}

.w-75 {
  width: 75%;
}

.w-74 {
  width: 74%;
}

.w-72 {
  width: 72%;
}

.w-68 {
  width: 68%;
}

.w-62 {
  width: 62%;
}

.w-60 {
  width: 60%;
}

.w-57 {
  width: 57%;
}

.w-56 {
  width: 56%;
}

.w-54 {
  width: 54%;
}

.w-52 {
  width: 52%;
}

.w-45 {
  width: 45%;
}

.w-38 {
  width: 38%;
}

.w-34 {
  width: 34%;
}

.w-29 {
  width: 29%;
}

.w-28 {
  width: 28%;
}

.w-26 {
  width: 26%;
}

.w-22 {
  width: 22%;
}

.w-28 {
  width: 28%;
}

.w-20 {
  width: 20%;
}

.w-18 {
  width: 18%;
}

.w-13 {
  width: 13%;
}

.w-7 {
  width: 7%;
}

.w-0 {
  width: 0%;
}

.max-w-100 {
  max-width: 100px;
}

.max-w-120 {
  max-width: 120px;
}

.max-w-160 {
  max-width: 160px;
}

.max-w-180 {
  max-width: 180px;
}

.max-w-200 {
  max-width: 200px;
}

.max-w-220 {
  max-width: 220px;
}

.max-w-260 {
  max-width: 260px;
}

.max-w-380 {
  max-width: 380px;
}

.max-w-700 {
  max-width: 700px;
}

.max-w-800 {
  max-width: 800px;
}

.pt-0-i {
  padding-top: 0 !important;
}

.max-w-search {
  max-width: 180px;
}

/* ============================================================
   EXTENSION v2.1 — UI Components, Maps, Charts, Tables
   ============================================================ */
/* ── Country / Progress Row ─────────────────────────────────── */
.country-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--tmv-border-light);
}

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

.country-flag {
  font-size: 12px;
  flex-shrink: 0;
}

.country-name {
  flex: 1;
  font-size: 13px;
  font-weight: 600;
}

.country-bar {
  flex: 2;
}

.country-pct {
  font-size: 12px;
  font-weight: 700;
  color: var(--tmv-primary);
  min-width: 36px;
  text-align: right;
}

.country-val {
  font-size: 11.5px;
  color: var(--tmv-text-muted);
  min-width: 52px;
  text-align: right;
}

/* ── Gallery ─────────────────────────────────────────────────── */
.gallery-card {
  overflow: hidden;
  cursor: pointer;
}

.gallery-thumb {
  height: 160px;
  position: relative;
  overflow: hidden;
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-icon {
  font-size: 48px;
  color: rgba(255, 255, 255, 0.25);
}

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

.gallery-expand {
  color: #fff;
  font-size: 24px;
  opacity: 0;
  transition: opacity .25s;
}

.gallery-card:hover .gallery-overlay {
  background: rgba(0, 0, 0, 0.45);
}

.gallery-card:hover .gallery-expand {
  opacity: 1;
}

.gallery-card-info {
  padding: 10px 14px;
}

.gallery-filter-btn {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  transition: all .15s;
}

.gallery-filter-btn:hover {
  border-color: var(--tmv-border-color);
}

.gallery-filter-btn.active {
  background: var(--tmv-primary);
  border-color: var(--tmv-primary);
  color: #fff;
}

.glightbox-clean .gslide-desc {
  font-size: inherit !important;
  font-family: var(--tmv-font-sans) !important;
  line-height: normal !important;
}

.glightbox-clean .gslide-description {
  background: var(--tmv-body-bg) !important;
}

/* Lightbox — handled by GLightbox library */
/* ── Error Pages (404 / 500) ─────────────────────────────────── */
.err-page-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--tmv-body-bg);
  padding: 24px;
}

.err-content {
  text-align: center;
  max-width: 480px;
  width: 100%;
}

.err-number {
  font-size: 100px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -4px;
  background: linear-gradient(135deg, var(--tmv-primary), var(--tmv-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 4px;
}

.err-number.err-danger {
  background: linear-gradient(135deg, var(--tmv-danger), var(--tmv-warning));
  -webkit-background-clip: text;
  background-clip: text;
}

.err-divider {
  width: 64px;
  height: 4px;
  background: linear-gradient(135deg, var(--tmv-primary), var(--tmv-secondary));
  border-radius: 2px;
  margin: 0 auto 28px;
}

.err-divider.err-danger {
  background: linear-gradient(135deg, var(--tmv-danger), var(--tmv-warning));
}

.err-icon-wrap {
  width: 64px;
  height: 64px;
  border-radius: var(--tmv-radius-xl);
  background: rgba(124, 58, 237, 0.10);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 26px;
  color: var(--tmv-primary);
}

.err-heading {
  font-size: 22px;
}

.err-desc {
  max-width: 360px;
  line-height: 1.7;
  margin-left: auto;
  margin-right: auto;
}

/* ── Coming Soon Page ────────────────────────────────────────── */
.cs-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0a0a18, #13132B, #0a0a18);
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.cs-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.cs-orb-1 {
  width: 500px;
  height: 500px;
  background: rgba(124, 58, 237, 0.07);
  top: -200px;
  right: -150px;
}

.cs-orb-2 {
  width: 350px;
  height: 350px;
  background: rgba(6, 182, 212, 0.05);
  bottom: -120px;
  left: -80px;
}

.cs-wrap {
  text-align: center;
  max-width: 560px;
  width: 100%;
  position: relative;
  z-index: 1;
}

.cs-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(124, 58, 237, 0.15);
  border: 1px solid rgba(124, 58, 237, 0.3);
  border-radius: 100px;
  padding: 6px 18px;
  margin-bottom: 32px;
}

.cs-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--tmv-primary);
  animation: aiPulse 2s infinite;
}

.cs-badge-text {
  font-size: 12px;
  font-weight: 700;
  color: #A78BFA;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.cs-brand {
  line-height: normal;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 28px;
}

.cs-brand-icon {
  width: 52px;
  height: 52px;
  font-size: 24px;
}

.cs-brand-title {
  font-size: 30px;
  font-weight: 800;
  color: var(--tmv-sidebar-text-active);
  letter-spacing: -0.5px;
}

.cs-heading {
  font-size: 40px;
  font-weight: 800;
  color: var(--tmv-sidebar-text-active);
  margin-bottom: 16px;
  letter-spacing: -1px;
  line-height: 1.2;
}

.cs-heading-accent {
  background: linear-gradient(90deg, #A78BFA, #67E8F9);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cs-lead {
  color: var(--tmv-sidebar-text);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 40px;
}

.cs-email-form {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.cs-email-input {
  flex: 1;
  max-width: 300px;
  padding: 12px 18px;
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.06);
  color: var(--tmv-sidebar-text-active);
  font-family: var(--tmv-font-sans);
  font-size: 13px;
  outline: none;
}

.cs-email-btn {
  padding: 12px 24px;
  border-radius: 100px;
  background: linear-gradient(135deg, var(--tmv-primary), #5B21B6);
  border: none;
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  font-family: var(--tmv-font-sans);
}

.cs-stats {
  display: flex;
  gap: 24px;
  justify-content: center;
}

.cs-stat {
  text-align: center;
}

.cs-stat-num {
  font-size: 26px;
  font-weight: 800;
  color: var(--tmv-sidebar-text-active);
}

.cs-stat-label {
  font-size: 11px;
  color: var(--tmv-sidebar-text);
}

.cs-stat-div {
  width: 1px;
  background: rgba(255, 255, 255, 0.1);
  align-self: stretch;
}

.cs-back {
  display: block;
  margin-top: 32px;
  color: var(--tmv-sidebar-text);
  font-size: 13px;
  text-decoration: none;
}

.cs-back:hover {
  color: var(--tmv-sidebar-text-active);
}

/* ── Maintenance Page ────────────────────────────────────────── */
.maint-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0a0a18, #13132B, #0a0a18);
  padding: 24px;
}

.maint-content {
  text-align: center;
  max-width: 520px;
  width: 100%;
}

.maint-icon-wrap {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(124, 58, 237, 0.15);
  border: 2px solid rgba(124, 58, 237, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 28px;
  animation: spin 12s linear infinite;
  font-size: 28px;
  color: #A78BFA;
}

.maint-heading {
  font-size: 32px;
  font-weight: 800;
  color: var(--tmv-sidebar-text-active);
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.maint-desc {
  color: var(--tmv-sidebar-text);
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 40px;
}

.maint-desc strong {
  color: #A78BFA;
}

.maint-timer {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 40px;
}

.countdown-unit {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 18px 22px;
  min-width: 80px;
}

.countdown-num {
  font-size: 32px;
  font-weight: 800;
  color: var(--tmv-sidebar-text-active);
  font-family: var(--tmv-font-mono);
}

.countdown-label {
  font-size: 10px;
  color: var(--tmv-sidebar-text);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 4px;
}

.maint-form {
  display: flex;
  gap: 8px;
  justify-content: center;
  max-width: 380px;
  margin: 0 auto 24px;
}

.maint-input {
  flex: 1;
  padding: 10px 16px;
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.06);
  color: var(--tmv-sidebar-text-active);
  font-family: var(--tmv-font-sans);
  font-size: 13px;
  outline: none;
}

.maint-btn {
  padding: 10px 20px;
  border-radius: 100px;
  background: var(--tmv-primary);
  border: none;
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  font-family: var(--tmv-font-sans);
}

/* ── Extra Color Utilities ───────────────────────────────────── */
.progress-pink {
  background: var(--tmv-pink);
}

.progress-purple-dark {
  background: var(--tmv-primary-dark);
}

/* ── Table Checkbox ──────────────────────────────────────────── */
.admio-table .form-check-input {
  width: 15px;
  height: 15px;
  cursor: pointer;
  accent-color: var(--tmv-primary);
  margin: 0;
}

.table-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: var(--tmv-primary-xxlight);
  border-radius: var(--tmv-radius-lg);
  border: 1px solid var(--tmv-border-light);
  border-left: 3px solid var(--tmv-primary);
  margin: 8px 0;
  display: none;
}

.table-toolbar.visible {
  display: flex;
}

.table-toolbar-count {
  font-size: 13px;
  font-weight: 600;
  color: var(--tmv-primary);
}

.table-toolbar .btn-admio {
  font-size: 12px;
}

.table-toolbar .btn-danger {
  background: var(--tmv-danger);
  border-color: var(--tmv-danger);
  color: #fff;
}

.table-toolbar .btn-danger:hover {
  opacity: 0.9;
}

/* ── Calendar Enhanced ───────────────────────────────────────── */
.cal-view-tabs {
  display: flex;
  gap: 4px;
}

.cal-view-tab {
  padding: 5px 14px;
  border-radius: var(--tmv-radius-md);
  border: 1px solid var(--tmv-border-color);
  background: var(--tmv-white);
  font-size: 12px;
  font-weight: 600;
  font-family: var(--tmv-font-sans);
  color: var(--tmv-text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.cal-view-tab.active {
  background: var(--tmv-primary);
  color: #fff;
}

.cal-event {
  position: relative;
  cursor: pointer;
}

.cal-event:hover {
  opacity: 0.85;
}

.cal-week-grid {
  display: grid;
  grid-template-columns: 60px repeat(7, 1fr);
  gap: 1px;
  background: var(--tmv-border-light);
}

.cal-week-header {
  background: var(--tmv-card-bg);
  text-align: center;
  padding: 8px 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--tmv-text-muted);
}

.cal-week-header.today-col {
  color: var(--tmv-primary);
}

.cal-week-time {
  background: var(--tmv-card-bg);
  padding: 4px 8px;
  font-size: 10px;
  color: var(--tmv-text-muted);
  text-align: right;
  border-top: 1px solid var(--tmv-border-light);
}

.cal-week-cell {
  background: var(--tmv-card-bg);
  min-height: 50px;
  border-top: 1px solid var(--tmv-border-light);
  position: relative;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.cal-week-cell:hover {
  background: var(--tmv-primary-xxlight);
}

.cal-week-event {
  position: absolute;
  left: 2px;
  right: 2px;
  top: 3px;
  padding: 2px 5px;
  border-radius: 3px;
  font-size: 10px;
  font-weight: 600;
  color: #fff;
  z-index: 1;
  cursor: pointer;
}

.cal-day-schedule {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.cal-day-slot {
  display: flex;
  gap: 12px;
  padding: 6px 0;
  border-top: 1px solid var(--tmv-border-light);
  align-items: flex-start;
}

.cal-day-slot-time {
  width: 52px;
  font-size: 11px;
  color: var(--tmv-text-muted);
  flex-shrink: 0;
  padding-top: 2px;
}

.cal-day-event-block {
  flex: 1;
  padding: 8px 12px;
  border-radius: var(--tmv-radius-md);
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
}

/* ── Event Popup ─────────────────────────────────────────────── */
.cal-event-popup {
  position: fixed;
  z-index: 2000;
  background: var(--tmv-card-bg);
  border: 1px solid var(--tmv-border-color);
  border-radius: var(--tmv-radius-xl);
  box-shadow: var(--tmv-shadow-xl);
  width: 300px;
  padding: 18px;
  display: none;
}

.cal-event-popup.open {
  display: block;
  animation: fadeIn 0.15s ease;
}

.cal-event-popup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.cal-popup-close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--tmv-text-muted);
  font-size: 14px;
  padding: 4px;
  border-radius: var(--tmv-radius-sm);
}

.cal-popup-close:hover {
  background: var(--tmv-border-light);
}

/* ── Typography Page ─────────────────────────────────────────── */
.typo-sample {
  border: 1px solid var(--tmv-border-light);
  border-radius: var(--tmv-radius-lg);
  padding: 16px 20px;
  margin-bottom: 12px;
}

.typo-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--tmv-text-muted);
  margin-bottom: 8px;
  display: block;
}

/* ── Component Preview Card ──────────────────────────────────── */
.component-preview {
  border: 1px solid var(--tmv-border-light);
  border-radius: var(--tmv-radius-lg);
  padding: 24px;
  margin-bottom: 16px;
  background: var(--tmv-body-bg);
}

.component-preview-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--tmv-text-muted);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ── Spinner ─────────────────────────────────────────────────── */
.admio-spinner {
  display: inline-block;
  border-radius: 50%;
  border: 3px solid var(--tmv-border-light);
  border-top-color: var(--tmv-primary);
  animation: spin 0.8s linear infinite;
}

.admio-spinner-sm {
  width: 20px;
  height: 20px;
  border-width: 2px;
}

.admio-spinner-md {
  width: 32px;
  height: 32px;
}

.admio-spinner-lg {
  width: 48px;
  height: 48px;
  border-width: 4px;
}

.admio-spinner-xl {
  width: 64px;
  height: 64px;
  border-width: 5px;
}

.admio-spinner-cyan {
  border-top-color: var(--tmv-secondary);
}

.admio-spinner-green {
  border-top-color: var(--tmv-success);
}

.admio-spinner-orange {
  border-top-color: var(--tmv-warning);
}

.admio-spinner-red {
  border-top-color: var(--tmv-danger);
}

.admio-spinner.bw-2 {
  border-width: 2px;
}

.admio-spinner .bt-white {
  border-top-color: #fff;
}

/* ── Toast Demo ──────────────────────────────────────────────── */
.toast-demo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
}

/* ── Map Page ────────────────────────────────────────────────── */
#leafletMap,
#vectorMap {
  border-radius: var(--tmv-radius-lg);
  overflow: hidden;
}

/* ── Chart Pages ─────────────────────────────────────────────── */
.chart-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.chart-card {
  background: var(--tmv-card-bg);
  border: 1px solid var(--tmv-border-color);
  border-radius: var(--tmv-radius-xl);
  overflow: hidden;
}

.chart-card-header {
  padding: 14px 18px;
  border-bottom: 1px solid var(--tmv-border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chart-card-body {
  padding: 16px;
}

/* ── Navs & Tabs ─────────────────────────────────────────────── */
.admio-tabs {
  display: flex;
  border-bottom: 2px solid var(--tmv-border-light);
  gap: 0;
  margin-bottom: 20px;
}

.admio-tab {
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--tmv-text-muted);
  border: none;
  background: none;
  cursor: pointer;
  font-family: var(--tmv-font-sans);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all var(--transition-fast);
}

.admio-tab:hover {
  color: var(--tmv-text-primary);
}

.admio-tab.active {
  color: var(--tmv-primary);
  border-bottom-color: var(--tmv-primary);
}

.admio-tab-pane {
  display: none;
}

.admio-tab-pane.active {
  display: block;
}

/* ── Pagination Demo ─────────────────────────────────────────── */
.pagination-admio {
  display: flex;
  gap: 4px;
  align-items: center;
}

.pagination-admio .page-btn {
  min-width: 36px;
}

.pagi-select {
  height: 32px;
  padding: 4px 8px;
  font-size: 12px;
}

/* ── Cards Demo ──────────────────────────────────────────────── */
.demo-card {
  background: var(--tmv-card-bg);
  border: 1px solid var(--tmv-border-color);
  border-radius: var(--tmv-radius-xl);
  overflow: hidden;
  transition: all var(--transition-fast);
}

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

.demo-card-img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  background: linear-gradient(135deg, var(--tmv-primary), var(--tmv-secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
}

.demo-card-body {
  padding: 16px;
}

/* ── List Group ──────────────────────────────────────────────── */
.list-group-admio {
  border-radius: 0 0 var(--tmv-radius-lg) var(--tmv-radius-lg);
  overflow: hidden;
}

.list-group-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--tmv-border-light);
  font-size: 13px;
  background: var(--tmv-card-bg);
  transition: background var(--transition-fast);
  cursor: pointer;
}

.list-group-item:last-child {
  border-bottom: none;
}

.list-group-item:hover {
  background: var(--tmv-body-bg);
}

.list-group-item.active {
  background: var(--tmv-primary-xlight);
  color: var(--tmv-primary);
  font-weight: 600;
}

.list-group-item.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ── Accordion ───────────────────────────────────────────────── */
.admio-accordion {
  border: 1px solid var(--tmv-border-color);
  overflow: hidden;
}

.accordion-item {
  border-bottom: 1px solid var(--tmv-border-light);
}

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

.accordion-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  font-size: 13.5px;
  font-weight: 600;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--tmv-font-sans);
  color: var(--tmv-text-primary);
  transition: background var(--transition-fast);
}

.accordion-btn:hover {
  background: var(--tmv-body-bg);
}

.accordion-btn i.arrow {
  transition: transform var(--transition-fast);
}

.accordion-item.open .accordion-btn i.arrow {
  transform: rotate(180deg);
}

.accordion-body {
  padding: 0 16px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  font-size: 13.5px;
  color: var(--tmv-text-secondary);
  line-height: 1.7;
}

.accordion-item.open .accordion-body {
  max-height: 200px;
  padding: 12px 16px 16px;
}

/* ── Popover ─────────────────────────────────────────────────── */
.admio-popover {
  position: absolute;
  z-index: 1100;
  background: var(--tmv-card-bg);
  border: 1px solid var(--tmv-border-color);
  border-radius: var(--tmv-radius-lg);
  box-shadow: var(--tmv-shadow-lg);
  padding: 12px 14px;
  width: 220px;
  font-size: 12.5px;
  color: var(--tmv-text-secondary);
  line-height: 1.6;
  display: none;
}

.admio-popover.open {
  display: block;
  animation: fadeIn 0.15s ease;
}

.admio-popover-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--tmv-text-primary);
  margin-bottom: 6px;
}

/* ── Object Fit ──────────────────────────────────────────────── */
.object-fit-demo {
  width: 100%;
  height: 140px;
  border-radius: var(--tmv-radius-lg);
  background: linear-gradient(135deg, var(--tmv-primary-xlight), #CFFAFE);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--tmv-border-color);
  overflow: hidden;
}

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

/* ── Edit Modal Full ─────────────────────────────────────────── */
.admio-modal.modal-lg {
  max-width: 720px;
}

.admio-modal.modal-xl {
  max-width: 900px;
}

/* ── Dashboard improvements ──────────────────────────────────── */
.mini-chart-bar {
  display: flex;
  gap: 2px;
  align-items: flex-end;
  height: 52px;
  margin-top: auto;
  overflow: hidden;
  border-radius: 0 0 var(--tmv-radius-xl) var(--tmv-radius-xl);
  padding: 0 2px;
}

.mini-bar {
  flex: 1;
  border-radius: var(--tmv-radius-xs) var(--tmv-radius-xs) 0 0;
  min-width: 4px;
  transition: height 0.6s cubic-bezier(.4, 0, .2, 1);
}

/* ── Language Switcher ───────────────────────────────────────── */
.lang-switcher {
  position: relative;
  display: flex;
  align-items: center;
}

/* Trigger button */
.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 12px;
  border: 1px solid var(--tmv-border-color);
  border-radius: var(--tmv-radius-md);
  background: var(--tmv-card-bg);
  cursor: pointer;
  transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
  white-space: nowrap;
}

.lang-btn:hover {
  border-color: var(--tmv-primary);
  background: var(--tmv-primary-xxlight);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.08);
}

.lang-switcher.open .lang-btn {
  border-color: var(--tmv-primary);
  background: var(--tmv-primary-xxlight);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.10);
}

.lang-globe {
  font-size: 13px;
  color: var(--tmv-primary);
}

.lang-flag-btn {
  width: 22px;
  height: 16px;
  object-fit: cover;
  flex-shrink: 0;
  vertical-align: middle;
  border-radius: 2px;
  display: inline-block;
}

.lang-label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--tmv-text-primary);
}

.lang-arrow {
  font-size: 9px;
  color: var(--tmv-text-muted);
  transition: transform 0.22s ease;
  margin-left: 1px;
}

.lang-switcher.open .lang-arrow {
  transform: rotate(180deg);
}

/* Dropdown panel */
.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 240px;
  background: var(--tmv-card-bg);
  border: 1px solid var(--tmv-border-color);
  border-radius: var(--tmv-radius-xl);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.14);
  z-index: 1100;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px) scale(0.98);
  transform-origin: top right;
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
}

.lang-switcher.open .lang-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

/* Dropdown header */
.lang-dropdown-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 13px 16px 11px;
  border-bottom: 1px solid var(--tmv-border-light);
  font-size: 12px;
  font-weight: 700;
  color: var(--tmv-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.lang-dropdown-header .icon-globe {
  font-size: 11px;
  color: var(--tmv-primary);
}

/* Search */
.lang-search-wrap {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 14px;
  background: var(--tmv-body-bg);
  border-bottom: 1px solid var(--tmv-border-light);
}

.lang-search-wrap .icon-search {
  font-size: 11px;
  color: var(--tmv-text-muted);
  flex-shrink: 0;
}

.lang-search {
  border: none;
  outline: none;
  background: transparent;
  font-size: 12.5px;
  color: var(--tmv-text-primary);
  width: 100%;
  font-family: inherit;
}

.lang-search::placeholder {
  color: var(--tmv-text-muted);
}

/* List */
.lang-list {
  max-height: 260px;
  overflow-y: auto;
  padding: 5px 0;
}

.lang-list::-webkit-scrollbar {
  width: 3px;
}

.lang-list::-webkit-scrollbar-thumb {
  background: var(--tmv-border-color);
  border-radius: 4px;
}

/* Language item */
.lang-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 14px;
  cursor: pointer;
  transition: background 0.14s;
  border-radius: 0;
}

.lang-item:hover {
  background: var(--tmv-body-bg);
}

.lang-item.active {
  background: var(--tmv-primary-xxlight);
}

.lang-flag {
  width: 26px;
  height: 20px;
  object-fit: cover;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
  border-radius: 3px;
}

/* Info column */
.lang-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.lang-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--tmv-text-primary);
  line-height: 1.3;
}

.lang-item.active .lang-name {
  color: var(--tmv-primary);
}

.lang-region {
  font-size: 11px;
  color: var(--tmv-text-muted);
  line-height: 1.2;
}

/* Check icon */
.lang-check {
  font-size: 13px;
  color: var(--tmv-primary);
  flex-shrink: 0;
}

.lang-item:not(.active) .lang-check {
  display: none;
}

/* No results */
.lang-no-results {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 20px 16px;
  font-size: 12.5px;
  color: var(--tmv-text-muted);
  text-align: center;
}

.lang-no-results .icon-frown {
  font-size: 22px;
  opacity: 0.4;
}

@media (max-width: 768px) {
  header .lang-label {
    display: none;
  }
}

@media(max-width: 576px) {

  .lang-btn {
    padding: 0 6px;
  }

}

@media(max-width: 480px) {
  header .lang-dropdown {
    top: 100%;
    right: 10px;
  }

  header .lang-switcher {
    position: inherit;
  }

  header .lang-btn {
    border: none;
  }

  header .lang-btn .lang-label {
    display: none;
  }

  header .lang-btn i.lang-arrow {
    display: none;
  }
}

/* ── Budget Utilisation improvements ─────────────────────────── */
.progress-admio.thick {
  height: 16px !important;
}

.budget-model-card {
  padding: 14px 16px;
  border-radius: var(--tmv-radius-lg);
  border: 1px solid var(--tmv-border-light);
  transition: box-shadow 0.2s ease;
}

.budget-model-card .progress-admio {
  height: 5px;
}

.budget-model-card.primary {
  background: #EDE9FE;
  border-color: #F5F3FF;
}

.budget-model-card.secondary {
  background: var(--tmv-secondary-xlight);
  border-color: var(--tmv-secondary-light)
}

.budget-model-card.warning {
  background: var(--tmv-warning-light);
  border-color: rgba(245, 158, 11, 0.2)
}

.budget-model-card.success {
  background: var(--tmv-success-light);
  border-color: rgba(16, 185, 129, 0.2)
}

.budget-model-card:hover {
  box-shadow: var(--tmv-shadow-sm);
}

.budget-model-card .model-label {
  font-size: 11px;
  font-weight: 700;
  color: #6B7280;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.budget-model-card .model-amount {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 8px;
}

/* ── DataTable Checkbox fix ───────────────────────────────────── */
.dataTables_wrapper table.dataTable tbody tr.selected {
  background: var(--tmv-primary-xxlight) !important;
}

.dataTables_wrapper table.dataTable tbody tr.selected td {
  color: var(--tmv-primary) !important;
}

/* ── Grid JS Table ───────────────────────────────────────────── */
.gridjs-wrapper {
  border-radius: var(--tmv-radius-lg) var(--tmv-radius-lg) 0 0 !important;
  border: 1px solid var(--tmv-border-color) !important;
}

.gridjs-table th {
  background: var(--tmv-body-bg) !important;
  color: var(--tmv-text-muted) !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.7px !important;
}

.gridjs-table td {
  font-size: 13px !important;
}

.gridjs-pagination {
  font-size: 12px !important;
}

.gridjs-pagination .gridjs-pages button {
  border: 1px solid var(--tmv-border-color);
  background: var(--tmv-card-bg);
}

.gridjs-pagination .gridjs-pages button.gridjs-currentPage,
.gridjs-pagination .gridjs-pages button:hover {
  background-color: var(--tmv-primary);
  color: var(--tmv-white);
  border-color: var(--tmv-primary);
}

.gridjs-pagination .gridjs-pages button:disabled,
.gridjs-pagination .gridjs-pages button:hover:disabled,
.gridjs-pagination .gridjs-pages button[disabled] {
  border-color: var(--tmv-border-color);
}

/* chart-grid responsive — consolidated into section 38 above */

/* ── Pulse animation for skeleton loaders ──────────────────── */
@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.4;
  }
}

/* ── Alert close button color ────────────────────────────────── */
.alert-close {
  background: none;
  border: none;
  cursor: pointer;
  color: currentColor;
  opacity: 0.6;
  font-size: 14px;
  padding: 2px;
  line-height: 1;
  transition: opacity var(--transition-fast);
}

.alert-close:hover {
  opacity: 1;
}

/* ── Fix toast item base style ───────────────────────────────── */
.toast-item {
  border-left: 3px solid var(--tmv-primary);
}

.toast-item:has(.icon-circle-check) {
  border-left-color: var(--tmv-success);
}

.toast-item:has(.icon-circle-x) {
  border-left-color: var(--tmv-danger);
}

.toast-item:has(.icon-triangle-alert) {
  border-left-color: var(--tmv-warning);
}

/* ── Table selected row ──────────────────────────────────────── */
.admio-table tbody tr.selected {
  background: var(--tmv-primary-xxlight) !important;
}

/* ── Nav dropdown open state smooth ─────────────────────────── */
.nav-dropdown-menu {
  animation: fadeIn 0.15s ease;
}

/* ── File Manager List View ──────────────────────────────────── */
.fm-list-view {
  display: flex;
  flex-direction: column;
  padding: 8px 0;
  gap: 0;
}

.fm-list-view .fm-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-radius: 0;
  border: none;
  border-bottom: 1px solid var(--tmv-border-light);
  text-align: left;
}

.fm-list-view .fm-item:last-child {
  border-bottom: none;
}

.fm-list-view .fm-icon-wrap {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  font-size: 15px;
  margin-bottom: 0;
}

.fm-list-view .fm-item-name {
  flex: 1;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fm-list-view .fm-item-meta {
  font-size: 12px;
  color: var(--tmv-text-muted);
  min-width: 80px;
  text-align: right;
  margin-top: 0;
}

/* ── Users Table Row Selected (light tint not full blue) ─────── */
table.dataTable>tbody>tr.selected>* {
  background: var(--tmv-primary-xxlight) !important;
  box-shadow: none !important;
}

/* ── Transactions Pagination ─────────────────────────────────── */
#txPagination {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  border-top: 1px solid var(--tmv-border-light);
}

#txPagination .pagination {
  margin: 0;
}

#txPagination .page-link.disabled {
  cursor: not-allowed;
}

/* ── Sidebar Profile Popup ───────────────────────────────────── */
.sidebar-user {
  cursor: pointer;
}

.sidebar-profile-popup {
  position: fixed;
  bottom: 74px;
  left: 12px;
  width: calc(var(--tmv-sidebar-width) - 24px);
  background: #16162a;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55), 0 4px 16px rgba(0, 0, 0, 0.3);
  display: none;
  z-index: 9999;
  overflow: hidden;
  animation: fadeIn 0.15s ease;
}

.sidebar-profile-popup.open {
  display: block;
}

.admio-sidebar.collapsed .sidebar-profile-popup {
  display: none !important;
}

.spp-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 14px 13px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(124, 58, 237, 0.08);
}

.spp-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.spp-info {
  flex: 1;
  overflow: hidden;
}

.spp-name {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--tmv-sidebar-text-active);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.spp-subtitle {
  display: block;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 1px;
}

.spp-close {
  width: 24px;
  height: 24px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  cursor: pointer;
  flex-shrink: 0;
  line-height: 1;
  padding: 0;
  transition: background 0.15s, color 0.15s;
}

.spp-close:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.spp-body {
  padding: 8px;
}

.spp-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.spp-item:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.spp-item i {
  width: 16px;
  text-align: center;
  font-size: 13px;
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.45);
}

.spp-item:hover i {
  color: #fff;
}

.spp-divider {
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  margin: 4px 0;
}

.spp-divider-2 {
  border-color: var(--tmv-border-light);
  margin: 12px 0;
}

.spp-danger {
  color: #F87171;
}

.spp-danger i {
  color: #F87171 !important;
}

.spp-danger:hover {
  background: rgba(239, 68, 68, 0.1) !important;
  color: var(--tmv-danger) !important;
}

.spp-danger:hover i {
  color: var(--tmv-danger) !important;
}

/* ── Share Popup Modal ───────────────────────────────────────── */
.share-link-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--tmv-body-bg);
  border: 1px solid var(--tmv-border-color);
  border-radius: var(--tmv-radius-lg);
  padding: 10px 14px;
}

.share-link-box code {
  flex: 1;
  font-size: 12px;
  color: var(--tmv-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ── API Key View button ─────────────────────────────────────── */
.api-key-view-btn {
  flex-shrink: 0;
}

/* ── Prompt filter active button ─────────────────────────────── */
.prompt-filter-btn.btn-primary {
  background: var(--tmv-primary);
  color: #fff;
  border-color: var(--tmv-primary);
}

/* ── DataTables pagination brand ────────────────────────────── */
.dataTables_wrapper .paginate_button.current {
  background: var(--tmv-primary) !important;
  color: #fff !important;
  border-color: var(--tmv-primary) !important;
  border-radius: var(--tmv-radius-md) !important;
}

.dataTables_wrapper .paginate_button:hover:not(.disabled):not(.current) {
  background: var(--tmv-primary-xlight) !important;
  color: var(--tmv-primary) !important;
  border-color: var(--tmv-primary-light) !important;
  border-radius: var(--tmv-radius-md) !important;
}

.dataTables_wrapper .dataTables_info {
  color: var(--tmv-text-muted);
  font-size: 13px;
}

/* ============================================================
   EXTRACTED INLINE STYLES — shared component classes
   ============================================================ */

/* -- Utility extensions ------------------------------------ */
.z-1 {
  z-index: 1;
}

.text-2xs {
  font-size: 10px;
}

.text-3xs {
  font-size: 8px;
}

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

.icon-w-sm {
  width: 16px;
}

.cursor-help {
  cursor: help;
}

.pe-events-auto {
  pointer-events: auto;
}

/* -- Upload / drag-drop zone ------------------------------- */
.upload-drop-zone {
  border: 2px dashed var(--tmv-border-light);
  border-radius: var(--tmv-radius-lg);
  padding: 32px;
  text-align: center;
  margin-bottom: 16px;
}

.upload-drop-icon {
  font-size: 36px;
  margin-bottom: 12px;
}

/* -- AI model icon gradients ------------------------------- */
.model-icon-gpt {
  background: linear-gradient(135deg, var(--tmv-gpt), #1a7a5e);
}

.model-icon-claude {
  background: linear-gradient(135deg, var(--tmv-claude), #a85c3e);
}

.model-icon-gemini {
  background: linear-gradient(135deg, var(--tmv-google), var(--tmv-blue));
}

.model-icon-mistral {
  background: linear-gradient(135deg, var(--tmv-primary-dark), #4c1d95);
}

.model-icon-llama {
  background: linear-gradient(135deg, var(--tmv-info), var(--tmv-blue));
}

/* -- Auth icon wrappers ------------------------------------ */
.auth-icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.auth-icon-wrap-primary {
  background: var(--tmv-primary-xlight);
}

.auth-icon-wrap-success {
  background: var(--tmv-success-light);
}

.auth-bg-icon-wrap {
  background: var(--tmv-primary-xlight);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

/* -- Team card banners ------------------------------------- */
.team-card-banner {
  height: 60px;
}

.team-card-banner-purple {
  background: linear-gradient(135deg, var(--tmv-primary), rgba(124, 58, 237, 0.53));
}

.team-card-banner-cyan {
  background: linear-gradient(135deg, var(--tmv-secondary), rgba(6, 182, 212, 0.53));
}

.team-card-banner-green {
  background: linear-gradient(135deg, var(--tmv-success), rgba(16, 185, 129, 0.53));
}

.team-card-banner-red {
  background: linear-gradient(135deg, var(--tmv-danger), rgba(239, 68, 68, 0.53));
}

.team-card-banner-blue-dk {
  background: linear-gradient(135deg, var(--tmv-cyan), rgba(8, 145, 178, 0.53));
}

.team-card-banner-blue {
  background: linear-gradient(135deg, var(--tmv-info), rgba(59, 130, 246, 0.53));
}

.team-card-banner-amber {
  background: linear-gradient(135deg, var(--tmv-warning), rgba(245, 158, 11, 0.53));
}

.team-card-avatar {
  border: 3px solid var(--tmv-card-bg);
  transform: translateY(-32px);
  margin-bottom: -16px;
}

/* -- Profile / user-detail cover --------------------------- */
.profile-cover {
  background: linear-gradient(135deg, var(--tmv-primary), var(--tmv-secondary));
  border-radius: var(--tmv-radius-xl) var(--tmv-radius-xl) 0 0;
}

.profile-cover-sm {
  height: 90px;
}

.profile-cover-md {
  height: 100px;
  position: relative;
}

.profile-cover-avatar-abs {
  border-radius: 50%;
  border: 4px solid var(--tmv-card-bg);
  position: absolute;
  bottom: -40px;
  left: 20px;
}

.profile-avatar-offset {
  transform: translateY(-36px);
  margin-bottom: -20px;
}

.profile-avatar-offset .avatar-gen {
  border: 4px solid var(--tmv-card-bg);
}

/* -- Timeline ---------------------------------------------- */
.timeline-track {
  position: absolute;
  left: 19px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--tmv-border-color);
  z-index: 0;
}

.timeline-dot-primary {
  background: var(--tmv-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 11px;
  flex-shrink: 0;
  z-index: 1;
}

.timeline-dot-muted {
  background: var(--tmv-border-color);
  color: var(--tmv-text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 11px;
  flex-shrink: 0;
  z-index: 1;
}

.timeline-block .track {
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  z-index: 1;
}

/* -- Chat sidebar list ------------------------------------- */
.chat-list-item {
  display: flex;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--tmv-border-light);
}

.chat-list-item-active {
  background: var(--tmv-primary-xxlight);
}

.chat-list-item .content {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-active-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--tmv-success);
  border: 2px solid var(--tmv-card-bg);
  position: absolute;
  bottom: 0;
  right: 0;
}

.chat-list-body {
  flex: 1;
  min-width: 0;
}

.chat-list-avatar-wrap {
  width: 38px;
  height: 38px;
  border-radius: var(--tmv-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  flex-shrink: 0;
}

.chat-active-bar {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--tmv-primary);
}

/* -- OTP inputs -------------------------------------------- */
.otp-input {
  height: 52px;
  font-size: 22px;
  padding: 0;
}

/* -- Pricing ----------------------------------------------- */
.pricing-card-body {
  padding: 28px;
}

.pricing-card-price {
  font-size: 34px;
}

.pricing-badge-new {
  font-size: 9px;
}

.pricing-card-popular {
  border: 2px solid var(--tmv-primary);
  position: relative;
}

.pricing-card-popular-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--tmv-primary);
  color: #fff;
  padding: 4px 16px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.pricing-card-enterprise {
  background: linear-gradient(135deg, var(--tmv-sidebar-bg), #1E1B4B);
  border-color: rgba(124, 58, 237, 0.3);
}

.pricing-enterprise-price {
  font-size: 34px;
  color: #A78BFA;
}

.pricing-enterprise-sub {
  color: var(--tmv-sidebar-text);
}

.pricing-enterprise-item {
  color: #D1D5DB;
}

.pricing-enterprise-icon {
  margin-top: 2px;
  flex-shrink: 0;
}

.pricing-toggle-group {
  background: var(--tmv-border-light);
  border-radius: 100px;
  border: 1px solid var(--tmv-border-color);
  gap: 4px;
}

.pricing-toggle-btn {
  border-radius: 100px;
}

/* -- Calendar ---------------------------------------------- */
.cal-event-icon {
  width: 36px;
  height: 40px;
  border-radius: var(--tmv-radius-md);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cal-event-icon span.small {
  font-size: 8px;
  font-weight: 700;
}

.cal-event-icon span.normal {
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
}

.cal-color-dot {
  border-radius: 2px;
}

.cal-legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 3px;
}

.cal-swatch-active {
  border-radius: 6px;
  outline: 3px solid var(--tmv-text-primary);
}

.admio-event-categories .toggle-switch {
  transform: scale(0.7);
}

.admio-cal-event-popup i {
  width: 14px;
}

/* -- AI Agents empty drop ---------------------------------- */
.agent-empty-drop {
  border: 2px dashed var(--tmv-border-color);
  padding: 40px 20px;
}

.agent-empty-icon {
  font-size: 22px;
}

/* -- Info / banner boxes ----------------------------------- */
.info-box-bg {
  background: var(--tmv-body-bg);
  border-radius: var(--tmv-radius-lg);
  border: 1px solid var(--tmv-border-color);
}

.training-info-box {
  background: var(--tmv-info-light);
  border-radius: var(--tmv-radius-lg);
  border: 1px solid rgba(59, 130, 246, 0.2);
}

/* -- Changelog --------------------------------------------- */
.changelog-card-top {
  border-top: 3px solid var(--tmv-primary);
}

.changelog-feature-list {
  padding-left: 20px;
  color: var(--tmv-text-secondary);
  font-size: 13px;
  line-height: 2;
}

/* -- Kanban ------------------------------------------------- */
.kanban-secondary-bg {
  background: rgba(6, 182, 212, .1);
}

.kanban-primary-bg {
  background: rgba(124, 58, 237, 0.1);
}

.kanban-border-primary {
  border-left: 3px solid var(--tmv-primary);
}

.kanban-border-secondary {
  border-left: 3px solid var(--tmv-secondary);
}

.kanban-badge-warning {
  background: rgba(245, 158, 11, 0.1);
  color: #B45309;
}

.kanban-badge-success {
  background: rgba(16, 185, 129, 0.1);
  color: #065F46;
}

/* -- Maps leaflet ------------------------------------------ */
.map-card-body-flush {
  padding: 0;
}

.map-container-full {
  border-radius: 0 0 var(--tmv-radius-xl) var(--tmv-radius-xl);
}

.map-container-md {
  height: 420px;
}

.map-container-sm {
  height: 220px;
}

.map-color-1 {
  color: var(--tmv-primary);
}

.map-color-2 {
  color: var(--tmv-secondary);
}

.map-color-3 {
  color: var(--tmv-success);
}

.map-color-4 {
  color: var(--tmv-warning);
}

.map-color-5 {
  color: var(--tmv-danger);
}

.map-color-6 {
  color: var(--tmv-info);
}

/* -- Maps vector ------------------------------------------- */
.vector-map-wrap {
  height: 380px;
  background: var(--tmv-body-bg);
  border-radius: var(--tmv-radius-lg);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vector-legend-swatch-1 {
  border-radius: 2px;
  background: rgba(124, 58, 237, 0.2);
}

.vector-legend-swatch-2 {
  border-radius: 2px;
  background: rgba(124, 58, 237, 0.5);
}

.vector-legend-swatch-3 {
  border-radius: 2px;
  background: rgba(124, 58, 237, 0.8);
}

.vector-legend-swatch-4 {
  border-radius: 2px;
  background: var(--tmv-primary);
}

.vector-bar-pink {
  background: var(--tmv-pink);
}

.vector-bar-violet {
  background: var(--tmv-primary-dark);
}

/* -- Inbox ------------------------------------------------- */
.inbox-toolbar {
  margin: 12px;
  width: calc(100% - 24px);
  justify-content: center;
}

.inbox-list-item {
  padding: 10px 14px;
  border-bottom: 1px solid var(--tmv-border-light);
}

.inbox-list-item .topbar-search {
  padding: 5px 10px;
}

.inbox-list-body {
  flex: 1;
  min-width: 0;
}

.inbox-compose-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--tmv-border-light);
  border: 1px solid var(--tmv-border-color);
  border-radius: var(--tmv-radius-md);
}

.inbox-reply-input {
  border: none;
  padding: 12px 14px;
  font-size: 13px;
  font-family: var(--tmv-font-sans);
  color: var(--tmv-text-primary);
  background: var(--tmv-card-bg);
  outline: none;
  resize: none;
  min-height: 72px;
}

/* -- File manager ------------------------------------------ */
.fm-file-list-wrap {
  min-height: 560px;
}

.fm-icon-amber {
  color: var(--tmv-warning);
  width: 16px;
}

.fm-icon-cyan {
  color: var(--tmv-secondary);
  width: 16px;
}

.fm-icon-green {
  color: var(--tmv-success);
  width: 16px;
}

.fm-icon-purple {
  color: var(--tmv-primary);
  width: 16px;
}

.fm-item-pdf {
  background: rgba(245, 158, 11, 0.12);
}

.fm-item-doc {
  background: rgba(239, 68, 68, 0.12);
}

.fm-item-xls {
  background: rgba(16, 185, 129, 0.12);
}

.fm-item-ppt {
  background: rgba(139, 92, 246, 0.12);
}

.fm-item-img {
  background: rgba(59, 130, 246, 0.12);
}

.fm-item-ai {
  background: rgba(124, 58, 237, 0.12);
}

.fm-item-fig {
  background: rgba(8, 145, 178, 0.12);
}

.fm-item-sql {
  background: rgba(6, 182, 212, 0.12);
}

.fm-item-zip {
  background: rgba(239, 68, 68, 0.12);
}

.fm-item-csv {
  background: rgba(107, 114, 128, 0.12);
}

.fm-item-sketch {
  background: rgba(236, 72, 153, 0.12);
}

.fm-item-video {
  background: rgba(245, 158, 11, 0.12);
}

/* -- Settings ---------------------------------------------- */
.settings-ai-banner {
  background: linear-gradient(135deg, var(--tmv-primary-xxlight), var(--tmv-secondary-xlight));
  border-radius: var(--tmv-radius-xl);
  border: 1px solid var(--tmv-primary-xlight);
  margin-bottom: 16px;
}

.settings-ai-icon {
  font-size: 22px;
}

.settings-border-l {
  border-left: 1px solid var(--tmv-border-color);
}

.settings-avatar-img {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 3px solid var(--tmv-primary-xlight);
}

.settings-avatar-btn {
  position: absolute;
  bottom: 0;
  right: 0;
  border-radius: 50%;
  font-size: 11px;
}

/* -- Edit user avatar -------------------------------------- */
.edit-user-avatar-wrap {
  width: 96px;
  margin: 0 auto 16px;
}

.edit-user-avatar-img {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 3px solid var(--tmv-primary-xlight);
}

.edit-user-avatar-btn {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--tmv-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
}

/* -- Lock screen ------------------------------------------- */
.lock-screen-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--tmv-body-bg);
  padding: 24px;
}

.lock-avatar-wrap {
  width: 88px;
  height: 88px;
  margin: 0 auto 24px;
}

.lock-avatar-img {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  border: 4px solid var(--tmv-card-bg);
}

.lock-status-dot {
  position: absolute;
  bottom: -2px;
  right: -2px;
  background: var(--tmv-primary);
  border: 3px solid var(--tmv-card-bg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.lock-status-icon {
  color: #fff;
  font-size: 12px;
}

/* -- Progress legend dots ---------------------------------- */
.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  display: inline-block;
}

.legend-dot-primary {
  background: var(--tmv-primary);
}

.legend-dot-secondary {
  background: var(--tmv-secondary);
}

.legend-dot-success {
  background: var(--tmv-success);
}

/* -- UI button groups -------------------------------------- */
.btn-group-left {
  border-radius: var(--tmv-radius-md) 0 0 var(--tmv-radius-md);
}

.btn-sm.btn-left {
  border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-sm.btn-right {
  border-right: none
}

.btn-sm.btn-full {
  border: 1px solid var(--tmv-border-color)
}

.btn-sm.btn-full-center {
  border: 1px solid var(--tmv-border-color);
  border-left: none;
  border-right: none;
}

.btn-sm.btn-full-right {
  border: 1px solid var(--tmv-border-color);
  border-right: none
}

.btn-group-mid {
  border-radius: 0;
}

.btn-group-right {
  border-radius: 0 var(--tmv-radius-md) var(--tmv-radius-md) 0;
}

.btn-seg-wrap {
  background: var(--tmv-body-bg);
  border: 1px solid var(--tmv-border-color);
  border-radius: var(--tmv-radius-lg);
  width: fit-content;
  gap: 2px;
}

.btn-seg-btn {
  border-radius: var(--tmv-radius-md);
}

.btn-pill-wrap {
  background: var(--tmv-body-bg);
  border: 1px solid var(--tmv-border-color);
  border-radius: var(--tmv-radius-pill);
  width: fit-content;
  gap: 4px;
}

.btn-pill-btn {
  border-radius: var(--tmv-radius-pill);
}

/* -- UI dropdown model indicators ------------------------- */
.dropdown-model-dot {
  font-size: 8px;
  margin-right: 8px;
}

.dropdown-icon-36 {
  width: 36px;
}

/* -- Search results ---------------------------------------- */
.search-input-lg {
  padding: 11px 18px;
}

.search-title-lg {
  font-size: 15px;
}

/* ============================================================
   CALL MODALS — unique dark gradient design
   ============================================================ */
.call-modal-content {
  border-radius: 20px !important;
  overflow: hidden;
  border: none !important;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.5);
}

.call-modal-bg {
  background: linear-gradient(160deg, #13002b 0%, #2d0a5e 45%, #160036 100%);
  min-height: 500px;
  padding: 36px 40px 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.call-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
  font-size: 13px;
}

.call-modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.call-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(124, 58, 237, 0.25);
  border: 1px solid rgba(124, 58, 237, 0.4);
  border-radius: 20px;
  padding: 5px 16px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.call-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #a78bfa;
  animation: callDotBlink 1.2s ease-in-out infinite;
}

@keyframes callDotBlink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.3;
  }
}

/* Concentric pulsing rings */
.call-rings-wrap {
  width: 168px;
  height: 168px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.call-ring {
  position: absolute;
  border-radius: 50%;
  animation: callRingPulse 2.4s ease-out infinite;
}

.call-ring-1 {
  width: 104px;
  height: 104px;
  background: rgba(124, 58, 237, 0.28);
  animation-delay: 0s;
}

.call-ring-2 {
  width: 136px;
  height: 136px;
  background: rgba(124, 58, 237, 0.16);
  animation-delay: 0.7s;
}

.call-ring-3 {
  width: 168px;
  height: 168px;
  background: rgba(124, 58, 237, 0.08);
  animation-delay: 1.4s;
}

@keyframes callRingPulse {
  0% {
    transform: scale(0.75);
    opacity: 1;
  }

  100% {
    transform: scale(1);
    opacity: 0;
  }
}

.call-contact-avatar {
  border: 3px solid rgba(255, 255, 255, 0.22) !important;
  z-index: 1;
  position: relative;
}

.call-contact-name {
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 4px;
}

.call-contact-role {
  color: rgba(255, 255, 255, 0.45);
  font-size: 13px;
}

/* Control buttons (mute / speaker / keypad) */
.call-ctrl-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.75);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  margin: 0 auto 6px;
}

.call-ctrl-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.call-ctrl-btn.active {
  background: rgba(255, 255, 255, 0.88);
  color: #2d0a5e;
}

.call-ctrl-label {
  color: rgba(255, 255, 255, 0.45);
  font-size: 11px;
  text-align: center;
  margin: 0;
}

/* Accept / Decline */
.call-action-btn {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  border: none;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin: 0 auto;
  transition: transform 0.2s, filter 0.2s;
}

.call-action-accept {
  background: #22c55e;
  color: #fff;
}

.call-action-accept:hover {
  transform: scale(1.1);
  filter: brightness(1.1);
}

.call-action-decline {
  background: var(--tmv-danger);
  color: #fff;
}

.call-action-decline:hover {
  transform: scale(1.1);
  filter: brightness(1.1);
}

/* Video call specifics */
.call-video-preview {
  width: 100%;
  background: #080814;
  border-radius: 14px;
  height: 196px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0;
}

.call-video-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 40%, rgba(124, 58, 237, 0.18) 0%, transparent 70%);
  pointer-events: none;
}

.call-video-self {
  position: absolute;
  bottom: 10px;
  right: 10px;
  width: 78px;
  height: 56px;
  background: #1a1a2e;
  border-radius: 8px;
  border: 2px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  font-size: 10px;
}

.call-video-name-tag {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: rgba(0, 0, 0, 0.55);
  color: rgba(255, 255, 255, 0.8);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 11px;
  border-radius: 20px;
  backdrop-filter: blur(4px);
}

/* ============================================================
   INBOX ACTION STATES
   ============================================================ */
.inbox-email-row {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.inbox-email-row.mail-removing {
  opacity: 0 !important;
  transform: translateX(-20px) !important;
  pointer-events: none;
}

/* Active button states — toggled via JS class on the button itself */
[data-inbox-action="star"].mail-btn-active i {
  color: var(--tmv-warning) !important;
}

[data-inbox-action="unread"].mail-btn-active i {
  color: var(--tmv-primary) !important;
}

[data-inbox-action].mail-btn-active {
  background: var(--tmv-primary-xlight) !important;
}

/* -- Transactions ------------------------------------------ */
.paypal-blue {
  color: #003087;
}

/* -- UI object-fit ----------------------------------------- */
.card-img-banner {
  height: 140px;
  border-radius: var(--tmv-radius-lg);
  overflow: hidden;
  border: 1px solid var(--tmv-border-color);
}
.card-img-inner-banner{
  height:100%;background:linear-gradient(135deg,var(--tmv-primary),var(--tmv-secondary));display:flex;align-items:center;justify-content:center;font-size:40px;color:rgba(255,255,255,0.5);
}
.img-clip-circle {
  overflow: hidden;
  background: var(--tmv-primary);
  flex-shrink: 0;
}

.card-img-header {
  height: 140px;
  overflow: hidden;
  border-radius: var(--tmv-radius-xl) var(--tmv-radius-xl) 0 0;
}
.card-even-img-banner{
  height:140px;border-radius:var(--tmv-radius-lg);overflow:hidden;border:1px solid var(--tmv-border-color);background:var(--tmv-body-bg);display:flex;align-items:center;justify-content:center;
}
.card-even-img-inner-banner{
  width:80%;height:80%;background:linear-gradient(135deg,var(--tmv-success),var(--tmv-secondary));border-radius:var(--tmv-radius-lg);display:flex;align-items:center;justify-content:center;font-size:32px;color:rgba(255,255,255,0.6);
}
/* -- UI popovers demo -------------------------------------- */
.popover-demo {
  position: absolute;
  top: 36px;
  left: 0;
}

.popover-mono {
  font-size: 11px;
  font-family: var(--tmv-font-mono);
}

/* -- UI navs-tabs vertical --------------------------------- */
.nav-bg {
  background: var(--tmv-body-bg);
  border-radius: var(--tmv-radius-lg);
}

.vertical-tab-panel {
  border: 1px solid var(--tmv-border-color);
  border-radius: var(--tmv-radius-lg);
  overflow: hidden;
}

.vertical-tab-nav {
  width: 140px;
  border-right: 1px solid var(--tmv-border-color);
  background: var(--tmv-body-bg);
  flex-shrink: 0;
}

.vertical-tab-link {
  display: block;
  text-align: left;
  border-bottom: 1px solid var(--tmv-border-light);
  border-radius: 0;
  padding: 12px 14px;
}

.vertical-tab-link-last {
  display: block;
  text-align: left;
  border-radius: 0;
  padding: 12px 14px;
}

.vertical-tab-body {
  flex: 1;
  padding: 16px;
}

.grid-list-switch {
  background: var(--tmv-body-bg);
  border: 1px solid var(--tmv-border-color);
  border-radius: var(--tmv-radius-lg);
  gap: 4px;
}

.grid-item {
  background: var(--tmv-body-bg);
  border: 1px solid var(--tmv-border-color);
  border-radius: var(--tmv-radius-md);
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.list-item{
  border:1px solid var(--tmv-border-light);border-radius:var(--tmv-radius-md);
}
#viewListContent{
  display: none;;
}
/* -- UI spinners skeleton ---------------------------------- */
.skeleton-wrap {
  background: var(--tmv-body-bg);
  border-radius: var(--tmv-radius-xl);
  padding: 60px 24px;
  text-align: center;
  border: 1px dashed var(--tmv-border-color);
}

.skeleton-avatar {
  background: var(--tmv-border-light);
  animation: pulse 1.5s ease-in-out infinite;
  flex-shrink: 0;
}

.skeleton-body {
  flex: 1;
}

.skeleton-line-1 {
  height: 12px;
  background: var(--tmv-border-light);
  border-radius: 6px;
  margin-bottom: 8px;
  animation: pulse 1.5s ease-in-out infinite;
}

.skeleton-line-2 {
  height: 10px;
  background: var(--tmv-border-light);
  border-radius: 6px;
  width: 60%;
  animation: pulse 1.5s ease-in-out infinite;
}

.skeleton-line {
  height: 10px;
  background: var(--tmv-border-light);
  border-radius: 6px;
  margin-bottom: 8px;
  animation: pulse 1.5s ease-in-out infinite;
}

.skeleton-line-md {
  width: 85%;
}

.skeleton-line-sm {
  width: 70%;
}

/* -- UI toasts preview ------------------------------------- */
.toast-preview {
  display: block;
  background: var(--tmv-body-bg);
  padding: 12px 14px;
  border-radius: var(--tmv-radius-md);
  font-size: 12.5px;
  font-family: var(--tmv-font-mono);
  line-height: 1.8;
}

/* -- UI typography gradient text --------------------------- */
.gradient-text-warm {
  background: linear-gradient(90deg, var(--tmv-warning), var(--tmv-danger));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text-cool {
  background: linear-gradient(90deg, var(--tmv-success), var(--tmv-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* -- Code / inline blocks ---------------------------------- */
.code-block-inline {
  background: var(--tmv-body-bg);
  border-radius: var(--tmv-radius-md);
  font-family: var(--tmv-font-mono);
  font-size: 12px;
}

.typo-sample-block {
  background: var(--tmv-body-bg);
  padding: 10px 14px;
  border-radius: var(--tmv-radius-md);
  font-size: 13px;
}

/* -- Invoice ----------------------------------------------- */
.invoice-wrap {
  max-width: 800px;
  margin: 0 auto;
  padding: 48px;
}

.invoice-brand {
  font-size: 28px;
  letter-spacing: -0.5px;
}

.invoice-ref {
  font-size: 16px;
}

.invoice-total {
  font-size: 24px;
}

@media(max-width: 575px) {
  .invoice-wrap {
    padding: 20px;
  }

  .invoice-brand {
    font-size: 24px;
  }
}

/* -- Form wizard ------------------------------------------- */
.wizard-progress-track {
  position: absolute;
  top: 15px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: var(--tmv-border-color);
  z-index: 0;
}

.wizard-progress-fill {
  height: 100%;
  background: var(--tmv-primary);
  width: 0%;
  transition: width .4s ease;
  border-radius: 2px;
}

.wizard-progress-block .number {
  background: var(--tmv-border-color);
  color: var(--tmv-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 6px;
  font-weight: 700;
  font-size: 13px;
}

.wizard-progress-block .active .number {
  background: var(--tmv-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 6px;
  font-weight: 700;
  font-size: 13px;
}

.wizard-progress-block .label {
  font-size: 11px;
  color: var(--tmv-text-muted)
}

.wizard-progress-block .active .label {
  font-size: 11px;
  font-weight: 600;
}

/* -- Signup password strength bars ------------------------- */
.pwd-strength-bar {
  height: 3px;
  flex: 1;
  border-radius: 2px;
}

.pwd-bar-danger {
  background: var(--tmv-danger);
}

.pwd-bar-warning {
  background: var(--tmv-warning);
}

.pwd-bar-muted {
  background: var(--tmv-border-color);
}

/* -- UI cards dark card ------------------------------------ */
.card-dark {
  background: linear-gradient(135deg, var(--tmv-sidebar-bg), #1E1B4B);
  border-color: rgba(124, 58, 237, 0.3);
}

.card-dark-accent {
  color: #A78BFA;
}

.card-dark-sub {
  color: var(--tmv-sidebar-text);
}

.card-dark-text {
  color: #D1D5DB;
}

.card-dark-icon {
  font-size: 32px;
  color: #A78BFA;
  margin-bottom: 4px;
}

.card-rgba-text {
  color: rgba(255, 255, 255, 0.6);
}

.card-border-top-primary {
  border-top: 3px solid var(--tmv-primary);
}

/* -- FAQ --------------------------------------------------- */
.faq-code-inline {
  font-family: var(--tmv-font-mono);
  background: var(--tmv-border-light);
  padding: 1px 5px;
  border-radius: 3px;
}

.faq-cta-body {
  padding: 28px;
}

.faq-cta-icon {
  font-size: 22px;
}

/* -- AI chat suggestion list ------------------------------- */
.ai-chat-suggestion-list {
  margin: 8px 0 0 16px;
  padding: 0;
}

/* -- AI workflows status text ------------------------------ */
.wf-status-text {
  font-size: 10px;
}

/* -- Profile / user-detail skill bars ---------------------- */
.skill-bar-primary {
  background: var(--tmv-primary-xlight);
}

.skill-bar-success {
  background: var(--tmv-success-light);
}

.skill-bar-cyan {
  background: var(--tmv-secondary-xlight);
  color: var(--tmv-cyan);
}

.skill-bar-amber {
  background: var(--tmv-warning-light);
  color: var(--tmv-orange);
}

/* -- UI buttons brand icons -------------------------------- */
.btn-brand-google {
  color: var(--tmv-google);
}

.btn-brand-twitter {
  color: #1DA1F2;
}

.btn-brand-li {
  color: #0A66C2;
}

.btn-brand-slack {
  color: #4A154B;
}

.btn-brand-discord {
  color: #5865F2;
}

/* ============================================================
   DYNAMIC AVATAR (replaces ui-avatars.com)
   ============================================================ */
.avatar-gen,
.avatar-gen-img {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-weight: 600;
  color: #fff;
  font-family: var(--tmv-font-sans);
  user-select: none;
  vertical-align: middle;
  letter-spacing: 0.5px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--tmv-primary);
}

.avatar-total {
  background: var(--tmv-border-color);
  color: var(--tmv-text-secondary);
  font-size: 11px;
  font-weight: 700;
}

/* ============================================================
   GALLERY UPLOAD MODAL
   ============================================================ */
.admio-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1060;
  background: rgba(0, 0, 0, .45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}

.admio-modal-backdrop.open {
  opacity: 1;
  pointer-events: all;
}

.admio-modal-dialog {
  width: 100%;
  max-width: 600px;
  transform: translateY(12px) scale(.98);
  transition: transform .22s ease;
}

.admio-modal-backdrop.open .admio-modal-dialog {
  transform: translateY(0) scale(1);
}

.admio-modal-content {
  background: var(--tmv-card-bg, #fff);
  border: 1px solid var(--tmv-border-color);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .18);
  overflow: hidden;
}

.admio-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--tmv-border-color);
}

.modal-icon-wrap {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--tmv-primary)22, #6366f122);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--tmv-primary, var(--tmv-primary));
  flex-shrink: 0;
}

.admio-modal-title {
  font-size: 16px;
  font-weight: 700;
  margin: 0;
  color: var(--text-main, var(--tmv-text-primary));
}

.admio-modal-subtitle {
  font-size: 12px;
  color: var(--tmv-text-muted, var(--tmv-text-secondary));
  margin: 2px 0 0;
}

.admio-modal-close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
  color: var(--tmv-text-muted, var(--tmv-text-secondary));
  font-size: 16px;
  line-height: 1;
  transition: background .15s, color .15s;
}

.admio-modal-close:hover {
  background: var(--tmv-hover-bg, var(--tmv-border-light));
  color: var(--text-main, var(--tmv-text-primary));
}

.admio-modal-body {
  padding: 20px 24px;
}

.admio-modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  padding: 14px 24px;
  border-top: 1px solid var(--tmv-border-color);
  background: transparent;
}

.gallery-drop-zone {
  border: 2px dashed var(--tmv-border, #d1d5db);
  border-radius: 12px;
  padding: 36px 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color .2s, background .2s;
  background: var(--tmv-subtle-bg, var(--tmv-sidebar-text-active));
}

.gallery-drop-zone:hover,
.gallery-drop-zone.drag-over {
  border-color: var(--tmv-primary, var(--tmv-primary));
  background: rgba(124, 58, 237, .04);
}

.gallery-drop-zone.drag-over {
  background: rgba(124, 58, 237, .08);
}

.drop-zone-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  margin: 0 auto 14px;
  background: linear-gradient(135deg, var(--tmv-primary)22, #6366f122);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: var(--tmv-primary, var(--tmv-primary));
}

.drop-zone-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main, var(--tmv-text-primary));
  margin: 0 0 4px;
}

.drop-zone-sub {
  font-size: 13px;
  color: var(--tmv-text-muted, var(--tmv-text-secondary));
  margin: 0 0 6px;
}

.drop-zone-browse {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: var(--tmv-primary, var(--tmv-primary));
  font-weight: 600;
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.drop-zone-browse:hover {
  opacity: .8;
}

.drop-zone-hint {
  font-size: 11px;
  color: var(--tmv-text-muted, var(--tmv-sidebar-text));
  margin: 0;
}

.gallery-preview-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
  max-height: 200px;
  overflow-y: auto;
}

.gallery-preview-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--tmv-subtle-bg, var(--tmv-sidebar-text-active));
  border: 1px solid var(--tmv-border-color);
}

.gallery-preview-thumb {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--tmv-border-color);
}

.gallery-preview-info {
  flex: 1;
  min-width: 0;
}

.gallery-preview-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main, var(--tmv-text-primary));
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gallery-preview-size {
  font-size: 11px;
  color: var(--tmv-text-muted, var(--tmv-text-secondary));
  margin-top: 2px;
}

.gallery-preview-status {
  font-size: 11px;
  margin-top: 3px;
}

.gallery-preview-remove {
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  border-radius: 6px;
  color: var(--tmv-text-muted, var(--tmv-sidebar-text));
  font-size: 14px;
  line-height: 1;
  flex-shrink: 0;
  transition: background .15s, color .15s;
}

.gallery-preview-remove:hover {
  background: var(--tmv-danger-light);
  color: var(--tmv-danger);
}

.gallery-upload-count:not(:empty) {
  background: rgba(255, 255, 255, .25);
  border-radius: 20px;
  padding: 1px 7px;
  font-size: 11px;
  margin-left: 4px;
}

.form-label-admio {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--tmv-text-muted, var(--tmv-text-secondary));
  margin-bottom: 6px;
  letter-spacing: .02em;
}

/* ============================================================
   MOBILE TOPBAR LOGO (injected by admio.js section 27)
   ============================================================ */
.topbar-mobile-brand {
  display: none;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  flex-shrink: 0;
  transition: opacity var(--transition-fast);
}

.topbar-mobile-brand:hover {
  opacity: 0.8;
}

.topbar-mobile-brand-img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  display: block;
}

.topbar-mobile-brand-text {
  font-size: 19px;
  font-weight: 800;
  color: var(--tmv-text-primary);
  letter-spacing: -0.3px;
  line-height: 1;
}

.topbar-mobile-brand-text span {
  color: var(--tmv-primary);
}

@media (max-width: 991px) {
  .topbar-mobile-brand {
    display: flex;
  }

  .topbar-breadcrumb {
    display: none !important;
  }
}

/* ============================================================
   RESPONSIVE TYPOGRAPHY SCALE
   ============================================================ */
@media (max-width: 991px) {
  .page-title {
    font-size: 22px;
  }

  .stat-value {
    font-size: 24px;
  }
}

@media (max-width: 768px) {

  html,
  body {
    font-size: 15px;
  }

  .page-title {
    font-size: 20px;
  }

  .stat-value {
    font-size: 22px;
  }

  .card-title {
    font-size: 14px;
  }

  .topbar-right .topbar-user-name {
    display: none;
  }
}

@media (max-width: 576px) {
  .page-title {
    font-size: 18px;
  }

  .page-subtitle {
    font-size: 13px;
  }

  .stat-value {
    font-size: 20px;
  }

  .card-title {
    font-size: 14px;
  }

  .btn-admio {
    font-size: 13px;
  }

  .admio-footer {
    font-size: 13px;
  }

  .admio-topbar {
    gap: 6px;
  }

  .topbar-mobile-brand-text {
    font-size: 17px;
  }

  .topbar-divider {
    display: none;
  }

  .page-header-actions {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .page-title {
    font-size: 17px;
  }

  .card-title {
    font-size: 13px;
  }

  .topbar-mobile-brand-img {
    width: 26px;
    height: 26px;
  }

  .topbar-mobile-brand-text {
    font-size: 16px;
  }
}


/* ============================================================
   38. Back to Top
   ============================================================ */
.back-to-top {
  position: fixed;
  bottom: 40px;
  right: 28px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--tmv-primary);
  color: var(--tmv-white);
  border: none;
  cursor: pointer;
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  -webkit-justify-content: center;
  justify-content: center;
  z-index: 900;
  opacity: 0;
  visibility: hidden;
  -webkit-transform: translateY(12px);
  transform: translateY(12px);
  -webkit-transition: opacity 0.3s ease, -webkit-transform 0.3s ease, visibility 0.3s ease, box-shadow 0.3s ease;
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease, box-shadow 0.3s ease;
}

.back-to-top svg {
  width: 18px;
  height: 18px;
  pointer-events: none
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  -webkit-transform: translateY(0);
  transform: translateY(0)
}

.back-to-top:hover {
  -webkit-transform: translateY(-3px);
  transform: translateY(-3px)
}


/* ============================================================
   39. RESPONSIVE / MEDIA QUERIES 
   ============================================================ */
/* ──  1400px  ─────────────────────────────────────────────── */
@media (max-width: 1400px) {
  .admio-content {
    padding: 20px;
  }
}

/* ──  1200px  ─────────────────────────────────────────────── */
@media (max-width: 1200px) {
  .playground-layout {
    grid-template-columns: 1fr;
  }

  .stat-value {
    font-size: 22px;
  }

}

/* ── md  991px  (tablet landscape) ──────────────────────────── */
@media (max-width: 991px) {

  .admio-sidebar {
    transform: translateX(-100%);
    z-index: 1001;
  }

  .admio-sidebar.mobile-open {
    transform: translateX(0);
  }

  .admio-main {
    margin-left: 0 !important;
  }

  .auth-left {
    display: none;
  }

  .auth-right {
    width: 100%;
    max-width: 100%;
  }

  .chart-grid {
    grid-template-columns: 1fr;
  }

  .inbox-sidebar {
    display: none;
  }

  .inbox-list {
    width: 260px;
    flex-shrink: 0;
  }

  .fm-sidebar {
    display: none;
  }

  .playground-layout {
    gap: 16px;
  }

  .chat-layout-ai {
    height: calc(100vh - 160px);
  }

  .admio-table-wrapper,
  .table-responsive-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* ──  768px  (mobile landscape / small tablet) ────────────── */
@media (max-width: 768px) {

  .admio-content {
    padding: 16px;
  }

  .admio-topbar {
    padding: 0 16px;
    gap: 8px;
  }

  .topbar-center {
    display: none;
  }

  .topbar-right {
    gap: 2px;
  }

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

  .page-header-actions {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 8px;
  }

  .stat-value {
    font-size: 20px;
  }

  .mini-chart-bar {
    height: 44px;
  }

  .card-title {
    font-size: 13px;
  }

  .chart-grid {
    grid-template-columns: 1fr;
  }

  .ai-banner-content {
    flex: auto;
  }

  .ai-banner-icon {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }

  .ai-banner-title {
    font-size: 13px;
  }

  .inbox-layout {
    height: calc(100vh - 160px);
    min-height: 500px;
  }

  .inbox-sidebar {
    display: none;
  }

  .inbox-list {
    width: 100%;
    height: 100%;
    border-right: none;
    border-bottom: none;
    flex-shrink: 1;
  }

  .inbox-detail {
    display: none;
  }

  .inbox-layout.inbox-showing-detail .inbox-list {
    display: none;
  }

  .inbox-layout.inbox-showing-detail .inbox-detail {
    display: flex;
    flex: 1;
  }

  .inbox-back-btn,
  .chat-back-btn {
    display: inline-flex !important;
  }

  .chat-layout {
    height: calc(100vh - 160px);
    min-height: 500px;
  }

  .chat-contacts {
    width: 100%;
    border-right: none;
  }

  .chat-main {
    display: none;
  }

  .chat-layout.chat-panel-open .chat-contacts {
    display: none;
  }

  .chat-layout.chat-panel-open .chat-main {
    display: flex;
    flex: 1;
  }

  .fm-layout {
    flex-direction: column;
  }

  .fm-sidebar {
    display: none;
  }

  .fm-main {
    min-height: 400px;
  }

  .kanban-board {
    gap: 10px;
    flex-wrap: wrap;
  }

  .kanban-col {
    min-width: 220px;
  }

  .settings-tabs {
    border-radius: var(--tmv-radius-lg);
    overflow-x: auto;
    flex-wrap: nowrap;
  }
  
  .dataTables_wrapper .dataTables_length,
  .dataTables_wrapper .dataTables_filter {
    float: none !important;
    text-align: left !important;
    margin-bottom: 8px;
  }

  .dataTables_wrapper .dataTables_filter input {
    width: 100%;
    max-width: 240px;
  }

  .dataTables_wrapper .row:first-child {
    flex-direction: column;
    gap: 0;
  }

  .admio-table-wrapper,
  .table-responsive-wrapper,
  .dataTables_scrollBody {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .notif-panel {
    width: min(320px, calc(100vw - 24px));
  }

  .gallery-filter-btn {
    padding: 5px 12px;
    font-size: 12px;
  }

  .table-pagination {
    flex-wrap: wrap;
    gap: 4px;
  }

  .chat-messages {
    padding: 16px;
    gap: 14px;
  }

  .chat-input-area {
    padding: 12px 16px 16px;
  }

  .chat-layout-ai {
    height: calc(100vh - 150px);
    min-height: 420px;
  }
}

/* ── 576px  (mobile portrait) ────────────────────────────── */
@media (max-width: 576px) {

  /* Layout */
  .admio-content {
    padding: 12px;
  }

  .admio-topbar {
    padding: 0 12px;
    gap: 4px;
    height: 56px;
  }

  .topbar-divider {
    display: none;
  }

  /* Stat widgets */
  .stat-value {
    font-size: 20px;
  }

  .mini-chart-bar {
    height: 40px;
  }

  /* AI insight banner */
  .ai-insight-banner {
    flex-wrap: wrap;
  }

  .ai-banner-icon {
    display: none;
  }

  .ai-banner-action {
    font-size: 11px;
    padding: 6px 10px;
  }


  /* Notification panel */
  .notif-panel {
    width: calc(100vw - 24px);
    max-width: 340px;
  }

  /* Inbox detail body */
  .inbox-detail-body {
    padding: 16px;
  }


  /* Error pages */
  .err-number {
    font-size: 72px;
  }

  /* Kanban */
  .kanban-col {
    min-width: 200px;
  }

  /* Search tabs */
  .search-nav-tabs {
    gap: 6px;
  }

  .search-nav-tabs .nav-link {
    padding: 6px 12px;
    font-size: 12px;
  }

  /* Pagination */
  .table-pagination {
    justify-content: center;
  }

  .page-btn {
    min-width: 32px;
    height: 32px;
    font-size: 12px;
  }

  /* Topbar user avatar  */
  .topbar-user .user-name,
  .topbar-user .user-role {
    display: none;
  }

  /* Profile cover buttons */
  .profile-cover-actions {
    flex-wrap: wrap;
    gap: 6px;
  }
}

/* ── 480px  ─────────────────────────────────────────────── */
@media (max-width: 480px) {

  /* Auth */
  .auth-right {
    padding: 32px 20px;
  }

  .auth-card {
    padding: 20px;
  }

  /* Stat */
  .stat-value {
    font-size: var(--tmv-fs-xl);
  }

  /* Page header actions */
  .page-header-actions {
    flex-wrap: wrap;
  }

  /* Footer */
  .admio-footer {
    flex-direction: column;
    gap: 4px;
    text-align: center;
    padding: 12px;
  }

  /* Error page */
  .err-number {
    font-size: 60px;
    letter-spacing: -2px;
  }

  /* DataTables length + filter compact */
  .dataTables_wrapper .dataTables_length select {
    padding: 4px 8px;
  }

  /* Notification panel */
  .notif-panel {
    width: calc(100vw - 20px);
    top: 100%;
  }

  .topbar-btn-notification {
    position: inherit;
  }

  /* Coming soon / Maintenance */
  .cs-heading {
    font-size: 26px;
  }

  .err-number {
    font-size: 48px;
    letter-spacing: -1px;
  }
}