
:root {
  --bg-dark: #0f172a;
  --bg-card: rgba(30, 41, 59, 0.7);
  --border-color: rgba(255, 255, 255, 0.1);
  --primary: #38bdf8;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: 'Inter', sans-serif;
  min-height: 100vh;
}

.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.glass-card:hover {
  border-color: var(--primary);
}

.pulse-badge {
  animation: pulse-animation 2s infinite;
}

@keyframes pulse-animation {
  0% { transform: scale(0.98); opacity: 0.8; }
  50% { transform: scale(1.04); opacity: 1; }
  100% { transform: scale(0.98); opacity: 0.8; }
}

.log-console {
  background: #020617;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  height: 250px;
  overflow-y: auto;
}

@media (min-width: 992px) {
  .log-console {
    height: 380px;
  }
}

.log-line {
  padding: 4px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.log-info { color: #38bdf8; }
.log-success { color: #10b981; }
.log-warning { color: #f59e0b; }
.log-error { color: #ef4444; }

.custom-scroll::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
.custom-scroll::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}

.preview-img-box {
  width: 100%;
  height: 200px;
  background: #020617;
  border-radius: 12px;
  border: 1px dashed var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

@media (min-width: 992px) {
  .preview-img-box {
    height: 280px;
  }
}

.preview-img-box img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
 
 /* =========================================================================
   COMPACTAGE EXTREME POUR MOBILE (iPhone SE) - AutoSIGLE
   ========================================================================= */
@media (max-width: 575.98px) {
  body { font-size: 0.8rem !important; }
  .navbar { padding: 0.25rem 0.5rem !important; }
  .badge { font-size: 0.65rem !important; padding: 0.2rem 0.4rem !important; }
  .glass-card { padding: 0.5rem !important; border-radius: 8px !important; margin-bottom: 0.5rem !important; }
  h2 { font-size: 1.15rem !important; }
  h5 { font-size: 0.9rem !important; margin-bottom: 0 !important; }
  h6 { font-size: 0.85rem !important; margin-bottom: 0.25rem !important; }
  .small, small { font-size: 0.7rem !important; }
  .btn { padding: 0.2rem 0.4rem !important; font-size: 0.75rem !important; }
  .gap-2 { gap: 0.25rem !important; }
  .gap-3 { gap: 0.5rem !important; }
  .row.g-3, .row.g-4 { --bs-gutter-y: 0.5rem !important; --bs-gutter-x: 0.5rem !important; }
  
  /* Inputs ultra compacts */
  .form-control-sm { font-size: 0.75rem !important; padding: 0.15rem 0.3rem !important; height: auto !important; }
  label { margin-bottom: 0 !important; font-size: 0.65rem !important; }
  
  /* Boites spécifiques */
  .preview-img-box { height: 140px !important; border-radius: 8px !important; }
  .log-console { height: 180px !important; font-size: 0.7rem !important; }
  
  /* Onglets */
  .nav-pills .nav-link { padding: 0.15rem 0.3rem !important; font-size: 0.75rem !important; }
  
  /* Listes */
  .p-2 { padding: 0.25rem !important; }
  .mb-2 { margin-bottom: 0.25rem !important; }
}
