/* ============================================
   ADMIN PANEL - CUSTOM STYLES
   Modern, Professional Design with Dark Mode
   ============================================ */

:root {
  /* Light Mode Colors */
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --primary-light: #818cf8;
  --secondary: #ec4899;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --info: #3b82f6;

  --bg-primary: #ffffff;
  --bg-secondary: #f9fafb;
  --bg-tertiary: #f3f4f6;
  --text-primary: #111827;
  --text-secondary: #6b7280;
  --text-tertiary: #9ca3af;
  --border-color: #e5e7eb;

  /* Brand Specific (Perfect Life) */
  --brand-red: #F56B6B;
  --brand-red-hover: #E85A5A;
  --brand-bg: #FFF5F5;
  --text-dark: #333;
  --text-light: #666;
  --brand-border: #E0E0E0;

  --sidebar-width: 280px;
  --header-height: 70px;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);

  /* Glass Effect */
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.18);
}

/* Dark Mode Colors */
[data-theme="dark"] {
  --bg-primary: #0f172a;
  --bg-secondary: #1e293b;
  --bg-tertiary: #334155;
  --text-primary: #f1f5f9;
  --text-secondary: #cbd5e1;
  --text-tertiary: #94a3b8;
  --border-color: #334155;

  --glass-bg: rgba(30, 41, 59, 0.7);
  --glass-border: rgba(255, 255, 255, 0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* ============================================
   ANIMATED GRADIENT BACKGROUND
   ============================================ */
.gradient-bg {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  position: relative;
  overflow: hidden;
}

.gradient-bg::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg,
      transparent,
      rgba(255, 255, 255, 0.1),
      transparent);
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
  }

  100% {
    transform: translateX(100%) translateY(100%) rotate(45deg);
  }
}

/* Animated Particles */
.particles {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.particle {
  position: absolute;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  animation: float 15s infinite;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0) translateX(0);
    opacity: 0;
  }

  10% {
    opacity: 1;
  }

  90% {
    opacity: 1;
  }

  100% {
    transform: translateY(-100vh) translateX(50px);
    opacity: 0;
  }
}

/* ============================================
   GLASSMORPHISM EFFECTS
   ============================================ */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-xl);
}

.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  box-shadow: var(--shadow-2xl);
  transition: all 0.3s ease;
}

.glass-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.3);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.6);
}

