/* ==========================================================
   🎨 UTOPIA-X Professional Admin Theme
   Modern, Clean & Professional Design System
   ========================================================== */

/* ---------- CSS Variables / Design Tokens ---------- */
:root {
  /* Primary Colors - Magenta Theme */
  --primary: #CC00CC;
  --primary-light: #e600e6;
  --primary-dark: #a300a3;
  --primary-50: #fff5ff;
  --primary-100: #ffe6ff;
  --primary-200: #ffccff;
  --primary-300: #ff99ff;
  --primary-500: #CC00CC;
  --primary-600: #b300b3;
  --primary-700: #990099;

  /* Neutral Colors */
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;

  /* Semantic Colors */
  --success: #10b981;
  --success-light: #d1fae5;
  --warning: #f59e0b;
  --warning-light: #fef3c7;
  --danger: #ef4444;
  --danger-light: #fee2e2;
  --info: #3b82f6;
  --info-light: #dbeafe;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);

  /* Typography */
  --font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-family-display: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;

  /* Borders */
  --radius-sm: 6px;
  --radius: 8px;
  --radius-md: 10px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 20px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition: 200ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);

  /* DataTables Override */
  --dt-row-selected: 204, 0, 204;
  --dt-row-selected-text: 255, 255, 255;
  --dt-row-selected-link: 153, 0, 153;

  /* Legacy support */
  --light: #fff;
  --light-primary: var(--primary-100);
  --dark-primary: var(--primary-700);
  --text-gray: var(--gray-500);
}

/* ---------- Base Styles ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  font-family: var(--font-family);
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--gray-700);
  background-color: var(--gray-50);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: var(--font-family-display);
  font-weight: 600;
  color: var(--gray-900);
  line-height: 1.3;
}

.heading-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gray-900);
  letter-spacing: -0.025em;
  margin-bottom: 0.5rem;
}

.small-text {
  font-size: 0.875rem;
  color: var(--gray-500);
}

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

.gray-text {
  color: var(--gray-500);
}

/* ---------- Utility Classes ---------- */
.primary-bg {
  background-color: var(--primary) !important;
}

.primary-border {
  border: 2px solid var(--primary);
}

.gray-border {
  border: 1px solid var(--gray-200);
}

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

/* ==========================================================
   🧭 Sidebar Navigation
   ========================================================== */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 16.6667%;
  background: linear-gradient(180deg, #ffffff 0%, var(--gray-50) 100%);
  border-right: 1px solid var(--gray-200);
  overflow-y: auto;
  z-index: 1030;
  padding-bottom: 2rem;
}

.sidebar::-webkit-scrollbar {
  width: 4px;
}

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

.sidebar::-webkit-scrollbar-thumb {
  background: var(--gray-300);
  border-radius: var(--radius-full);
}

.sidebar .nav {
  padding: 0 0.75rem;
}

.sidebar .nav-item {
  margin-bottom: 2px;
}

.sidebar .nav-link {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-600);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
}

.sidebar .nav-link i {
  font-size: 1.1rem;
  width: 24px;
  transition: all var(--transition);
}

.sidebar .nav-link:hover {
  color: var(--primary);
  background-color: var(--primary-50);
  transform: translateX(4px);
}

.sidebar .nav-link:hover i {
  color: var(--primary);
}

.sidebar .nav-link.active-link {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white !important;
  box-shadow: 0 4px 12px rgba(204, 0, 204, 0.35);
}

.sidebar .nav-link.active-link i {
  color: white !important;
}

.sidebar hr {
  margin: 1.5rem 1rem;
  border-color: var(--gray-200);
  opacity: 1;
}

/* Sidebar Section Label */
.sidebar .nav-item span[style*="font-weight: bold"],
.sidebar-section-label {
  display: block;
  font-size: 0.7rem !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gray-400) !important;
  padding: 0.75rem 1rem 0.5rem;
  margin-top: 0.5rem;
}

/* ==========================================================
   📌 Header
   ========================================================== */
header.sticky-top {
  background: rgba(255, 255, 255, 0.98) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-200) !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

/* Header Icon Button */
.header-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-lg);
  background-color: var(--gray-100);
  color: var(--gray-600);
  border: 1px solid var(--gray-200);
  transition: all var(--transition);
  text-decoration: none;
}

