/* Variables pour le thème sombre (par défaut) */
:root, [data-theme="dark"] {
  --bg:#0b1120; 
  --card:#111827; 
  --text:#e5e7eb; 
  --muted:#9aa3b2; 
  --line:#1f2937;
  --brand:#6366f1; 
  --brand-2:#8b5cf6; 
  --ok:#10b981; 
  --warn:#f59e0b; 
  --err:#ef4444;
  --glass-bg: rgba(17, 24, 39, 0.7);
  --glass-border: rgba(99, 102, 241, 0.2);
  --bg-gradient-start: #0b1120;
  --bg-gradient-mid: #1a1f3a;
  --bg-gradient-end: #0b1120;
}

/* Variables pour le thème clair */
[data-theme="light"] {
  --bg:#f8fafc;
  --card:#ffffff;
  --text:#1e293b;
  --muted:#64748b;
  --line:#e2e8f0;
  --brand:#6366f1;
  --brand-2:#8b5cf6;
  --ok:#10b981;
  --warn:#f59e0b;
  --err:#ef4444;
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(99, 102, 241, 0.2);
  --bg-gradient-start: #f8fafc;
  --bg-gradient-mid: #e0e7ff;
  --bg-gradient-end: #f8fafc;
}

*{box-sizing:border-box}

body{
  margin:0;
  background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-mid) 50%, var(--bg-gradient-end) 100%);
  color:var(--text);
  font:16px/1.5 system-ui,-apple-system,Segoe UI,Roboto,Ubuntu;
  min-height: 100vh;
  transition: background 0.3s ease, color 0.3s ease;
}

a{color:var(--brand);text-decoration:none;transition: all 0.3s ease;}

.container{max-width:100%;margin:0 auto;padding:12px 20px}

/* ============================================
   HEADER MODERNE
   ============================================ */