.btn-secondary {
  background: linear-gradient(135deg, var(--secondary) 0%, #db2777 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(236, 72, 153, 0.4);
}

.btn-success {
  background: linear-gradient(135deg, var(--success) 0%, #059669 100%);
  color: white;
}

.btn-danger {
  background: linear-gradient(135deg, var(--danger) 0%, #dc2626 100%);
  color: white;
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: white;
}

/* ============================================
   FORM ELEMENTS
   ============================================ */
.form-input {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid var(--border-color);
  border-radius: 0.5rem;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.9rem;
}

/* ============================================
   CARDS & STATS
   ============================================ */
.stat-card {
  background: var(--bg-primary);
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.stat-icon {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

/* ============================================
   METRONIC STYLE SIDEBAR (Clean & Tree Structure)
   ============================================ */
.sidebar {
  width: var(--sidebar-width);
  background: var(--bg-primary);
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  border-right: 1px solid var(--border-color);
  z-index: 1000;
  transition: transform 0.3s ease;
  overflow-y: auto;
  padding: 1rem 0;
}

.sidebar-logo {
  padding: 0 1.5rem 2rem 1.5rem;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.sidebar-logo i {
  color: var(--brand-red);
}

.sidebar-menu {
  list-style: none;
  padding: 0 1rem;
}

.sidebar-section-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 1.5rem 0 0.5rem 0.5rem;
}

.sidebar-item {
  margin-bottom: 0.25rem;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.75rem;
  border-radius: 0.375rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.2s ease;
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
}

.sidebar-link:hover {
  background: var(--bg-tertiary);
  color: var(--brand-red);
}

.sidebar-link.active {
  background: var(--bg-tertiary);
  color: var(--brand-red);
  font-weight: 600;
}

.sidebar-link i {
  font-size: 1.1rem;
  width: 20px;
  text-align: center;
  color: var(--text-tertiary);
  transition: color 0.2s;
}

.sidebar-link:hover i,
.sidebar-link.active i {
  color: var(--brand-red);
}

/* Sidebar Dropdown & Tree Structure */
.sidebar-dropdown-toggle .dropdown-icon {
  margin-left: auto;
  font-size: 0.8rem !important;
  width: auto !important;
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
}

/* Use CSS for Plus/Minus to keep JS simple */
.sidebar-dropdown-toggle .dropdown-icon::before {
  content: "\2b";
  /* Plus icon */
}

.sidebar-item.active>.sidebar-dropdown-toggle .dropdown-icon::before {
  content: "\f068";
  /* Minus icon (unicode for fa-minus) */
}

/* Hide standard rotation since we swich icons */
.sidebar-item.active .dropdown-icon {
  transform: none !important;
}


.sidebar-submenu {
  list-style: none;
  display: none;
  /* Hidden by default */
  padding-left: 18px;
  /* Indent content */
  margin-left: 0.8rem;
  /* Align lines */
  border-left: 1px solid var(--border-color);
  margin-top: 0.25rem;
}

.sidebar-submenu.active {
  display: block;
}

.sidebar-submenu .sidebar-item {
  margin-bottom: 0;
}

.sidebar-submenu .sidebar-link {
  padding: 0.5rem 0.75rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  background: transparent !important;
  /* No bg for subitems */
  border-radius: 0;
}

.sidebar-submenu .sidebar-link::before {
  content: '';
  position: absolute;
  left: -19px;
  /* Extend to the border line */
  top: 50%;
  width: 10px;
  height: 1px;
  background: var(--border-color);
}

.sidebar-submenu .sidebar-link:hover {
  color: var(--brand-red);
  transform: translateX(3px);
}

.sidebar-submenu .sidebar-link.active {
  color: var(--brand-red);
  font-weight: 600;
}

.sidebar-submenu .sidebar-link i {
  font-size: 0.4rem;
  /* Bullet points optionally */
  width: 10px;
}

/* Mobile Sidebar */
@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
  }

  .sidebar.active {
    transform: translateX(0);
  }
}

/* ============================================
   HEADER
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: var(--sidebar-width);
  right: 0;
  height: var(--header-height);
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border-color);
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 999;
  transition: all 0.3s ease;
}

@media (max-width: 768px) {
  .header {
    left: 0;
  }
}

/* ============================================
   MAIN CONTENT
   ============================================ */
.main-content {
  margin-left: var(--sidebar-width);
  margin-top: var(--header-height);
  padding: 2rem;
  min-height: calc(100vh - var(--header-height));
}

@media (max-width: 768px) {
  .main-content {
    margin-left: 0;
  }
}

/* ============================================
   TABLES
   ============================================ */
.table-container {
  background: var(--bg-primary);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table thead {
  background: var(--bg-tertiary);
}

.data-table th {
  padding: 1rem;
  text-align: left;
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.data-table td {
  padding: 1rem;
  border-top: 1px solid var(--border-color);
  color: var(--text-secondary);
}

.data-table tbody tr {
  transition: all 0.2s ease;
}

.data-table tbody tr:hover {
  background: var(--bg-secondary);
}

/* ============================================
   BADGES
   ============================================ */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.375rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-success {
  background: rgba(16, 185, 129, 0.1);
  color: var(--success);
}

.badge-warning {
  background: rgba(245, 158, 11, 0.1);
  color: var(--warning);
}

.badge-danger {
  background: rgba(239, 68, 68, 0.1);
  color: var(--danger);
}

.badge-info {
  background: rgba(59, 130, 246, 0.1);
  color: var(--info);
}

.badge-primary {
  background: rgba(99, 102, 241, 0.1);
  color: var(--primary);
}

/* ============================================
   MODALS
   ============================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: var(--bg-primary);
  border-radius: 1rem;
  padding: 2rem;
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-2xl);
  transform: scale(0.9);
  transition: all 0.3s ease;
}

.modal-overlay.active .modal-content {
  transform: scale(1);
}

/* ============================================
   UTILITIES
   ============================================ */
.fade-in {
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.pulse {
  animation: pulse 2s infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-tertiary);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1024px) {
  :root {
    --sidebar-width: 240px;
  }
}

@media (max-width: 768px) {
  .main-content {
    padding: 1rem;
  }

  .header {
    padding: 0 1rem;
  }
}

/* ============================================
   PREMIUM MULTI-STEP FORM STYLES
   ============================================ */
.premium-form-container {
  max-width: 800px;
  margin: 0 auto;
  background: var(--bg-primary);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  font-family: 'Inter', sans-serif;
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.form-header {
  padding: 20px;
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 15px;
}

.form-header h2 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-dark);
  margin: 0;
}

.back-btn {
  background: none;
  border: none;
  font-size: 1.2rem;
  color: var(--text-dark);
  cursor: pointer;
}

.progress-bar {
  height: 6px;
  background: var(--bg-tertiary);
  width: 100%;
  position: relative;
}

.progress-fill {
  height: 100%;
  background: var(--brand-red);
  width: 20%;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.step-content {
  padding: 30px;
  display: none;
  animation: slideIn 0.4s ease-out;
}

.step-content.active {
  display: block;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(20px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 640px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

/* Pill Selection */
.pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill-radio {
  display: none;
}

.pill-label {
  padding: 10px 20px;
  border: 1px solid var(--brand-border);
  border-radius: 25px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  color: var(--text-light);
  font-weight: 500;
  background: var(--bg-primary);
  font-size: 0.9rem;
}

.pill-radio:checked+.pill-label {
  background: var(--brand-bg);
  border-color: var(--brand-red);
  color: var(--brand-red);
  box-shadow: 0 2px 8px rgba(245, 107, 107, 0.15);
}

/* Multi-select Tags Wrapper */
.tags-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.tag-checkbox {
  display: none;
}

.tag-label {
  padding: 6px 14px;
  border: 1px solid var(--brand-border);
  border-radius: 8px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
  background: var(--bg-secondary);
  color: var(--text-light);
}

.tag-checkbox:checked+.tag-label {
  background: var(--brand-red);
  color: #fff;
  border-color: var(--brand-red);
}

/* Inputs */
.custom-input,
.custom-select,
.form-control-premium {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--brand-border);
  border-radius: 10px;
  font-size: 0.95rem;
  color: var(--text-dark);
  background: var(--bg-primary);
  transition: border-color 0.2s;
  outline: none;
}

.custom-input:focus,
.custom-select:focus,
.form-control-premium:focus {
  border-color: var(--brand-red);
  box-shadow: 0 0 0 3px var(--brand-bg);
}

.input-group-premium {
  position: relative;
  border: 1px solid var(--brand-border);
  border-radius: 10px;
  padding: 20px 12px 6px;
  transition: all 0.2s;
  background: var(--bg-primary);
}

.input-group-premium label {
  position: absolute;
  top: 6px;
  left: 14px;
  font-size: 0.7rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0;
  pointer-events: none;
}

.input-group-premium .form-control {
  border: none;
  padding: 0;
  height: auto;
  background: transparent;
  box-shadow: none !important;
  width: 100%;
  outline: none;
}

/* Buttons */
.action-bar-premium {
  padding: 24px 30px;
  border-top: 1px solid var(--border-color);
  display: flex;
  gap: 15px;
}

.btn-next,
.btn-submit-premium {
  flex: 2;
  background: var(--brand-red);
  color: white;
  border: none;
  padding: 14px;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.btn-prev-premium {
  flex: 1;
  background: var(--bg-primary);
  color: var(--text-light);
  border: 1px solid var(--brand-border);
  padding: 14px;
  border-radius: 30px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
}

.btn-next:hover,
.btn-submit-premium:hover {
  background: var(--brand-red-hover);
  transform: translateY(-1px);
}

.members-section-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.members-section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-color);
}

.photo-upload-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 15px;
  margin-top: 10px;
}

.photo-box {
  aspect-ratio: 1;
  border: 2px dashed var(--brand-border);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-tertiary);
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}

.photo-box:hover {
  border-color: var(--brand-red);
  color: var(--brand-red);
  background: var(--brand-bg);
}

.photo-box input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

/* ============================================
   PROFESSIONAL DASHBOARD DESIGN (NEW)
   ============================================ */

/* Page Layout */
.dashboard-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.dashboard-header h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.dashboard-header p {
  color: var(--text-light);
  margin: 4px 0 0 36px;
  /* Align with text not icon */
  font-size: 0.9rem;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 3fr 1fr;
  gap: 24px;
  align-items: start;
}

@media (max-width: 1024px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
}

/* Card Styles */
.card-box {
  background: var(--bg-primary);
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  /* Very subtle shadow */
  border: 1px solid var(--border-color);
  margin-bottom: 24px;
  overflow: hidden;
}

.card-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
  font-weight: 600;
  color: var(--text-dark);
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fcfcfc;
}

.card-header i {
  color: var(--brand-red);
  /* Using brand accent */
  width: 20px;
  text-align: center;
}

.card-body {
  padding: 24px;
}

/* Professional Input Styles */
.pro-input-group {
  margin-bottom: 20px;
}

.pro-region-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-light);
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

.pro-input-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: #4b5563;
  /* Gray-600 */
  margin-bottom: 6px;
}

