@charset "UTF-8";
.creator-sidebar {
  width: var(--sidebar-width);
  position: fixed;
  height: 100vh;
  overflow-y: auto;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  /* === Section Logo === */
  /* === Header === */
  /* === Navigation === */ }
  .creator-sidebar .sidebar-logo {
    background: linear-gradient(120deg, #00a0e3 0%, #00a0e3 60%, #ffed00 100%);
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1.5rem;
    justify-content: center; }
    .creator-sidebar .sidebar-logo .sidebar-logo-img {
      height: 50px;
      width: auto;
      object-fit: contain;
      filter: brightness(0) invert(1);
      margin-right: 20px;
      background: transparent;
      transition: transform 0.25s ease, filter 0.25s ease; }
    .creator-sidebar .sidebar-logo:hover .sidebar-logo-img {
      transform: scale(1.05);
      filter: brightness(0) invert(0.9);
      /* un tout petit peu plus lumineux */ }
    .creator-sidebar .sidebar-logo .sidebar-logo-text {
      font-family: var(--font-display);
      font-size: 1rem;
      font-weight: 600;
      color: var(--white) !important;
      letter-spacing: 0.02em;
      margin: 0; }
  .creator-sidebar .sidebar-header {
    padding: 2rem 1.5rem 1rem;
    border-bottom: 1px solid var(--gray-100); }
    .creator-sidebar .sidebar-header .sidebar-title {
      font-family: var(--font-display);
      font-weight: 600;
      color: var(--gray-900);
      margin: 0;
      font-size: 0.875rem;
      text-transform: uppercase;
      letter-spacing: 0.05em; }
  .creator-sidebar .sidebar-nav {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    padding: 1rem 0;
    /* === Navbar User en bas === */ }
    .creator-sidebar .sidebar-nav .sidebar-link {
      display: flex;
      align-items: center;
      padding: 1rem 1.5rem;
      color: var(--gray-600);
      text-decoration: none;
      transition: var(--transition-normal);
      font-weight: 500;
      border-left: 3px solid transparent; }
      .creator-sidebar .sidebar-nav .sidebar-link i {
        width: 20px;
        margin-right: 0.75rem;
        font-size: 1rem; }
      .creator-sidebar .sidebar-nav .sidebar-link:hover {
        background: var(--gray-50);
        color: var(--gray-900);
        border-left-color: var(--primary-color);
        transform: translateX(2px); }
      .creator-sidebar .sidebar-nav .sidebar-link.active {
        background: rgba(102, 126, 234, 0.1);
        color: var(--primary-color);
        border-left-color: var(--primary-color);
        font-weight: 600; }
    .creator-sidebar .sidebar-nav .navbar-nav {
      margin-top: auto;
      position: sticky;
      bottom: 1rem;
      padding-left: 0;
      list-style: none;
      background: var(--white);
      z-index: 2; }
      .creator-sidebar .sidebar-nav .navbar-nav .nav-item a.nav-link {
        display: flex;
        align-items: center;
        padding: 0.75rem 1.5rem;
        color: var(--gray-600);
        text-decoration: none;
        transition: var(--transition-normal); }
        .creator-sidebar .sidebar-nav .navbar-nav .nav-item a.nav-link i {
          width: 20px;
          margin-right: 0.75rem; }
        .creator-sidebar .sidebar-nav .navbar-nav .nav-item a.nav-link:hover {
          color: var(--primary-color); }
      .creator-sidebar .sidebar-nav .navbar-nav .nav-item .dropdown-menu {
        background: transparent;
        border: none;
        padding-left: 1.5rem; }

.icon-sidebar {
  width: 20px;
  height: 20px;
  margin-right: 0.75rem; }

/* Modern AI Agent Builder Design System */
:root {
  /* Color Palette */
  --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --success-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  /* Colors */
  --primary-color: #293f7a;
  --secondary-color: #764ba2;
  --accent-color: #f093fb;
  --success-color: #00f2fe;
  --warning-color: #ffd54f;
  --error-color: #ff6b6b;
  /* Extended Colors */
  --success-light: rgb(16, 185, 129);
  --success-dark: #065f46;
  --primary-light: rgba(59, 130, 246, 0.1);
  --primary-dark: #1e40af;
  --warning-light: rgba(245, 158, 11, 0.1);
  --warning-dark: #92400e;
  --info-light: rgba(6, 182, 212, 0.1);
  --info-dark: #155e75;
  /* Neutrals */
  --white: #ffffff;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;
  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  /* Spacing */
  --navbar-height: 80px;
  --sidebar-width: 280px;
  /* 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);
  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s ease;
  --transition-slow: 0.4s ease; }

/* Dark Theme */
[data-bs-theme="dark"] {
  --white: #0f172a;
  --gray-50: #1e293b;
  --gray-100: #334155;
  --gray-200: #475569;
  --gray-300: #64748b;
  --gray-400: #94a3b8;
  --gray-500: #cbd5e1;
  --gray-600: #e2e8f0;
  --gray-700: #f1f5f9;
  --gray-800: #f8fafc;
  --gray-900: #ffffff; }

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

html {
  height: 100%;
  scroll-behavior: smooth; }

body {
  font-family: var(--font-primary);
  font-size: 0.925rem;
  line-height: 1.6;
  color: var(--gray-700);
  background: var(--gray-50);
  min-height: 100vh;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale; }

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

.display-1,
.display-2,
.display-3,
.display-4,
.display-5,
.display-6 {
  font-family: var(--font-display);
  font-weight: 700; }

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

.bg-success-gradient {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important; }

.bg-warning-gradient {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important; }

.bg-info-gradient {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%) !important; }

.bg-danger-gradient {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important; }

/* Color Utility Classes */
.bg-success-subtle {
  background-color: rgba(16, 185, 129, 0.1) !important; }

.bg-primary-subtle {
  background-color: rgba(59, 130, 246, 0.1) !important; }

.text-success {
  color: #10b981 !important; }

.text-primary {
  color: #3b82f6 !important; }

.text-warning {
  color: #f59e0b !important; }

.text-info {
  color: #06b6d4 !important; }

/* Modern Navigation */
.modern-navbar {
  background: var(--primary-gradient) !important;
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1rem 0;
  height: var(--navbar-height);
  box-shadow: var(--shadow-lg); }

.brand-icon {
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white; }

.brand-text {
  display: flex;
  flex-direction: column; }

.brand-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  line-height: 1.2; }

.brand-subtitle {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 400; }

.modern-nav-link {
  display: flex;
  align-items: center;
  padding: 0.75rem 1.25rem !important;
  border-radius: var(--radius-lg);
  transition: var(--transition-normal);
  color: rgba(255, 255, 255, 0.9) !important;
  font-weight: 500;
  margin: 0 0.25rem; }

.modern-nav-link:hover {
  background: rgba(255, 255, 255, 0.15);
  color: white !important;
  transform: translateY(-1px); }

.modern-nav-link.active {
  background: rgba(255, 255, 255, 0.2);
  color: white !important; }

.modern-user-menu {
  display: flex;
  align-items: center;
  padding: 0.5rem 1rem !important;
  border-radius: var(--radius-lg);
  transition: var(--transition-normal);
  color: white !important;
  text-decoration: none; }

.modern-user-menu:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white !important; }

.user-avatar {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 0.75rem;
  font-size: 1rem; }

.user-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start; }

.user-name {
  font-weight: 600;
  font-size: 0.875rem;
  line-height: 1.2; }

.user-role {
  font-size: 0.75rem;
  opacity: 0.8; }

.modern-dropdown {
  border: none;
  box-shadow: var(--shadow-xl);
  border-radius: var(--radius-lg);
  padding: 0.5rem 0;
  min-width: 220px;
  background: var(--white); }

.modern-dropdown .dropdown-header {
  padding: 1rem 1.5rem 0.5rem; }

.user-header strong {
  display: block;
  color: var(--gray-900);
  font-weight: 600; }

.theme-toggle {
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-normal); }

.theme-toggle:hover {
  background: rgba(255, 255, 255, 0.2) !important;
  border-color: rgba(255, 255, 255, 0.3) !important; }

/* Main Content Layout */
.main-content {
  /* margin-top: var(--navbar-height); */
  margin-left: var(--sidebar-width);
  min-height: calc(100vh - var(--navbar-height)); }

/* Creator Layout */
.creator-layout {
  display: flex;
  min-height: calc(100vh - var(--navbar-height)); }

.creator-main {
  flex: 1;
  /* margin-left: var(--sidebar-width); */
  background: var(--gray-50); }

/* Main Content */
.main-content {
  min-height: calc(100vh - 80px); }

/* Cards */
.card {
  border: 1px solid var(--border-color);
  border-radius: 12px !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  overflow: hidden;
  z-index: 1; }

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  z-index: 1; }

.card-header {
  background: var(--gradient-bg);
  color: white;
  border-bottom: none;
  padding: 1.25rem;
  font-weight: 600; }

.card-body {
  padding: 1.5rem; }

/* Buttons */
.btn {
  border-radius: 8px;
  font-weight: 500;
  padding: 0.75rem 1.5rem;
  transition: all 0.3s ease;
  border: none;
  text-decoration: none; }

.btn-primary {
  background: var(--gradient-bg);
  color: white;
  box-shadow: 0 4px 15px rgba(30, 58, 138, 0.3); }

.btn-secondary {
  background-color: var(--light-gray);
  color: var(--text-color);
  border: 1px solid var(--border-color); }

.btn-secondary:hover {
  transform: translateY(-3px);
  /* le flottement */
  transition: transform 0.2s ease, background-color 0.2s ease; }

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

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

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem; }

/* Forms */
.form-control {
  border: 2px solid var(--border-color);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  transition: all 0.3s ease;
  background-color: white; }

.form-control:focus {
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
  outline: none; }

.form-label {
  font-weight: 600;
  color: var(--dark-color);
  margin-bottom: 0.5rem; }

.form-group {
  margin-bottom: 1.5rem; }

/* Dashboard Stats */
/* Chat Interface */
.chat-container {
  height: 70vh;
  display: flex;
  flex-direction: column;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05); }

.chat-header {
  background: var(--gradient-bg);
  color: white;
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem; }

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  background-color: #f8fafc; }

.message {
  margin-bottom: 1rem;
  display: flex;
  gap: 0.75rem; }

.message.user {
  justify-content: flex-end; }

.message-content {
  max-width: 70%;
  padding: 1rem 1.25rem;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); }

.message.user .message-content {
  background: var(--gradient-bg);
  color: #000000;
  border-bottom-right-radius: 4px; }

.message.ai .message-content {
  background: white;
  color: var(--text-color);
  border: 1px solid var(--border-color);
  border-bottom-left-radius: 4px; }

.message-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.5rem;
  font-size: 0.75rem;
  color: #64748b; }

.feedback-buttons {
  display: flex;
  gap: 0.5rem; }