.site-header{
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border-bottom:1px solid var(--glass-border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  position: sticky;
  top: 0;
  z-index: 100;
  animation: slideDown 0.5s ease-out;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.header-logo-link {
  text-decoration: none;
  transition: all 0.3s ease;
}

.header-logo-link:hover {
  transform: translateY(-2px);
  filter: brightness(1.2);
}

.site-header strong {
  font-size: 20px;
  font-weight: 700;
  background: linear-gradient(135deg, #e5e7eb, #a5b4fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-header strong::before {
  content: '💰';
  font-size: 24px;
  -webkit-text-fill-color: initial;
}

.header-info {
  display: flex;
  gap: 16px;
  font-size: 13px;
  color: var(--muted);
  flex-wrap: wrap;
}

.header-info-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(99, 102, 241, 0.1);
  border-radius: 8px;
  border: 1px solid rgba(99, 102, 241, 0.2);
}

#live-datetime {
  font-size: 15px;
  font-weight: 700;
}

.site-header nav{
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.site-header nav a{
  padding: 8px 16px;
  border-radius: 10px;
  font-weight: 500;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.site-header nav a:hover{
  background: rgba(99, 102, 241, 0.1);
  border-color: var(--glass-border);
  transform: translateY(-2px);
}

.site-header nav a.active{
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: white;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.site-header nav span {
  color: var(--muted);
  font-size: 14px;
}

/* Bouton de basculement de thème */
.theme-toggle {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 20px;
  padding: 0;
  margin-right: auto; /* Repousse le bouton à gauche et les autres éléments à droite */
}

.theme-toggle:hover {
  background: rgba(99, 102, 241, 0.15);
  border-color: var(--brand);
  transform: translateY(-2px) rotate(15deg);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.theme-toggle:active {
  transform: translateY(0) rotate(0deg);
}

.theme-icon {
  transition: transform 0.3s ease;
}

.theme-toggle:hover .theme-icon {
  transform: scale(1.2);
}

/* ============================================
   LAYOUT & SIDEBAR MODERNE
   ============================================ */
.layout{
  display:grid;
  grid-template-columns:260px 1fr;
  gap:24px;
  max-width:100%;
  margin:24px auto;
  padding:0 20px;
}

.sidebar{
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border:1px solid var(--glass-border);
  border-radius:16px;
  padding:16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  height: fit-content;
  position: sticky;
  top: 90px;
  animation: slideRight 0.5s ease-out;
}

.menu{
  list-style:none;
  padding:0;
  margin:0;
}

/* Accordéon Menu Section */
.menu-section {
  margin-bottom: 12px;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(99, 102, 241, 0.05);
  border: 1px solid transparent;
  transition: all 0.3s ease;
}

.menu-section:hover {
  border-color: var(--glass-border);
  background: rgba(99, 102, 241, 0.08);
}

.menu-section-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: transparent;
  border: none;
  color: var(--text);
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s ease;
  text-align: left;
}

.menu-section-header:hover {
  background: rgba(99, 102, 241, 0.1);
}

.menu-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.menu-section-icon {
  font-size: 18px;
}

.menu-section-arrow {
  font-size: 12px;
  transition: transform 0.3s ease;
  color: var(--muted);
}

.menu-section-content {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.menu-section.open .menu-section-content {
  max-height: 1000px;
  padding: 8px 0 12px 0;
}

.menu-section-content li {
  margin: 2px 8px;
}

.menu-section-content a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  transition: all 0.3s ease;
  font-size: 14px;
  border: 1px solid transparent;
  color: var(--text);
}

.menu-section-content a:hover {
  background: rgba(99, 102, 241, 0.15);
  border-color: var(--glass-border);
  transform: translateX(4px);
}

.menu-section-content .active > a {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.25), rgba(139, 92, 246, 0.25));
  border-color: var(--brand);
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

/* ============================================
   CONTENT MODERNE
   ============================================ */
.content{
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border:1px solid var(--glass-border);
  border-radius:16px;
  padding:24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  animation: fadeIn 0.5s ease-out;
}

/* ============================================
   FOOTER MODERNE
   ============================================ */
.site-footer{
  margin-top:40px;
  border-top:1px solid var(--glass-border);
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  padding: 20px 0;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
}

.site-footer .container {
  text-align: center;
}

.site-footer small {
  color: var(--muted);
  font-size: 13px;
}

/* ============================================
   TABLES & FORMS
   ============================================ */
table{
  width:100%;
  border-collapse:collapse;
  margin-top:16px;
  border-radius: 12px;
  overflow: hidden;
}

th,td{
  border:1px solid rgba(99, 102, 241, 0.1);
  padding:12px;
  vertical-align:top;
}

th{
  background: rgba(99, 102, 241, 0.1);
  text-align:left;
  font-weight: 600;
  color: var(--text);
}

tr:hover {
  background: rgba(99, 102, 241, 0.05);
}

input,select,textarea,button{
  background: rgba(11, 18, 34, 0.6);
  color:var(--text);
  border:2px solid var(--glass-border);
  border-radius:10px;
  padding:10px 14px;
  transition: all 0.3s ease;
  font-size: 14px;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--brand);
  background: rgba(11, 18, 34, 0.8);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

button{
  cursor:pointer;
  font-weight: 600;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  border: none;
  color: white;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(99, 102, 241, 0.4);
}

button:active {
  transform: translateY(0);
}

a.real-link { 
  color: inherit; 
  text-decoration: underline; 
  text-underline-offset: 2px; 
}

a.real-link:hover { 
  opacity: .9; 
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideRight {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* ============================================
   HOME PORTAL PAGE
   ============================================ */
.home-portal {
  max-width: 100%;
  margin: 0 auto;
}

/* Header du portail */
.portal-header {
  margin-bottom: 40px;
  animation: fadeIn 0.6s ease-out;
}

.portal-welcome {
  margin-bottom: 24px;
}

.portal-title {
  font-size: 36px;
  font-weight: 700;
  margin: 0 0 12px 0;
  background: linear-gradient(135deg, #e5e7eb, #a5b4fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.portal-subtitle {
  font-size: 18px;
  color: var(--muted);
  margin: 0;
}

/* Stats cards */
.portal-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  animation: slideUp 0.6s ease-out 0.2s both;
}

.stat-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  transition: all 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(99, 102, 241, 0.2);
  border-color: var(--brand);
}

.stat-icon {
  font-size: 32px;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(139, 92, 246, 0.2));
  border-radius: 12px;
}

.stat-info {
  flex: 1;
}

.stat-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 13px;
  color: var(--muted);
}

/* Sections */
.portal-section {
  margin-bottom: 48px;
  animation: fadeIn 0.6s ease-out;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 24px 0;
  color: var(--text);
}

.section-icon {
  font-size: 28px;
}

/* Grid de modules */
.modules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

/* Cartes de modules */
.module-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 24px;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.module-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #6366f1, #8b5cf6);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.module-card:hover::before {
  opacity: 1;
}

.module-card.active {
  cursor: pointer;
}

.module-card.active:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px rgba(99, 102, 241, 0.3);
  border-color: var(--brand);
}