.pro-input-control {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #d1d5db;
  /* Gray-300 */
  border-radius: 6px;
  font-size: 0.95rem;
  color: #1f2937;
  /* Gray-800 */
  background: #fff;
  transition: all 0.2s;
  outline: none;
}

.pro-input-control::placeholder {
  color: #9ca3af;
  /* Gray-400 */
}

.pro-input-control:focus {
  border-color: var(--brand-red);
  /* Brand Color Focus */
  box-shadow: 0 0 0 3px rgba(245, 107, 107, 0.1);
}

.pro-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 640px) {
  .pro-grid-2 {
    grid-template-columns: 1fr;
  }
}

/* Radio/Checkbox Styles within Cards */
.pro-radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.pro-radio-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 0.95rem;
  color: var(--text-dark);
}

.pro-radio-input {
  accent-color: var(--brand-red);
  width: 16px;
  height: 16px;
}

/* DataTables Customization */
.dataTables_wrapper {
  padding: 0;
}

.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter {
  margin-bottom: 0;
}

.dataTables_wrapper .dataTables_length label,
.dataTables_wrapper .dataTables_filter label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.dataTables_wrapper .dataTables_length select {
  padding-left: 1rem;
  padding-right: 2.5rem;
  padding-top: 0.4rem;
  padding-bottom: 0.4rem;
  border-radius: 0.5rem;
  border-color: #e5e7eb;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 0.5rem center;
  background-repeat: no-repeat;
  background-size: 1.25em 1.25em;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  font-size: 0.875rem;
  min-width: 80px;
}