.feedback-btn {
  background: none;
  border: none;
  color: #64748b;
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 4px;
  transition: all 0.2s ease; }

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

.feedback-btn.active.good {
  color: var(--success-color); }

.feedback-btn.active.bad {
  color: var(--error-color); }

.chat-input {
  padding: 1rem;
  background: white;
  border-top: 1px solid var(--border-color); }

.chat-input-group {
  display: flex;
  gap: 0.75rem; }

.chat-input-group input {
  flex: 1; }

/* Agent Cards */
.agent-card {
  transition: all 0.3s ease;
  cursor: pointer; }

.agent-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1); }

.agent-logo {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  object-fit: cover;
  border: 3px solid var(--border-color); }

.agent-info h5 {
  color: var(--dark-color);
  font-weight: 600;
  margin-bottom: 0.5rem; }

.agent-info p {
  color: var(--text-color);
  font-size: 0.875rem;
  margin: 0; }

.api-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase; }

.api-badge.openai {
  background-color: #e0f2fe;
  color: #0277bd; }

.api-badge.anthropic {
  background-color: #f3e5f5;
  color: #7b1fa2; }

.api-badge.google {
  background-color: #e8f5e8;
  color: #2e7d32; }

/* Tables */
.table {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05); }

.table thead {
  background: var(--gradient-bg); }

.table thead th {
  background: transparent;
  color: white;
  border: none;
  font-weight: 600;
  padding: 1rem; }

.table tbody tr {
  transition: all 0.2s ease; }

.table tbody tr:hover {
  background-color: var(--light-gray); }

.table tbody td {
  padding: 1rem;
  border-color: var(--border-color); }

/* Alerts */
.alert {
  border-radius: 8px;
  border: none;
  padding: 1rem 1.25rem;
  margin-bottom: 1rem; }

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

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

.alert-info {
  background-color: #eff6ff;
  color: #1e40af;
  border-left: 4px solid var(--secondary-color); }

/* Loading states */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid var(--secondary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite; }

@keyframes spin {
  0% {
    transform: rotate(0deg); }
  100% {
    transform: rotate(360deg); } }

/* Responsive Design */
@media (max-width: 768px) {
  .stats-card {
    margin-bottom: 1rem; }
  .message-content {
    max-width: 85%; }
  .chat-container {
    height: 60vh; }
  .agent-card {
    margin-bottom: 1rem; } }

/* Welcome/Landing Page */
.feature-card {
  text-align: center;
  padding: 2rem;
  height: 100%; }

.feature-icon {
  width: 80px;
  height: 80px;
  background: var(--gradient-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: white;
  font-size: 2rem; }

/* Custom scrollbar */
.chat-messages::-webkit-scrollbar {
  width: 6px; }

.chat-messages::-webkit-scrollbar-track {
  background: #f1f1f1; }

.chat-messages::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 3px; }

.chat-messages::-webkit-scrollbar-thumb:hover {
  background: var(--secondary-color); }

/* Custom button styles */
.btn-outline-purple {
  color: #8b5cf6 !important;
  border-color: #8b5cf6 !important;
  background-color: transparent !important; }

.btn-outline-purple:hover {
  color: #fff !important;
  background-color: #8b5cf6 !important;
  border-color: #8b5cf6 !important; }

/* Ensure button group doesn't overflow */
.btn-group-sm .btn {
  min-width: auto;
  padding: 0.25rem 0.4rem; }

/* Force integration button visibility */
a[title="Integrations"] {
  display: inline-block !important;
  visibility: visible !important;
  opacity: 1 !important;
  position: relative !important;
  z-index: 1 !important; }

/* Modern Buttons */
.btn {
  border-radius: var(--radius-lg);
  font-weight: 500;
  transition: var(--transition-normal);
  border-width: 1px;
  font-size: 0.875rem;
  padding: 0.625rem 1.25rem; }

.btn-primary {
  background: var(--primary-gradient);
  border: none;
  color: white; }

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg); }

.btn-secondary {
  background: var(--gray-600);
  border-color: var(--gray-600);
  color: white; }

.btn-outline-primary {
  border-color: var(--primary-color);
  color: var(--primary-color); }

.btn-outline-primary:hover {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
  transform: translateY(-1px); }

.btn-lg {
  padding: 0.875rem 2rem;
  font-size: 1rem;
  border-radius: var(--radius-xl); }

.btn-sm {
  padding: 0.375rem 0.75rem;
  font-size: 0.75rem;
  border-radius: var(--radius-md); }

/* Modern Forms */
.form-control {
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-lg);
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  transition: var(--transition-normal);
  background: var(--white); }

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
  background: var(--white); }

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

.form-select {
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-300);
  padding: 0.75rem 1rem; }

/* Modern Tables */
.table {
  background: var(--white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-bottom: 0; }

.table th {
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
  color: var(--gray-700);
  font-weight: 600;
  padding: 1rem;
  font-size: 0.875rem; }

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

.table tbody tr:hover {
  background: var(--gray-50); }

/* Modern Alerts */
.alert {
  border: none;
  border-radius: var(--radius-lg);
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem; }

.alert-success {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(5, 150, 105, 0.05) 100%);
  color: #047857;
  border-left: 4px solid #10b981; }

.alert-danger {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(220, 38, 38, 0.05) 100%);
  color: #dc2626;
  border-left: 4px solid #ef4444; }

.alert-warning {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(217, 119, 6, 0.05) 100%);
  color: #d97706;
  border-left: 4px solid #f59e0b; }

.alert-info {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(37, 99, 235, 0.05) 100%);
  color: #2563eb;
  border-left: 4px solid #3b82f6; }

/* Responsive Design */
@media (max-width: 768px) {
  .creator-sidebar {
    transform: translateX(-100%);
    transition: var(--transition-normal); }
  .creator-sidebar.show {
    transform: translateX(0); }
  .creator-main {
    margin-left: 0; }
  .brand-subtitle {
    display: none !important; } }

/* Animation Classes */
.fade-in {
  animation: fadeIn 0.5s ease-in; }

.slide-up {
  animation: slideUp 0.5s ease-out; }

@keyframes fadeIn {
  from {
    opacity: 0; }
  to {
    opacity: 1; } }

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px); }
  to {
    opacity: 1;
    transform: translateY(0); } }

/* Utility Classes */
.text-gradient {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text; }

.bg-gradient {
  background: var(--primary-gradient); }

.shadow-soft {
  box-shadow: var(--shadow-lg); }

/* Modern Footer */
.modern-footer {
  background: var(--white);
  border-top: 1px solid var(--gray-200);
  padding: 2rem 0;
  margin-top: auto;
  position: relative;
  z-index: 1;
  margin-left: var(--sidebar-width); }

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.125rem;
  color: var(--gray-900);
  margin-bottom: 0.5rem; }

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

.footer-links {
  display: flex;
  justify-content: flex-end;
  gap: 1.5rem;
  margin-bottom: 0.5rem; }

.footer-link {
  color: var(--gray-600);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: var(--transition-normal); }

.footer-link:hover {
  color: var(--primary-color); }

/* Make sure all buttons are visible */
.btn-group {
  flex-wrap: wrap !important; }

/* Responsive button group for small screens */
@media (max-width: 768px) {
  .btn-group {
    display: flex;
    flex-direction: row;
    gap: 2px; }
  .btn-group .btn {
    flex: 0 0 auto;
    font-size: 0.75rem;
    padding: 0.2rem 0.3rem; } }

/* Dashboard Modern Components */
/* Hero Section */
.quick-actions-group {
  display: flex;
  align-items: center;
  gap: 0.5rem; }

/* Modern Cards */
.modern-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  overflow: hidden; }

.modern-card:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px); }

.modern-card .card-header {
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
  padding: 1.5rem 2rem;
  border-radius: 16px 16px 0 0; }

.modern-card .card-body {
  padding: 2rem; }

/* Stats Cards */
/* Action Cards */
.action-card {
  display: block;
  text-decoration: none;
  background: var(--white);
  border: 2px solid var(--gray-200);
  border-radius: 12px;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
  height: 100%;
  color: inherit; }

.action-card:hover {
  border-color: var(--primary);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.15);
  transform: translateY(-2px);
  text-decoration: none;
  color: inherit; }

.action-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.2rem;
  color: white; }

.action-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--gray-900); }

.action-desc {
  font-size: 0.85rem;
  color: var(--gray-600);
  margin: 0; }

/* System Health Metrics */
/* Agent Grid */
.agent-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 1.5rem;
  padding: 2rem; }

.agent-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease; }

.agent-card:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  border-color: var(--primary); }

.agent-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem;
  border-bottom: 1px solid var(--gray-100); }

.agent-avatar {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0; }

.agent-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover; }

.avatar-placeholder {
  width: 100%;
  height: 100%;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-500);
  font-size: 1.2rem; }

.agent-info {
  flex: 1;
  min-width: 0; }

.agent-name {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--gray-900); }

.agent-description {
  font-size: 0.85rem;
  color: var(--gray-600);
  margin: 0;
  line-height: 1.4; }

.agent-details {
  padding: 1rem 1.5rem;
  background: var(--gray-50);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem; }

.detail-item {
  font-size: 0.8rem;
  color: var(--gray-600);
  display: flex;
  align-items: center; }

.agent-actions {
  padding: 1rem 1.5rem;
  display: flex;
  gap: 0.5rem; }

/* Empty State */
.empty-state {
  padding: 3rem; }

.empty-state i {
  opacity: 0.5; }

.empty-state h5 {
  color: var(--gray-700);
  margin-bottom: 1rem; }

.empty-state p {
  max-width: 400px;
  margin: 0 auto 2rem; }

/* Integration page fixes */
.integration-card .card-title,
.integration-card .integration-name,
.integration-list .integration-name,
.integration-item .card-title,
.integration-item h5,
.integration-item h6 {
  color: #212529 !important;
  /* Bootstrap's dark text color */ }

.integration-card .card-text,
.integration-item .card-text {
  color: #6c757d;
  /* Bootstrap's muted text color for descriptions */ }