.module-card.coming-soon {
  opacity: 0.7;
  cursor: default;
}

.module-card.coming-soon:hover {
  transform: translateY(-2px);
  opacity: 0.85;
}

/* Header du module */
.module-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.module-icon {
  font-size: 40px;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(139, 92, 246, 0.15));
  border-radius: 16px;
  transition: all 0.3s ease;
}

.module-card:hover .module-icon {
  transform: scale(1.1) rotate(5deg);
}

.module-badge {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.module-badge.active {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(5, 150, 105, 0.2));
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.module-badge.coming {
  background: rgba(99, 102, 241, 0.1);
  color: var(--brand);
  border: 1px solid var(--glass-border);
}

/* Contenu du module */
.module-title {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 8px 0;
  color: var(--text);
}

.module-description {
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 20px 0;
  line-height: 1.6;
}

/* Stats du module */
.module-stats {
  display: flex;
  gap: 24px;
  margin-bottom: 20px;
  padding: 16px 0;
  border-top: 1px solid rgba(99, 102, 241, 0.1);
  border-bottom: 1px solid rgba(99, 102, 241, 0.1);
}

.module-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-number {
  font-size: 24px;
  font-weight: 700;
  color: var(--brand);
}

.stat-text {
  font-size: 12px;
  color: var(--muted);
}

/* Features pour modules à venir */
.module-features {
  margin-bottom: 20px;
}

.feature-item {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 8px;
  padding-left: 4px;
}

/* Progress bar */
.module-progress {
  margin-top: auto;
}

.progress-bar {
  height: 6px;
  background: rgba(99, 102, 241, 0.1);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 8px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #6366f1, #8b5cf6);
  border-radius: 10px;
  transition: width 0.3s ease;
}

.progress-text {
  font-size: 12px;
  color: var(--muted);
  font-style: italic;
}

/* Actions du module */
.module-actions {
  margin-top: auto;
  padding-top: 16px;
}

.action-link {
  color: var(--brand);
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
}

.module-card:hover .action-link {
  transform: translateX(4px);
  display: inline-block;
}

/* Quick actions */
.quick-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.quick-action {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  transition: all 0.3s ease;
  flex: 1;
  min-width: 150px;
}

.quick-action:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(99, 102, 241, 0.2);
  border-color: var(--brand);
}

.quick-icon {
  font-size: 28px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(139, 92, 246, 0.15));
  border-radius: 12px;
}