.dataTables_wrapper .dataTables_filter input {
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  border-width: 1px;
  border-color: #e5e7eb;
  font-size: 0.875rem;
  transition: all 0.2s;
  min-width: 250px;
}

.dataTables_wrapper .dataTables_filter input:focus,
.dataTables_wrapper .dataTables_length select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.dataTables_wrapper .dataTables_info {
  font-size: 0.875rem;
  color: var(--text-secondary);
  padding-top: 0 !important;
}

.dataTables_wrapper .dataTables_paginate {
  padding-top: 0 !important;
  display: flex;
  gap: 0.25rem;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
  padding: 0.4rem 0.75rem;
  margin: 0;
  border-radius: 0.5rem;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-secondary) !important;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
  background-color: var(--bg-tertiary) !important;
  color: var(--text-primary) !important;
  border-top-color: transparent !important;
  border-left-color: transparent !important;
  border-right-color: transparent !important;
  border-bottom-color: transparent !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
  background: var(--primary) !important;
  color: white !important;
  border-color: var(--primary) !important;
  box-shadow: 0 2px 4px rgba(99, 102, 241, 0.3);
}

.dataTables_wrapper .dataTables_paginate .paginate_button.disabled,
.dataTables_wrapper .dataTables_paginate .paginate_button.disabled:hover,
.dataTables_wrapper .dataTables_paginate .paginate_button.disabled:active {
  color: var(--text-tertiary) !important;
  cursor: not-allowed;
  background: transparent !important;
  box-shadow: none;
}