.header-icon-btn:hover {
  background-color: var(--primary-50);
  border-color: var(--primary-200);
  color: var(--primary);
}

.header-icon-btn i {
  font-size: 1.15rem;
}

/* Notification Badge */
.notification-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  font-size: 0.65rem;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  color: white;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: var(--radius-full);
  border: 2px solid white;
}

/* Header Avatar */
.header-avatar {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-lg);
  object-fit: cover;
  border: 2px solid var(--gray-200);
  transition: all var(--transition);
}

.dropdown:hover .header-avatar {
  border-color: var(--primary-200);
}

/* Header Dropdown */
header .dropdown-toggle::after {
  display: none;
}

header .dropdown-menu {
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-xl);
  border-radius: var(--radius-lg);
  padding: 0.5rem;
  min-width: 240px;
  margin-top: 0.5rem;
}

header .dropdown-header {
  background-color: var(--gray-50);
  border-radius: var(--radius);
  margin-bottom: 0.25rem;
}

header .dropdown-item {
  border-radius: var(--radius);
  padding: 0.625rem 1rem;
  font-weight: 500;
  color: var(--gray-700);
  transition: all var(--transition);
}

header .dropdown-item:hover {
  background-color: var(--primary-50);
  color: var(--primary);
}

header .dropdown-item i {
  opacity: 0.7;
}

header .dropdown-item:hover i {
  opacity: 1;
}

header .btn.bg-light {
  background-color: var(--gray-100) !important;
  border: 1px solid var(--gray-200);
  transition: all var(--transition);
}

header .btn.bg-light:hover {
  background-color: var(--primary-50) !important;
  border-color: var(--primary-200);
}

/* Legacy badge support */
header .badge.primary-bg {
  font-size: 0.65rem;
  padding: 0.25rem 0.5rem;
  font-weight: 600;
}

/* ==========================================================
   🃏 Cards
   ========================================================== */
.card {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}

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

.card.bg-dark {
  background: linear-gradient(135deg, var(--gray-800) 0%, var(--gray-900) 100%) !important;
  border: none;
}

.card.bg-white {
  border: 1px solid var(--gray-100);
}

/* Card Header */
.card-header {
  background-color: white;
  border-bottom: 1px solid var(--gray-200);
  padding: 1.25rem 1.5rem;
}

.card-header.bg-white {
  background-color: white !important;
}

.card-header .heading-text {
  margin-bottom: 0;
}

/* Overview Card (Dark Hero Card) */
.overview-card {
  background: linear-gradient(135deg, var(--gray-800) 0%, #0f172a 100%) !important;
  min-height: 280px;
  position: relative;
  overflow: hidden;
}

.overview-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(204, 0, 204, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.overview-card .heading-text {
  color: white;
  font-size: 1.75rem;
}

/* Stats Cards inside Overview */
.overview-card .card.bg-dark {
  background: rgba(255, 255, 255, 0.05) !important;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
}

.overview-card .card.bg-dark:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.15);
}

.icon-box {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
  color: white;
  font-size: 1.25rem;
  box-shadow: 0 4px 12px rgba(204, 0, 204, 0.3);
}

/* ==========================================================
   🔘 Buttons
   ========================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  border-radius: var(--radius);
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
  line-height: 1.5;
  transition: all var(--transition);
  border: none;
  cursor: pointer;
  text-decoration: none;
}

.btn:focus {
  outline: none;
}

.btn i {
  font-size: 1rem;
}

/* Small buttons */
.btn-sm {
  padding: 0.375rem 0.875rem;
  font-size: 0.8rem;
}

.btn-small {
  padding: 0.375rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
}

.btn-primary,
.primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  border: none;
  border-radius: var(--radius);
  box-shadow: 0 2px 8px rgba(204, 0, 204, 0.3);
  transition: all var(--transition);
  cursor: pointer;
}

.btn-primary:hover,
.primary-btn:hover {
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(204, 0, 204, 0.4);
  color: white;
}

.btn-primary:active,
.primary-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(204, 0, 204, 0.3);
}

.btn-primary:focus,
.primary-btn:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(204, 0, 204, 0.3), 0 2px 8px rgba(204, 0, 204, 0.3);
}

