/* ==============================================================================
   JAIN CREDIT APP - MODERN SAAS, SOFT FROSTED GLASS & VIBRANT UI
   Navy #04336B | Royal Azure #0071CE | Full-Height Dedicated Sidebar
   ============================================================================== */

:root {
  --navy-dark: #04336B;
  --navy-deep: #03234a;
  --navy-black: #021a38;
  --royal-azure: #0071CE;
  --azure-glow: rgba(0, 113, 206, 0.35);
  --azure-light: #eff6ff;
  --azure-hover: #005bb5;
  --canvas-bg: #f4f6fa;
  --card-bg: rgba(255, 255, 255, 0.85);
  --glass-bg: rgba(255, 255, 255, 0.75);
  --glass-border: rgba(255, 255, 255, 0.85);
  --border-subtle: #e2e8f0;
  --border-strong: #cbd5e1;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --font-serif: 'Cinzel', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --transition-fast: 160ms cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
  font-family: var(--font-sans);
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* 6% Background Watermark Layer using Official Site Icon */
.vault-watermark-bg {
  position: fixed;
  top: 50%;
  left: 58%;
  transform: translate(-50%, -50%);
  width: 550px;
  height: 550px;
  background-image: url('../assets/brand/watermark.png');
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  opacity: 0.05;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

/* Master App Shell - Dedicated Sidebar on Left, Content on Right (Fixed 100vh Viewport) */
.app-shell {
  display: flex;
  height: 100vh;
  max-height: 100vh;
  width: 100vw;
  overflow: hidden;
  position: relative;
  z-index: 10;
}

/* Full-Height Dedicated Sidebar */
.app-sidebar {
  width: 255px;
  background: linear-gradient(180deg, #04336B 0%, #03234a 55%, #021a38 100%);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  padding: 1.25rem 0.85rem;
  flex-shrink: 0;
  height: 100vh;
  position: sticky;
  top: 0;
  overflow-y: auto;
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.15);
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
  z-index: 60;
}

/* Modern WebKit Scrollbar (No default ugly Chrome scrollbar) */
.app-sidebar::-webkit-scrollbar {
  width: 4px;
}

.app-sidebar::-webkit-scrollbar-track {
  background: transparent;
}

.app-sidebar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.18);
  border-radius: 9999px;
  transition: background var(--transition-fast);
}

.app-sidebar::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.4);
}

/* Sidebar Brand Header (Logo in sidebar) */
.sidebar-brand {
  padding: 0.5rem 0.5rem 1.25rem 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sidebar-brand a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  text-decoration: none;
}

.sidebar-brand-img {
  max-height: 44px;
  width: auto;
  max-width: 90%;
  object-fit: contain;
  transition: transform var(--transition-fast);
}

.sidebar-brand-img:hover {
  transform: scale(1.02);
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;
}

/* Modern Nav Links with Vibrant Squircle Boxed Icons */
.nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.45rem 0.65rem;
  border-radius: 10px;
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 500;
  transition: all var(--transition-fast);
  position: relative;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  transform: translateX(2px);
}

.nav-link.active {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-weight: 700;
  border-left: 3.5px solid #38bdf8;
  padding-left: calc(0.65rem - 3.5px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2), inset 0 0 0 1px rgba(255, 255, 255, 0.15);
}

/* Rich Saturated Boxed Squircle Icons (High-contrast against dark navy) */
.nav-icon-box {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: all var(--transition-fast);
}

.nav-link.active .nav-icon-box {
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.35), 0 3px 8px rgba(0, 0, 0, 0.35);
  transform: scale(1.06);
}

.nav-link:hover .nav-icon-box {
  transform: scale(1.08);
}

.nav-icon-box svg,
.nav-icon-box i {
  width: 16px !important;
  height: 16px !important;
  stroke: #ffffff !important;
  stroke-width: 2.2 !important;
}

/* Right Content Column (Topbar + Scrollable Main Content + Permanently Static Footer) */
.app-content-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100vh;
  max-height: 100vh;
  overflow: hidden;
}

/* Master Topbar Header - Fixed at Top of Content Column */
.app-header {
  height: 60px;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: var(--navy-dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.75rem;
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
  z-index: 50;
  gap: 1.25rem;
}

/* Topbar Interactive Breadcrumbs (Zero hardcoded redundant app titles) */
.topbar-breadcrumbs {
  display: flex;
  align-items: center;
  min-width: 0;
  overflow: hidden;
}

.breadcrumb-list {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0.3rem;
  flex-wrap: nowrap;
}

.breadcrumb-item {
  display: inline-flex;
  align-items: center;
  font-size: 0.82rem;
  white-space: nowrap;
}

.breadcrumb-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #64748b;
  text-decoration: none;
  font-weight: 500;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  transition: all var(--transition-fast);
}

