/* Sfondo generale toolsuite */
body {
  background: #f5f7fb;
}

/* Card generica per i tool */
.tool-card {
  border: 1px solid rgba(0,0,0,0.05);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
  padding: 18px 20px;
  margin-bottom: 24px;
}

/* Header card (titolo + icona) */
.tool-card-header {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tool-card-header i {
  font-size: 1.25rem;
  color: #0d6efd;
}

/* Sottotitolo / descrizione sotto al titolo */
.tool-card-subtitle {
  font-size: 0.9rem;
  color: #6c757d;
  margin-bottom: 16px;
  line-height: 1.45;
}

/* Stile base CodeMirror per tutti i tool */
.CodeMirror {
  height: 200px;
  font-size: 13px;
  border: 1px solid #d0d7e2;
  resize: vertical;
}

/* Label monospace per “Linea X: …” (commenti apertura/chiusura) */
.comment-line-label {
  font-family: var(--bs-font-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);
  font-size: 0.85rem;
}

/* Pill generica per tipologia di riga (variabili/struct/assign) */
.line-pill {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  margin-right: 6px;
  flex-shrink: 0;
}

/* Hover standard sulle liste dei tool che usano list-group */
.tool-list .list-group-item:hover,
#outputLinksList .list-group-item:hover,
#outputVarsList .list-group-item:hover {
  background-color: #f8f9fa;
}

/* Drop area condivisa per i tool con drag & drop file */
.drop-area {
  height: 200px;
  border: 2px dashed #ced4da;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: #666;
  transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
  user-select: none;
  margin-bottom: 1rem;
  background: #f8fafc;
  position: relative;
  cursor: pointer;
  box-shadow: 0 0 0 rgba(37, 99, 235, 0);
}

.drop-area.hover {
  animation: drop-pulse 0.9s ease-in-out infinite;
  border-color: #0d6efd;
  background: #eef4ff;
}

.drop-area.success {
  border-color: #198754;
  background: #f1f8f4;
  animation: drop-success 1.1s ease;
}

.drop-area.success .drop-area-inner-icon i,
.drop-area.success .drop-area-main-text {
  color: #198754;
}

.drop-area-inner-icon {
  font-size: 2.3rem;
  margin-bottom: 0.4rem;
  display: block;
}

.drop-area-inner-icon i {
  transition: transform 0.25s ease;
  display: inline-block;
}

.drop-area:hover .drop-area-inner-icon i,
.drop-area.hover .drop-area-inner-icon i {
  animation: icon-bounce 1s ease-in-out infinite;
}

.drop-area-main-text {
  font-weight: 600;
}

.drop-area-sub-text {
  font-size: 0.85rem;
  color: #6c757d;
  max-width: 36rem;
  margin-top: 0.25rem;
}

.drop-feedback {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translate(-50%, 6px) scale(0.98);
  opacity: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: #198754;
  display: flex;
  align-items: center;
  gap: 6px;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.drop-feedback.show {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}

@keyframes drop-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.35);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(37, 99, 235, 0);
    transform: scale(1.01);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0);
    transform: scale(1);
  }
}

@keyframes drop-success {
  0% {
    box-shadow: 0 0 0 0 rgba(25, 135, 84, 0.32);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(25, 135, 84, 0);
    transform: scale(1.01);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(25, 135, 84, 0);
    transform: scale(1);
  }
}

@keyframes icon-bounce {
  0% {
    transform: translateY(0);
  }
  30% {
    transform: translateY(-4px);
  }
  60% {
    transform: translateY(0);
  }
  80% {
    transform: translateY(-2px);
  }
  100% {
    transform: translateY(0);
  }
}