.btn-outline-primary,
.secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  background: transparent;
  border: 2px solid var(--gray-300);
  color: var(--gray-700);
  border-radius: var(--radius);
  transition: all var(--transition);
  cursor: pointer;
}

.btn-outline-primary:hover,
.secondary-btn:hover {
  background: var(--gray-100);
  border-color: var(--gray-400);
  color: var(--gray-800);
  transform: translateY(-2px);
}

.btn-outline-primary:active,
.secondary-btn:active {
  transform: translateY(0);
}

.btn-outline-primary:focus,
.secondary-btn:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(204, 0, 204, 0.15);
}

.btn-light {
  background-color: white;
  border: 2px solid var(--gray-300);
  color: var(--gray-700);
}

.btn-light:hover {
  background-color: var(--gray-100);
  border-color: var(--gray-400);
  transform: translateY(-1px);
}

.btn-light:focus {
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

/* Secondary Button */
.btn-secondary {
  background-color: var(--gray-600);
  border: none;
  color: white;
}

.btn-secondary:hover {
  background-color: var(--gray-700);
  transform: translateY(-1px);
}

/* Danger/Delete Button */
.btn-danger {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  border: none;
  color: white;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

.btn-danger:hover {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

.btn-danger:focus {
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.3);
}

/* Success Button */
.btn-success {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border: none;
  color: white;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.btn-success:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

/* Warning Button */
.btn-warning {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  border: none;
  color: white;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.btn-warning:hover {
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
  transform: translateY(-1px);
}

/* Outline variants */
.btn-outline-danger {
  background: transparent;
  border: 2px solid var(--danger);
  color: var(--danger);
}

.btn-outline-danger:hover {
  background: var(--danger);
  color: white;
}

.btn-outline-success {
  background: transparent;
  border: 2px solid var(--success);
  color: var(--success);
}

.btn-outline-success:hover {
  background: var(--success);
  color: white;
}

.btn-gray {
  background-color: var(--gray-100);
  color: var(--gray-700);
  border-radius: var(--radius);
}

.btn-gray:hover {
  background-color: var(--gray-200);
}

.btn-action {
  background-color: var(--gray-100);
  color: var(--gray-600);
  border: 1px solid var(--gray-200);
  font-weight: 500;
}

.btn-action:hover {
  background-color: var(--primary-50);
  border-color: var(--primary-200);
  color: var(--primary);
}

.btn-action[disabled] {
  background-color: var(--gray-100);
  color: var(--gray-400);
  border-color: var(--gray-200);
  cursor: not-allowed;
}

/* Dropdown buttons */
.dropdown-toggle.btn-primary::after {
  margin-left: 0.5rem;
}

.dropdown-item.active,
.dropdown-item:active {
  background-color: var(--primary) !important;
  color: white;
}

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

.table th {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gray-500);
  background-color: var(--gray-50) !important;
  border-bottom: 2px solid var(--gray-200);
  padding: 1rem 1.25rem;
  white-space: nowrap;
}

.table thead tr th:first-child {
  border-top-left-radius: var(--radius-lg);
}

.table thead tr th:last-child {
  border-top-right-radius: var(--radius-lg);
}

.table td {
  padding: 1rem 1.25rem;
  color: var(--gray-600);
  border-bottom: 1px solid var(--gray-100);
  vertical-align: middle;
}

.table tbody tr {
  transition: all var(--transition);
}

.table tbody tr:hover {
  background-color: var(--primary-50) !important;
}

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

/* Bordered table styling */
.table-bordered {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
}

.table-bordered > :not(caption) > * > * {
  border-color: var(--gray-200);
}

.table-bordered thead th {
  background-color: var(--gray-50);
  border-bottom-width: 2px;
}

.table-bordered thead th:first-child {
  border-top-left-radius: var(--radius-lg);
}

.table-bordered thead th:last-child {
  border-top-right-radius: var(--radius-lg);
}

/* ==========================================================
   🏷️ Status Badges
   ========================================================== */
.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.375rem 0.875rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
}

.status-active,
.status-done {
  background-color: var(--success-light);
  color: var(--success);
}

.status-upcoming {
  background-color: var(--warning-light);
  color: var(--warning);
}

.status-schedule {
  background-color: var(--warning);
  color: white;
}

.status-expired {
  background-color: var(--danger);
  color: white;
}

.upcoming-events-badge {
  background-color: var(--gray-100);
  color: var(--gray-600);
}

.badges {
  font-size: 0.8rem;
  padding: 0.375rem 1rem;
  border: 1px solid var(--primary);
  color: var(--primary);
  border-radius: var(--radius-full);
  font-weight: 500;
}

/* ==========================================================
   📝 Form Controls
   ========================================================== */
.form-control,
.form-select {
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  padding: 0.625rem 1rem;
  font-size: 0.9rem;
  color: var(--gray-700);
  transition: all var(--transition);
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(204, 0, 204, 0.15);
  outline: none;
}

.form-control-lg {
  padding: 0.875rem 1.25rem;
  font-size: 1rem;
  border-radius: var(--radius-md);
}

.form-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 0.5rem;
}

.input-group-text {
  background-color: var(--gray-50);
  border: 1px solid var(--gray-300);
  color: var(--gray-500);
}

.input-group .form-control:focus {
  z-index: 1;
}

/* Search Input */
.search-input:focus,
.custom-members-search-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(204, 0, 204, 0.15);
}