table.dataTable.no-footer {
  border-bottom: none;
}

.dataTable td {
  padding: 1rem 1.5rem;
  vertical-align: middle;
}

.dataTable thead th {
  padding: 1rem 1.5rem;
  background: #f9fafb;
  border-bottom: 1px solid var(--border-color);
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}

/* Fix sort icons position if needed */
table.dataTable thead .sorting,
table.dataTable thead .sorting_asc,
table.dataTable thead .sorting_desc {
  background-position: right 0.5rem center;
}

/* ============================================
   PROFILE VIEW — PREMIUM TAB NAVIGATION
   ============================================ */
.pv-tabs-nav {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  background: var(--bg-primary);
  border-bottom: 2px solid var(--border-color);
  padding: 0 8px;
  overflow-x: auto;
  flex-wrap: nowrap;
  margin-bottom: 20px;
  border-radius: 0;
}

.pv-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 12px 20px;
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  position: relative;
  bottom: -2px;
  border-radius: 8px 8px 0 0;
  text-decoration: none;
}

.pv-tab-btn i {
  font-size: 12px;
  opacity: 0.75;
}

.pv-tab-btn:hover {
  color: var(--primary);
  background: rgba(99, 102, 241, 0.05);
}

.pv-tab-btn.pv-active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  background: rgba(99, 102, 241, 0.06);
}

.pv-tab-btn .pv-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  background: #e2e8f0;
  color: #64748b;
  font-size: 10px;
  font-weight: 700;
  padding: 0 5px;
  transition: all 0.2s;
}

.pv-tab-btn.pv-active .pv-badge {
  background: var(--primary);
  color: #fff;
}

/* Tab Panes */
.pv-tab-pane {
  display: none;
  animation: pvTabIn 0.2s ease;
}

.pv-tab-pane.pv-active {
  display: block;
}

@keyframes pvTabIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   PROFILE VIEW — TABLE WRAPPERS
   ============================================ */
.tbl-wrap {
  width: 100%;
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  background: var(--bg-primary);
}

.tbl-wrap table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.tbl-wrap thead th {
  padding: 13px 18px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #64748b;
  background: #f8fafc;
  border-bottom: 2px solid #e2e8f0;
  white-space: nowrap;
}

.tbl-wrap thead th i {
  margin-right: 5px;
  font-size: 10px;
  opacity: 0.6;
}

.tbl-wrap tbody td {
  padding: 13px 18px;
  vertical-align: middle;
  border-bottom: 1px solid #f1f5f9;
  font-size: 13px;
  overflow: visible !important;
}

.tbl-wrap tbody tr:last-child td {
  border-bottom: none;
}

.tbl-wrap tbody tr {
  transition: background 0.15s;
}

.tbl-wrap tbody tr:hover {
  background: #f8faff;
}

/* th width helpers */
.th-id {
  width: 50px;
  text-align: center;
}

.th-status,
.th-actions {
  text-align: center;
}

/* ============================================
   BLOCK / IGNORE MEMBERS — PAGE HEADERS
   ============================================ */
