/* ============================================
   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;
}