/* ==========================================================
   🪟 Modals
   ========================================================== */
.modal-content {
  border: none;
  border-radius: var(--radius-xl);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  overflow: hidden;
}

.modal-header {
  padding: 1.5rem 1.5rem 1rem;
  border-bottom: none;
  background: linear-gradient(135deg, var(--gray-50) 0%, white 100%);
}

.modal-header.border-0 {
  border-bottom: none !important;
}

.modal-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gray-900);
  letter-spacing: -0.025em;
}

.modal-body {
  padding: 1.25rem 1.5rem 1.5rem;
}

.modal-body.pt-0 {
  padding-top: 0.5rem !important;
}

.modal-footer {
  padding: 1rem 1.5rem 1.5rem;
  border-top: none;
  background: linear-gradient(180deg, white 0%, var(--gray-50) 100%);
  gap: 0.75rem;
}

.modal-footer.border-0 {
  border-top: none !important;
}

/* Modal Footer Buttons */
.modal-footer .primary-btn,
.modal-footer .btn-primary {
  min-width: 140px;
  padding: 0.75rem 1.75rem;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius);
}

.modal-footer .secondary-btn,
.modal-footer .btn-secondary,
.modal-footer [data-bs-dismiss="modal"] {
  min-width: 120px;
  padding: 0.75rem 1.75rem;
  font-size: 0.9rem;
  font-weight: 600;
  background: white;
  border: 2px solid var(--gray-300);
  color: var(--gray-600);
  border-radius: var(--radius);
}

.modal-footer .secondary-btn:hover,
.modal-footer .btn-secondary:hover,
.modal-footer [data-bs-dismiss="modal"]:hover {
  background: var(--gray-100);
  border-color: var(--gray-400);
  color: var(--gray-800);
}

/* Modal with flex-grow buttons */
.modal-footer .flex-grow-1 {
  flex: 1 1 auto;
  max-width: 48%;
}

/* Bootstrap btn-light in modals */
.modal-footer .btn-light {
  min-width: 120px;
  padding: 0.625rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  background: white;
  border: 2px solid var(--gray-300);
  color: var(--gray-600);
  border-radius: var(--radius);
  transition: all var(--transition);
}

.modal-footer .btn-light:hover {
  background: var(--gray-100);
  border-color: var(--gray-400);
  color: var(--gray-800);
  transform: translateY(-1px);
}

/* Consistent btn-primary in modals */
.modal-footer .btn-primary {
  min-width: 120px;
  padding: 0.625rem 1.5rem;
}

.btn-close {
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: var(--radius);
  opacity: 0.5;
  transition: all var(--transition);
}

.btn-close:hover {
  opacity: 1;
  background-color: var(--gray-100);
}

.btn-close:focus {
  box-shadow: 0 0 0 3px rgba(204, 0, 204, 0.2);
  opacity: 1;
}

/* Modal Form Controls */
.modal-body .form-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-600);
  margin-bottom: 0.375rem;
}

