/* ============================================================================
   MODERN DESIGN SYSTEM - Shazam Cash
   Design premium avec glassmorphism, animations et dark mode
   ============================================================================ */

/* === VARIABLES GLOBALES === */
:root {
  /* Couleurs Principales */
  --primary: #667eea;
  --primary-light: #764ba2;
  --primary-dark: #5568d3;
  --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);

  /* Accents */
  --accent: #f093fb;
  --success: #4ade80;
  --warning: #fbbf24;
  --danger: #f87171;
  --info: #60a5fa;

  /* Backgrounds */
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-tertiary: #f1f5f9;

  /* Cards & Surfaces */
  --card-bg: rgba(255, 255, 255, 0.95);
  --card-border: rgba(255, 255, 255, 0.18);
  --card-shadow: 0 8px 32px rgba(31, 38, 135, 0.15);
  --card-shadow-hover: 0 12px 40px rgba(31, 38, 135, 0.25);

  /* Text */
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --text-tertiary: #94a3b8;

  /* Borders */
  --border-color: #e2e8f0;
  --border-radius-sm: 8px;
  --border-radius-md: 12px;
  --border-radius-lg: 16px;
  --border-radius-xl: 24px;

  /* Spacing */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);

  /* Z-index */
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal-backdrop: 1040;
  --z-modal: 1050;
  --z-popover: 1060;
  --z-tooltip: 1070;
}

/* === DARK MODE === */
[data-bs-theme="dark"] {
  --bg-primary: #0f172a;
  --bg-secondary: #1e293b;
  --bg-tertiary: #334155;

  --card-bg: rgba(30, 41, 59, 0.95);
  --card-border: rgba(255, 255, 255, 0.1);
  --card-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  --card-shadow-hover: 0 12px 40px rgba(0, 0, 0, 0.6);

  --text-primary: #f1f5f9;
  --text-secondary: #cbd5e1;
  --text-tertiary: #94a3b8;

  --border-color: #334155;
}

/* === RESET & BASE === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  transition: background-color var(--transition-base), color var(--transition-base);
}

/* === TYPOGRAPHIE === */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--spacing-md);
  color: var(--text-primary);
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.75rem;
}

h4 {
  font-size: 1.5rem;
}

h5 {
  font-size: 1.25rem;
}

h6 {
  font-size: 1rem;
}

p {
  margin-bottom: var(--spacing-md);
  color: var(--text-secondary);
}

/* === CARDS GLASSMORPHISM === */
.card-modern {
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--card-border);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--card-shadow);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  overflow: hidden;
  will-change: transform;
}

.card-modern:hover {
  transform: translateY(-4px);
  box-shadow: var(--card-shadow-hover);
}

.card-modern-header {
  padding: var(--spacing-lg);
  border-bottom: 1px solid var(--border-color);
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
}

.card-modern-body {
  padding: var(--spacing-lg);
}

.card-modern-footer {
  padding: var(--spacing-lg);
  border-top: 1px solid var(--border-color);
  background: var(--bg-tertiary);
}

/* === BOUTONS MODERNES === */
.btn-modern {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  font-size: 0.875rem;
  line-height: 1;
  border: none;
  border-radius: var(--border-radius-md);
  cursor: pointer;
  transition: transform var(--transition-base), box-shadow var(--transition-base), background-color var(--transition-base);
  overflow: hidden;
  text-decoration: none;
  will-change: transform;
}

.btn-modern::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width var(--transition-base), height var(--transition-base);
}

.btn-modern:hover::before {
  width: 300px;
  height: 300px;
}

.btn-modern:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--primary-gradient);
  color: white;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-primary:hover {
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
  transform: translateY(-2px);
}

.btn-success {
  background: var(--success);
  color: white;
  box-shadow: 0 4px 15px rgba(74, 222, 128, 0.4);
}

.btn-danger {
  background: var(--danger);
  color: white;
  box-shadow: 0 4px 15px rgba(248, 113, 113, 0.4);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: white;
}

/* === INPUTS MODERNES === */
.input-modern {
  width: 100%;
  padding: 0.875rem 1rem;
  font-size: 0.9375rem;
  background: var(--bg-secondary);
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius-md);
  color: var(--text-primary);
  transition: border-color var(--transition-base), box-shadow var(--transition-base), transform var(--transition-base);
}