.quick-text {
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 968px) {
  .layout {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .sidebar {
    position: static;
  }
  
  .site-header .container {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .portal-title {
    font-size: 28px;
  }
  
  .portal-subtitle {
    font-size: 16px;
  }
  
  .modules-grid {
    grid-template-columns: 1fr;
  }
  
  .portal-stats {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .quick-actions {
    flex-direction: column;
  }
  
  .quick-action {
    min-width: 100%;
  }
}

/* ============================================
   PAGE DE CONNEXION MODERNE 2025
   ============================================ */

/* Container principal de la page de login */
.login-page {
  min-height: 100vh;
  height: 100vh;
  width: 100vw;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  position: fixed;
  top: 0;
  left: 0;
  overflow: hidden;
  background: linear-gradient(135deg, #0b1120 0%, #1a1f3a 50%, #0b1120 100%);
}

/* Fond animé avec gradient */
.login-page::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 50%);
  animation: rotate 20s linear infinite;
}

/* Éléments flottants décoratifs */
.login-bg-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.3;
  animation: float 15s ease-in-out infinite;
}

.login-bg-blob:nth-child(1) {
  width: 400px;
  height: 400px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  top: -100px;
  left: -100px;
  animation-delay: 0s;
}

.login-bg-blob:nth-child(2) {
  width: 350px;
  height: 350px;
  background: linear-gradient(135deg, #8b5cf6, #ec4899);
  bottom: -100px;
  right: -100px;
  animation-delay: 5s;
}

.login-bg-blob:nth-child(3) {
  width: 300px;
  height: 300px;
  background: linear-gradient(135deg, #10b981, #6366f1);
  top: 50%;
  right: 10%;
  animation-delay: 10s;
}

/* Carte de connexion avec effet glassmorphism */
.login-card {
  position: relative;
  z-index: 10;
  width: 500px;
  max-width: calc(100vw - 40px);
  background: rgba(17, 24, 39, 0.7);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 24px;
  padding: 48px 40px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5),
              0 0 100px rgba(99, 102, 241, 0.1);
  animation: slideUp 0.8s ease-out;
  margin: auto;
}

/* En-tête de la carte */
.login-header {
  text-align: center;
  margin-bottom: 40px;
  animation: fadeIn 1s ease-out 0.3s both;
}

.login-logo {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  font-weight: bold;
  color: white;
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
  animation: pulse 2s ease-in-out infinite;
}

.login-title {
  font-size: 32px;
  font-weight: 700;
  margin: 0 0 8px 0;
  background: linear-gradient(135deg, #e5e7eb, #a5b4fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.login-subtitle {
  color: var(--muted);
  font-size: 15px;
  margin: 0;
}

/* Formulaire */
.login-form {
  animation: fadeIn 1s ease-out 0.5s both;
}

.login-form-group {
  margin-bottom: 24px;
  position: relative;
}

.login-form-label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  transition: color 0.3s ease;
}

.login-input-wrapper {
  position: relative;
}

.login-input-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  color: var(--muted);
  transition: color 0.3s ease;
  pointer-events: none;
}

.login-input {
  width: 100%;
  padding: 14px 16px 14px 48px;
  background: rgba(11, 18, 34, 0.6);
  border: 2px solid rgba(99, 102, 241, 0.2);
  border-radius: 12px;
  color: var(--text);
  font-size: 15px;
  transition: all 0.3s ease;
  outline: none;
}

.login-input:focus {
  border-color: var(--brand);
  background: rgba(11, 18, 34, 0.8);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1),
              0 8px 16px rgba(99, 102, 241, 0.2);
  transform: translateY(-2px);
}

.login-input:focus + .login-input-icon {
  color: var(--brand);
}

/* Bouton de connexion */
.login-button {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  border: none;
  border-radius: 12px;
  color: white;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
}

.login-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
}

.login-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(99, 102, 241, 0.4);
}

.login-button:hover::before {
  left: 100%;
}

.login-button:active {
  transform: translateY(0);
}

/* Alertes */
.login-alert {
  padding: 14px 16px;
  border-radius: 12px;
  margin-bottom: 24px;
  font-size: 14px;
  animation: slideDown 0.5s ease-out;
  display: flex;
  align-items: center;
  gap: 10px;
}

.login-alert.success {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #10b981;
}

.login-alert.error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #ef4444;
}

.login-alert::before {
  content: '✓';
  font-size: 18px;
  font-weight: bold;
}

.login-alert.error::before {
  content: '✕';
}

/* Lien d'inscription */
.login-footer {
  text-align: center;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(99, 102, 241, 0.1);
  color: var(--muted);
  font-size: 14px;
  animation: fadeIn 1s ease-out 0.7s both;
}

.login-footer a {
  color: var(--brand);
  font-weight: 600;
  transition: all 0.3s ease;
  text-decoration: none;
  position: relative;
}

.login-footer a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--brand);
  transition: width 0.3s ease;
}

.login-footer a:hover::after {
  width: 100%;
}