.modal-body .form-control,
.modal-body .form-select {
  padding: 0.625rem 0.875rem;
  font-size: 0.9rem;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  transition: all var(--transition);
}

.modal-body .form-control:focus,
.modal-body .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(204, 0, 204, 0.15);
}

.modal-body .form-control::placeholder {
  color: var(--gray-400);
}

/* Required field indicator */
.modal-body .text-danger {
  font-weight: 600;
}

/* Invalid feedback */
.modal-body .invalid-feedback {
  font-size: 0.8rem;
  margin-top: 0.25rem;
}

/* ==========================================================
   📄 Pagination
   ========================================================== */
.pagination {
  gap: 0.25rem;
}

.pagination .page-link {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 0.5rem 0.875rem;
  color: var(--gray-600);
  font-weight: 500;
  transition: all var(--transition);
}

.pagination .page-link:hover {
  background-color: var(--primary-50);
  border-color: var(--primary-200);
  color: var(--primary);
}

.pagination .page-item.active .page-link {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-color: var(--primary);
  color: white;
  box-shadow: 0 2px 8px rgba(204, 0, 204, 0.3);
}

.pagination .page-item .page-link.border-0 {
  border: none !important;
}

/* ==========================================================
   📊 DataTables Theme
   ========================================================== */
.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_paginate,
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_length {
  display: none;
}

/* DataTables inside Cards */
.card .dataTables_wrapper {
  padding: 0;
}

.card .table-responsive {
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.card .table {
  margin-bottom: 0;
}

.card .table thead th {
  background-color: var(--gray-50) !important;
  border-top: none;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gray-500);
  padding: 0.875rem 1rem;
  white-space: nowrap;
  border-bottom: 1px solid var(--gray-200);
}

.card .table thead th:first-child {
  border-top-left-radius: 0;
}

.card .table thead th:last-child {
  border-top-right-radius: 0;
}

.card .table tbody td {
  padding: 0.875rem 1rem;
  vertical-align: middle;
  border-bottom: 1px solid var(--gray-100);
  font-size: 0.875rem;
  color: var(--gray-600);
}

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

.card .table tbody tr {
  transition: background-color var(--transition);
}

.card .table tbody tr:hover {
  background-color: var(--primary-50) !important;
}

/* Processing/Loading Indicator */
div.dt-processing {
  background: white !important;
  border: none !important;
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-lg);
  padding: 1rem 1.5rem !important;
  color: var(--primary) !important;
  font-weight: 500;
  font-size: 0.875rem;
}

div.dt-processing > div:last-child > div {
  background: var(--primary) !important;
}

/* DataTables Sorting */
table.dataTable thead .sorting_asc::before,
table.dataTable thead .sorting_desc::after {
  color: var(--primary);
  opacity: 1;
}

/* DataTables Row Hover */
table.dataTable tbody tr:hover {
  background-color: var(--primary-50) !important;
}

table.dataTable tbody tr.selected {
  background-color: var(--primary-100) !important;
}

/* DataTables Empty State */
.dataTables_wrapper .dataTables_empty {
  padding: 3rem 1rem !important;
  color: var(--gray-400);
  font-size: 0.9rem;
}

/* Action Dropdown Button in Tables */
.table .btn-group .btn-primary.dropdown-toggle {
  padding: 0.4rem 0.875rem;
  font-size: 0.8rem;
  font-weight: 500;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border: none;
  box-shadow: 0 2px 4px rgba(204, 0, 204, 0.2);
}

.table .btn-group .btn-primary.dropdown-toggle:hover {
  box-shadow: 0 4px 8px rgba(204, 0, 204, 0.3);
}

.table .dropdown-menu {
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius);
  padding: 0.375rem;
  min-width: 120px;
}

.table .dropdown-item {
  font-size: 0.85rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  color: var(--gray-700);
  transition: all var(--transition);
}

.table .dropdown-item:hover {
  background-color: var(--primary-50);
  color: var(--primary);
}

.table .dropdown-item i {
  width: 18px;
}

/* DataTables Buttons */
.dt-buttons .dt-button {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%) !important;
  border: none !important;
  color: white !important;
  border-radius: var(--radius);
  padding: 0.5rem 1rem;
  font-weight: 500;
}

