/* ============================================
   BASE - Reset et styles de base
   ============================================ */

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

body {
  font-family: "Segoe UI", Arial, sans-serif;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  min-height: 100vh;
  color: #e0e0e0;
}

/* ============================================
   LAYOUT PRINCIPAL
   ============================================ */

.app-container {
  display: flex;
  min-height: 100vh;
}

/* ============================================
   SCROLLBAR PERSONNALISÉE
   ============================================ */

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #1a1a28;
}

::-webkit-scrollbar-thumb {
  background: #00c27a;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #00ffa3;
}

/* ============================================
   ANIMATIONS GLOBALES
   ============================================ */

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

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 0 20px rgba(0, 255, 163, 0.5);
  }
  50% {
    box-shadow: 0 0 40px rgba(0, 255, 163, 0.8);
  }
}

/* ============================================
   ÉTATS DE CHARGEMENT
   ============================================ */

.loading {
  position: relative;
  pointer-events: none;
  opacity: 0.7;
}

.loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 30px;
  height: 30px;
  margin: -15px 0 0 -15px;
  border: 3px solid #333;
  border-top-color: #00c27a;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