.breadcrumb-link:hover {
  color: var(--royal-azure);
  background: rgba(0, 113, 206, 0.08);
}

.breadcrumb-link .breadcrumb-icon {
  width: 14px;
  height: 14px;
  stroke: var(--royal-azure);
  flex-shrink: 0;
}

.breadcrumb-current {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--navy-dark);
  font-weight: 700;
  padding: 0.25rem 0.5rem;
}

.breadcrumb-current .breadcrumb-icon {
  width: 14px;
  height: 14px;
  stroke: var(--royal-azure);
  flex-shrink: 0;
}

.breadcrumb-separator {
  display: inline-flex;
  align-items: center;
  color: #94a3b8;
  user-select: none;
  padding: 0 0.05rem;
}

.breadcrumb-separator i,
.breadcrumb-separator svg {
  width: 13px;
  height: 13px;
  stroke-width: 2.2;
}

/* Topbar Global Search */
.topbar-search-wrapper {
  position: relative;
  flex: 1;
  max-width: 380px;
}

.topbar-search-input {
  width: 100%;
  height: 38px;
  border-radius: 9999px;
  background: #f1f5f9;
  border: 1px solid var(--border-subtle);
  padding: 0 2.25rem 0 2.5rem;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--navy-dark);
  transition: all var(--transition-fast);
}

.topbar-search-input:focus {
  outline: none;
  background: #ffffff;
  border-color: #0071CE;
  box-shadow: 0 0 0 3px rgba(0, 113, 206, 0.12);
}

.topbar-search-icon {
  position: absolute;
  left: 0.95rem;
  top: 50%;
  transform: translateY(-50%);
  width: 15px;
  height: 15px;
  color: #94a3b8;
  pointer-events: none;
}

.topbar-search-kbd {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.68rem;
  font-weight: 700;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  padding: 0.1rem 0.35rem;
  pointer-events: none;
}

/* Master Topbar Live World Clocks Pill */
.topbar-clocks-pill {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: #f8fafc;
  border: 1px solid var(--border-subtle);
  border-radius: 9999px;
  padding: 0.32rem 0.85rem;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--navy-dark);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
  white-space: nowrap;
  flex-shrink: 0;
}

.topbar-clocks-pill .clock-date-group,
.topbar-clocks-pill .clock-zone-group {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.topbar-clocks-pill .clock-icon {
  width: 13px;
  height: 13px;
  color: #64748b;
  flex-shrink: 0;
}

.topbar-clocks-pill .clock-tabular-text {
  font-variant-numeric: tabular-nums;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-weight: 600;
  font-size: 0.76rem;
  letter-spacing: -0.01em;
  color: #1e293b;
}

.topbar-clocks-pill .clock-divider {
  color: #cbd5e1;
  font-weight: 300;
  font-size: 0.75rem;
  user-select: none;
}

.topbar-clocks-pill .clock-badge {
  font-size: 0.64rem;
  font-weight: 700;
  padding: 0.12rem 0.35rem;
  border-radius: 4px;
  line-height: 1;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.topbar-clocks-pill .clock-badge-cst {
  background: rgba(245, 158, 11, 0.14);
  color: #b45309;
}

.topbar-clocks-pill .clock-badge-est {
  background: rgba(0, 113, 206, 0.12);
  color: #0071ce;
}

.topbar-clocks-pill .clock-badge-adt {
  background: rgba(16, 185, 129, 0.14);
  color: #047857;
}

/* Responsiveness for Clocks */
@media (max-width: 1250px) {
  .topbar-clocks-pill .clock-date-group {
    display: none;
  }
  .topbar-clocks-pill .clock-divider:first-of-type {
    display: none;
  }
}

@media (max-width: 1050px) {
  .topbar-clocks-pill .clock-zone-group:last-of-type,
  .topbar-clocks-pill .clock-divider:last-of-type {
    display: none; /* Hide ADT on medium screens, keep CST & EST */
  }
}

@media (max-width: 820px) {
  .topbar-clocks-pill {
    display: none; /* Hide on small mobile to preserve topbar tap targets */
  }
}

/* Main Content Area - Only this container scrolls inside the viewport */
.app-main {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 1.75rem 2.25rem;
  width: 100%;
  background: radial-gradient(circle at 10% 10%, rgba(0, 113, 206, 0.05) 0%, transparent 45%), 
              radial-gradient(circle at 90% 85%, rgba(4, 51, 107, 0.05) 0%, transparent 50%), 
              #edf2f7;
  scrollbar-width: thin;
  scrollbar-color: rgba(4, 51, 107, 0.25) transparent;
}

.app-main::-webkit-scrollbar {
  width: 6px;
}

.app-main::-webkit-scrollbar-track {
  background: transparent;
}

.app-main::-webkit-scrollbar-thumb {
  background: rgba(4, 51, 107, 0.2);
  border-radius: 9999px;
}

.app-main::-webkit-scrollbar-thumb:hover {
  background: rgba(4, 51, 107, 0.4);
}

/* Static Footer - Permanently Docked at Bottom of Viewport (Always Visible) */
.app-footer {
  height: 40px;
  flex-shrink: 0;
  background: #ffffff;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.75rem;
  font-size: 0.76rem;
  width: 100%;
  border-top: 1px solid var(--border-subtle);
  z-index: 45;
  box-shadow: 0 -1px 4px rgba(0, 0, 0, 0.02);
}

/* Bento Grid System with Glassmorphism */
.bento-grid {
  display: grid;
  gap: 1.25rem;
}

.bento-grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
}

.bento-grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
}

