/* Styles personnalisés pour l'application Relevance AI */

/* Variables CSS */
:root {
  --primary-color: #675fff;
  --secondary-color: #6c757d;
  --success-color: #198754;
  --info-color: #0dcaf0;
  --warning-color: #ffc107;
  --danger-color: #dc3545;
  --light-color: #f8f9fa;
  --dark-color: #212529;
}
.h3,
h3 {
  font-size: 21px !important;
}
.text-muted {
  color: #d9d9d9 !important;
  font-size: 12px;
}

/* Styles généraux */
body {
  background-color: #f5f6fa;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

/* Navigation */
.navbar-brand {
  font-weight: 600;
  font-size: 1.25rem;
}

.navbar-nav .nav-link {
  font-weight: 500;
  transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover {
  transform: translateY(-1px);
}

/* Cards */
.card {
  border: none;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

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

.card-header {
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  background-color: transparent;
  font-weight: 600;
}

/* Boutons */
.btn {
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-group .btn {
  border-radius: 6px;
}

/* Boutons primaires personnalisés */
.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
}

.btn-primary:hover {
  background-color: #5a52e6;
  border-color: #5a52e6;
  color: white;
}

.btn-primary:focus,
.btn-primary.focus {
  background-color: #5a52e6;
  border-color: #5a52e6;
  box-shadow: 0 0 0 0.2rem rgba(103, 95, 255, 0.25);
}

.btn-primary:active,
.btn-primary.active {
  background-color: #4e47d9;
  border-color: #4e47d9;
}

/* Boutons outline primaires */
.btn-outline-primary {
  color: var(--primary-color);
  border-color: var(--primary-color);
}

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

.btn-outline-primary:focus,
.btn-outline-primary.focus {
  box-shadow: 0 0 0 0.2rem rgba(103, 95, 255, 0.25);
}

.btn-outline-primary:active,
.btn-outline-primary.active {
  color: white;
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

/* Badges */
.badge {
  border-radius: 6px;
  font-weight: 500;
}

/* Tables */
.table {
  border-radius: 8px;
  overflow: hidden;
}

.table th {
  border-top: none;
  font-weight: 600;
  color: var(--dark-color);
  background-color: var(--light-color);
}

.table-hover tbody tr:hover {
  background-color: rgba(103, 95, 255, 0.05);
}

/* Formulaires */
.form-control,
.form-select {
  border-radius: 8px;
  border: 1px solid #e0e6ed;
  transition: all 0.3s ease;
}

/* Couleur des placeholders (clair) */
.form-control::placeholder,
.form-select::placeholder,
input::placeholder,
textarea::placeholder {
  color: #9aa0a6; /* gris muted */
  opacity: 1; /* pour Safari */
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(103, 95, 255, 0.15);
}

.input-group-text {
  border-radius: 8px 0 0 8px;
  background-color: var(--light-color);
  border-color: #e0e6ed;
}

/* Spinners */
.spinner-border {
  animation: spinner-border 0.75s linear infinite;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.5s ease-out;
}

/* Toasts */
.toast {
  border-radius: 8px;
  border: none;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* Avatars */
.avatar {
  font-size: 0.875rem;
  font-weight: 600;
}

/* Code blocks */
code {
  background-color: #f8f9fa;
  color: #e83e8c;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-size: 0.875em;
}

pre {
  background-color: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 1rem;
  font-size: 0.875rem;
  max-height: 300px;
  overflow-y: auto;
}

/* Responsive */
@media (max-width: 768px) {
  .card {
    margin-bottom: 1rem;
  }

  .btn-group {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
  }

  .btn-group .btn {
    border-radius: 6px;
  }

  .table-responsive {
    font-size: 0.875rem;
  }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  body {
    background-color: #1a1d29;
    color: #e9ecef;
  }

  .card {
    background-color: #2d3748;
    color: #e9ecef;
  }

  .table {
    color: #e9ecef;
  }

  .table th {
    background-color: #4a5568;
    color: #e9ecef;
  }

  .form-control,
  .form-select {
    background-color: #2d3748;
    border-color: #4a5568;
    color: #e9ecef;
  }

  /* Couleur des placeholders (sombre) */
  .form-control::placeholder,
  .form-select::placeholder,
  input::placeholder,
  textarea::placeholder {
    color: rgba(233, 236, 239, 0.6); /* blanc grisé */
    opacity: 1;
  }

  .form-control:focus,
  .form-select:focus {
    background-color: #2d3748;
    border-color: var(--primary-color);
    color: #e9ecef;
  }
}

/* Utilities */
.shadow-sm {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

.shadow {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.12) !important;
}

.shadow-lg {
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15) !important;
}

.border-radius-lg {
  border-radius: 12px !important;
}

.border-radius-xl {
  border-radius: 16px !important;
}

/* Footer */
footer {
  margin-top: auto;
}

/* Main content */
main {
  min-height: calc(100vh - 200px);
  transition: margin-right 0.3s ease;
}

/* Drawer styles */
.drawer {
  position: fixed;
  top: 0;
  right: -600px;
  width: 600px;
  height: 100vh;
  background-color: white;
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
  transition: right 0.3s ease;
  z-index: 1050;
  overflow-y: auto;
}

.drawer.open {
  right: 0;
}

.drawer-header {
  background-color: var(--primary-color);
  color: white;
  padding: 1rem;
  position: sticky;
  top: 0;
  z-index: 1;
}

.drawer-body {
  padding: 1rem;
}

.drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 1040;
}

.drawer-overlay.show {
  opacity: 1;
  visibility: visible;
}

/* Messages drawer styles */
.messages-drawer {
  width: 700px;
  right: -700px;
}

.messages-drawer.open {
  right: 0;
}

/* Responsive drawer */
@media (max-width: 768px) {
  .drawer {
    width: 100vw;
    right: -100vw;
  }

  .messages-drawer {
    width: 100vw;
    right: -100vw;
  }
}

/* Responsive pour tablettes */
@media (max-width: 1024px) and (min-width: 769px) {
  .drawer {
    width: 500px;
    right: -500px;
  }

  .messages-drawer {
    width: 600px;
    right: -600px;
  }
}

/* Message bubbles modernes dans le drawer */
.message-item {
  margin-bottom: 1.5rem;
}

.message-bubble {
  max-width: 85%;
  padding: 1rem 1.25rem;
  border-radius: 18px;
  word-wrap: break-word;
  position: relative;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.message-bubble:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.message-bubble.user {
  background: linear-gradient(135deg, #e3f2fd 0%, #e1f5fe 100%);
  margin-left: auto;
  margin-right: 0;
  border-bottom-right-radius: 6px;
  border: 1px solid #bbdefb;
  color: #2c3e50 !important;
}

.message-bubble.user .message-header strong {
  color: #1976d2 !important;
}

.message-bubble.user .message-time {
  color: #546e7a !important;
}

.message-bubble.user .message-content {
  color: #2c3e50 !important;
}

.message-bubble.agent {
  background: linear-gradient(135deg, var(--primary-color) 0%, #8b7fff 100%);
  color: white;
  margin-left: 0;
  margin-right: auto;
  border-bottom-left-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.message-bubble.system {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  color: #495057;
  margin: 0 auto;
  max-width: 95%;
  border: 1px solid #dee2e6;
  border-radius: 12px;
}

.message-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

/* Avatars pour les messages */
.message-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

.user-avatar {
  background: linear-gradient(135deg, #42a5f5, #1976d2);
  color: white;
}

.agent-avatar {
  background: linear-gradient(135deg, #ab47bc, #7b1fa2);
  color: white;
}

.tool-avatar {
  background: linear-gradient(135deg, #66bb6a, #388e3c);
  color: white;
}

.system-avatar {
  background: linear-gradient(135deg, #78909c, #455a64);
  color: white;
}

.message-avatar:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

/* Styles pour les fichiers attachés */
.message-attachments {
  border-top: 1px solid #e9ecef;
  padding-top: 8px;
  margin-top: 8px;
}

.attachments-header {
  margin-bottom: 4px;
}

.attachment-item {
  display: inline-block;
  margin-right: 8px;
}

.attachment-item .btn {
  transition: all 0.2s ease;
  border-radius: 6px;
}

.attachment-item .btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.attachment-item .text-truncate {
  max-width: 200px;
}

.message-bubble.user .message-header {
  border-bottom-color: rgba(0, 0, 0, 0.1);
}

.message-bubble.system .message-header {
  border-bottom-color: rgba(0, 0, 0, 0.1);
}

.message-time {
  font-size: 0.7rem;
  opacity: 0.8;
  margin-left: auto;
  font-weight: 400;
}

.message-content {
  line-height: 1.5;
  font-size: 0.9rem;
}

/* Section thinking pour les agents */
.thinking-section {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 0.75rem;
  margin-top: 0.75rem;
}

.thinking-box {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 0.75rem;
  margin-top: 0.5rem;
}

.thinking-text {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.8rem;
  line-height: 1.4;
  margin: 0;
  white-space: pre-wrap;
}

.system-content {
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 6px;
  padding: 0.75rem;
  font-size: 0.8rem;
  color: #495057;
  margin: 0;
  max-height: 200px;
  overflow-y: auto;
}

/* Système de loading global */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.loading-overlay.show {
  opacity: 1;
  visibility: visible;
}

.loading-spinner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.loading-spinner .spinner-border {
  width: 3rem;
  height: 3rem;
  color: var(--primary-color);
}

.loading-text {
  color: var(--primary-color);
  font-weight: 500;
  font-size: 1.1rem;
}

/* Loading pour sections spécifiques */
.section-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 3rem 1rem;
  color: var(--primary-color);
}

.section-loading .spinner-border {
  margin-bottom: 1rem;
  color: var(--primary-color);
}

/* États vides */
.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: #6c757d;
}

.empty-state i {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

/* Animation pour les cartes qui apparaissent */
.fade-in-up {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.5s ease forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Header moderne */
.header-section {
  position: relative;
}

.icon-wrapper {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary-color), #8b7fff);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(103, 95, 255, 0.25);
  transition: all 0.3s ease;
}

.icon-wrapper:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(103, 95, 255, 0.35);
}

.icon-wrapper i {
  font-size: 1.5rem;
  color: white;
}

.header-section h1 {
  font-weight: 700;
  margin-bottom: 0;
}

.header-section p {
  font-size: 0.875rem;
  display: flex;
  align-items: center;
}

.actions-section .btn {
  border-radius: 12px;
  padding: 0.5rem 1rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.actions-section .btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(103, 95, 255, 0.2);
}

/* Badge compteur moderne */
#agents-count {
  background: linear-gradient(135deg, var(--primary-color), #8b7fff) !important;
  border-radius: 12px;
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

/* Responsive pour le header */
@media (max-width: 768px) {
  .header-section .d-flex {
    flex-direction: column;
    align-items: flex-start !important;
  }

  .icon-wrapper {
    width: 50px;
    height: 50px;
    margin-bottom: 1rem;
  }

  .icon-wrapper i {
    font-size: 1.25rem;
  }

  .actions-section {
    margin-top: 1rem;
    width: 100%;
  }

  .actions-section .btn {
    width: 100%;
  }
}

/* Palette de couleurs pour les agents - Version assombrie pour meilleur contraste */
.agent-color-1 {
  --agent-color: #675fff;
  --agent-color-light: rgba(103, 95, 255, 0.1);
  --agent-color-hover: #5a52e6;
}
.agent-color-2 {
  --agent-color: #e74c3c;
  --agent-color-light: rgba(231, 76, 60, 0.1);
  --agent-color-hover: #c0392b;
}
.agent-color-3 {
  --agent-color: #26a69a;
  --agent-color-light: rgba(38, 166, 154, 0.1);
  --agent-color-hover: #00796b;
}
.agent-color-4 {
  --agent-color: #3498db;
  --agent-color-light: rgba(52, 152, 219, 0.1);
  --agent-color-hover: #2980b9;
}
.agent-color-5 {
  --agent-color: #27ae60;
  --agent-color-light: rgba(39, 174, 96, 0.1);
  --agent-color-hover: #229954;
}
.agent-color-6 {
  --agent-color: #f39c12;
  --agent-color-light: rgba(243, 156, 18, 0.1);
  --agent-color-hover: #d68910;
}
.agent-color-7 {
  --agent-color: #e91e63;
  --agent-color-light: rgba(233, 30, 99, 0.1);
  --agent-color-hover: #c2185b;
}
.agent-color-8 {
  --agent-color: #3f51b5;
  --agent-color-light: rgba(63, 81, 181, 0.1);
  --agent-color-hover: #303f9f;
}
.agent-color-9 {
  --agent-color: #673ab7;
  --agent-color-light: rgba(103, 58, 183, 0.1);
  --agent-color-hover: #512da8;
}
.agent-color-10 {
  --agent-color: #00838f;
  --agent-color-light: rgba(0, 131, 143, 0.1);
  --agent-color-hover: #006064;
}

/* Styles pour les avatars et boutons colorés */
.agent-card .avatar {
  background-color: var(--agent-color) !important;
  box-shadow: 0 4px 15px var(--agent-color-light);
  transition: all 0.3s ease;
}

.agent-card .avatar:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px var(--agent-color-light);
}

/* Boutons restent avec la couleur primaire violette */
.agent-card .btn-primary {
  background-color: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
  box-shadow: 0 2px 10px rgba(103, 95, 255, 0.2);
}

.agent-card .btn-primary:hover {
  background-color: #5a52e6 !important;
  border-color: #5a52e6 !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(103, 95, 255, 0.3);
}

.agent-card .btn-primary:focus,
.agent-card .btn-primary:active {
  background-color: #5a52e6 !important;
  border-color: #5a52e6 !important;
  box-shadow: 0 0 0 0.2rem rgba(103, 95, 255, 0.25) !important;
}

/* Animation pour les cartes d'agents */
.agent-card {
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.agent-card:hover {
  border-color: var(--agent-color);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px var(--agent-color-light);
}

/* État sélectionné: même rendu que le hover, en persistant */
.agent-card.selected {
  border-color: var(--agent-color) !important;
  box-shadow: 0 8px 25px var(--agent-color-light) !important;
}

/* Chips d'agents sélectionnés dans la modale */
.agent-chip {
  background: var(--agent-color) !important;
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  font-weight: 600;
}

/* Styles modernes pour les conversations dans les drawers */
.drawer .card {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
  border: 1px solid #e3e8ff;
  border-radius: 16px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.drawer .card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), #8b7fff);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.drawer .card:hover {
  transform: translateX(-5px);
  box-shadow: 0 8px 25px rgba(103, 95, 255, 0.15);
  border-color: var(--primary-color);
}

.drawer .card:hover::before {
  opacity: 1;
}

.drawer .card-body {
  padding: 1.25rem;
  background: transparent;
}

/* Couleurs de texte pour les conversations */
.drawer .card-title {
  color: #2c3e50 !important;
  font-weight: 600;
}

.drawer .card-body .text-muted {
  color: #6c757d !important;
}

.drawer .card-body small {
  color: #6c757d !important;
}

.drawer .card-body .small {
  color: #6c757d !important;
}

/* Styles pour les boutons dans les conversations */
.drawer .btn-outline-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
  border-radius: 12px;
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(103, 95, 255, 0.2);
}

.drawer .btn-outline-primary:hover {
  background-color: #5a52e6;
  border-color: #5a52e6;
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(103, 95, 255, 0.3);
}

.drawer .btn-outline-primary:focus,
.drawer .btn-outline-primary:active {
  background-color: #4e47d9;
  border-color: #4e47d9;
  color: white;
  box-shadow: 0 0 0 0.2rem rgba(103, 95, 255, 0.25);
}

/* Styles modernes pour les métadonnées RAM */
.ram-metadata {
  background: linear-gradient(135deg, #f0f4ff 0%, #e8f2ff 100%) !important;
  border: 1px solid #d4e3ff;
  border-radius: 12px;
  padding: 0.75rem !important;
  margin: 0.5rem 0;
  transition: all 0.3s ease;
  position: relative;
}

.ram-metadata::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, #0dcaf0, #4ecdc4);
  border-radius: 12px 0 0 12px;
}

.ram-metadata:hover {
  background: linear-gradient(135deg, #e3f2fd 0%, #e1f5fe 100%) !important;
  border-color: #0dcaf0;
  transform: translateX(-3px);
  box-shadow: 0 4px 15px rgba(13, 202, 240, 0.2);
}

.ram-metadata .btn-xs {
  padding: 0.25rem 0.75rem;
  font-size: 0.7rem;
  border-radius: 8px;
  background: linear-gradient(135deg, #0dcaf0, #4ecdc4);
  border: none;
  color: white;
  transition: all 0.3s ease;
}

.ram-metadata .btn-xs:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(13, 202, 240, 0.3);
}

.ram-metadata i.fa-memory {
  color: #0dcaf0 !important;
  font-size: 1.1rem;
}

.ram-metadata strong {
  color: #0dcaf0 !important;
  font-weight: 600;
}

.ram-metadata .text-muted {
  color: #495057 !important;
}

/* Styles modernes pour les badges de statut */
.badge {
  padding: 0.5rem 0.75rem;
  font-size: 0.75rem;
  border-radius: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.badge.bg-success {
  background: linear-gradient(135deg, #28a745, #20c997) !important;
  box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

.badge.bg-primary {
  background: linear-gradient(135deg, var(--primary-color), #8b7fff) !important;
  box-shadow: 0 2px 8px rgba(103, 95, 255, 0.3);
}

.badge.bg-warning {
  background: linear-gradient(135deg, #ffc107, #ffca28) !important;
  box-shadow: 0 2px 8px rgba(255, 193, 7, 0.3);
  color: #212529 !important;
}

.badge.bg-danger {
  background: linear-gradient(135deg, #dc3545, #e74c3c) !important;
  box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
}

.badge.bg-info {
  background: linear-gradient(135deg, #0dcaf0, #4ecdc4) !important;
  box-shadow: 0 2px 8px rgba(13, 202, 240, 0.3);
}

.badge.bg-secondary {
  background: linear-gradient(135deg, #6c757d, #868e96) !important;
  box-shadow: 0 2px 8px rgba(108, 117, 125, 0.3);
}

/* Responsive pour les métadonnées RAM */
@media (max-width: 768px) {
  .ram-metadata {
    font-size: 0.85rem;
    padding: 0.5rem !important;
  }

  .ram-metadata .btn-xs {
    font-size: 0.65rem;
    padding: 0.2rem 0.5rem;
  }
}

/* Accessibilité modale export: contraste clair/sombre */
.modal-content .form-label,
.modal-content .form-check-label {
  color: #212529;
}

@media (prefers-color-scheme: dark) {
  .modal-content {
    background-color: #1f1f1f;
    color: #e9ecef;
  }
  .modal-content .form-label,
  .modal-content .form-check-label {
    color: #e9ecef;
  }
  .modal-content .btn-close {
    filter: invert(1) grayscale(100%);
  }
}

/* Overlay export: s’adapte au thème */
#exportOverlay .export-overlay-card {
  background-color: #ffffff;
  color: #212529;
}
@media (prefers-color-scheme: dark) {
  #exportOverlay .export-overlay-card {
    background-color: #2a2a2a;
    color: #e9ecef;
  }
}

/* Rendre la barre de progression bien visible (violet de l'app) */
#exportOverlay .progress .progress-bar {
  background-color: #675fff !important;
}
#exportOverlay .spinner-border {
  color: #675fff !important;
}

/* Taille personnalisée de la modale d'export */
#multiExportModal .modal-dialog {
  max-width: 900px;
}
@media (prefers-color-scheme: dark) {
  #exportOverlay .progress {
    background-color: #4b5563; /* piste foncée en dark */
  }
  #exportOverlay .progress .progress-bar {
    background-color: #7c3aed !important;
  }
}