.input-modern:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
  transform: translateY(-1px);
}

.input-modern::placeholder {
  color: var(--text-tertiary);
}

.input-group-modern {
  position: relative;
  margin-bottom: var(--spacing-lg);
}

.input-group-modern label {
  display: block;
  margin-bottom: var(--spacing-sm);
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--text-primary);
}

.input-group-modern .input-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-tertiary);
  pointer-events: none;
}

.input-group-modern .input-modern {
  padding-left: 2.75rem;
}

/* === BADGES === */
.badge-modern {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  padding: 0.375rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: var(--border-radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-success {
  background: rgba(74, 222, 128, 0.1);
  color: var(--success);
  border: 1px solid rgba(74, 222, 128, 0.3);
}

.badge-warning {
  background: rgba(251, 191, 36, 0.1);
  color: var(--warning);
  border: 1px solid rgba(251, 191, 36, 0.3);
}

.badge-danger {
  background: rgba(248, 113, 113, 0.1);
  color: var(--danger);
  border: 1px solid rgba(248, 113, 113, 0.3);
}

.badge-info {
  background: rgba(96, 165, 250, 0.1);
  color: var(--info);
  border: 1px solid rgba(96, 165, 250, 0.3);
}

.badge-primary {
  background: rgba(102, 126, 234, 0.1);
  color: var(--primary);
  border: 1px solid rgba(102, 126, 234, 0.3);
}

/* === ANIMATIONS === */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.animate-fadeInUp {
  animation: fadeInUp var(--transition-slow) ease-out;
}

.animate-fadeIn {
  animation: fadeIn var(--transition-base) ease-out;
}

.animate-slideInRight {
  animation: slideInRight var(--transition-base) ease-out;
}

/* === UTILITIES === */
.text-gradient {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.shadow-modern {
  box-shadow: var(--card-shadow);
}

.shadow-modern-hover:hover {
  box-shadow: var(--card-shadow-hover);
}

.backdrop-blur {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  h3 {
    font-size: 1.5rem;
  }

  .card-modern {
    border-radius: var(--border-radius-md);
  }

  .btn-modern {
    padding: 0.625rem 1.25rem;
    font-size: 0.8125rem;
  }
}

/* === ADMIN PANEL STYLES === */

/* Sidebar Styles */
.admin-sidebar {
  position: fixed;
  top: 0;
  bottom: 0;
  left: -320px;
  width: 320px;
  background: rgba(30, 41, 59, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1040;
  transition: left 0.3s ease;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  overflow-y: auto;
  padding-top: 1rem;
}

.admin-sidebar.active {
  left: 0;
}

.sidebar-header {
  padding: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sidebar-header h5 {
  color: white;
  font-weight: 700;
  margin: 0;
  font-size: 1.25rem;
}

.sidebar-close {
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 8px;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.sidebar-close:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: rotate(90deg);
}

.sidebar-nav {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  color: rgba(203, 213, 225, 0.8);
  text-decoration: none;
  border-radius: 12px;
  transition: background-color 0.3s ease,
    color 0.3s ease,
    transform 0.3s ease;
  font-weight: 500;
  position: relative;
  overflow: hidden;
}

.sidebar-link::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, #667eea 0%, #764ba2 100%);
  transform: scaleY(0);
  transition: transform 0.3s ease;
}

.sidebar-link:hover,
.sidebar-link.active {
  background: rgba(102, 126, 234, 0.15);
  color: white;
  transform: translateX(4px);
}

.sidebar-link:hover::before,
.sidebar-link.active::before {
  transform: scaleY(1);
}

.sidebar-link i {
  font-size: 1.25rem;
  width: 24px;
  text-align: center;
}

.sidebar-toggle {
  position: fixed;
  left: 1.5rem;
  top: 5rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(30, 41, 59, 0.98);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
  color: white;
  font-size: 1.5rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  z-index: 1500;
}

.sidebar-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  background: rgba(102, 126, 234, 0.9);
}

.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
}

/* Admin Layout */
.admin-main {
  padding: 2rem 1rem;
  max-width: 1600px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.admin-header {
  background: rgba(30, 41, 59, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 24px;
  padding: 2.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
  will-change: transform;
}

.admin-header::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(102, 126, 234, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.admin-header h1 {
  color: white;
  font-weight: 700;
  margin-bottom: 0.5rem;
  font-size: 2.25rem;
  position: relative;
  z-index: 1;
}

.admin-header p {
  color: rgba(203, 213, 225, 0.8);
  margin: 0;
  font-size: 1.05rem;
  position: relative;
  z-index: 1;
}

/* Stat Cards */
.stat-card {
  background: rgba(30, 41, 59, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 20px;
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  position: relative;
  overflow: hidden;
  will-change: transform;
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.stat-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 1rem;
  background: rgba(255, 255, 255, 0.05);
}

.stat-value {
  font-size: 2.5rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.25rem;
}

.stat-label {
  color: rgba(203, 213, 225, 0.7);
  font-size: 0.95rem;
  font-weight: 500;
}

/* Table Cards */
.table-card {
  background: rgba(30, 41, 59, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 2rem;
}

.table-card-header {
  padding: 1.5rem 2rem;
  background: rgba(15, 23, 42, 0.4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.table-card-title {
  color: white;
  font-weight: 700;
  font-size: 1.25rem;
  margin: 0;
}

.table-modern {
  width: 100%;
  margin: 0;
}

.table-modern thead {
  background: rgba(15, 23, 42, 0.4);
}

.table-modern th {
  color: rgba(203, 213, 225, 0.9);
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 1rem 1.5rem;
  border: none;
}

.table-modern td {
  color: rgba(203, 213, 225, 0.85);
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  vertical-align: middle;
}

.table-modern tbody tr {
  transition: background-color 0.2s ease;
}

.table-modern tbody tr:hover {
  background: rgba(102, 126, 234, 0.08);
}

/* Form Styles */
.form-card {
  background: rgba(30, 41, 59, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 2rem;
}

/* Content Cards (for admin pages like gestion_inscription) */
.content-card {
  background: rgba(30, 41, 59, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  margin-bottom: 2rem;
  animation: fadeInUp 0.6s ease-out;
}

.content-header {
  padding: 1.5rem 2rem;
  background: rgba(15, 23, 42, 0.4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.content-header h5 {
  margin: 0;
  color: white;
  font-weight: 700;
  font-size: 1.25rem;
}

.content-body {
  padding: 2rem;
}


.form-label {
  color: rgba(203, 213, 225, 0.9);
  font-weight: 600;
}

.form-control {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
  border-radius: 12px;
  padding: 0.75rem 1rem;
}

.form-control:focus {
  background: rgba(15, 23, 42, 0.8);
  border-color: #667eea;
  box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
  color: white;
}

.input-group-text {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(203, 213, 225, 0.8);
  border-right: none;
}

/* Action Buttons */
.btn-action {
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  margin: 0 0.25rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  will-change: transform;
}

.btn-action:hover {
  transform: translateY(-2px);
}

.btn-action.primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-action.warning {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.btn-action.danger {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

/* Navbar Modern Override */
.navbar-modern {
  background: rgba(30, 41, 59, 0.95) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
  padding: 1rem 0;
  position: sticky;
  font-weight: 500;
}

/* Table Cards */
.table-card {
  background: rgba(30, 41, 59, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 2rem;
}

.table-card-header {
  padding: 1.5rem 2rem;
  background: rgba(15, 23, 42, 0.4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.table-card-title {
  color: white;
  font-weight: 700;
  font-size: 1.25rem;
  margin: 0;
}

.table-modern {
  width: 100%;
  margin: 0;
}

.table-modern thead {
  background: rgba(15, 23, 42, 0.4);
}

.table-modern th {
  color: rgba(203, 213, 225, 0.9);
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 1rem 1.5rem;
  border: none;
}

.table-modern td {
  color: rgba(203, 213, 225, 0.85);
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  vertical-align: middle;
}

.table-modern tbody tr {
  transition: background-color 0.2s ease;
}

.table-modern tbody tr:hover {
  background: rgba(102, 126, 234, 0.08);
}

/* Form Styles */
.form-card {
  background: rgba(30, 41, 59, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 2rem;
}

.form-label {
  color: rgba(203, 213, 225, 0.9);
  font-weight: 600;
}

.form-control {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
  border-radius: 12px;
  padding: 0.75rem 1rem;
}

.form-control:focus {
  background: rgba(15, 23, 42, 0.8);
  border-color: #667eea;
  box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
  color: white;
}

.input-group-text {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(203, 213, 225, 0.8);
  border-right: none;
}

/* Action Buttons */
.btn-action {
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  margin: 0 0.25rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  will-change: transform;
}

.btn-action:hover {
  transform: translateY(-2px);
}

.btn-action.primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-action.warning {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.btn-action.danger {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

/* Navbar Modern Override */
.navbar-modern {
  background: rgba(30, 41, 59, 0.95) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Background Animation */
.bg-animated::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.03) 0%, transparent 50%);
  animation: backgroundMove 30s ease infinite;
  pointer-events: none;
  z-index: 0;
  will-change: transform;
}

@keyframes backgroundMove {

  0%,
  100% {
    transform: translate(0, 0);
  }

  50% {
    transform: translate(20px, 20px);
  }
}

/* === DESKTOP SIDEBAR LAYOUT === */
@media (min-width: 992px) {
  .admin-sidebar {
    left: 0;
    box-shadow: 4px 0 30px rgba(0, 0, 0, 0.2);
  }

  .admin-main {
    margin-left: 320px;
    max-width: calc(100% - 320px);
    padding: 2rem;
  }

  .sidebar-toggle {
    display: none;
  }

  .sidebar-close {
    display: none;
  }

  .sidebar-overlay {
    display: none !important;
  }
}

.table-card-header {
  padding: 1.5rem 2rem;
  background: rgba(15, 23, 42, 0.4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.table-card-title {
  color: white;
  font-weight: 700;
  font-size: 1.25rem;
  margin: 0;
}

.table-modern {
  width: 100%;
  margin: 0;
}

.table-modern thead {
  background: rgba(15, 23, 42, 0.4);
}

.table-modern th {
  color: rgba(203, 213, 225, 0.9);
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 1rem 1.5rem;
  border: none;
}

.table-modern td {
  color: rgba(203, 213, 225, 0.85);
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  vertical-align: middle;
}

.table-modern tbody tr {
  transition: background-color 0.2s ease;
}

.table-modern tbody tr:hover {
  background: rgba(102, 126, 234, 0.08);
}

/* Form Styles */
.form-card {
  background: rgba(30, 41, 59, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 2rem;
}

.form-label {
  color: rgba(203, 213, 225, 0.9);
  font-weight: 600;
}

.form-control {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
  border-radius: 12px;
  padding: 0.75rem 1rem;
}

.form-control:focus {
  background: rgba(15, 23, 42, 0.8);
  border-color: #667eea;
  box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
  color: white;
}

.input-group-text {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(203, 213, 225, 0.8);
  border-right: none;
}

/* Action Buttons */
.btn-action {
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  margin: 0 0.25rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  will-change: transform;
}

.btn-action:hover {
  transform: translateY(-2px);
}

.btn-action.primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-action.warning {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.btn-action.danger {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

/* Navbar Modern Override */
.navbar-modern {
  background: rgba(30, 41, 59, 0.95) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Background Animation */
.bg-animated::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.03) 0%, transparent 50%);
  animation: backgroundMove 30s ease infinite;
  pointer-events: none;
  z-index: 0;
  will-change: transform;
}

@keyframes backgroundMove {

  0%,
  100% {
    transform: translate(0, 0);
  }

  50% {
    transform: translate(20px, 20px);
  }
}

/* === DESKTOP SIDEBAR LAYOUT === */
@media (min-width: 992px) {
  .admin-sidebar {
    left: 0;
    box-shadow: 4px 0 30px rgba(0, 0, 0, 0.2);
  }

  .admin-main {
    margin-left: 320px;
    max-width: calc(100% - 320px);
    padding: 2rem;
  }

  .sidebar-toggle {
    display: none;
  }

  .sidebar-close {
    display: none;
  }

  .sidebar-overlay {
    display: none !important;
  }

  .navbar-modern {
    padding-left: 320px;
  }

  .navbar-modern .container-fluid {
    padding-left: 2rem;
  }
}

/* === PREMIUM DASHBOARD STYLES === */

/* Welcome Section */
.welcome-section {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
  border-radius: 24px;
  padding: 2.5rem;
  margin-bottom: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.welcome-section::after {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  width: 300px;
  height: 100%;
  background: radial-gradient(circle at center, rgba(102, 126, 234, 0.2) 0%, transparent 70%);
  pointer-events: none;
}

.welcome-title {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, #fff 0%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.welcome-subtitle {
  color: rgba(203, 213, 225, 0.8);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Enhanced Stats Grid */
.stats-grid-premium {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.stat-card-premium {
  background: rgba(30, 41, 59, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 20px;
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.stat-card-premium:hover {
  transform: translateY(-5px);
  background: rgba(30, 41, 59, 0.9);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.stat-card-premium::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.stat-card-premium:hover::before {
  opacity: 1;
}

.stat-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.stat-icon-wrapper {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  transition: all 0.3s ease;
}

.stat-card-premium:hover .stat-icon-wrapper {
  background: var(--primary-gradient);
  color: white;
  transform: scale(1.1) rotate(5deg);
}

.stat-trend {
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  background: rgba(74, 222, 128, 0.1);
  color: #4ade80;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.stat-trend.negative {
  background: rgba(248, 113, 113, 0.1);
  color: #f87171;
}

.stat-content h3 {
  font-size: 2.25rem;
  font-weight: 700;
  color: white;
  margin: 0;
  line-height: 1.2;
}

.stat-content p {
  color: rgba(203, 213, 225, 0.6);
  font-size: 0.95rem;
  margin: 0.25rem 0 0 0;
}

/* Quick Actions Grid */
.quick-actions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.action-card {
  background: rgba(30, 41, 59, 0.4);
  border: 1px dashed rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  padding: 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.action-card:hover {
  background: rgba(30, 41, 59, 0.8);
  border-color: var(--primary);
  transform: translateY(-3px);
}

.action-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(102, 126, 234, 0.1);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: all 0.3s ease;
}

.action-card:hover .action-icon {
  background: var(--primary);
  color: white;
  box-shadow: 0 0 20px rgba(102, 126, 234, 0.4);
}

.action-label {
  position: relative;
  overflow: hidden;
}

.welcome-section::after {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  width: 300px;
  height: 100%;
  background: radial-gradient(circle at center, rgba(102, 126, 234, 0.2) 0%, transparent 70%);
  pointer-events: none;
}

.welcome-title {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, #fff 0%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.welcome-subtitle {
  color: rgba(203, 213, 225, 0.8);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Enhanced Stats Grid */
.stats-grid-premium {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.stat-card-premium {
  background: rgba(30, 41, 59, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 20px;
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.stat-card-premium:hover {
  transform: translateY(-5px);
  background: rgba(30, 41, 59, 0.9);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.stat-card-premium::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.stat-card-premium:hover::before {
  opacity: 1;
}

.stat-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.stat-icon-wrapper {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  transition: all 0.3s ease;
}

.stat-card-premium:hover .stat-icon-wrapper {
  background: var(--primary-gradient);
  color: white;
  transform: scale(1.1) rotate(5deg);
}

.stat-trend {
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  background: rgba(74, 222, 128, 0.1);
  color: #4ade80;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.stat-trend.negative {
  background: rgba(248, 113, 113, 0.1);
  color: #f87171;
}

.stat-content h3 {
  font-size: 2.25rem;
  font-weight: 700;
  color: white;
  margin: 0;
  line-height: 1.2;
}

.stat-content p {
  color: rgba(203, 213, 225, 0.6);
  font-size: 0.95rem;
  margin: 0.25rem 0 0 0;
}

/* Quick Actions Grid */
.quick-actions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.action-card {
  background: rgba(30, 41, 59, 0.4);
  border: 1px dashed rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  padding: 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.action-card:hover {
  background: rgba(30, 41, 59, 0.8);
  border-color: var(--primary);
  transform: translateY(-3px);
}

.action-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(102, 126, 234, 0.1);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: all 0.3s ease;
}

.action-card:hover .action-icon {
  background: var(--primary);
  color: white;
  box-shadow: 0 0 20px rgba(102, 126, 234, 0.4);
}

.action-label {
  color: var(--text-primary);
  font-weight: 600;
  font-size: 1rem;
}

/* Section Headers */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.section-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: white;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.section-title i {
  color: var(--primary);
}

/* === CHAT STYLES === */
.chat-container {
  display: grid;
  grid-template-columns: 350px 1fr;
  gap: 1.5rem;
  height: calc(100vh - 180px);
  margin-top: 1rem;
}

.users-list {
  background: rgba(30, 41, 59, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.users-header {
  padding: 1.5rem;
  background: rgba(15, 23, 42, 0.4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.users-header h5 {
  margin: 0;
  color: white;
  font-weight: 700;
}

.users-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 0.5rem;
}

.user-item {
  padding: 1rem;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 0.5rem;
}

.user-item:hover {
  background: rgba(102, 126, 234, 0.1);
}

.user-item.active {
  background: rgba(102, 126, 234, 0.2);
  border-left: 3px solid var(--primary);
}

.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 1.1rem;
}

.unread-badge {
  background: var(--danger);
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
}

.chat-area {
  background: rgba(30, 41, 59, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.chat-header {
  padding: 1.5rem;
  background: rgba(15, 23, 42, 0.4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.chat-header h5 {
  margin: 0;
  color: white;
  font-weight: 700;
}

.chat-messages {
  flex: 1;
  padding: 1.5rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.message {
  max-width: 70%;
  padding: 1rem;
  border-radius: 12px;
  animation: fadeIn 0.3s ease;
}

.message.sent {
  align-self: flex-end;
  background: var(--primary-gradient);
  color: white;
}

.message.received {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.05);
  color: white;
}

.message-text {
  margin-bottom: 0.5rem;
  word-wrap: break-word;
}

.message-time {
  font-size: 0.75rem;
  opacity: 0.7;
  text-align: right;
}

.chat-input-area {
  padding: 1.5rem;
  background: rgba(15, 23, 42, 0.4);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.chat-input {
  width: 100%;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
  border-radius: 12px;
  padding: 0.75rem 1rem;
  resize: none;
  margin-bottom: 0.75rem;
}

.chat-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.send-btn {
  background: var(--primary-gradient);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
}

.send-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

/* === SETTINGS STYLES === */
.settings-card {
  background: rgba(30, 41, 59, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  margin-bottom: 2rem;
}

.settings-header {
  padding: 1.5rem 2rem;
  background: rgba(15, 23, 42, 0.4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.settings-header h5 {
  margin: 0;
  color: white;
  font-weight: 700;
  font-size: 1.25rem;
}

.settings-body {
  padding: 2rem;
}

.profile-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--primary-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

/* === BADGE STATUS STYLES === */
.badge-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
}

.badge-pending {
  background: rgba(251, 191, 36, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.3);
}

.badge-success {
  background: rgba(74, 222, 128, 0.2);
  color: #4ade80;
  border: 1px solid rgba(74, 222, 128, 0.3);
}

.badge-danger {
  background: rgba(248, 113, 113, 0.2);
  color: #f87171;
  border: 1px solid rgba(248, 113, 113, 0.3);
}

.badge-active {
  background: rgba(74, 222, 128, 0.2);
  color: #4ade80;
  border: 1px solid rgba(74, 222, 128, 0.3);
}

.badge-blocked {
  background: rgba(248, 113, 113, 0.2);
  color: #f87171;
  border: 1px solid rgba(248, 113, 113, 0.3);
}

.badge-role {
  background: rgba(102, 126, 234, 0.2);
  color: #667eea;
  border: 1px solid rgba(102, 126, 234, 0.3);
  padding: 0.375rem 0.75rem;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
}

/* === STAT ICON COLORS === */
.stat-icon.orange {
  background: rgba(251, 191, 36, 0.1);
  color: #fbbf24;
}

.stat-icon.green {
  background: rgba(74, 222, 128, 0.1);
  color: #4ade80;
}

.stat-icon.red {
  background: rgba(248, 113, 113, 0.1);
  color: #f87171;
}

/* === RESPONSIVE CHAT === */
@media (max-width: 992px) {
  .chat-container {
    grid-template-columns: 1fr;
    height: auto;
  }

  .users-list {
    max-height: 300px;
  }

  .chat-area {
    min-height: 500px;
  }
}