.bm-page-header {
  background: linear-gradient(135deg, #dc2626 0%, #7f1d1d 100%);
  border-radius: 16px;
  padding: 24px 28px;
  margin-bottom: 20px;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.bm-page-header::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -5%;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.bm-page-header h1,
.im-page-header h1 {
  font-size: 22px;
  font-weight: 800;
  margin: 0;
  position: relative;
  z-index: 1;
}

.bm-page-header p,
.im-page-header p {
  font-size: 13px;
  opacity: 0.8;
  margin: 4px 0 0;
  position: relative;
  z-index: 1;
}

.im-page-header {
  background: linear-gradient(135deg, #7c3aed 0%, #4c1d95 100%);
  border-radius: 16px;
  padding: 24px 28px;
  margin-bottom: 20px;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.im-page-header::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -5%;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

/* DataTable overrides for tbl-wrap tables */
.tbl-wrap .dataTables_wrapper {
  overflow: visible;
}

.tbl-wrap .dataTables_wrapper .dataTables_filter,
.tbl-wrap .dataTables_wrapper .dataTables_length {
  margin: 12px 0;
}

.tbl-wrap_outer {
  padding: 0 20px 20px;
}

/* ============================================
   PREMIUM ACTION BUTTONS (Tables)
   ============================================ */
.action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 16px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 30px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  white-space: nowrap;
}

.action-btn i {
  font-size: 13px;
}

.action-btn-view {
  background: #eff6ff;
  color: #2563eb;
  border-color: #dbeafe;
}

.action-btn-view:hover {
  background: #2563eb;
  color: #fff;
  border-color: #2563eb;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
  transform: translateY(-1px);
}

.action-btn-edit {
  background: #f0fdf4;
  color: #16a34a;
  border-color: #dcfce7;
}

.action-btn-edit:hover {
  background: #16a34a;
  color: #fff;
  border-color: #16a34a;
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.25);
  transform: translateY(-1px);
}

.action-btn-delete,
.action-btn-reject {
  background: #fef2f2;
  color: #dc2626;
  border-color: #fee2e2;
}

.action-btn-delete:hover,
.action-btn-reject:hover {
  background: #dc2626;
  color: #fff;
  border-color: #dc2626;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.25);
  transform: translateY(-1px);
}

.action-btn-approve {
  background: #f0fdf4;
  color: #10b981;
  border-color: #d1fae5;
}

.action-btn-approve:hover {
  background: #10b981;
  color: #fff;
  border-color: #10b981;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
  transform: translateY(-1px);
}

.action-btn-more {
  background: #f8fafc;
  color: #64748b;
  border: 1px solid #e2e8f0;
}

.action-btn-more:hover {
  background: #e2e8f0;
  color: #334155;
  transform: translateY(-1px);
}

/* ============================================
   MEMBERS PAGE SPECIFIC STYLES
   ============================================ */

/* Page Header */
.page-header {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #4338ca 100%);
    border-radius: 20px;
    padding: 28px 32px;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 25px -5px rgba(30, 27, 75, 0.2);
}
.page-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(129,140,248,0.2) 0%, transparent 70%);
    border-radius: 50%;
}
.page-header::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: 20%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(99,102,241,0.15) 0%, transparent 70%);
    border-radius: 50%;
}
.page-header h1 {
    font-size: 24px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.02em;
    position: relative;
    z-index: 1;
    margin: 0;
}
.page-header p {
    color: rgba(199,210,254,0.8);
    font-size: 13px;
    margin-top: 4px;
    position: relative;
    z-index: 1;
}
.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    z-index: 1;
}
.header-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    text-decoration: none;
}
.header-btn-filter {
    background: rgba(255,255,255,0.12);
    color: #fff;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.15);
}
.header-btn-filter:hover {
    background: rgba(255,255,255,0.22);
    transform: translateY(-1px);
}
.header-btn-add {
    background: linear-gradient(135deg, #f97316 0%, #ef4444 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(239,68,68,0.4);
}
.header-btn-add:hover {
    box-shadow: 0 6px 25px rgba(239,68,68,0.5);
    transform: translateY(-2px);
}

/* Main Card */
.members-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 8px 30px rgba(0,0,0,0.04);
    border: 1px solid #f1f5f9;
}