/* Animations LOGIN */
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(30px, -30px) scale(1.1);
  }
  66% {
    transform: translate(-20px, 20px) scale(0.9);
  }
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.5);
  }
}

/* Responsive Design LOGIN */
@media (max-width: 768px) {
  .login-card {
    padding: 36px 28px;
    max-width: 100%;
  }
  
  .login-title {
    font-size: 28px;
  }
  
  .login-logo {
    width: 70px;
    height: 70px;
    font-size: 32px;
  }
  
  .login-bg-blob {
    filter: blur(60px);
  }
}

@media (max-width: 480px) {
  .login-page {
    padding: 16px;
  }
  
  .login-card {
    padding: 28px 20px;
  }
  
  .login-title {
    font-size: 24px;
  }
}

/* Masquer header/footer sur la page de login */
.login-page-body {
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden;
  height: 100vh;
}

.login-page-body .site-header,
.login-page-body .site-footer {
  display: none !important;
}

.login-page-body .layout {
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  height: 100vh;
  width: 100vw;
  grid-template-columns: none !important;
}

.login-page-body .content {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
  height: 100vh;
  width: 100vw;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0 !important;
}

/* ============================================
   BOUTONS D'ACTION AVEC ICÔNES ET TOOLTIPS
   ============================================ */
.action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  margin: 2px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid transparent;
  position: relative;
}

.action-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.btn-edit {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: white;
  text-decoration: none;
}

.btn-toggle {
  background: rgba(99, 102, 241, 0.1);
  color: var(--brand);
  border-color: var(--glass-border);
}

.btn-toggle:hover {
  background: rgba(99, 102, 241, 0.2);
}

.btn-danger {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.3);
}

.btn-danger:hover {
  background: rgba(239, 68, 68, 0.2);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

/* Tooltips pour les boutons d'action */
.action-btn[title]:hover::after {
  content: attr(title);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 10px;
  background: rgba(0, 0, 0, 0.9);
  color: white;
  font-size: 12px;
  white-space: nowrap;
  border-radius: 6px;
  margin-bottom: 8px;
  z-index: 1000;
  pointer-events: none;
}

.action-btn[title]:hover::before {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: rgba(0, 0, 0, 0.9);
  margin-bottom: 2px;
  z-index: 1000;
  pointer-events: none;
}

.actions-cell {
  white-space: nowrap;
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

/* ============================================
   FORMULAIRES MODERNES
   ============================================ */
.form-container {
  max-width: 1200px;
  margin: 0 auto;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
  gap: 24px;
  margin-bottom: 24px;
}

@media (max-width: 768px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}

.form-header {
  text-align: center;
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 2px solid var(--glass-border);
}

.form-header h2 {
  font-size: 32px;
  margin: 0 0 12px 0;
  background: linear-gradient(135deg, #e5e7eb, #a5b4fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.form-header p {
  color: var(--muted);
  font-size: 15px;
  margin: 0;
}

.form-section {
  background: rgba(99, 102, 241, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 24px;
  transition: all 0.3s ease;
}

.form-section:hover {
  background: rgba(99, 102, 241, 0.08);
  border-color: var(--brand);
}

.form-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 20px 0;
  color: var(--text);
}

.form-section-icon {
  font-size: 24px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group:last-child {
  margin-bottom: 0;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.form-label-icon {
  font-size: 16px;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  background: rgba(11, 18, 34, 0.6);
  border: 2px solid var(--glass-border);
  border-radius: 12px;
  color: var(--text);
  font-size: 15px;
  transition: all 0.3s ease;
  font-family: inherit;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--brand);
  background: rgba(11, 18, 34, 0.8);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
  transform: translateY(-2px);
}

.form-textarea {
  min-height: 100px;
  resize: vertical;
}

.form-hint {
  font-size: 13px;
  color: var(--muted);
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.color-preview-container {
  display: flex;
  gap: 16px;
  align-items: center;
}

.color-preview {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  border: 2px solid var(--glass-border);
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.color-input-wrapper {
  flex: 1;
}

.icon-preview-container {
  display: flex;
  gap: 16px;
  align-items: center;
}

.icon-preview {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(139, 92, 246, 0.15));
  border-radius: 12px;
  border: 2px solid var(--glass-border);
  transition: all 0.3s ease;
}

.icon-preview:hover {
  transform: scale(1.1) rotate(5deg);
}

.checkbox-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: rgba(99, 102, 241, 0.05);
  border: 2px solid var(--glass-border);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.checkbox-wrapper:hover {
  background: rgba(99, 102, 241, 0.1);
  border-color: var(--brand);
}

.checkbox-wrapper input[type="checkbox"] {
  width: 24px;
  height: 24px;
  cursor: pointer;
}

.checkbox-label {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  flex: 1;
}

.form-actions {
  display: flex;
  gap: 12px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 2px solid var(--glass-border);
}

.btn-primary {
  flex: 1;
  padding: 16px 24px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  border: none;
  border-radius: 12px;
  color: white;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(99, 102, 241, 0.4);
}

.btn-secondary {
  flex: 1;
  padding: 16px 24px;
  background: rgba(99, 102, 241, 0.1);
  border: 2px solid var(--glass-border);
  border-radius: 12px;
  color: var(--text);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
}

.btn-secondary:hover {
  background: rgba(99, 102, 241, 0.15);
  border-color: var(--brand);
  transform: translateY(-2px);
}

.emoji-suggestions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.emoji-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.emoji-btn:hover {
  background: rgba(99, 102, 241, 0.2);
  transform: scale(1.1);
}

/* ============================================
   PAGE DÉTAIL RENDEZ-VOUS - UX AMÉLIORÉE
   ============================================ */
.appointment-detail-container {
  max-width: 1400px;
  margin: 0 auto;
}

/* Header du rendez-vous avec animation */
.appointment-header {
  margin-bottom: 32px;
  padding: 32px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.05));
  border-radius: 20px;
  border: 1px solid var(--glass-border);
  position: relative;
  overflow: hidden;
  animation: slideDown 0.6s ease-out;
}

.appointment-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #6366f1, #8b5cf6, #ec4899);
}

.appointment-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
}

.appointment-title-section h1 {
  font-size: 32px;
  font-weight: 700;
  margin: 0 0 12px 0;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
}

.appointment-type-icon {
  font-size: 36px;
  animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.appointment-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 15px;
}

.appointment-meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(99, 102, 241, 0.1);
  border-radius: 10px;
  border: 1px solid var(--glass-border);
}