.dt-buttons .dt-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(204, 0, 204, 0.3);
}

/* ==========================================================
   🔔 Alerts
   ========================================================== */
.alert {
  border: none;
  border-radius: var(--radius-lg);
  padding: 1rem 1.25rem;
  font-weight: 500;
}

.alert-primary {
  background-color: var(--primary-50);
  color: var(--primary-700);
  border-left: 4px solid var(--primary);
}

.alert-success {
  background-color: var(--success-light);
  color: #065f46;
  border-left: 4px solid var(--success);
}

.alert-warning {
  background-color: var(--warning-light);
  color: #92400e;
  border-left: 4px solid var(--warning);
}

.alert-danger {
  background-color: var(--danger-light);
  color: #991b1b;
  border-left: 4px solid var(--danger);
}

/* ==========================================================
   🖼️ Image Upload Area
   ========================================================== */
.image-upload-area {
  background-color: var(--gray-50);
  border: 2px dashed var(--gray-300) !important;
  border-radius: var(--radius-lg);
  transition: all var(--transition);
  cursor: pointer;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.image-upload-area:hover,
.image-upload-area.dragover {
  border-color: var(--primary) !important;
  background-color: var(--primary-50);
}

.upload-content,
.upload-info {
  pointer-events: none;
}

/* ==========================================================
   👥 Speaker Cards
   ========================================================== */
.speaker-card {
  background-color: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 1rem;
  margin-bottom: 0.75rem;
  transition: all var(--transition);
}

.speaker-card:hover {
  border-color: var(--primary-200);
  background-color: var(--primary-50);
}

.speaker-info h6 {
  margin: 0;
  font-weight: 600;
  color: var(--gray-800);
}

.speaker-info small {
  color: var(--gray-500);
}

.speaker-remove {
  background: none;
  border: none;
  color: var(--danger);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0.375rem;
  border-radius: var(--radius);
  transition: all var(--transition);
}

.speaker-remove:hover {
  background-color: var(--danger-light);
}

/* ==========================================================
   🔔 Notifications
   ========================================================== */
.notification-item {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-lg);
  transition: all var(--transition);
}

.notification-item.unread {
  background-color: var(--primary-50);
  border-left: 3px solid var(--primary);
}

.notification-item.read {
  background-color: white;
}

.notification-item:hover {
  background-color: var(--gray-100);
}

/* ==========================================================
   ⚙️ Toggle Switch - Modern Design
   ========================================================== */
