/**
 * ACLBOT ENHANCED DESIGN SYSTEM
 * Version 7.0 - Grandes améliorations de design
 * 
 * Ce fichier est le point d'entrée pour toutes les améliorations de design.
 * Importez ce fichier dans vos templates pour activer toutes les améliorations.
 */

/* ========================================
   CORE - Design tokens et base (déjà inclus dans le projet)
   ======================================== */
/* @import url('core/tokens.css'); */
/* @import url('core/base.css'); */

/* ========================================
   AMÉLIORATIONS V7.0
   ======================================== */

/* Corrections de bugs et nouvelles animations */
@import url('core/design-improvements.css?v=7.2');

/* Composants UI modernisés */
@import url('components/enhanced-ui.css?v=7.2');

/* Pages améliorées */
@import url('pages/enhanced-pages.css');

/* ========================================
   UTILITAIRES RAPIDES
   ======================================== */

/* Flexbox utilities */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }
.flex-wrap { flex-wrap: wrap; }
.flex-1 { flex: 1; }
.gap-1 { gap: var(--space-1); }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-5 { gap: var(--space-5); }
.gap-6 { gap: var(--space-6); }

/* Grid utilities */
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, 1fr); }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }

/* Spacing utilities */
.m-0 { margin: 0; }
.mt-2 { margin-top: var(--space-2); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mb-2 { margin-bottom: var(--space-2); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.ml-auto { margin-left: auto; }
.mr-auto { margin-right: auto; }
.mx-auto { margin-left: auto; margin-right: auto; }

.p-0 { padding: 0; }
.p-4 { padding: var(--space-4); }
.p-5 { padding: var(--space-5); }
.p-6 { padding: var(--space-6); }

/* Text utilities */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-xs { font-size: var(--text-xs); }
.text-sm { font-size: var(--text-sm); }
.text-base { font-size: var(--text-base); }
.text-lg { font-size: var(--text-lg); }
.text-xl { font-size: var(--text-xl); }

.font-medium { font-weight: var(--font-medium); }
.font-semibold { font-weight: var(--font-semibold); }
.font-bold { font-weight: var(--font-bold); }

/* Display utilities */
.block { display: block; }
.inline-block { display: inline-block; }
.hidden { display: none; }

/* Width/Height utilities */
.w-full { width: 100%; }
.h-full { height: 100%; }
.min-h-screen { min-height: 100vh; }

/* Position utilities */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.sticky { position: sticky; }

/* Overflow utilities */
.overflow-hidden { overflow: hidden; }
.overflow-auto { overflow: auto; }
.overflow-x-auto { overflow-x: auto; }
.overflow-y-auto { overflow-y: auto; }

/* Cursor utilities */
.cursor-pointer { cursor: pointer; }
.cursor-default { cursor: default; }
.cursor-not-allowed { cursor: not-allowed; }

/* Select utilities */
.select-none { user-select: none; }
.select-all { user-select: all; }

/* ========================================
   ANIMATIONS DE PAGE
   ======================================== */

/* Animation d'entrée de page */
.page-enter {
  animation: pageEnter 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

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

/* Animation de sortie de page */
.page-exit {
  animation: pageExit 0.3s ease forwards;
}

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

/* Stagger animation pour les listes */
.stagger-children > * {
  opacity: 0;
  animation: fadeInUp 0.4s ease forwards;
}

.stagger-children > *:nth-child(1) { animation-delay: 0.05s; }
.stagger-children > *:nth-child(2) { animation-delay: 0.1s; }
.stagger-children > *:nth-child(3) { animation-delay: 0.15s; }
.stagger-children > *:nth-child(4) { animation-delay: 0.2s; }
.stagger-children > *:nth-child(5) { animation-delay: 0.25s; }
.stagger-children > *:nth-child(6) { animation-delay: 0.3s; }
.stagger-children > *:nth-child(7) { animation-delay: 0.35s; }
.stagger-children > *:nth-child(8) { animation-delay: 0.4s; }
.stagger-children > *:nth-child(9) { animation-delay: 0.45s; }
.stagger-children > *:nth-child(10) { animation-delay: 0.5s; }

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

/* ========================================
   COMPOSANTS RAPIDES
   ======================================== */

/* Divider */
.divider {
  height: 1px;
  background: var(--border);
  margin: var(--space-4) 0;
}

/* Vertical divider */
.divider-vertical {
  width: 1px;
  background: var(--border);
  margin: 0 var(--space-4);
  align-self: stretch;
}

/* Avatar */
.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
}

.avatar--sm { width: 32px; height: 32px; }
.avatar--lg { width: 56px; height: 56px; }
.avatar--xl { width: 80px; height: 80px; }

/* Icon box */
.icon-box {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-muted);
  color: var(--accent);
  border-radius: var(--radius-lg);
  font-size: var(--text-xl);
}

.icon-box--success { background: var(--success-muted); color: var(--success); }
.icon-box--warning { background: var(--warning-muted); color: var(--warning); }
.icon-box--error { background: var(--error-muted); color: var(--error); }

/* ========================================
   RESPONSIVE UTILITIES
   ======================================== */

@media (max-width: 768px) {
  .sm\:hidden { display: none !important; }
  .sm\:block { display: block !important; }
  .sm\:flex { display: flex !important; }
  .sm\:grid-cols-1 { grid-template-columns: 1fr; }
  .sm\:flex-col { flex-direction: column; }
}

@media (min-width: 769px) {
  .md\:hidden { display: none !important; }
  .md\:block { display: block !important; }
  .md\:flex { display: flex !important; }
  .md\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1024px) {
  .lg\:hidden { display: none !important; }
  .lg\:block { display: block !important; }
  .lg\:flex { display: flex !important; }
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
}

/* ========================================
   DARK MODE OVERRIDES
   ======================================== */

[data-theme="dark"] .glass {
  background: rgba(255, 255, 255, 0.86);
  border-color: var(--border);
}

[data-theme="dark"] .nav-modern {
  background: rgba(255, 255, 255, 0.88);
}

[data-theme="dark"] .card-shine::before {
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.05), transparent);
}

/* ========================================
   GREY ROW BOX DESIGN SYSTEM
   ======================================== */
.grey-row-box {
  display: flex;
  align-items: center;
  padding: 16px 20px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 16px;
  gap: 16px;
  transition: all 0.15s ease;
}

.grey-row-box--hoverable:hover {
  border-color: var(--border-hover);
}

[data-theme="dark"] .grey-row-box {
  background: var(--border-subtle);
  border-color: var(--border);
}

[data-theme="dark"] .grey-row-box--hoverable:hover {
  border-color: rgba(255, 255, 255, 0.15);
}