.appointment-meta-icon {
  font-size: 18px;
}

/* Actions avec dropdown moderne */
.appointment-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-group {
  display: flex;
  gap: 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

.btn-group .btn {
  border-radius: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-group .btn:first-child {
  border-top-left-radius: 12px;
  border-bottom-left-radius: 12px;
}

.btn-group .btn:last-child {
  border-top-right-radius: 12px;
  border-bottom-right-radius: 12px;
  border-right: none;
}

.dropdown-menu {
  background: var(--card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
  padding: 8px;
  min-width: 200px;
  animation: slideDown 0.3s ease-out;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
  color: var(--text);
  background: transparent;
  border: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
}

.dropdown-item:hover {
  background: rgba(99, 102, 241, 0.15);
  transform: translateX(4px);
}

.dropdown-item.text-danger {
  color: var(--err);
}

.dropdown-item.text-danger:hover {
  background: rgba(239, 68, 68, 0.15);
}

.dropdown-divider {
  height: 1px;
  background: var(--glass-border);
  margin: 8px 0;
  border: none;
}

/* Cartes d'information */
.info-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 24px;
  transition: all 0.3s ease;
  animation: fadeIn 0.6s ease-out;
}

.info-card:hover {
  border-color: var(--brand);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.2);
  transform: translateY(-2px);
}

.card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 2px solid rgba(99, 102, 241, 0.1);
}

.card-header h5 {
  font-size: 20px;
  font-weight: 700;
  margin: 0;
  color: var(--text);
}

.card-header-icon {
  font-size: 24px;
}

.card-body {
  color: var(--text);
}

/* Grille d'informations */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.info-item {
  padding: 16px;
  background: rgba(99, 102, 241, 0.05);
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  transition: all 0.3s ease;
}