.pure-toggle-checkbox {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.pure-toggle-track {
  display: inline-flex;
  align-items: center;
  width: 52px;
  height: 28px;
  border-radius: var(--radius-full);
  background-color: var(--gray-200);
  position: relative;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid var(--gray-300);
}

.pure-toggle-track:hover {
  background-color: var(--gray-300);
  border-color: var(--gray-400);
}

.pure-toggle-track::before {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: white;
  top: 2px;
  left: 2px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15), 0 1px 2px rgba(0, 0, 0, 0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.pure-toggle-checkbox:checked + .pure-toggle-track {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-color: var(--primary-dark);
}

.pure-toggle-checkbox:checked + .pure-toggle-track:hover {
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
}

.pure-toggle-checkbox:checked + .pure-toggle-track::before {
  transform: translateX(24px);
  box-shadow: 0 2px 4px rgba(204, 0, 204, 0.3), 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Focus state for accessibility */
.pure-toggle-checkbox:focus + .pure-toggle-track {
  box-shadow: 0 0 0 3px rgba(204, 0, 204, 0.2);
}

/* Toggle with labels */
.toggle-wrapper {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.toggle-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-700);
  cursor: pointer;
  user-select: none;
}

/* Bootstrap form-check-input override for consistency */
.form-check-input[type="checkbox"] {
  width: 44px;
  height: 24px;
  border-radius: var(--radius-full);
  background-color: var(--gray-200);
  border: 2px solid var(--gray-300);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-check-input[type="checkbox"]:checked {
  background-color: var(--primary);
  border-color: var(--primary-dark);
  background-image: none;
}

.form-check-input[type="checkbox"]:focus {
  box-shadow: 0 0 0 3px rgba(204, 0, 204, 0.2);
  border-color: var(--primary);
}

.form-check-input[type="checkbox"]::before {
  content: "";
  display: block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background-color: white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
  transform: translateX(1px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-check-input[type="checkbox"]:checked::before {
  transform: translateX(19px);
}

/* ==========================================================
   🔀 Form Switch Toggle - Professional Design
   ========================================================== */
.form-switch {
  padding-left: 3.5rem;
  min-height: 1.75rem;
  display: flex;
  align-items: center;
}

.form-switch .form-check-input {
  width: 48px;
  height: 26px;
  margin-left: -3.5rem;
  margin-top: 0;
  background-image: none;
  background-color: var(--gray-300);
  border: none;
  border-radius: 26px;
  cursor: pointer;
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  appearance: none;
  -webkit-appearance: none;
}

.form-switch .form-check-input::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-switch .form-check-input:checked {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.form-switch .form-check-input:checked::before {
  transform: translateX(22px);
}

.form-switch .form-check-input:focus {
  box-shadow: 0 0 0 3px rgba(204, 0, 204, 0.25);
  outline: none;
}

.form-switch .form-check-input:hover {
  background-color: var(--gray-400);
}

.form-switch .form-check-input:checked:hover {
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
}

.form-switch .form-check-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-600);
  margin-left: 0.5rem;
  cursor: pointer;
  user-select: none;
}

/* ==========================================================
   ⚙️ Settings Toggle Cards
   ========================================================== */
.card.rounded-5 {
  border-radius: var(--radius-lg) !important;
  border: 1px solid var(--gray-200) !important;
  background-color: var(--gray-50) !important;
  transition: all var(--transition);
}

.card.rounded-5:hover {
  border-color: var(--primary-200) !important;
  background-color: var(--primary-50) !important;
}

.card.rounded-5 .form-label {
  font-weight: 500;
  color: var(--gray-700) !important;
  margin-bottom: 0;
  font-size: 0.9rem;
}

.card.rounded-5 .d-flex {
  padding: 0.25rem 0;
}

/* ==========================================================
   🖼️ Avatars
   ========================================================== */
.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

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

.avatar-large {
  width: 96px;
  height: 96px;
}

/* ==========================================================
   📍 Profile & Cover
   ========================================================== */
.cover-photo {
  height: 140px;
  width: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

@media (min-width: 768px) {
  .cover-photo {
    height: 200px;
  }
}

@media (min-width: 992px) {
  .cover-photo {
    height: 280px;
  }
}

.profile-img {
  top: 100%;
}

.profile-edit-icon {
  width: 32px;
  height: 32px;
  background: white;
  border: 2px solid var(--gray-200);
  box-shadow: var(--shadow);
  border-radius: 50%;
  transition: all var(--transition);
}

.profile-edit-icon:hover {
  border-color: var(--primary);
  background: var(--primary-50);
}

/* ==========================================================
   🎯 Play Button
   ========================================================== */
.play-btn {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--primary-100) 0%, var(--primary-200) 100%);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: var(--shadow-lg);
  transition: all var(--transition);
}

.play-btn:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-xl);
  color: var(--primary-dark);
}

.play-btn .bi {
  font-size: 1.5rem;
}

/* ==========================================================
   🔗 Links
   ========================================================== */
.btn-link {
  color: var(--primary);
  font-weight: 500;
  text-decoration: none;
}

.btn-link:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* ==========================================================
   📱 Responsive Sidebar & Offcanvas
   ========================================================== */
@media (min-width: 992px) {
  main {
    margin-left: 16.6667%;
  }
}

@media (max-width: 991.98px) {
  main {
    margin-left: 0;
  }

  .sidebar {
    display: none;
  }
}

/* Offcanvas Mobile Sidebar */
.offcanvas {
  background: linear-gradient(180deg, #ffffff 0%, var(--gray-50) 100%);
}

.offcanvas-header {
  padding: 1rem 1.25rem;
}

.offcanvas-body .nav-link {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-600);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
  margin-bottom: 2px;
}

.offcanvas-body .nav-link:hover {
  color: var(--primary);
  background-color: var(--primary-50);
}

.offcanvas-body .nav-link.active-link {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white !important;
  box-shadow: 0 4px 12px rgba(204, 0, 204, 0.4);
}

.offcanvas-body .nav-link.active-link i {
  color: white !important;
}

.offcanvas-body .nav-link i {
  font-size: 1.1rem;
  width: 24px;
}

/* ==========================================================
   🎨 Miscellaneous
   ========================================================== */
.dashed-border {
  border: 2px dashed var(--gray-300);
  border-radius: var(--radius-lg);
}

.text-justify-custom {
  text-align: justify;
  text-justify: inter-word;
}

/* Phone input */
.iti {
  width: 100% !important;
}

.iti input {
  width: 100% !important;
}

/* Fixed width button */
.fixed-width-btn {
  min-width: 140px !important;
}

/* Registration form background */
.registration-body {
  background-image: url("../assets/images/bg-registration-form.png");
  background-size: cover;
  background-repeat: no-repeat;
}

/* Navigation center */
.primary-nav-center {
  position: absolute;
  left: 45%;
  transform: translateX(-50%);
}

.primary-nav-center .nav-item {
  padding: 10px !important;
}

.navbar {
  position: relative;
}

/* ==========================================================
   🌀 Page Loader (Override)
   ========================================================== */
#pageLoader .loader-ring {
  border-color: var(--primary-200);
  border-top-color: var(--primary);
}