/* ─── Quick Filter Strip ─── */
.quick-filter-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 20px;
    border-bottom: 1px solid #f1f5f9;
    background: linear-gradient(180deg, #f8faff 0%, #fff 100%);
    border-radius: 20px 20px 0 0;
}
.qf-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}
.qf-icon-wrap {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 12px;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(99,102,241,0.3);
}
.qf-filters-scroll {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    flex: 1;
    min-width: 0;
}
.qf-chip {
    padding: 8px 32px 8px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    color: #475569;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' fill='%2394a3b8' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E") right 12px center no-repeat;
    appearance: none;
    outline: none;
    transition: all 0.2s;
    cursor: pointer;
    white-space: nowrap;
}
.qf-chip:hover { border-color: #c7d2fe; background-color: #fafbff; }
.qf-chip:focus { border-color: #6366f1; box-shadow: 0 0 0 3px rgba(99,102,241,0.08); }

.qf-date-group {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 5px 12px;
    transition: all 0.2s;
}
.qf-date-group:hover { border-color: #c7d2fe; }
.qf-date-group:focus-within { border-color: #6366f1; box-shadow: 0 0 0 3px rgba(99,102,241,0.08); }
.qf-date-group label {
    font-size: 10px;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
}
.qf-date-group input[type="date"] {
    border: none;
    outline: none;
    font-size: 12px;
    font-weight: 500;
    color: #475569;
    background: transparent;
    padding: 2px 0;
    width: 120px;
    cursor: pointer;
}
.qf-go-btn {
    padding: 8px 20px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(99,102,241,0.25);
    flex-shrink: 0;
    white-space: nowrap;
}
.qf-go-btn:hover { box-shadow: 0 4px 15px rgba(99,102,241,0.4); transform: translateY(-1px); }

/* DataTables Overrides */
.dataTables_wrapper .dataTables_filter input {
    border: 1px solid #e2e8f0 !important;
    border-radius: 20px !important;
    padding: 8px 16px 8px 38px !important;
    font-size: 13px !important;
    background: #f8fafc url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='%2394a3b8' viewBox='0 0 16 16'%3E%3Cpath d='M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001c.03.04.062.078.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1.007 1.007 0 0 0-.115-.1zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0z'/%3E%3C/svg%3E") 14px center no-repeat !important;
    transition: all 0.2s !important;
    width: 240px !important;
    outline: none !important;
}
.dataTables_wrapper .dataTables_filter input:focus {
    border-color: #6366f1 !important;
    box-shadow: 0 0 0 3px rgba(99,102,241,0.08) !important;
    background-color: #fff !important;
}
.dataTables_wrapper .dataTables_length select {
    border: 1px solid #e2e8f0 !important;
    border-radius: 20px !important;
    padding: 6px 12px !important;
    font-size: 13px !important;
    outline: none !important;
}
.dataTables_wrapper .dataTables_info {
    font-size: 12px;
    color: #94a3b8;
    font-weight: 500;
    padding: 15px !important;
}
.dataTables_wrapper .dataTables_paginate {
    padding: 15px !important;
}
.dataTables_wrapper .dataTables_paginate .paginate_button {
    border-radius: 10px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    padding: 6px 12px !important;
    margin: 0 3px !important;
    border: 1px solid transparent !important;
}
.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: linear-gradient(135deg, #6366f1, #8b5cf6) !important;
    color: #fff !important;
    border: none !important;
    box-shadow: 0 4px 12px rgba(99,102,241,0.2) !important;
}

/* Offcanvas Filter Panel */
.filter-overlay { position: fixed; inset: 0; background: rgba(15,23,42,0.5); backdrop-filter: blur(4px); z-index: 1040; opacity: 0; visibility: hidden; transition: all 0.3s ease; }
.filter-overlay.active { opacity: 1; visibility: visible; }
.filter-panel { position: fixed; top: 0; right: -440px; width: 420px; max-width: 92vw; height: 100vh; background: #fff; z-index: 1050; box-shadow: -12px 0 40px rgba(0,0,0,0.1); transition: right 0.4s cubic-bezier(0.4,0,0.2,1); display: flex; flex-direction: column; }
.filter-panel.open { right: 0; }
.filter-panel .fp-header { padding: 24px 28px; border-bottom: 1px solid #f1f5f9; display: flex; align-items: center; justify-content: space-between; background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%); color: #fff; flex-shrink: 0; }
.filter-panel .fp-body { padding: 24px 28px; overflow-y: auto; flex: 1; }
.filter-panel .fp-footer { padding: 20px 28px; border-top: 1px solid #f1f5f9; display: flex; gap: 12px; flex-shrink: 0; background: #fafbff; }
.fp-label { font-size: 11px; font-weight: 700; color: #64748b; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 8px; display: block; }
.fp-input { width: 100%; padding: 10px 16px; border: 1px solid #e2e8f0; border-radius: 12px; font-size: 13px; outline: none; transition: all 0.2s; background: #f8fafc; color: #334155; font-weight: 500; }
.fp-input:focus { border-color: #6366f1; box-shadow: 0 0 0 3px rgba(99,102,241,0.08); background: #fff; }
.fp-group { margin-bottom: 20px; }
.fp-section-title { font-size: 12px; font-weight: 700; color: #334155; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 2px solid #e2e8f0; display: flex; align-items: center; gap: 8px; text-transform: uppercase; letter-spacing: 0.04em; }
.fp-section-title i { color: #6366f1; font-size: 11px; }
.fp-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* Filter badge */
.filter-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    border-radius: 10px;
    background: #f97316;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    padding: 0 6px;
    margin-left: 8px;
    box-shadow: 0 2px 6px rgba(249,115,22,0.4);
}

/* Dropdown Divider for listAction */
.dropdown-divider {
    height: 1px;
    background: #f1f5f9;
    margin: 8px 0;
}

/* Fix for z-index issues */
.z-999999 { z-index: 999999 !important; }

/* ============================================
   PREMIUM STATUS BADGES & INFO CHIPS
   ============================================ */

/* Status Badge Base */
.badge-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    border-radius: 30px;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.badge-status::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #fff;
    opacity: 0.8;
}

/* Info Chips (Soft Tags) */
.info-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
    border: 1px solid transparent;
}

.info-chip-religion { background: #f0fdf4; color: #15803d; border-color: #bbf7d0; }
.info-chip-caste { background: #fefce8; color: #a16207; border-color: #fde68a; }
.info-chip-city { background: #eff6ff; color: #1d4ed8; border-color: #bfdbfe; }
.info-chip-manager { background: #faf5ff; color: #7c3aed; border-color: #e9d5ff; }
.info-chip-unassigned { background: #fef2f2; color: #dc2626; border-color: #fecaca; }

/* Follow-up Indicator */
.followup-box {
    margin-top: 6px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    background: #fff7ed;
    color: #c2410c;
    border: 1px solid #fed7aa;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
    box-shadow: 0 2px 4px rgba(251, 146, 60, 0.1);
}

/* ============================================
   ACTION DROPDOWN MENU
   ============================================ */
.action-dropdown { 
    position: relative; 
    display: inline-block; 
}

.action-dropdown-menu {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    min-width: 220px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.05);
    z-index: 1060;
    padding: 8px;
    animation: dropSlide 0.2s cubic-bezier(0.2, 0, 0, 1);
    flex-direction: column;
}

.action-dropdown.open .action-dropdown-menu {
    display: flex;
}

.action-dropdown-menu a,
.action-dropdown-menu button {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    width: 100% !important;
    padding: 10px 16px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #475569 !important;
    border-radius: 10px !important;
    background: none !important;
    border: none !important;
    cursor: pointer !important;
    text-align: left !important;
    transition: all 0.15s !important;
    text-decoration: none !important;
    white-space: nowrap !important;
}

.action-dropdown-menu a:hover,
.action-dropdown-menu button:hover {
    background: #f8fafc !important;
    color: #1e293b !important;
    transform: translateX(4px);
}

.action-dropdown-menu i {
    font-size: 14px;
    width: 20px;
    text-align: center;
}

@keyframes dropSlide {
    from { opacity: 0; transform: translateY(-8px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.action-dropdown-menu .dropdown-divider {
    height: 1px;
    background: #f1f5f9;
    margin: 6px 8px;
}