.info-item:hover {
  background: rgba(99, 102, 241, 0.1);
  border-color: var(--brand);
}

.info-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.info-value {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Badges de statut personnalisés */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  animation: fadeIn 0.5s ease-out;
}

.status-badge.planifie {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.status-badge.confirme {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-badge.annule {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.status-badge.termine {
  background: rgba(107, 114, 128, 0.15);
  color: #6b7280;
  border: 1px solid rgba(107, 114, 128, 0.3);
}

.priority-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
}

.priority-badge.haute {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.priority-badge.normale {
  background: rgba(59, 130, 246, 0.15);
  color: #3b82f6;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.priority-badge.basse {
  background: rgba(107, 114, 128, 0.15);
  color: #6b7280;
  border: 1px solid rgba(107, 114, 128, 0.3);
}

/* Liste des participants */
.participants-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.participant-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: rgba(99, 102, 241, 0.05);
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  transition: all 0.3s ease;
}

.participant-item:hover {
  background: rgba(99, 102, 241, 0.1);
  border-color: var(--brand);
  transform: translateX(4px);
}

.participant-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  color: white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  border: 2px solid var(--glass-border);
}

.participant-info {
  flex: 1;
}

.participant-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 4px 0;
}

.participant-relation {
  font-size: 13px;
  color: var(--muted);
}

.participant-role {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.participant-role.concerne {
  background: rgba(99, 102, 241, 0.15);
  color: var(--brand);
  border: 1px solid rgba(99, 102, 241, 0.3);
}

.participant-role.accompagnateur {
  background: rgba(107, 114, 128, 0.15);
  color: #6b7280;
  border: 1px solid rgba(107, 114, 128, 0.3);
}

/* Section lieu */
.location-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  background: rgba(99, 102, 241, 0.05);
  border-radius: 12px;
  border: 1px solid var(--glass-border);
}

.location-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.location-address {
  font-size: 14px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Alerte notes */
.notes-alert {
  padding: 16px 20px;
  border-radius: 12px;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: var(--text);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 16px;
}

.notes-alert::before {
  content: '📝';
  font-size: 20px;
  flex-shrink: 0;
}

/* Section récurrence */
.recurrence-info {
  padding: 16px;
  background: rgba(139, 92, 246, 0.1);
  border-radius: 12px;
  border: 1px solid rgba(139, 92, 246, 0.3);
}

.recurrence-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 14px;
}

.recurrence-item:last-child {
  margin-bottom: 0;
}

.recurrence-icon {
  font-size: 18px;
  color: var(--brand-2);
}

/* Métadonnées */
.metadata-card {
  background: rgba(107, 114, 128, 0.1);
  border-radius: 12px;
  padding: 16px;
  border: 1px solid var(--glass-border);
}

.metadata-item {
  margin-bottom: 16px;
}

.metadata-item:last-child {
  margin-bottom: 0;
}

.metadata-label {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.metadata-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

/* Breadcrumb amélioré */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 0;
  margin-bottom: 24px;
  list-style: none;
  flex-wrap: wrap;
}

.breadcrumb-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.breadcrumb-item a {
  color: var(--brand);
  transition: all 0.3s ease;
  text-decoration: none;
  padding: 4px 8px;
  border-radius: 6px;
}

.breadcrumb-item a:hover {
  background: rgba(99, 102, 241, 0.1);
}

.breadcrumb-item.active {
  color: var(--text);
  font-weight: 600;
}

.breadcrumb-item + .breadcrumb-item::before {
  content: '›';
  color: var(--muted);
  font-size: 16px;
}