/* Modern Bento Card Variations with Rich Depth & Hierarchy */
.bento-card {
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--radius-xl);
  padding: 1.4rem;
  box-shadow: 0 4px 16px -2px rgba(15, 23, 42, 0.05), 0 2px 4px -1px rgba(15, 23, 42, 0.03);
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.bento-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px -4px rgba(4, 51, 107, 0.12);
  border-color: rgba(0, 113, 206, 0.3);
}

/* 1. Flagship Card: All Clients / Master Directory (Clean Light SaaS Card matching other 3) */
.bento-card-flagship {
  background: linear-gradient(180deg, #ffffff 0%, #f0f7ff 100%);
  border: 1px solid rgba(0, 113, 206, 0.25);
  border-top: 4px solid #0071CE;
  border-radius: var(--radius-xl);
  padding: 1.45rem;
  box-shadow: 0 8px 24px -4px rgba(0, 113, 206, 0.12);
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.bento-card-flagship:hover {
  transform: translateY(-3px);
  border-color: #0071CE;
  box-shadow: 0 16px 36px -6px rgba(0, 113, 206, 0.22);
}

/* 2. Active Operations Card: Current Clients (Warm Flame Amber Accent - Distinct from Azure Blue) */
.bento-card-active {
  background: linear-gradient(180deg, #ffffff 0%, #fffdf5 100%);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-top: 4px solid #f59e0b;
  border-radius: var(--radius-xl);
  padding: 1.45rem;
  box-shadow: 0 8px 24px -4px rgba(245, 158, 11, 0.12);
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.bento-card-active:hover {
  transform: translateY(-3px);
  border-color: #f59e0b;
  box-shadow: 0 16px 36px -6px rgba(245, 158, 11, 0.22);
}

/* 3. Milestone / Archive Card: Previous Clients (Royal Violet Accent) */
.bento-card-previous {
  background: linear-gradient(180deg, #ffffff 0%, #faf5ff 100%);
  border: 1px solid rgba(139, 92, 246, 0.25);
  border-top: 4px solid #8b5cf6;
  border-radius: var(--radius-xl);
  padding: 1.45rem;
  box-shadow: 0 8px 24px -4px rgba(139, 92, 246, 0.12);
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.bento-card-previous:hover {
  transform: translateY(-3px);
  border-color: #8b5cf6;
  box-shadow: 0 16px 36px -6px rgba(139, 92, 246, 0.22);
}

/* 4. Partner Network Card: Referral Agents (Vibrant Emerald Green Accent) */
.bento-card-referral {
  background: linear-gradient(180deg, #ffffff 0%, #f0fdf4 100%);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-top: 4px solid #10b981;
  border-radius: var(--radius-xl);
  padding: 1.45rem;
  box-shadow: 0 8px 24px -4px rgba(16, 185, 129, 0.12);
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.bento-card-referral:hover {
  transform: translateY(-3px);
  border-color: #10b981;
  box-shadow: 0 16px 36px -6px rgba(16, 185, 129, 0.22);
}

/* 5. Cryptographic Trash Vault Strip */
.bento-card-trash {
  background: linear-gradient(90deg, #ffffff 0%, #fff7ed 50%, #f0fdf4 100%);
  border: 1px solid rgba(249, 115, 22, 0.25);
  border-left: 4px solid #ea580c;
  border-radius: 16px;
  padding: 1.15rem 1.75rem;
  box-shadow: 0 8px 24px -4px rgba(234, 88, 12, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.65rem;
  transition: all var(--transition-fast);
}

.bento-card-trash:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px -6px rgba(234, 88, 12, 0.16);
  border-color: rgba(234, 88, 12, 0.4);
}

/* Re-Enhanced Modern SaaS Welcome Card */
.welcome-hero-card {
  background: radial-gradient(circle at 15% 20%, #0071CE 0%, #04336B 60%, #021a38 100%);
  border-radius: var(--radius-xl);
  padding: 2.25rem 2.5rem;
  color: #ffffff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 16px 40px -8px rgba(0, 113, 206, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.15);
  margin-bottom: 1.75rem;
}

.welcome-quick-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  font-size: 0.74rem;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.welcome-quick-chip:hover {
  background: rgba(255, 255, 255, 0.28);
  border-color: #ffffff;
  transform: translateY(-1px);
}

/* Buttons with Animated Micro-Interactions */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.55rem 1.15rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--transition-fast);
  text-decoration: none;
  font-family: inherit;
  position: relative;
  overflow: hidden;
}

.btn-animated svg {
  transition: transform var(--transition-fast);
}

.btn-animated:hover svg {
  transform: translateX(3px);
}

.btn-primary {
  background: linear-gradient(135deg, #0071CE 0%, #005bb5 100%);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 113, 206, 0.25);
}

.btn-primary:hover {
  box-shadow: 0 6px 18px rgba(0, 113, 206, 0.4);
  transform: translateY(-1px);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-strong);
  color: var(--navy-dark);
}

.btn-outline:hover {
  background: #ffffff;
  border-color: var(--royal-azure);
  color: var(--royal-azure);
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.btn-outline-white {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

.btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: #ffffff;
  transform: translateY(-1px);
}

.btn-danger {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.25);
}

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

/* User Profile Dropdown Menu in Top Bar */
.user-menu-dropdown {
  position: absolute;
  top: 56px;
  right: 1.5rem;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 16px 40px -8px rgba(0, 0, 0, 0.2);
  border-radius: var(--radius-lg);
  width: 270px;
  padding: 0.65rem;
  display: none;
  z-index: 100;
  animation: dropdownFade 160ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes dropdownFade {
  from { opacity: 0; transform: translateY(-6px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.75rem;
  border-radius: var(--radius-sm);
  color: #334155;
  text-decoration: none;
  font-size: 0.825rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.dropdown-item:hover {
  background: #f1f5f9;
  color: var(--navy-dark);
}

.dropdown-divider {
  height: 1px;
  background: var(--border-subtle);
  margin: 0.4rem 0;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.22rem 0.55rem;
  border-radius: 9999px;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1;
}

.badge-blue { background-color: #e0f2fe; color: #0284c7; }
.badge-navy { background-color: rgba(255, 255, 255, 0.15); color: #ffffff; }
.badge-green { background-color: #dcfce7; color: #15803d; }
.badge-amber { background-color: #fef3c7; color: #b45309; }
.badge-red { background-color: #fee2e2; color: #b91c1c; }
.badge-purple { background-color: #f3e8ff; color: #7e22ce; }
.badge-teal { background-color: #ccfbf1; color: #0f766e; }
.badge-slate { background-color: #f1f5f9; color: #475569; }

/* Toast Notifications */
.toast-container {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  pointer-events: none;
}

.toast-item {
  pointer-events: auto;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.95rem 1.15rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 14px 35px -6px rgba(0, 0, 0, 0.18), 0 0 0 1px rgba(255, 255, 255, 0.8);
  width: 340px;
  position: relative;
  overflow: hidden;
  animation: toastSlideIn 220ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.toast-item.toast-leave {
  animation: toastSlideOut 180ms cubic-bezier(0.4, 0, 1, 1) forwards;
}

@keyframes toastSlideIn {
  from { opacity: 0; transform: translateX(40px) scale(0.96); }
  to { opacity: 1; transform: translateX(0) scale(1); }
}

@keyframes toastSlideOut {
  from { opacity: 1; transform: translateX(0); }
  to { opacity: 0; transform: translateX(50px) scale(0.94); }
}

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

.toast-content {
  flex: 1;
}

.toast-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--navy-dark);
  margin-bottom: 0.15rem;
}

.toast-message {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.35;
}

.toast-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: rgba(0, 0, 0, 0.1);
  width: 100%;
}

.toast-progress-bar {
  height: 100%;
  width: 100%;
  animation: toastProgress 3.5s linear forwards;
}

@keyframes toastProgress {
  from { width: 100%; }
  to { width: 0%; }
}

.toast-success .toast-icon { background: #dcfce7; color: #16a34a; }
.toast-success .toast-progress-bar { background: #16a34a; }

.toast-error .toast-icon { background: #fee2e2; color: #dc2626; }
.toast-error .toast-progress-bar { background: #dc2626; }

.toast-warning .toast-icon { background: #fef3c7; color: #d97706; }
.toast-warning .toast-progress-bar { background: #d97706; }

.toast-info .toast-icon { background: #e0f2fe; color: #0284c7; }
.toast-info .toast-progress-bar { background: #0284c7; }

/* Confirmation Modal */
.confirm-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 51, 107, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.confirm-card {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-xl);
  box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.25);
  width: 100%;
  max-width: 410px;
  padding: 1.75rem 1.65rem;
  text-align: center;
  animation: modalEnter 180ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.confirm-icon-box {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  margin: 0 auto 1.15rem auto;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.confirm-icon-box::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: inherit;
  opacity: 0.3;
  animation: pulseGlow 1.8s infinite;
}

@keyframes pulseGlow {
  0% { transform: scale(1); opacity: 0.35; }
  50% { transform: scale(1.15); opacity: 0.1; }
  100% { transform: scale(1); opacity: 0.35; }
}

.confirm-danger { background: #fee2e2; color: #dc2626; }
.confirm-warning { background: #fef3c7; color: #d97706; }
.confirm-info { background: #e0f2fe; color: #0284c7; }

/* ========================================================================== */
/* EXECUTIVE BENTO FORM DESIGN SYSTEM                                         */
/* ========================================================================== */

/* 1. Base Form Controls (Inputs, Selects, Textareas) */
.form-input, .form-select, .form-textarea {
  width: 100%;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--navy-dark, #021a38);
  background-color: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  padding: 0.6rem 0.95rem;
  box-shadow: 0 1px 2px 0 rgba(15, 23, 42, 0.04);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-sizing: border-box;
}

.form-input, .form-select {
  height: 42px;
}

.form-textarea {
  min-height: 86px;
  line-height: 1.55;
  resize: vertical;
}

/* Hover State */
.form-input:hover, .form-select:hover, .form-textarea:hover {
  border-color: #94a3b8;
  background-color: #ffffff;
  box-shadow: 0 2px 5px -1px rgba(15, 23, 42, 0.06);
}

/* Active & Focused State */
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  background-color: #ffffff;
  border-color: #0071CE;
  box-shadow: 0 0 0 3.5px rgba(0, 113, 206, 0.16), 0 1px 2px 0 rgba(15, 23, 42, 0.04);
}

/* Placeholder Styling */
.form-input::placeholder, .form-textarea::placeholder {
  color: #94a3b8;
  font-weight: 400;
  opacity: 1;
}

/* Disabled & Read-only State */
.form-input:disabled, .form-select:disabled, .form-textarea:disabled,
.form-input[readonly], .form-textarea[readonly] {
  background-color: #f8fafc;
  border-color: #e2e8f0;
  color: #64748b;
  cursor: not-allowed;
  box-shadow: none;
}

/* 2. Custom Select Dropdown with Clean SVG Chevron */
.form-select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23475569' stroke-width='2.2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  background-size: 15px;
  padding-right: 2.5rem;
  cursor: pointer;
}

.form-select:hover {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%230071CE' stroke-width='2.2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
}

/* 3. Form Labels (Proportionate, Clean, Modern SaaS Standard) */
.form-label, 
label.form-label,
label:not([class*="badge"]):not([class*="chip"]):not([class*="perm-"]):not([class*="folder-"]):not([class*="form-check"]):not([class*="switch"]):not([class*="toggle"]):not(.btn):not(.btn-action-pill):not([data-color]),
.vault-modal-body label:not([class*="badge"]):not([class*="chip"]):not([class*="perm-"]):not([class*="folder-"]):not([class*="form-check"]):not([class*="switch"]):not([class*="toggle"]):not(.btn):not([data-color]),
.bento-card label:not([class*="badge"]):not([class*="chip"]):not([class*="perm-"]):not([class*="folder-"]):not([class*="form-check"]):not([class*="switch"]):not([class*="toggle"]):not(.btn):not([data-color]),
form label:not([class*="badge"]):not([class*="chip"]):not([class*="perm-"]):not([class*="folder-"]):not([class*="form-check"]):not([class*="switch"]):not([class*="toggle"]):not(.btn):not([data-color]),
.modal-body label:not([class*="badge"]):not([class*="chip"]):not([class*="perm-"]):not([class*="folder-"]):not([class*="form-check"]):not([class*="switch"]):not([class*="toggle"]):not(.btn):not([data-color]) {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.72rem !important;
  font-weight: 600 !important;
  color: #334155 !important;
  letter-spacing: 0.012em;
  margin-bottom: 0.3rem !important;
  line-height: 1.35;
  text-transform: none;
}

/* Required asterisk styling */
.form-label .required, label .required {
  color: #e11d48;
  margin-left: 2px;
  font-weight: 700;
}

/* Helper text & hints */
.form-hint, .form-help, .form-text {
  font-size: 0.70rem;
  color: #64748b;
  font-weight: 500;
  margin-top: 0.28rem;
  margin-bottom: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  line-height: 1.35;
}

/* 4. Form Groups & Fieldsets */
.form-group {
  margin-bottom: 1rem;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 1.15rem;
}

/* 5. Input Groups with Icons */
.input-icon-wrapper {
  position: relative;
  width: 100%;
}

.input-icon-wrapper .input-left-icon,
.input-icon-wrapper > i:first-child,
.input-icon-wrapper > svg:first-child {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: #64748b;
  pointer-events: none;
  transition: color 0.15s ease;
}

.input-icon-wrapper:focus-within .input-left-icon,
.input-icon-wrapper:focus-within > i:first-child,
.input-icon-wrapper:focus-within > svg:first-child {
  color: #0071CE;
}

.input-icon-wrapper .form-input {
  padding-left: 2.5rem;
}

/* 6. Form Sections & Micro-Cards inside Modals */
.form-section-card {
  background: #f8fafc;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 12px;
  padding: 1.15rem;
  margin-bottom: 1.25rem;
}

.form-section-title {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #0071CE;
  font-weight: 800;
  margin: 0 0 0.85rem 0;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

/* 7. Checkboxes & Radio Pills */
input[type="checkbox"], input[type="radio"] {
  accent-color: #0071CE;
  cursor: pointer;
}

.form-check-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--navy-dark, #021a38);
  background: #ffffff;
  padding: 0.4rem 0.75rem;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  cursor: pointer;
  transition: all 0.15s ease;
}

.form-check-pill:hover {
  background: #f8fafc;
  border-color: #94a3b8;
  transform: translateY(-1px);
}

.form-check-pill:has(input:checked) {
  background: #eff6ff;
  border-color: #60a5fa;
  color: #0071CE;
  box-shadow: 0 1px 3px rgba(0, 113, 206, 0.12);
}

/* 8. Validation States */
.is-invalid, .form-input.is-invalid, .form-select.is-invalid {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 3.5px rgba(239, 68, 68, 0.15) !important;
}

.invalid-feedback, .form-error {
  font-size: 0.72rem;
  color: #dc2626;
  font-weight: 600;
  margin-top: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

/* ========================================================================== */
/* RESPONSIVE DESIGN SUITE (iOS, Android Phones, iPad & Android Tablets)      */
/* ========================================================================== */

/* Mobile Toggle Button (Hidden on Desktop) */
.mobile-toggle-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  background: #ffffff;
  color: var(--navy-dark);
  cursor: pointer;
  flex-shrink: 0;
}

/* Off-Canvas Backdrop */
.sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 26, 56, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 998;
  display: none;
}

/* Tablets Portrait & Phones (<= 992px) */
@media (max-width: 992px) {
  .mobile-toggle-btn {
    display: inline-flex;
  }

  /* Off-Canvas Drawer Sidebar */
  .app-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 275px;
    height: 100vh;
    z-index: 1000;
    transform: translateX(-100%);
    transition: transform 240ms cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.35);
  }

  .app-sidebar.open {
    transform: translateX(0);
  }

  /* Full Width Content Column */
  .app-content-column {
    width: 100vw;
  }

  .app-header {
    padding: 0 1rem;
    height: 56px;
    gap: 0.75rem;
  }

  .topbar-search-wrapper {
    max-width: 240px;
  }

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

  .app-main {
    padding: 1.25rem 1rem;
  }

  .bento-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .bento-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .welcome-hero-card {
    padding: 1.75rem 1.5rem;
  }
}

/* Small Tablets & Mobile Phones (<= 768px) */
@media (max-width: 768px) {
  .bento-grid-4 {
    grid-template-columns: 1fr;
  }

  .bento-grid-3 {
    grid-template-columns: 1fr;
  }

  .topbar-brand-title,
  .topbar-breadcrumb-sep {
    display: none;
  }

  .topbar-search-wrapper {
    max-width: 160px;
  }

  .topbar-search-input {
    font-size: 0.75rem;
    padding: 0 1rem 0 2.2rem;
    height: 34px;
  }

  .topbar-search-icon {
    left: 0.75rem;
    width: 13px;
    height: 13px;
  }

  .bento-card-trash {
    flex-direction: column;
    align-items: stretch;
    text-align: left;
    padding: 1.25rem 1.25rem;
  }

  .bento-card-trash > div:last-child {
    justify-content: space-between;
    width: 100%;
  }

  .app-footer {
    padding: 0 1rem;
    font-size: 0.72rem;
    height: 38px;
  }

  .app-footer > div:last-child {
    display: none; /* Hide secondary details on mobile phones */
  }
}

/* Compact Mobile Phones (<= 480px, iPhone SE, Galaxy S, Pixel) */
@media (max-width: 480px) {
  .app-header {
    padding: 0 0.75rem;
  }

  .topbar-search-wrapper {
    display: none; /* Full header focus on navigation on narrow phones */
  }

  .welcome-hero-card {
    padding: 1.35rem 1.15rem;
    border-radius: 16px;
  }

  .welcome-hero-card h1 {
    font-size: 1.4rem !important;
  }

  .welcome-quick-chip {
    padding: 0.3rem 0.6rem;
    font-size: 0.72rem;
  }

  .bento-card,
  .bento-card-flagship,
  .bento-card-active,
  .bento-card-previous,
  .bento-card-referral {
    padding: 1.15rem 1.1rem;
    border-radius: 16px;
  }

  #user-profile-btn span:last-child {
    display: none; /* Show only name, hide role in pill on very small phones */
  }
}

/* ========================================================================== */
/* PHASE 2: MASTER CONTACTS DIRECTORY & CLIENT FOLDERS STYLING               */
/* ========================================================================== */

/* Filter Pills Navigation */
.cat-pills-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
}

.cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.95rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--border-subtle);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  transition: all var(--transition-fast);
  white-space: nowrap;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.cat-pill:hover {
  background: #ffffff;
  color: var(--navy-dark);
  border-color: var(--border-strong);
  transform: translateY(-1px);
}

.cat-pill.active {
  background: var(--navy-dark);
  color: #ffffff;
  border-color: var(--navy-dark);
  box-shadow: 0 4px 12px rgba(4, 51, 107, 0.2);
}

.cat-pill .pill-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 0.35rem;
  border-radius: 10px;
  font-size: 0.7rem;
  font-weight: 700;
  background: rgba(0, 0, 0, 0.06);
  color: inherit;
}

.cat-pill.active .pill-count {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

/* Tabulator Styling Luxury Polish */
.tabulator {
  font-family: var(--font-sans) !important;
  font-size: 0.84rem !important;
  background: #ffffff !important;
  border: 1px solid var(--border-subtle) !important;
  border-radius: var(--radius-md) !important;
  overflow: hidden !important;
  box-shadow: var(--shadow-sm) !important;
}

.tabulator .tabulator-header {
  background: #f8fafc !important;
  border-bottom: 1px solid var(--border-strong) !important;
  color: var(--text-muted) !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  font-size: 0.72rem !important;
  letter-spacing: 0.04em !important;
}

.tabulator .tabulator-header .tabulator-col {
  background: transparent !important;
  border-right: 1px solid rgba(0, 0, 0, 0.04) !important;
  padding: 0.75rem 0.65rem !important;
}

.tabulator .tabulator-header .tabulator-col.tabulator-sortable:hover {
  background: #f1f5f9 !important;
}

.tabulator .tabulator-row {
  background: #ffffff !important;
  border-bottom: 1px solid var(--border-subtle) !important;
  transition: background var(--transition-fast) !important;
}

.tabulator .tabulator-row:hover {
  background: rgba(0, 113, 206, 0.03) !important;
}

.tabulator .tabulator-row.tabulator-selected {
  background: rgba(0, 113, 206, 0.08) !important;
}

.tabulator .tabulator-cell {
  padding: 0.75rem 0.65rem !important;
  border-right: 1px solid transparent !important;
  vertical-align: middle !important;
  display: inline-flex !important;
  align-items: center !important;
}

.tabulator .tabulator-footer {
  background: #f8fafc !important;
  border-top: 1px solid var(--border-strong) !important;
  padding: 0.65rem 1rem !important;
  font-size: 0.8rem !important;
}

.tabulator-page {
  border-radius: 6px !important;
  border: 1px solid var(--border-subtle) !important;
  background: #ffffff !important;
  color: var(--text-main) !important;
  padding: 0.25rem 0.65rem !important;
  margin: 0 0.15rem !important;
  font-weight: 600 !important;
  transition: all var(--transition-fast) !important;
}

.tabulator-page.active {
  background: var(--royal-azure) !important;
  color: #ffffff !important;
  border-color: var(--royal-azure) !important;
}

/* Modals - Clean Glass Vault System */
.vault-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(2, 26, 56, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.vault-modal-backdrop.active {
  display: flex;
}

.vault-modal-dialog {
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 65px -15px rgba(2, 26, 56, 0.35);
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: modalEnter 220ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.vault-modal-dialog-lg {
  max-width: 840px;
}

.vault-modal-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f8fafc;
}

.vault-modal-body {
  padding: 1.5rem;
  overflow-y: auto;
  flex: 1;
}

.vault-modal-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border-subtle);
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
}

/* Batch Floating Action Bar */
.batch-floating-bar {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(120px);
  background: #021a38;
  color: #ffffff;
  padding: 0.75rem 1.35rem;
  border-radius: 9999px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  gap: 1.25rem;
  z-index: 990;
  transition: transform 260ms cubic-bezier(0.16, 1, 0.3, 1), opacity 260ms ease;
  opacity: 0;
  pointer-events: none;
}

.batch-floating-bar.active {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* Folder Card Grid */
.folder-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
}

.folder-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.35rem;
  transition: all var(--transition-fast);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

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

.folder-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--folder-accent, #0071CE);
}

/* ==========================================================================
   MASTER COLORED ACTION BUTTONS SYSTEM
   Semantic colors, micro-animations, tooltips, and elevated interaction
   ========================================================================== */
.btn-action-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  border: 1px solid transparent;
  transition: all 180ms cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
  flex-shrink: 0;
  text-decoration: none;
}

.btn-action-icon:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12);
}

.btn-action-icon:active {
  transform: translateY(0);
}

/* 1. View / Inspect Action (Azure / Sky Theme) */
.btn-action-view,
.btn-action-icon.view-btn {
  background: #eff6ff !important;
  border-color: #bfdbfe !important;
  color: #0284c7 !important;
}

.btn-action-view:hover,
.btn-action-icon.view-btn:hover {
  background: #0284c7 !important;
  border-color: #0284c7 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.3) !important;
}

.btn-action-view:hover i,
.btn-action-view:hover svg,
.btn-action-icon.view-btn:hover i,
.btn-action-icon.view-btn:hover svg {
  stroke: #ffffff !important;
}

/* 2. Edit / Modify Action (Amber / Gold Theme) */
.btn-action-edit,
.btn-action-icon.edit-btn {
  background: #fef3c7 !important;
  border-color: #fde68a !important;
  color: #d97706 !important;
}

.btn-action-edit:hover,
.btn-action-icon.edit-btn:hover {
  background: #d97706 !important;
  border-color: #d97706 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.3) !important;
}

.btn-action-edit:hover i,
.btn-action-edit:hover svg,
.btn-action-icon.edit-btn:hover i,
.btn-action-icon.edit-btn:hover svg {
  stroke: #ffffff !important;
}

/* 3. Delete / Trash / Purge Action (Rose / Red Theme) */
.btn-action-trash,
.btn-action-delete,
.btn-action-icon.trash-btn,
.btn-action-icon.delete-btn {
  background: #fee2e2 !important;
  border-color: #fecaca !important;
  color: #dc2626 !important;
}

.btn-action-trash:hover,
.btn-action-delete:hover,
.btn-action-icon.trash-btn:hover,
.btn-action-icon.delete-btn:hover {
  background: #dc2626 !important;
  border-color: #dc2626 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(220, 38, 38, 0.3) !important;
}

.btn-action-trash:hover i,
.btn-action-trash:hover svg,
.btn-action-delete:hover i,
.btn-action-delete:hover svg,
.btn-action-icon.trash-btn:hover i,
.btn-action-icon.trash-btn:hover svg {
  stroke: #ffffff !important;
}

/* 4. Restore / Recover Action (Emerald / Green Theme) */
.btn-action-restore,
.btn-action-icon.restore-btn {
  background: #ecfdf5 !important;
  border-color: #a7f3d0 !important;
  color: #059669 !important;
}

.btn-action-restore:hover,
.btn-action-icon.restore-btn:hover {
  background: #059669 !important;
  border-color: #059669 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.3) !important;
}

.btn-action-restore:hover i,
.btn-action-restore:hover svg,
.btn-action-icon.restore-btn:hover i,
.btn-action-icon.restore-btn:hover svg {
  stroke: #ffffff !important;
}

/* 5. Download / Export Action (Indigo / Violet Theme) */
.btn-action-download,
.btn-action-icon.download-btn {
  background: #eef2ff !important;
  border-color: #c7d2fe !important;
  color: #4f46e5 !important;
}

.btn-action-download:hover,
.btn-action-icon.download-btn:hover {
  background: #4f46e5 !important;
  border-color: #4f46e5 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.3) !important;
}

.btn-action-download:hover i,
.btn-action-download:hover svg,
.btn-action-icon.download-btn:hover i,
.btn-action-icon.download-btn:hover svg {
  stroke: #ffffff !important;
}

/* Colored Action Pills (Text + Icon) */
.btn-action-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border-radius: 9999px;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 0.35rem 0.85rem;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all 180ms ease;
  white-space: nowrap;
}

.btn-action-pill.view-pill {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #0284c7;
}

.btn-action-pill.view-pill:hover {
  background: #0284c7;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25);
}

.btn-action-pill.edit-pill {
  background: #fef3c7;
  border-color: #fde68a;
  color: #d97706;
}

.btn-action-pill.edit-pill:hover {
  background: #d97706;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.25);
}

.btn-action-pill.trash-pill {
  background: #fee2e2;
  border-color: #fecaca;
  color: #dc2626;
}

.btn-action-pill.trash-pill:hover {
  background: #dc2626;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.25);
}

.btn-action-pill.restore-pill {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #059669;
}

.btn-action-pill.restore-pill:hover {
  background: #059669;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.25);
}

.btn-action-pill.download-pill {
  background: #eef2ff;
  border-color: #c7d2fe;
  color: #4f46e5;
}

.btn-action-pill.download-pill:hover {
  background: #4f46e5;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
}