/* Ensure integration status badges are visible */
.integration-status {
  color: #fff; }

/* Fix any white text on light backgrounds */
.card .text-white {
  color: #212529 !important; }

/* Specific fixes for integration page elements */
.integrations-page .card-title,
.integrations-page .integration-name,
.integrations-page h1,
.integrations-page h2,
.integrations-page h3,
.integrations-page h4,
.integrations-page h5,
.integrations-page h6 {
  color: #212529 !important;
  /* Force black text */ }

/* Dashboard: ensure badge counters' numbers are black */
.hero-section .badge,
.navbar .nav-link .badge,
.quick-actions-group .badge,
.card .badge.position-absolute,
.card-header .badge,
.stats-card .badge,
.modern-card .badge,
.badge.translate-middle,
.badge.rounded-pill.counter,
.badge.badge-counter,
sup.badge {
  color: #212529 !important;
  /* Force black text for counters */ }

/* Keep status badges readable (do not invert) */
.status-badge,
.badge.bg-success,
.badge.bg-primary,
.badge.bg-info,
.badge.bg-danger,
.badge.bg-warning,
.badge.bg-secondary,
.badge.bg-dark {
  color: #fff !important; }

/* Optional: nav/link counters specifically */
.nav-link .badge,
.btn .badge {
  color: #212529 !important; }

/* If any badge counter sits on light background and needs lighter border */
.card .badge.position-absolute,
.nav-link .badge {
  /* border: 1px solid rgba(0,0,0,0.1); */
  /* uncomment if needed for contrast */ }

/* Dashboard-specific: force badge counter numbers to black (placed last to override bg-* rules) */
.dashboard-page .badge:not(.status-badge):not(.integration-status),
.dashboard-page .badge.position-absolute,
.dashboard-page .badge.translate-middle,
.dashboard-page .badge.rounded-pill,
.dashboard-page sup.badge {
  color: #212529 !important; }

/* Final override: Force dashboard stats numbers to be black (highest specificity) */
.dashboard-page .stats-number,
.dashboard-page .modern-card .stats-number,
.dashboard-page .stats-card .stats-number,
.stats-card .stats-info .stats-number,
.modern-card .stats-info .stats-number,
.card-content .stats-info .stats-number {
  color: #212529 !important;
  text-fill-color: #212529 !important;
  -webkit-text-fill-color: #212529 !important;
  background-clip: unset !important;
  -webkit-background-clip: unset !important; }

/* Ultra-specific integration name fixes - maximum specificity */
.integration-card .flex-grow-1 h5,
.integration-card .integration-header h5,
.integration-card .integration-header .flex-grow-1 h5,
.integration-card .d-flex .flex-grow-1 h5,
.integration-card .integration-name,
.integration-header .integration-name,
.flex-grow-1 .integration-name,
.integration-card h5.integration-name,
.integration-card h5.mb-1,
div.integration-card h5,
div.integration-card .card-title,
.col-md-12 .integration-card h5,
.row .col-md-12 .integration-card h5 {
  color: #212529 !important;
  text-fill-color: #212529 !important;
  -webkit-text-fill-color: #212529 !important;
  background: none !important;
  background-clip: unset !important;
  -webkit-background-clip: unset !important; }

/* Force any text in integration cards to be visible */
.integration-card *:not(.btn):not(.badge):not(.text-muted) {
  color: #212529 !important; }

/* Ensure muted text stays muted but visible */
.integration-card .text-muted {
  color: #6c757d !important; }

/* COMPREHENSIVE INTEGRATION TEXT FIX - Covers all integration templates */
/* Target all possible integration page patterns */
.integration-card h5,
.integration-card .card-title,
.integration-card .integration-name,
.card h5.card-title,
.card .integration-name,
h5.card-title.mb-0,
.col-md-6 h5,
.col-md-4 h5,
.col-md-12 h5,
.card-body h5,
.d-flex h5,
.align-items-center h5,
.flex-grow-1 h5 {
  color: #212529 !important;
  -webkit-text-fill-color: #212529 !important;
  background: none !important;
  background-clip: unset !important;
  -webkit-background-clip: unset !important; }

/* Fix for External Integrations page specifically */
[class*="integration"] h5,
[class*="integration"] .card-title,
[class*="integration"] h1,
[class*="integration"] h2,
[class*="integration"] h3,
[class*="integration"] h4,
[class*="integration"] h6 {
  color: #212529 !important; }

/* Force all card titles to be black on any page */
.card .card-title,
.card-header h5,
.card-body h5 {
  color: #212529 !important; }

/* Override any white text in cards */
.card *:not(.btn):not(.badge):not(.text-muted):not(.text-white):not(i):not(svg) {
  color: inherit; }

.card {
  color: #212529 !important;
  margin-top: 25px; }

/* Force any text in integration cards to be visible */
.integration-card *:not(.btn):not(.badge):not(.text-muted) {
  color: #212529 !important; }

/* Ensure muted text stays muted but visible */
.integration-card .text-muted {
  color: #6c757d !important; }

/* COMPREHENSIVE INTEGRATION TEXT FIX - Covers all integration templates */
/* Target all possible integration page patterns */
.integration-card h5,
.integration-card .card-title,
.integration-card .integration-name,
.card h5.card-title,
.card .integration-name,
h5.card-title.mb-0,
.col-md-6 h5,
.col-md-4 h5,
.col-md-12 h5,
.card-body h5,
.d-flex h5,
.align-items-center h5,
.flex-grow-1 h5 {
  color: #212529 !important;
  -webkit-text-fill-color: #212529 !important;
  background: none !important;
  background-clip: unset !important;
  -webkit-background-clip: unset !important; }

/* Fix for External Integrations page specifically */
[class*="integration"] h5,
[class*="integration"] .card-title,
[class*="integration"] h1,
[class*="integration"] h2,
[class*="integration"] h3,
[class*="integration"] h4,
[class*="integration"] h6 {
  color: #212529 !important; }

/* Force all card titles to be black on any page */
.card .card-title,
.card-header h5,
.card-body h5 {
  color: #212529 !important; }

/* Override any white text in cards */
.card *:not(.btn):not(.badge):not(.text-muted):not(.text-white):not(i):not(svg) {
  color: inherit; }

.card {
  color: #212529 !important; }

/* Knowledge Base Cards */
.kb-card {
  border: 1px solid var(--gray-200);
  border-top: 4px solid var(--primary-color);
  box-shadow: var(--shadow-md);
  background: var(--white);
  transition: all 0.3s ease; }

.kb-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-color); }

/* ============================
   DASHBOARD & AGENTS PAGE SCSS
   ============================ */
/* --- Dashboard Container --- */
.dashboard-container {
  display: flex;
  gap: 2rem;
  width: 100%;
  padding: 2rem;
  max-height: 550px;
  overflow: hidden;
  align-items: stretch; }
  .dashboard-container .stats-cards {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1rem;
    width: 50%;
    min-width: 0; }
    .dashboard-container .stats-cards .modern-card.stats-card {
      flex: 1;
      background: var(--white);
      border: 1px solid var(--gray-200);
      border-radius: 14px;
      box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
      transition: all 0.3s ease;
      padding: clamp(0.8rem, 2vw, 1.5rem);
      display: flex;
      align-items: center;
      min-width: 0; }
      .dashboard-container .stats-cards .modern-card.stats-card:hover {
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
        transform: translateY(-2px); }
      .dashboard-container .stats-cards .modern-card.stats-card .card-content {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        gap: clamp(0.5rem, 1.5vw, 1.2rem);
        min-width: 0; }
      .dashboard-container .stats-cards .modern-card.stats-card .stats-icon {
        width: clamp(40px, 5vw, 55px);
        height: clamp(40px, 5vw, 55px);
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: clamp(1.2rem, 2vw, 1.8rem);
        color: white;
        flex-shrink: 0; }
        .dashboard-container .stats-cards .modern-card.stats-card .stats-icon.bg-primary-gradient {
          background: linear-gradient(135deg, #667eea, #764ba2); }
        .dashboard-container .stats-cards .modern-card.stats-card .stats-icon.bg-success-gradient {
          background: linear-gradient(135deg, #00b09b, #96c93d); }
        .dashboard-container .stats-cards .modern-card.stats-card .stats-icon.bg-warning-gradient {
          background: linear-gradient(135deg, #f6d365, #fda085); }
        .dashboard-container .stats-cards .modern-card.stats-card .stats-icon.bg-info-gradient {
          background: linear-gradient(135deg, #56ccf2, #2f80ed); }
      .dashboard-container .stats-cards .modern-card.stats-card .stats-info {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        flex: 1;
        min-width: 0;
        gap: clamp(0.3rem, 1vw, 0.4rem); }
        .dashboard-container .stats-cards .modern-card.stats-card .stats-info .stats-label {
          font-size: clamp(0.7rem, 1.5vw, 0.9rem);
          font-weight: 600;
          color: var(--gray-700);
          white-space: nowrap;
          text-overflow: ellipsis;
          overflow: hidden; }
        .dashboard-container .stats-cards .modern-card.stats-card .stats-info .stats-number {
          font-size: clamp(1rem, 2vw, 1.4rem);
          font-weight: 700;
          color: var(--gray-900); }
        .dashboard-container .stats-cards .modern-card.stats-card .stats-info .stats-trend {
          font-size: clamp(0.6rem, 1.2vw, 0.8rem);
          display: flex;
          align-items: center;
          gap: clamp(0.2rem, 0.5vw, 0.3rem);
          color: var(--gray-500); }
          .dashboard-container .stats-cards .modern-card.stats-card .stats-info .stats-trend .text-success {
            color: #28a745; }
          .dashboard-container .stats-cards .modern-card.stats-card .stats-info .stats-trend .text-info {
            color: #17a2b8; }
          .dashboard-container .stats-cards .modern-card.stats-card .stats-info .stats-trend .text-primary {
            color: #007bff; }
  @media (max-width: 768px) {
    .dashboard-container .stats-cards {
      width: 100%; } }
  .dashboard-container .system-health {
    flex: 1;
    width: 100%;
    display: flex;
    flex-direction: column; }
    .dashboard-container .system-health .modern-card {
      width: 100%;
      background: var(--white);
      border: 1px solid var(--gray-200);
      border-radius: 16px;
      box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
      overflow: hidden;
      transition: all 0.3s ease; }
      .dashboard-container .system-health .modern-card:hover {
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
        transform: translateY(-2px); }
      .dashboard-container .system-health .modern-card .card-header {
        padding: 0.8rem 1.2rem;
        border-bottom: 1px solid var(--gray-200); }
        .dashboard-container .system-health .modern-card .card-header h5 {
          margin: 0;
          font-size: 1rem;
          font-weight: 600;
          color: var(--gray-900); }
        .dashboard-container .system-health .modern-card .card-header p {
          margin: 0;
          font-size: 0.75rem;
          color: var(--gray-500); }
      .dashboard-container .system-health .modern-card .card-body {
        padding: 1rem 1.5rem;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        height: 100%; }
    .dashboard-container .system-health .metric-item,
    .dashboard-container .system-health .system-health .modern-card .card-body .metric-item {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 1.6rem 0;
      border-bottom: 1px solid var(--gray-100); }
      .dashboard-container .system-health .metric-item:last-child,
      .dashboard-container .system-health .system-health .modern-card .card-body .metric-item:last-child {
        border-bottom: none; }
      .dashboard-container .system-health .metric-item .metric-label,
      .dashboard-container .system-health .metric-item .system-health .modern-card .card-body .metric-item .metric-label,
      .dashboard-container .system-health .system-health .modern-card .card-body .metric-item .metric-label,
      .dashboard-container .system-health .system-health .modern-card .card-body .metric-item .system-health .modern-card .card-body .metric-item .metric-label {
        font-size: 0.9rem;
        color: var(--gray-700);
        display: flex;
        align-items: center;
        gap: 0.3rem; }
        .dashboard-container .system-health .metric-item .metric-label i,
        .dashboard-container .system-health .metric-item .system-health .modern-card .card-body .metric-item .metric-label i,
        .dashboard-container .system-health .system-health .modern-card .card-body .metric-item .metric-label i,
        .dashboard-container .system-health .system-health .modern-card .card-body .metric-item .system-health .modern-card .card-body .metric-item .metric-label i {
          font-size: 1rem;
          line-height: 1; }
      .dashboard-container .system-health .metric-item .metric-value,
      .dashboard-container .system-health .metric-item .system-health .modern-card .card-body .metric-item .metric-value,
      .dashboard-container .system-health .system-health .modern-card .card-body .metric-item .metric-value,
      .dashboard-container .system-health .system-health .modern-card .card-body .metric-item .system-health .modern-card .card-body .metric-item .metric-value {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        gap: 0.25rem;
        font-size: 0.8rem; }
        .dashboard-container .system-health .metric-item .metric-value .progress-bar-modern,
        .dashboard-container .system-health .metric-item .metric-value .system-health .modern-card .card-body .metric-item .metric-value .progress-bar-modern,
        .dashboard-container .system-health .metric-item .system-health .modern-card .card-body .metric-item .metric-value .progress-bar-modern,
        .dashboard-container .system-health .metric-item .system-health .modern-card .card-body .metric-item .metric-value .system-health .modern-card .card-body .metric-item .metric-value .progress-bar-modern,
        .dashboard-container .system-health .system-health .modern-card .card-body .metric-item .metric-value .progress-bar-modern,
        .dashboard-container .system-health .system-health .modern-card .card-body .metric-item .metric-value .system-health .modern-card .card-body .metric-item .metric-value .progress-bar-modern,
        .dashboard-container .system-health .system-health .modern-card .card-body .metric-item .system-health .modern-card .card-body .metric-item .metric-value .progress-bar-modern,
        .dashboard-container .system-health .system-health .modern-card .card-body .metric-item .system-health .modern-card .card-body .metric-item .metric-value .system-health .modern-card .card-body .metric-item .metric-value .progress-bar-modern {
          width: 100px;
          height: 6px;
          background: var(--gray-200);
          border-radius: 3px;
          overflow: hidden; }
          .dashboard-container .system-health .metric-item .metric-value .progress-bar-modern .progress-fill,
          .dashboard-container .system-health .metric-item .metric-value .progress-bar-modern .system-health .modern-card .card-body .metric-item .metric-value .progress-bar-modern .progress-fill,
          .dashboard-container .system-health .metric-item .metric-value .system-health .modern-card .card-body .metric-item .metric-value .progress-bar-modern .progress-fill,
          .dashboard-container .system-health .metric-item .metric-value .system-health .modern-card .card-body .metric-item .metric-value .progress-bar-modern .system-health .modern-card .card-body .metric-item .metric-value .progress-bar-modern .progress-fill,
          .dashboard-container .system-health .metric-item .system-health .modern-card .card-body .metric-item .metric-value .progress-bar-modern .progress-fill,
          .dashboard-container .system-health .metric-item .system-health .modern-card .card-body .metric-item .metric-value .progress-bar-modern .system-health .modern-card .card-body .metric-item .metric-value .progress-bar-modern .progress-fill,
          .dashboard-container .system-health .metric-item .system-health .modern-card .card-body .metric-item .metric-value .system-health .modern-card .card-body .metric-item .metric-value .progress-bar-modern .progress-fill,
          .dashboard-container .system-health .metric-item .system-health .modern-card .card-body .metric-item .metric-value .system-health .modern-card .card-body .metric-item .metric-value .progress-bar-modern .system-health .modern-card .card-body .metric-item .metric-value .progress-bar-modern .progress-fill,
          .dashboard-container .system-health .system-health .modern-card .card-body .metric-item .metric-value .progress-bar-modern .progress-fill,
          .dashboard-container .system-health .system-health .modern-card .card-body .metric-item .metric-value .progress-bar-modern .system-health .modern-card .card-body .metric-item .metric-value .progress-bar-modern .progress-fill,
          .dashboard-container .system-health .system-health .modern-card .card-body .metric-item .metric-value .system-health .modern-card .card-body .metric-item .metric-value .progress-bar-modern .progress-fill,
          .dashboard-container .system-health .system-health .modern-card .card-body .metric-item .metric-value .system-health .modern-card .card-body .metric-item .metric-value .progress-bar-modern .system-health .modern-card .card-body .metric-item .metric-value .progress-bar-modern .progress-fill,
          .dashboard-container .system-health .system-health .modern-card .card-body .metric-item .system-health .modern-card .card-body .metric-item .metric-value .progress-bar-modern .progress-fill,
          .dashboard-container .system-health .system-health .modern-card .card-body .metric-item .system-health .modern-card .card-body .metric-item .metric-value .progress-bar-modern .system-health .modern-card .card-body .metric-item .metric-value .progress-bar-modern .progress-fill,
          .dashboard-container .system-health .system-health .modern-card .card-body .metric-item .system-health .modern-card .card-body .metric-item .metric-value .system-health .modern-card .card-body .metric-item .metric-value .progress-bar-modern .progress-fill,
          .dashboard-container .system-health .system-health .modern-card .card-body .metric-item .system-health .modern-card .card-body .metric-item .metric-value .system-health .modern-card .card-body .metric-item .metric-value .progress-bar-modern .system-health .modern-card .card-body .metric-item .metric-value .progress-bar-modern .progress-fill {
            height: 100%;
            background: var(--primary-gradient);
            border-radius: 3px;
            transition: width 0.3s ease; }
        .dashboard-container .system-health .metric-item .metric-value .status-badge,
        .dashboard-container .system-health .metric-item .metric-value .system-health .modern-card .card-body .metric-item .metric-value .status-badge,
        .dashboard-container .system-health .metric-item .system-health .modern-card .card-body .metric-item .metric-value .status-badge,
        .dashboard-container .system-health .metric-item .system-health .modern-card .card-body .metric-item .metric-value .system-health .modern-card .card-body .metric-item .metric-value .status-badge,
        .dashboard-container .system-health .system-health .modern-card .card-body .metric-item .metric-value .status-badge,
        .dashboard-container .system-health .system-health .modern-card .card-body .metric-item .metric-value .system-health .modern-card .card-body .metric-item .metric-value .status-badge,
        .dashboard-container .system-health .system-health .modern-card .card-body .metric-item .system-health .modern-card .card-body .metric-item .metric-value .status-badge,
        .dashboard-container .system-health .system-health .modern-card .card-body .metric-item .system-health .modern-card .card-body .metric-item .metric-value .system-health .modern-card .card-body .metric-item .metric-value .status-badge {
          padding: 0.25rem 0.75rem;
          border-radius: 20px;
          font-size: 0.75rem;
          font-weight: 600;
          text-transform: uppercase;
          letter-spacing: 0.05em; }
        .dashboard-container .system-health .metric-item .metric-value .status-online,
        .dashboard-container .system-health .metric-item .metric-value .system-health .modern-card .card-body .metric-item .metric-value .status-online,
        .dashboard-container .system-health .metric-item .system-health .modern-card .card-body .metric-item .metric-value .status-online,
        .dashboard-container .system-health .metric-item .system-health .modern-card .card-body .metric-item .metric-value .system-health .modern-card .card-body .metric-item .metric-value .status-online,
        .dashboard-container .system-health .system-health .modern-card .card-body .metric-item .metric-value .status-online,
        .dashboard-container .system-health .system-health .modern-card .card-body .metric-item .metric-value .system-health .modern-card .card-body .metric-item .metric-value .status-online,
        .dashboard-container .system-health .system-health .modern-card .card-body .metric-item .system-health .modern-card .card-body .metric-item .metric-value .status-online,
        .dashboard-container .system-health .system-health .modern-card .card-body .metric-item .system-health .modern-card .card-body .metric-item .metric-value .system-health .modern-card .card-body .metric-item .metric-value .status-online {
          background: var(--success-light);
          color: var(--success-dark); }
        .dashboard-container .system-health .metric-item .metric-value .status-offline,
        .dashboard-container .system-health .metric-item .metric-value .system-health .modern-card .card-body .metric-item .metric-value .status-offline,
        .dashboard-container .system-health .metric-item .system-health .modern-card .card-body .metric-item .metric-value .status-offline,
        .dashboard-container .system-health .metric-item .system-health .modern-card .card-body .metric-item .metric-value .system-health .modern-card .card-body .metric-item .metric-value .status-offline,
        .dashboard-container .system-health .system-health .modern-card .card-body .metric-item .metric-value .status-offline,
        .dashboard-container .system-health .system-health .modern-card .card-body .metric-item .metric-value .system-health .modern-card .card-body .metric-item .metric-value .status-offline,
        .dashboard-container .system-health .system-health .modern-card .card-body .metric-item .system-health .modern-card .card-body .metric-item .metric-value .status-offline,
        .dashboard-container .system-health .system-health .modern-card .card-body .metric-item .system-health .modern-card .card-body .metric-item .metric-value .system-health .modern-card .card-body .metric-item .metric-value .status-offline {
          background: var(--gray-200);
          color: var(--gray-600); }

/* --- Recent Agents Section --- */
.recent-agents-section {
  width: 100%;
  padding: 2rem;
  display: flex; }
  .recent-agents-section .modern-card {
    width: 100%;
    max-width: 1200px;
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
    overflow: hidden; }
    .recent-agents-section .modern-card .card-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 1.5rem 2rem;
      border-bottom: 1px solid var(--gray-100); }
      .recent-agents-section .modern-card .card-header .header-left {
        display: flex;
        flex-direction: column; }
        .recent-agents-section .modern-card .card-header .header-left h5 {
          font-size: 1.1rem;
          font-weight: 600;
          color: var(--gray-900); }
          .recent-agents-section .modern-card .card-header .header-left h5 i {
            margin-right: 0.5rem;
            color: var(--primary); }
        .recent-agents-section .modern-card .card-header .header-left .subtitle {
          font-size: 0.85rem;
          color: var(--gray-500);
          margin-top: 0.25rem; }
      .recent-agents-section .modern-card .card-header .btn-outline {
        padding: 0.5rem 1rem;
        border: 1px solid var(--primary);
        border-radius: 12px;
        color: var(--primary);
        background: transparent;
        font-weight: 500;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        gap: 0.4rem; }
        .recent-agents-section .modern-card .card-header .btn-outline i {
          font-size: 0.9rem; }
        .recent-agents-section .modern-card .card-header .btn-outline:hover {
          background: var(--primary);
          color: var(--white); }
    .recent-agents-section .modern-card .card-body {
      padding: 1rem 2rem; }

/* --- Agent Cards Grid --- */
.agent-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 1.5rem;
  padding: 1.5rem 0; }

.agent-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease; }
  .agent-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: var(--primary); }
  .agent-card .agent-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    border-bottom: 1px solid var(--gray-100); }
    .agent-card .agent-header .agent-avatar {
      width: 50px;
      height: 50px;
      border-radius: 12px;
      overflow: hidden;
      flex-shrink: 0; }
      .agent-card .agent-header .agent-avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover; }
      .agent-card .agent-header .agent-avatar .avatar-placeholder {
        width: 100%;
        height: 100%;
        background: var(--gray-100);
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--gray-500);
        font-size: 1.2rem; }
    .agent-card .agent-header .agent-info {
      flex: 1;
      min-width: 0; }
      .agent-card .agent-header .agent-info .agent-name {
        font-size: 1rem;
        font-weight: 600;
        margin-bottom: 0.5rem;
        color: var(--gray-900); }
      .agent-card .agent-header .agent-info .agent-description {
        font-size: 0.85rem;
        color: var(--gray-600);
        margin: 0;
        line-height: 1.4; }
    .agent-card .agent-header .agent-status .status-badge {
      padding: 0.25rem 0.75rem;
      border-radius: 20px;
      font-size: 0.75rem;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.05em; }
      .agent-card .agent-header .agent-status .status-badge.status-online {
        background: var(--success-light);
        color: var(--success-dark); }
      .agent-card .agent-header .agent-status .status-badge.status-offline {
        background: var(--gray-200);
        color: var(--gray-600); }
  .agent-card .agent-details {
    padding: 1rem 1.5rem;
    background: var(--gray-50);
    display: flex;
    flex-wrap: wrap;
    gap: 1rem; }
    .agent-card .agent-details .detail-item {
      font-size: 0.8rem;
      color: var(--gray-600);
      display: flex;
      align-items: center; }
      .agent-card .agent-details .detail-item i {
        margin-right: 0.4rem;
        color: var(--gray-400); }
  .agent-card .agent-actions {
    padding: 1rem 1.5rem;
    display: flex;
    gap: 0.5rem; }
    .agent-card .agent-actions .btn-outline {
      padding: 0.4rem 0.8rem;
      border: 1px solid var(--primary);
      color: var(--primary);
      background: transparent;
      border-radius: 12px;
      font-size: 0.8rem;
      display: flex;
      align-items: center;
      gap: 0.3rem;
      transition: all 0.2s ease; }
      .agent-card .agent-actions .btn-outline:hover {
        background: #293f7a;
        color: var(--white);
        border-color: transparent; }
      .agent-card .agent-actions .btn-outline.warning {
        border-color: var(--warning);
        color: var(--warning); }
        .agent-card .agent-actions .btn-outline.warning:hover {
          background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
          color: var(--white);
          border-color: transparent; }
      .agent-card .agent-actions .btn-outline.small {
        font-size: 0.75rem;
        padding: 0.3rem 0.6rem; }

/* --- Empty State --- */
.empty-card {
  padding: 4rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem; }
  .empty-card i {
    font-size: 3rem;
    color: var(--gray-400); }
  .empty-card h5 {
    color: var(--gray-800);
    font-weight: 600; }
  .empty-card p {
    color: var(--gray-500); }
  .empty-card .btn-primary {
    background: var(--primary);
    color: var(--white);
    padding: 0.6rem 1.2rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.9rem;
    transition: background 0.2s ease; }
    .empty-card .btn-primary:hover {
      background: var(--primary-dark); }

.hero-section {
  background: linear-gradient(135deg, #ffed00 0%, #00a0e3 35%);
  color: white;
  padding: 2.5rem 1.5rem;
  margin: -1.5rem 0 0 0;
  border-radius: 0 0 20px 20px; }
  .hero-section .hero-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    overflow: hidden;
    gap: 1rem; }
  .hero-section .hero-left {
    flex: 1 1 60%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    padding-left: 1rem;
    padding-right: 1rem; }
    .hero-section .hero-left .hero-title {
      display: flex;
      align-items: center;
      gap: 1rem;
      font-size: clamp(1.5rem, 2.5vw, 2.5rem);
      font-weight: 700;
      color: white;
      margin-bottom: 1rem; }
      .hero-section .hero-left .hero-title .icon {
        width: clamp(28px, 5vw, 42px);
        height: clamp(28px, 5vw, 40px);
        fill: currentColor;
        color: #fff;
        flex-shrink: 0; }
    .hero-section .hero-left .hero-subtitle {
      font-size: clamp(0.9rem, 2vw, 1.2rem);
      opacity: 0.9;
      margin-bottom: 1.5rem;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis; }
  .hero-section .hero-right {
    flex: 1 1 35%;
    min-width: 0;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding-left: 1rem;
    padding-right: 1rem; }
    .hero-section .hero-right .btn-primary-lg {
      display: inline-flex;
      align-items: center;
      gap: 0.5rem;
      background: #293f7a;
      color: #fff;
      padding: 0.9rem 1.6rem;
      border-radius: 12px;
      font-size: clamp(0.75rem, 1.5vw, 1rem);
      font-weight: 600;
      text-decoration: none;
      box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
      white-space: nowrap;
      transition: all 0.25s ease; }
      .hero-section .hero-right .btn-primary-lg i {
        font-size: clamp(0.8rem, 1.5vw, 1rem);
        flex-shrink: 0; }
      .hero-section .hero-right .btn-primary-lg:hover {
        background: var(--primary-hover);
        transform: translateY(-2px);
        box-shadow: 0 5px 14px rgba(0, 0, 0, 0.2); }

.btn-create-agent {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  background-size: 200%;
  color: #ffffff;
  font-weight: 600;
  font-size: 15px;
  border-radius: 12px;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(118, 75, 162, 0.25);
  transition: all 0.35s ease; }

.btn-create-agent i {
  font-size: 16px; }

.btn-create-agent:hover {
  background-position: right;
  box-shadow: 0 6px 20px rgba(118, 75, 162, 0.35);
  transform: translateY(-2px); }

.btn-create-agent:active {
  transform: translateY(0px);
  box-shadow: 0 3px 10px rgba(118, 75, 162, 0.15); }

.icon-btn-create {
  color: #ffffff !important; }

.icon-dashboard {
  width: 50px;
  height: 50px;
  fill: currentColor;
  display: inline-block; }

.conter-fluid-addons {
  margin-bottom: 50px; }

.custom-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.75rem;
  border-radius: 16px;
  color: var(--white) !important;
  width: 92px;
  height: 27px;
  flex-shrink: 0; }
  .custom-badge.success {
    background: #198754; }
  .custom-badge.secondary {
    background: #6c757d; }
  .custom-badge.warning {
    background: #ffc107;
    color: #000; }
  .custom-badge.danger {
    background: #dc3545; }
  .custom-badge.info {
    background: #0dcaf0;
    color: #000; }
  .custom-badge.purple {
    background: #6f42c1; }

.custom-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 2rem;
  gap: 0.5rem;
  list-style: none;
  padding: 0; }
  .custom-pagination li {
    display: inline-flex; }
    .custom-pagination li a,
    .custom-pagination li span {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 38px;
      height: 38px;
      border-radius: 12px;
      font-size: 0.9rem;
      font-weight: 500;
      text-decoration: none;
      color: var(--gray-700) !important;
      background: var(--gray-100);
      transition: all 0.2s ease;
      cursor: pointer;
      border: none; }
      .custom-pagination li a:hover,
      .custom-pagination li span:hover {
        background: var(--primary, #4f46e5);
        color: #fff !important; }
    .custom-pagination li.active span {
      background: var(--primary, #4f46e5);
      color: var(--white) !important;
      font-weight: 600; }
    .custom-pagination li.disabled span {
      background: var(--gray-50);
      color: var(--gray-400) !important;
      cursor: not-allowed; }
  .custom-pagination .prev a,
  .custom-pagination .next a {
    width: auto;
    padding: 0 1rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 500;
    background: var(--gray-100);
    color: var(--gray-700); }
    .custom-pagination .prev a:hover,
    .custom-pagination .next a:hover {
      background: #4f46e5;
      color: white !important; }

.btn-group a.disabled {
  pointer-events: none;
  opacity: 0.5;
  color: #888 !important;
  border-color: #bdbdbd;
  cursor: not-allowed; }

.user-card {
  transition: all 0.3s ease;
  border: 1px solid #e9ecef; }
  .user-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px); }

.user-avatar {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 1.2rem; }

.table-responsive,
.card,
.card-body,
.container-fluid {
  overflow: visible !important; }

.dropdown {
  position: relative; }
  .dropdown .dropdown-menu {
    min-width: 160px;
    z-index: 1050;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    border-radius: 0.375rem; }
    .dropdown .dropdown-menu .dropdown-item:hover {
      background-color: #f8f9fa; }

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 4px; }
  .btn-group .btn {
    border-radius: 8px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px 8px; }
    .btn-group .btn i {
      font-size: 0.9rem; }
    .btn-group .btn:hover {
      transform: translateY(-1px);
      box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08); }
  .btn-group .btn-outline-purple {
    border-color: #8b5cf6;
    color: #8b5cf6; }
    .btn-group .btn-outline-purple:hover {
      background: #8b5cf6;
      color: white; }

th.actions-header {
  text-align: center;
  vertical-align: middle; }

td:last-child {
  text-align: center;
  vertical-align: middle; }
  td:last-child .btn-group {
    justify-content: center; }

.user-search-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  background: #fff;
  padding: 1.25rem 1.75rem;
  border-bottom: 1px solid #eee;
  border-radius: 12px 12px 0 0; }
  .user-search-header .user-search-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #333;
    margin: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent; }

.user-search-bar {
  display: flex;
  align-items: center;
  background: #f8f9fc;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: all 0.25s ease;
  width: 280px; }
  .user-search-bar:focus-within {
    background: #fff;
    box-shadow: 0 0 0 3px rgba(118, 75, 162, 0.15), 0 6px 18px rgba(0, 0, 0, 0.08); }
  .user-search-bar .user-search-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 0.7rem 1rem;
    font-size: 0.95rem;
    outline: none;
    color: #333; }
    .user-search-bar .user-search-input::placeholder {
      color: #aaa; }
  .user-search-bar .user-search-btn {
    background: transparent;
    border: none;
    color: #764ba2;
    padding: 0.7rem 0.9rem;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    border-left: 1px solid rgba(0, 0, 0, 0.08); }
    .user-search-bar .user-search-btn i {
      font-size: 0.95rem;
      transition: transform 0.2s ease, color 0.2s ease; }
    .user-search-bar .user-search-btn:hover i {
      color: #667eea;
      transform: scale(1.15); }
    .user-search-bar .user-search-btn:active i {
      transform: scale(0.95);
      opacity: 0.8; }

.card-header.user-search-header {
  border-top-left-radius: 0 !important;
  border-top-right-radius: 0 !important; }

.custom-badge.inactive {
  background-color: #ff758e;
  color: #c92a2a; }

.page-container {
  padding-left: 1.5rem;
  padding-right: 1.5rem; }

.create-agent-hero {
  background: #fff;
  border-radius: 14px;
  padding: 2rem 2.5rem;
  margin-bottom: 3rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05); }
  .create-agent-hero .create-agent-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem; }
  .create-agent-hero .create-agent-info {
    display: flex;
    flex-direction: column; }
    .create-agent-hero .create-agent-info .create-agent-title {
      display: flex;
      align-items: center;
      font-size: 2rem;
      font-weight: 700;
      margin-bottom: 0.75rem;
      /* Dégradé texte */
      background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent; }
      .create-agent-hero .create-agent-info .create-agent-title .create-agent-icon {
        width: 40px;
        height: 40px;
        color: #764ba2;
        margin-right: 0.75rem; }
    .create-agent-hero .create-agent-info .create-agent-subtitle {
      font-size: 1rem;
      margin: 0;
      /* Dégradé texte aussi pour le sous-titre */
      background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent; }
  .create-agent-hero .create-agent-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px; }
    .create-agent-hero .create-agent-actions .create-agent-btn {
      display: inline-flex;
      align-items: center;
      gap: 0.5rem;
      padding: 0.85rem 1.4rem;
      border-radius: 10px;
      background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
      color: #fff;
      font-weight: 600;
      text-decoration: none;
      font-size: 0.95rem;
      transition: all 0.2s ease;
      box-shadow: 0 3px 10px rgba(79, 70, 229, 0.25); }
      .create-agent-hero .create-agent-actions .create-agent-btn i {
        font-size: 0.95rem; }
      .create-agent-hero .create-agent-actions .create-agent-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 5px 14px rgba(79, 70, 229, 0.35); }
      .create-agent-hero .create-agent-actions .create-agent-btn:active {
        transform: translateY(0);
        box-shadow: 0 2px 6px rgba(79, 70, 229, 0.3); }

.agent-form-section {
  margin-bottom: 3rem; }

.form-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2.5rem;
  align-items: flex-start; }
  @media (max-width: 900px) {
    .form-grid {
      grid-template-columns: 1fr; } }
.form-column {
  display: flex;
  flex-direction: column;
  gap: 1.5rem; }

/* ===== FORM FIELDS ===== */
.form-group {
  display: flex;
  flex-direction: column; }

.form-label {
  font-weight: 600;
  color: var(--dark-color);
  margin-bottom: 0.5rem; }

.form-control {
  border: 1px solid var(--border-color, #d1d5db);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  background-color: #fff;
  font-size: 1rem;
  transition: all 0.3s ease; }
  .form-control:focus {
    border-color: var(--secondary-color, #3b82f6);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    outline: none; }

.text-error {
  color: #e63946;
  font-size: 0.9rem;
  margin-top: 0.25rem; }

.form-hint {
  font-size: 0.85rem;
  color: #6c757d; }

/* ===== UPLOAD ZONE ===== */
.upload-zone {
  border: 2px dashed #0080ba;
  border-radius: 12px;
  padding: 1.75rem;
  /* 🔹 Reduced height */
  text-align: center;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
  background: #fafafa; }
  .upload-zone:hover {
    background: #f0f8ff;
    border-color: #005f8c; }
  .upload-zone .upload-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem; }
  .upload-zone .upload-icon {
    width: 40px;
    /* 🔹 Slightly smaller */
    height: 40px;
    color: #0080ba; }
  .upload-zone .upload-text {
    font-size: 0.95rem;
    color: #444; }
    .upload-zone .upload-text .browse-text {
      color: #0080ba;
      font-weight: 600; }
  .upload-zone .upload-hint {
    font-size: 0.8rem;
    color: #777; }
  .upload-zone .upload-icon {
    width: 40px;
    height: 40px;
    color: #0080ba;
    object-fit: contain; }

/* =============================
   STEPPER
============================= */
#stepper {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  gap: 24px;
  background: #fff;
  padding: 16px 24px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  z-index: 1000; }

/* =============================
   STEPS CONTAINER
============================= */
.steps-container {
  display: flex;
  align-items: center;
  flex: 1; }

/* =============================
   STEP WRAPPER
============================= */
.step-wrapper {
  display: flex;
  align-items: center;
  flex: 1; }

/* =============================
   STEP
============================= */
.step {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #aaa;
  font-weight: 600;
  white-space: nowrap; }

.step-index {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #e0e0e0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px; }

/* Active */
.step.active {
  color: #667eea; }

.step.active .step-index {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: #fff; }

/* Completed */
.step.completed {
  color: #4caf50; }

.step.completed .step-index {
  background: #4caf50;
  color: #fff; }

/* =============================
   STEP BAR
============================= */
.step-bar {
  flex: 1;
  height: 4px;
  margin: 0 16px;
  background: rgba(0, 0, 0, 0.08);
  border-radius: 4px;
  overflow: hidden;
  position: relative; }

.step-bar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #667eea, #764ba2);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease; }

.step-bar.completed::after {
  transform: scaleX(1); }

/* =============================
   ACTION BUTTON
============================= */
.stepper-action {
  margin-left: auto; }

#nextSectionBtn {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: #fff;
  border: none;
  padding: 12px 20px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  opacity: 0;
  pointer-events: none;
  transform: translateY(4px);
  transition: all 0.25s ease; }

#nextSectionBtn.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0); }

#nextSectionBtn:hover {
  transform: translateY(-2px); }

/* =============================
   CUSTOM MULTISELECT
============================= */
.custom-multiselect {
  position: relative;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 10px;
  padding: 6px;
  cursor: pointer;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  /* =============================
       SELECTED TAGS
    ============================= */
  /* =============================
       DROPDOWN
    ============================= */ }
  .custom-multiselect:hover {
    border-color: rgba(102, 126, 234, 0.6); }
  .custom-multiselect.open {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15); }
  .custom-multiselect .selected-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    min-height: 38px;
    align-items: center; }
    .custom-multiselect .selected-tags .placeholder {
      color: #999 !important;
      background-color: white !important;
      font-size: 14px;
      pointer-events: none;
      user-select: none; }
    .custom-multiselect .selected-tags .tag {
      display: flex;
      align-items: center;
      gap: 6px;
      padding: 4px 10px;
      border-radius: 999px;
      font-size: 13px;
      font-weight: 600;
      color: #fff !important;
      background: linear-gradient(135deg, #667eea, #764ba2); }
      .custom-multiselect .selected-tags .tag .remove {
        cursor: pointer;
        font-size: 14px;
        line-height: 1;
        opacity: 0.8;
        transition: opacity 0.2s ease; }
        .custom-multiselect .selected-tags .tag .remove:hover {
          opacity: 1; }
  .custom-multiselect .dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
    max-height: 220px;
    overflow-y: auto;
    display: none;
    z-index: 1000;
    /* scrollbar (optional) */ }
    .custom-multiselect .dropdown::-webkit-scrollbar {
      width: 6px; }
    .custom-multiselect .dropdown::-webkit-scrollbar-thumb {
      background: rgba(0, 0, 0, 0.15);
      border-radius: 4px; }
    .custom-multiselect .dropdown .dropdown-item {
      padding: 10px 14px;
      cursor: pointer;
      font-size: 14px;
      transition: background 0.2s ease; }
      .custom-multiselect .dropdown .dropdown-item:hover {
        background: rgba(102, 126, 234, 0.1); }
      .custom-multiselect .dropdown .dropdown-item.selected {
        background: rgba(102, 126, 234, 0.2);
        font-weight: 600; }
  .custom-multiselect.open .dropdown {
    display: block; }

.native-multiselect {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
  overflow: hidden; }

.page-container {
  padding-left: 1.5rem;
  padding-right: 1.5rem; }

.row {
  margin-left: 0 !important;
  margin-right: 0 !important; }

.create-user-hero {
  background: #fff;
  border-radius: 14px;
  padding: 2rem 2.5rem;
  margin-bottom: 3rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05); }
  .create-user-hero .create-user-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem; }
  .create-user-hero .create-user-info {
    display: flex;
    flex-direction: column; }
    .create-user-hero .create-user-info .create-user-title {
      display: flex;
      align-items: center;
      font-size: 2rem;
      font-weight: 700;
      margin-bottom: 0.75rem;
      /* Dégradé texte */
      background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent; }
      .create-user-hero .create-user-info .create-user-title .create-user-icon {
        width: 40px;
        height: 40px;
        color: #764ba2;
        margin-right: 0.75rem; }
    .create-user-hero .create-user-info .create-user-subtitle {
      font-size: 1rem;
      margin: 0;
      /* Dégradé texte aussi pour le sous-titre */
      background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent; }
  .create-user-hero .create-user-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end; }
    .create-user-hero .create-user-actions .create-user-btn {
      display: inline-flex;
      align-items: center;
      gap: 0.5rem;
      padding: 0.85rem 1.4rem;
      border-radius: 10px;
      background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
      color: #fff;
      font-weight: 600;
      text-decoration: none;
      font-size: 0.95rem;
      transition: all 0.2s ease;
      box-shadow: 0 3px 10px rgba(79, 70, 229, 0.25); }
      .create-user-hero .create-user-actions .create-user-btn i {
        font-size: 0.95rem; }
      .create-user-hero .create-user-actions .create-user-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 5px 14px rgba(79, 70, 229, 0.35); }
      .create-user-hero .create-user-actions .create-user-btn:active {
        transform: translateY(0);
        box-shadow: 0 2px 6px rgba(79, 70, 229, 0.3); }

.user-role-section {
  background: #fff;
  border-radius: 14px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease; }
  .user-role-section .section-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.25rem; }
    .user-role-section .section-header .section-icon {
      width: 40px;
      height: 40px;
      border-radius: 50%;
      background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
      display: flex;
      align-items: center;
      justify-content: center;
      color: #fff;
      font-size: 1rem;
      margin-right: 0.75rem;
      box-shadow: 0 3px 10px rgba(118, 75, 162, 0.3); }
    .user-role-section .section-header .section-title {
      font-size: 1.15rem;
      font-weight: 600;
      background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent; }
  .user-role-section .role-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.2rem; }
  .user-role-section .role-option {
    background: #fff;
    border: 2px solid transparent;
    border-radius: 12px;
    padding: 1.2rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s ease;
    position: relative;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05); }
    .user-role-section .role-option input[type="radio"] {
      display: none; }
    .user-role-section .role-option .role-icon {
      width: 45px;
      height: 45px;
      border-radius: 50%;
      background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
      color: #fff;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.3rem;
      margin: 0 auto 0.5rem auto;
      transition: all 0.3s ease;
      box-shadow: 0 3px 8px rgba(102, 126, 234, 0.25); }
    .user-role-section .role-option h6 {
      font-size: 0.95rem;
      font-weight: 600;
      margin-bottom: 0.2rem;
      color: #111827; }
    .user-role-section .role-option p {
      font-size: 0.85rem;
      color: #6b7280;
      margin: 0; }
    .user-role-section .role-option:hover {
      transform: translateY(-3px);
      box-shadow: 0 10px 22px rgba(118, 75, 162, 0.12);
      border-color: rgba(102, 126, 234, 0.4); }
      .user-role-section .role-option:hover .role-icon {
        transform: scale(1.08); }
    .user-role-section .role-option.selected {
      border-color: #667eea;
      box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15), 0 8px 18px rgba(102, 126, 234, 0.2);
      background: #f9f9ff; }
      .user-role-section .role-option.selected .role-icon {
        background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
        box-shadow: 0 4px 10px rgba(118, 75, 162, 0.25); }
      .user-role-section .role-option.selected h6,
      .user-role-section .role-option.selected p {
        color: #4f46e5; }

.form-section {
  background: #fff;
  border-radius: 14px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease; }
  .form-section:hover {
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.07); }
  .form-section .section-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem; }
    .form-section .section-header .section-icon {
      width: 45px;
      height: 45px;
      border-radius: 50%;
      background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
      display: flex;
      align-items: center;
      justify-content: center;
      color: #fff;
      font-size: 1.2rem;
      margin-right: 1rem;
      box-shadow: 0 3px 10px rgba(118, 75, 162, 0.3); }
    .form-section .section-header .section-title {
      font-size: 1.25rem;
      font-weight: 700;
      background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent; }
  .form-section .form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem; }
  .form-section .form-group {
    display: flex;
    flex-direction: column; }
    .form-section .form-group .form-label {
      font-weight: 600;
      margin-bottom: 0.5rem;
      color: #333; }
    .form-section .form-group .form-control {
      border: 1.5px solid #e5e7eb;
      border-radius: 10px;
      padding: 0.85rem 1rem;
      font-size: 1rem;
      background-color: #fafafa;
      transition: all 0.2s ease; }
      .form-section .form-group .form-control:focus {
        border-color: #764ba2;
        background-color: #fff;
        outline: none;
        box-shadow: 0 0 0 3px rgba(118, 75, 162, 0.1); }
    .form-section .form-group .form-hint {
      color: #777;
      font-size: 0.85rem;
      margin-top: 0.4rem; }
    .form-section .form-group .form-error {
      color: #e63946;
      font-size: 0.85rem;
      margin-top: 0.4rem; }
    .form-section .form-group .input-wrapper {
      position: relative; }
      .form-section .form-group .input-wrapper .form-control {
        width: 100%; }
      .form-section .form-group .input-wrapper .toggle-password {
        position: absolute;
        right: 0.8rem;
        top: 50%;
        transform: translateY(-50%);
        background: none;
        border: none;
        cursor: pointer;
        color: #888;
        transition: color 0.2s ease; }
        .form-section .form-group .input-wrapper .toggle-password:hover {
          color: #764ba2; }
        .form-section .form-group .input-wrapper .toggle-password i {
          font-size: 1rem; }

.create-user-submit {
  display: flex;
  justify-content: flex-end;
  margin-top: 2rem; }
  .create-user-submit .submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.9rem 1.8rem;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 3px 12px rgba(79, 70, 229, 0.25);
    transition: all 0.25s ease; }
    .create-user-submit .submit-btn i {
      font-size: 1rem; }
    .create-user-submit .submit-btn:hover {
      transform: translateY(-2px);
      box-shadow: 0 6px 16px rgba(79, 70, 229, 0.35); }
    .create-user-submit .submit-btn:active {
      transform: translateY(0);
      box-shadow: 0 2px 6px rgba(79, 70, 229, 0.3); }

.icon-white {
  color: #ffffff !important; }

/* plus lisible : */
.icon-primary-gradient {
  background: linear-gradient(135deg, #667eea, #764ba2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #ffffff !important;
  /* fallback si nécessaire */ }

/* =======================
   Custom Create User Buttons
   ======================= */
.create-user-actions-custom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2rem;
  gap: 1rem; }
  .create-user-actions-custom .cu-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    border: none;
    border-radius: 10px;
    padding: 0.7rem 1.5rem;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
    color: #fff !important;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important; }
    .create-user-actions-custom .cu-btn i {
      font-size: 1rem;
      color: #fff !important; }
    .create-user-actions-custom .cu-btn:hover {
      transform: translateY(-2px);
      box-shadow: 0 6px 15px rgba(118, 75, 162, 0.3); }
    .create-user-actions-custom .cu-btn:active {
      transform: translateY(0);
      box-shadow: 0 2px 6px rgba(118, 75, 162, 0.25); }
    .create-user-actions-custom .cu-btn.cancel {
      background: #fff !important;
      color: #4f46e5 !important;
      border: 2px solid #4f46e5; }
      .create-user-actions-custom .cu-btn.cancel i {
        color: #4f46e5 !important; }
      .create-user-actions-custom .cu-btn.cancel:hover {
        background: rgba(102, 126, 234, 0.1); }
      .create-user-actions-custom .cu-btn.cancel:active {
        background: rgba(102, 126, 234, 0.2); }

.agent-card {
  border: 2px solid #e9ecef;
  border-radius: 10px;
  padding: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  height: 100%; }

.agent-card:hover {
  border-color: #667eea;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15); }

.agent-card.selected {
  border-color: #667eea;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white; }

.agent-logo {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid #e9ecef; }

.agent-card.selected .agent-logo {
  border-color: white; }

/* ===== User Info ===== */
.user-info {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 10px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center; }
  .user-info .d-flex {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: nowrap; }
    .user-info .d-flex .user-avatar {
      width: 80px;
      height: 80px;
      background: rgba(255, 255, 255, 0.2);
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 2rem;
      font-weight: bold;
      border: 3px solid white;
      flex-shrink: 0; }
    .user-info .d-flex div h4 {
      font-size: 1.2rem;
      margin-bottom: 0.25rem;
      word-break: break-word; }
    .user-info .d-flex div p,
    .user-info .d-flex div small {
      font-size: 0.9rem;
      margin: 0;
      word-break: break-word; }
  @media (max-width: 576px) {
    .user-info .d-flex {
      flex-direction: column;
      align-items: center;
      text-align: center; }
      .user-info .d-flex div h4, .user-info .d-flex div p, .user-info .d-flex div small {
        font-size: 1rem; } }
/* Check icon */
.check-icon {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 24px;
  height: 24px;
  background: #28a745;
  border: 3px solid white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.8rem; }

/* Texte blanc partout dans user-info */
.user-info,
.user-info h4,
.user-info p,
.user-info small,
.user-info i {
  color: #fff !important; }

/* Alignement des cartes */
.row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: stretch; }

.row > [class*='col-'] {
  margin: 0;
  padding: 0 0.5rem; }

.col-lg-4.mb-4,
.col-lg-2.mb-4 {
  flex: 1 1 28%;
  max-width: 28%; }

.user-info.card,
.card.text-center {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center; }

.card.text-center .h4 {
  font-size: 1.8rem;
  font-weight: 700; }

.card.text-center small {
  color: #777; }

.col-12 {
  margin-top: 2rem; }

/* ===== Assign Stats Cards ===== */
.assign-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem; }
  .assign-stats .stats-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background-color: #667eea;
    /* fallback si gradient manquant */
    color: #fff;
    flex-shrink: 0; }
    .assign-stats .stats-icon img.stats-icon-img {
      width: 28px;
      height: 28px;
      object-fit: contain; }
  .assign-stats .bg-primary-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
  .assign-stats .bg-warning-gradient {
    background: linear-gradient(135deg, #f6d365 0%, #fda085 100%); }
  .assign-stats .stats-number {
    font-weight: 700;
    font-size: 1.8rem;
    color: #222; }

/* Texte sous les icônes */
.card.text-center small {
  display: block;
  margin-top: 0.25rem;
  color: #777; }

/* Dashboard Stats Section */
.dashboard-stats {
  display: flex;
  flex-wrap: wrap; }
  .dashboard-stats .col-md-3 {
    flex: 1 1 calc(25% - 1.5rem); }

/* Stat Cards */
.stats-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  height: 100%;
  /* Couleurs spécifiques */ }
  .stats-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1); }
  .stats-card .stats-card-body {
    padding: 1.5rem; }
  .stats-card .stats-content {
    display: flex;
    justify-content: space-between;
    align-items: center; }
  .stats-card .stats-text {
    text-align: left; }
    .stats-card .stats-text .stats-title {
      font-size: 0.9rem;
      font-weight: 600;
      color: #666;
      margin-bottom: 0.3rem; }
    .stats-card .stats-text .stats-value {
      font-size: 1.8rem;
      font-weight: 700;
      color: #111;
      margin-bottom: 0.3rem; }
    .stats-card .stats-text .stats-subtext {
      font-size: 0.85rem;
      color: #999; }
  .stats-card .stats-icon {
    font-size: 2.5rem;
    opacity: 0.9;
    border-radius: 12px;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5; }
  .stats-card .stats-icon-blue {
    color: #3b82f6;
    background: rgba(59, 130, 246, 0.1); }
  .stats-card .stats-icon-green {
    color: #22c55e;
    background: rgba(34, 197, 94, 0.1); }
  .stats-card .stats-icon-cyan {
    color: #06b6d4;
    background: rgba(6, 182, 212, 0.1); }
  .stats-card .stats-icon-yellow {
    color: #eab308;
    background: rgba(234, 179, 8, 0.1); }

.sessions-page {
  padding: 2rem 0;
  /* Fond global des sections */
  /* Effet flottant pour chaque section */
  /* Header */
  /* Filters */
  /* Sessions list */
  /* Source tags */
  /* Empty state */
  /* Pagination */ }
  .sessions-page .sessions-main-content {
    background-color: #ffffff;
    padding: 2rem;
    margin-left: 20px;
    margin-right: 20px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05); }
  .sessions-page .card-fx {
    background-color: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    transition: transform 0.2s ease, box-shadow 0.2s ease; }
    .sessions-page .card-fx:hover {
      transform: translateY(-4px);
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18); }
  .sessions-page .sessions-header {
    text-align: center;
    margin-bottom: 2rem; }
    .sessions-page .sessions-header .sessions-title {
      font-size: 2rem;
      font-weight: 700;
      color: #111; }
      .sessions-page .sessions-header .sessions-title i {
        color: #3b82f6;
        margin-right: 0.5rem; }
    .sessions-page .sessions-header .sessions-subtitle {
      color: #666;
      font-size: 1rem;
      margin-top: 0.5rem; }
  .sessions-page .sessions-filters {
    margin-bottom: 2rem; }
    .sessions-page .sessions-filters .filter-form {
      display: flex;
      flex-direction: column;
      gap: 1.5rem; }
      .sessions-page .sessions-filters .filter-form .filter-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 1rem; }
      .sessions-page .sessions-filters .filter-form .filter-actions {
        display: flex;
        justify-content: flex-end;
        gap: 1rem; }
      .sessions-page .sessions-filters .filter-form label {
        font-weight: 600;
        color: #333;
        margin-bottom: 0.3rem;
        display: block; }
      .sessions-page .sessions-filters .filter-form .form-control {
        border-radius: 20px;
        border: none;
        padding: 0.6rem 0.9rem;
        font-size: 0.95rem;
        width: 100%;
        background: #fff;
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
        transition: box-shadow 0.25s ease, transform 0.25s ease;
        /* 🔥 Effet flottant au survol UNIQUEMENT */ }
        .sessions-page .sessions-filters .filter-form .form-control:hover {
          box-shadow: 0 10px 26px rgba(0, 0, 0, 0.22);
          transform: translateY(-3px); }
        .sessions-page .sessions-filters .filter-form .form-control:focus {
          outline: none;
          box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
          transform: translateY(-3px); }
      .sessions-page .sessions-filters .filter-form .filter-submit-btn {
        display: inline-block;
        padding: 10px 18px;
        background: linear-gradient(90deg, #667EEA 0%, #764BA2 100%);
        color: #fff;
        border: none;
        border-radius: 12px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.25s ease;
        font-size: 15px; }
        .sessions-page .sessions-filters .filter-form .filter-submit-btn:hover {
          background: linear-gradient(90deg, #5a6fde 0%, #6b4397 100%);
          transform: translateY(-2px); }
        .sessions-page .sessions-filters .filter-form .filter-submit-btn:active {
          transform: translateY(0);
          background: linear-gradient(90deg, #4f63ce 0%, #613c89 100%); }
  .sessions-page .session-card .session-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem; }
    .sessions-page .session-card .session-header .session-user {
      font-size: 1.1rem;
      font-weight: 600;
      color: #111;
      display: flex;
      align-items: center;
      gap: 0.5rem; }
    .sessions-page .session-card .session-header .session-date {
      color: #777;
      font-size: 0.9rem;
      margin-top: 0.2rem; }
    .sessions-page .session-card .session-header .session-actions {
      display: flex;
      gap: 0.5rem; }
      .sessions-page .session-card .session-header .session-actions .btn {
        font-size: 0.85rem;
        border-radius: 8px;
        padding: 0.4rem 0.8rem; }
  .sessions-page .session-card .session-stats {
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    flex-wrap: wrap; }
    .sessions-page .session-card .session-stats .stat {
      flex: 1;
      min-width: 90px;
      text-align: center;
      background: #f9fafb;
      border-radius: 10px;
      padding: 0.8rem 0.5rem; }
      .sessions-page .session-card .session-stats .stat .stat-number {
        font-size: 1.2rem;
        font-weight: 700;
        color: #111; }
        .sessions-page .session-card .session-stats .stat .stat-number.good {
          color: #22c55e; }
        .sessions-page .session-card .session-stats .stat .stat-number.medium {
          color: #eab308; }
        .sessions-page .session-card .session-stats .stat .stat-number.long {
          color: #ef4444; }
      .sessions-page .session-card .session-stats .stat .stat-label {
        font-size: 0.8rem;
        color: #666;
        margin-top: 0.3rem; }
  .sessions-page .source-tag {
    padding: 0.25rem 0.7rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 0.5rem; }
    .sessions-page .source-tag.source-web {
      background: rgba(59, 130, 246, 0.1);
      color: #2563eb; }
    .sessions-page .source-tag.source-api {
      background: rgba(168, 85, 247, 0.1);
      color: #9333ea; }
    .sessions-page .source-tag.source-whatsapp {
      background: rgba(34, 197, 94, 0.1);
      color: #16a34a; }
    .sessions-page .source-tag.source-widget {
      background: rgba(234, 179, 8, 0.1);
      color: #ca8a04; }
  .sessions-page .no-sessions h5 {
    color: #555;
    font-weight: 600; }
  .sessions-page .no-sessions p {
    color: #777;
    margin-top: 0.3rem; }
  .sessions-page .pagination-nav {
    margin-top: 2rem; }
    .sessions-page .pagination-nav .page-link {
      border-radius: 8px;
      color: #3b82f6;
      font-weight: 500; }
      .sessions-page .pagination-nav .page-link:hover {
        background: rgba(59, 130, 246, 0.1); }
    .sessions-page .pagination-nav .active .page-link {
      background: #3b82f6;
      color: white;
      border: none; }

.dashboard-stats {
  display: flex;
  flex-wrap: wrap; }
  .dashboard-stats .col-md-3 {
    flex: 1 1 calc(25% - 1.5rem); }

.stats-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  height: 100%; }
  .stats-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1); }
  .stats-card .stats-card-body {
    padding: 1.5rem; }
  .stats-card .stats-content {
    display: flex;
    justify-content: space-between;
    align-items: center; }
  .stats-card .stats-text {
    text-align: left; }
    .stats-card .stats-text .stats-title {
      font-size: 0.9rem;
      font-weight: 600;
      color: #666;
      margin-bottom: 0.3rem; }
    .stats-card .stats-text .stats-value {
      font-size: 1.8rem;
      font-weight: 700;
      color: #111;
      margin-bottom: 0.3rem; }
    .stats-card .stats-text .stats-subtext {
      font-size: 0.85rem;
      color: #999; }
  .stats-card .stats-icon {
    font-size: 2.5rem;
    border-radius: 12px;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.9; }
  .stats-card .stats-icon-blue {
    color: #3b82f6;
    background: rgba(59, 130, 246, 0.1); }
  .stats-card .stats-icon-green {
    color: #22c55e;
    background: rgba(34, 197, 94, 0.1); }
  .stats-card .stats-icon-yellow {
    color: #eab308;
    background: rgba(234, 179, 8, 0.1); }
  .stats-card .stats-icon-cyan {
    color: #06b6d4;
    background: rgba(6, 182, 212, 0.1); }
  .stats-card .stats-icon-purple {
    color: #6f42c1;
    background: rgba(111, 66, 193, 0.1); }

.custom-alert-wrapper {
  position: fixed;
  top: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  z-index: 2000; }
  @media (max-width: 576px) {
    .custom-alert-wrapper {
      right: 10px;
      left: 10px;
      align-items: center; } }
  .custom-alert-wrapper .custom-alert {
    display: inline-flex;
    justify-content: space-between;
    align-items: center;
    max-width: 500px;
    padding: 1rem 1.25rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    font-size: 0.95rem;
    word-break: break-word;
    position: relative; }
    .custom-alert-wrapper .custom-alert span {
      display: inline-block; }
    .custom-alert-wrapper .custom-alert .close-btn {
      background: transparent;
      border: none;
      font-size: 1rem;
      cursor: pointer;
      color: inherit;
      margin-left: 1rem; }
    .custom-alert-wrapper .custom-alert.success {
      background-color: #ecfdf5;
      color: #065f46;
      border-left: 4px solid #198754; }
    .custom-alert-wrapper .custom-alert.info {
      background-color: #eff6ff;
      color: #1e40af;
      border-left: 4px solid #0dcaf0; }
    .custom-alert-wrapper .custom-alert.danger {
      background-color: #fef2f2;
      color: #991b1b;
      border-left: 4px solid #dc3545; }

.hero-title {
  color: white; }

/* ============================================
   GLOBAL COLORS & GRADIENT
============================================ */
:root {
  --brand-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --brand-light: #e9e6ff;
  --brand-dark: #4a3c91;
  --text-dark: #1a1a1a;
  --text-muted: #6b6b6b; }

/* Smooth entrance animation */
@keyframes fadeUp {
  0% {
    opacity: 0;
    transform: translateY(20px); }
  100% {
    opacity: 1;
    transform: translateY(0); } }

/* ============================================
   SECTION TITLES
============================================ */
.section-title {
  text-align: center;
  margin-bottom: 3rem;
  animation: fadeUp .5s ease forwards; }
  .section-title h2 {
    font-weight: 800;
    font-size: 2.4rem;
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent; }
  .section-title p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-top: .5rem; }

/* ============================================
   FEATURE CARDS
============================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem; }
  @media (max-width: 992px) {
    .features-grid {
      grid-template-columns: repeat(2, 1fr); } }
  @media (max-width: 576px) {
    .features-grid {
      grid-template-columns: 1fr; } }
.feature-card {
  background: white;
  padding: 2rem;
  border-radius: 18px;
  border: 1px solid rgba(102, 126, 234, 0.15);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
  transition: 0.35s ease;
  animation: fadeUp .6s ease forwards; }
  .feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.25); }
  .feature-card .feature-icon {
    width: 70px;
    height: 70px;
    background: var(--brand-gradient);
    border-radius: 14px;
    color: white;
    font-size: 32px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.2rem;
    box-shadow: 0px 6px 18px rgba(102, 126, 234, 0.4); }
  .feature-card h4 {
    font-weight: 700;
    margin-bottom: .5rem;
    color: #3a2e88; }
  .feature-card p {
    color: var(--text-muted);
    font-size: .95rem;
    line-height: 1.5; }

/* ============================================
   CTA SECTION
============================================ */
.cta-section {
  padding: 5rem 0;
  background: var(--brand-gradient);
  color: white;
  text-align: center;
  border-radius: 20px;
  margin-top: 4rem; }
  .cta-section h2 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 1rem; }
  .cta-section p {
    font-size: 1.1rem;
    opacity: 0.9; }
  .cta-section .cta-title {
    color: white; }
  .cta-section .cta-buttons {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    justify-content: center; }
    .cta-section .cta-buttons a {
      padding: 0.9rem 2rem;
      border-radius: 50px;
      font-weight: 600;
      font-size: 1.05rem;
      transition: 0.3s ease; }
      .cta-section .cta-buttons a.primary {
        background: white;
        color: #5a39a3; }
        .cta-section .cta-buttons a.primary:hover {
          transform: translateY(-3px);
          background: #f3f0ff; }
      .cta-section .cta-buttons a.secondary {
        border: 2px solid white;
        color: white; }
        .cta-section .cta-buttons a.secondary:hover {
          transform: translateY(-3px);
          background: rgba(255, 255, 255, 0.1); }

.chat-wrapper {
  /* équivalent de col-lg-8 */
  max-width: 900px;
  /* équivalent de mx-auto */
  margin-left: auto;
  margin-right: auto;
  /* marge top demandée */
  margin-top: 50px;
  /* un petit padding comme Bootstrap */
  padding-left: 15px;
  padding-right: 15px;
  /* pour éviter que ça dépasse sur petits écrans */
  width: 100%; }
