/* EVIL — Generatore di report (report-generator.html) */
.report-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.hero-section {
  text-align: center;
  margin-bottom: 60px;
  border-bottom: 2px solid rgba(77, 171, 247, 0.3);
  padding-bottom: 40px;
}

.hero-section h1 {
  font-size: 2.5rem;
  color: #4dabe7;
  margin-bottom: 15px;
  font-weight: 700;
  letter-spacing: 1px;
}

.hero-section p {
  font-size: 1rem;
  color: #b0b0b0;
  max-width: 900px;
  margin: 10px auto;
  line-height: 1.7;
}

.form-section {
  background: rgba(77, 171, 247, 0.05);
  border: 1px solid rgba(77, 171, 247, 0.2);
  border-radius: 8px;
  padding: 40px;
  margin: 40px 0;
}

.form-group {
  margin-bottom: 25px;
}

.form-group label {
  display: block;
  color: #4dabe7;
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px;
  background: rgba(20, 30, 50, 0.8);
  border: 1px solid rgba(77, 171, 247, 0.3);
  border-radius: 4px;
  color: #fff;
  font-family: 'Courier New', monospace;
  font-size: 0.95rem;
  box-sizing: border-box;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #606060;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #4dabe7;
  box-shadow: 0 0 12px rgba(77, 171, 247, 0.2);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-row.full {
  grid-template-columns: 1fr;
}

.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 10px;
}

.checkbox-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.checkbox-item input {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: #4dabe7;
}

.checkbox-item label {
  margin: 0;
  cursor: pointer;
  font-weight: 400;
}

.button-group {
  display: flex;
  gap: 12px;
  margin-top: 30px;
}

.btn {
  padding: 12px 24px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  font-size: 1rem;
}

.btn-primary {
  background: linear-gradient(135deg, #4dabe7, #00d4ff);
  color: #0a0e27;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(77, 171, 247, 0.3);
}

.btn-secondary {
  background: transparent;
  border: 1px solid #606060;
  color: #b0b0b0;
}

.btn-secondary:hover {
  border-color: #4dabe7;
  color: #4dabe7;
}

.report-preview {
  background: rgba(77, 171, 247, 0.03);
  border: 1px solid rgba(77, 171, 247, 0.2);
  border-radius: 8px;
  padding: 40px;
  margin: 40px 0;
  display: none;
}

.report-preview.active {
  display: block;
}

.report-header {
  border-bottom: 2px solid rgba(77, 171, 247, 0.3);
  padding-bottom: 20px;
  margin-bottom: 30px;
}

.report-title {
  color: #4dabe7;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.report-meta {
  color: #808080;
  font-size: 0.9rem;
}

.report-section {
  margin: 30px 0;
  padding: 20px;
  background: rgba(0, 0, 0, 0.2);
  border-left: 3px solid #4dabe7;
  border-radius: 4px;
}

.report-section h3 {
  color: #4dabe7;
  font-size: 1.3rem;
  margin-bottom: 15px;
}

.report-content {
  color: #d1d5db;
  line-height: 1.8;
}

.report-list {
  list-style: none;
  padding-left: 0;
}

.report-list li {
  padding: 8px 0;
  padding-left: 20px;
  position: relative;
  color: #d1d5db;
}

.report-list li:before {
  content: "·";
  position: absolute;
  left: 0;
  color: #4dabe7;
  font-weight: 700;
}

.export-buttons {
  display: flex;
  gap: 12px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.btn-export {
  padding: 10px 20px;
  background: rgba(77, 171, 247, 0.1);
  border: 1px solid rgba(77, 171, 247, 0.3);
  color: #4dabe7;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-export:hover {
  background: rgba(77, 171, 247, 0.2);
  box-shadow: 0 0 15px rgba(77, 171, 247, 0.15);
}

@media (max-width: 768px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.form-section h2 {
  color: #4dabe7;
  margin-bottom: 1.5rem;
}

.form-section h3 {
  color: #e2e8f0;
  font-size: 1.1rem;
  margin: 2rem 0 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(77, 171, 247, 0.15);
}

.field-hint {
  margin: 0.35rem 0 0;
  font-size: 0.82rem;
  line-height: 1.5;
  color: #94a3b8;
}

.report-notice {
  margin: 0 0 2rem;
  padding: 1rem 1.25rem;
  border: 1px solid rgba(245, 158, 11, 0.45);
  border-left: 4px solid #f59e0b;
  border-radius: 6px;
  background: rgba(245, 158, 11, 0.08);
  color: #fde68a;
  line-height: 1.6;
}

.report-notice strong {
  color: #fcd34d;
}

.report-notice a {
  color: #fcd34d;
}

.report-structure {
  margin: 1rem auto 0;
  max-width: 900px;
  padding-left: 1.25rem;
  text-align: left;
  color: #b0b0b0;
  line-height: 1.7;
}

.report-error {
  margin-top: 1rem;
  color: #fca5a5;
}

.report-section .report-content {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.report-meta-grid {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.35rem 1rem;
  color: #d1d5db;
}

.report-meta-grid dt {
  font-weight: 700;
  color: #e2e8f0;
}

.report-meta-grid dd {
  margin: 0;
  overflow-wrap: anywhere;
}

@media (max-width: 600px) {
  .form-section,
  .report-preview {
    padding: 1.25rem;
  }

  .hero-section h1 {
    font-size: 1.8rem;
  }

  .button-group {
    flex-wrap: wrap;
  }

  .report-meta-grid {
    grid-template-columns: 1fr;
  }
}

@media print {
  body * {
    visibility: hidden;
  }

  #reportPreview,
  #reportPreview * {
    visibility: visible;
  }

  #reportPreview {
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    margin: 0;
    border: 0;
    background: #fff;
    color: #111;
  }

  #reportPreview .report-title,
  #reportPreview h3,
  #reportPreview .report-content,
  #reportPreview .report-meta,
  #reportPreview dt,
  #reportPreview dd {
    color: #111;
  }

  #reportPreview .report-section {
    background: none;
    border-left-color: #333;
    break-inside: avoid;
  }

  #reportPreview .export-buttons {
    display: none;
  }
}

fieldset.form-group {
  border: 0;
  padding: 0;
  margin: 0 0 25px;
  min-width: 0;
}

fieldset.form-group legend {
  color: #4dabe7;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 8px;
  padding: 0;
}