/* Responsive pour page détail */
@media (max-width: 768px) {
  .appointment-title-row {
    flex-direction: column;
  }
  
  .appointment-actions {
    width: 100%;
  }
  
  .btn-group {
    width: 100%;
    flex-direction: column;
  }
  
  .btn-group .btn {
    border-radius: 12px !important;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .info-grid {
    grid-template-columns: 1fr;
  }
  
  .participant-item {
    flex-direction: column;
    text-align: center;
  }
}

/* ============================================
   BOOTSTRAP THEME OVERRIDES - DARK/LIGHT MODE
   ============================================ */

/* Cards */
.card {
  background: var(--card) !important;
  border: 1px solid var(--line) !important;
  color: var(--text) !important;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.card-body {
  background: var(--card) !important;
  color: var(--text) !important;
}

.card-header {
  background: var(--glass-bg) !important;
  border-bottom: 1px solid var(--line) !important;
  color: var(--text) !important;
}

/* Tables */
.table {
  color: var(--text) !important;
  background: var(--card) !important;
  border-color: var(--line) !important;
}

.table thead th {
  background: var(--glass-bg) !important;
  color: var(--text) !important;
  border-bottom: 2px solid var(--line) !important;
  border-color: var(--line) !important;
}

.table tbody tr {
  background: var(--card) !important;
  border-color: var(--line) !important;
}

.table tbody td {
  border-color: var(--line) !important;
  color: var(--text) !important;
  background: var(--card) !important;
}

.table-hover tbody tr:hover {
  background: rgba(99, 102, 241, 0.1) !important;
}

.table-hover tbody tr:hover td {
  background: rgba(99, 102, 241, 0.1) !important;
}

/* Forms */
.form-control,
.form-select {
  background: var(--card) !important;
  border: 1px solid var(--line) !important;
  color: var(--text) !important;
}

.form-control:focus,
.form-select:focus {
  background: var(--card) !important;
  border-color: var(--brand) !important;
  color: var(--text) !important;
  box-shadow: 0 0 0 0.2rem rgba(99, 102, 241, 0.25) !important;
}

.form-control::placeholder {
  color: var(--muted) !important;
}

.form-label {
  color: var(--text) !important;
  font-weight: 500;
}

/* Input Groups */
.input-group .btn {
  border-color: var(--line) !important;
}

/* Buttons - Bootstrap Override */
.btn-outline-secondary {
  color: var(--text) !important;
  border-color: var(--line) !important;
  background: var(--card) !important;
}

.btn-outline-secondary:hover {
  background: var(--brand) !important;
  border-color: var(--brand) !important;
  color: white !important;
}

.btn-outline-primary {
  color: var(--brand) !important;
  border-color: var(--brand) !important;
}

.btn-outline-primary:hover {
  background: var(--brand) !important;
  color: white !important;
}

/* Badges */
.badge {
  font-weight: 600;
}

.bg-success {
  background-color: var(--ok) !important;
}

.bg-warning {
  background-color: var(--warn) !important;
}

.bg-danger {
  background-color: var(--err) !important;
}

.bg-secondary {
  background-color: var(--muted) !important;
}

.text-muted {
  color: var(--muted) !important;
}

.text-success {
  color: var(--ok) !important;
}

.text-primary {
  color: var(--brand) !important;
}

/* Alerts */
.alert {
  background: var(--card) !important;
  border: 1px solid var(--line) !important;
  color: var(--text) !important;
}

.alert-info {
  background: rgba(99, 102, 241, 0.1) !important;
  border-color: var(--brand) !important;
  color: var(--text) !important;
}

/* Container Fluid */
.container-fluid {
  background: transparent !important;
  color: var(--text) !important;
}

/* Text utilities */
h1, h2, h3, h4, h5, h6 {
  color: var(--text) !important;
}

/* List Group */
.list-group {
  background: transparent !important;
}

.list-group-item {
  background: var(--card) !important;
  border: 1px solid var(--line) !important;
  color: var(--text) !important;
}

.list-group-item:hover {
  background: rgba(99, 102, 241, 0.1) !important;
}

.list-group-item.active {
  background: var(--brand) !important;
  border-color: var(--brand) !important;
  color: white !important;
}

/* Progress Bars */
.progress {
  background: var(--line) !important;
  border-radius: 10px;
  overflow: hidden;
}

.progress-bar {
  color: white !important;
  font-weight: 600;
  transition: width 0.6s ease;
}

.progress-bar.bg-success {
  background: var(--ok) !important;
}

.progress-bar.bg-warning {
  background: var(--warn) !important;
}

.progress-bar.bg-danger {
  background: var(--err) !important;
}

.progress-bar.bg-primary {
  background: var(--brand) !important;
}