/* ==========================================================
   📊 Overview Card Responsive
   ========================================================== */
@media (max-width: 767.98px) {
  .overview-card {
    min-height: auto;
    padding: 1.5rem;
  }

  .overview-card .heading-text {
    font-size: 1.25rem;
  }

  .icon-box {
    width: 48px;
    height: 48px;
    font-size: 1rem;
  }
}

/* ==========================================================
   🎯 Empty States
   ========================================================== */
.dataTables_wrapper .dataTables_empty,
.empty-state {
  color: var(--gray-400);
  padding: 3rem !important;
  text-align: center;
}

/* ==========================================================
   ➕➖ Table Action Buttons (Add/Remove)
   ========================================================== */
/* Icon-only action buttons in tables */
.table .btn.add,
.table .btn.remove,
.table .btn-add,
.table .btn-remove {
  width: 36px;
  height: 36px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  font-size: 1rem;
  transition: all var(--transition);
}

.table .btn.add,
.table .btn-add {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border: none;
  color: white;
  box-shadow: 0 2px 6px rgba(204, 0, 204, 0.25);
}

.table .btn.add:hover,
.table .btn-add:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(204, 0, 204, 0.35);
}

.table .btn.remove,
.table .btn-remove {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  border: none;
  color: white;
  box-shadow: 0 2px 6px rgba(239, 68, 68, 0.25);
}

.table .btn.remove:hover,
.table .btn-remove:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(239, 68, 68, 0.35);
}

/* Benefits table specific styling */
#benefits-table {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

#benefits-table thead th {
  background-color: var(--gray-50);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--gray-600);
  padding: 0.875rem 1rem;
  border-bottom: 2px solid var(--gray-200);
}

#benefits-table tbody td {
  padding: 1rem;
  vertical-align: top;
  border-color: var(--gray-200);
}

#benefits-table .img-thumbnail {
  border-radius: var(--radius);
  border: 2px solid var(--gray-200);
}

#benefits-table .form-control,
#benefits-table .form-select {
  font-size: 0.875rem;
}

#benefits-table .text-nowrap {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  padding-top: 1rem;
}

/* Section headers with toggle */
.d-flex.justify-content-between.align-items-center h4 {
  margin-bottom: 0 !important;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--gray-800);
}

/* Section header toggle alignment fix */
.d-flex.justify-content-between.align-items-center .form-check.form-switch {
  margin-bottom: 0;
  padding-left: 3rem;
}

.d-flex.justify-content-between.align-items-center .form-check.form-switch .form-check-input {
  margin-left: -3rem;
}

.d-flex.justify-content-between.align-items-center .form-check.form-switch .form-check-label {
  white-space: nowrap;
}

/* Form sections styling */
.card-body hr {
  margin: 2rem 0;
  border-color: var(--gray-200);
  opacity: 1;
}

.card-body h4 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--gray-800);
}

.card-body h5 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--gray-700);
}
