/* ---------------- BASE ---------------- */
body {
  background: #eef2f7;
  font-family: "Segoe UI", system-ui, sans-serif;
}

.app-container,
.app {
  max-width: 1200px;
  margin: auto;
  padding: 30px;
}

.app {
  max-width: 1100px;
  opacity: 0;
  animation: fadeIn 0.6s ease forwards;
}

/* ---------------- HEADER ---------------- */
.app-header,
.header {
  text-align: center;
  margin-bottom: 25px;
}

.app-header h1,
.header h1 {
  font-weight: 700;
  color: #111827;
}

.subtitle {
  color: #6b7280;
}

/* ---------------- SWITCH ---------------- */
.model-switch {
  text-align: center;
  margin-bottom: 30px;
}

/* ---------------- CARDS ---------------- */
.ux-card,
.card-ux {
  background: #ffffff;
  border-radius: 18px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

/* ---------------- TITLES ---------------- */
.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 25px;
  font-weight: 600;
}

.section-title span {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #2563eb;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------------- INPUT UX ---------------- */
label {
  font-weight: 600;
  color: #374151;
}

small {
  color: #6b7280;
}

.form-control {
  border-radius: 12px;
  padding: 10px 14px;
  transition: 0.25s ease;
}

.form-control:focus {
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.35);
  transform: scale(1.02);
}

.form-control.is-valid {
  border-color: #22c55e;
}

.form-control.is-invalid {
  border-color: #ef4444;
}

/* ---------------- BUTTON ---------------- */
.btn-lg {
  border-radius: 14px;
}

.btn:hover {
  transform: translateY(-2px);
}

/* ---------------- RESULTS ---------------- */
.result-box,
#conte h3 {
  background: #f9fafb;
  border-left: 5px solid #2563eb;
  padding: 20px;
  border-radius: 12px;
}

/* ---------------- CASE BOX ---------------- */
.case-box {
  background: #e5e7eb;
  padding: 15px;
  border-radius: 12px;
  font-weight: 600;
}

/* ---------------- DIAGRAM ---------------- */
.diagram-area {
  position: relative;
  min-height: 520px;
  overflow-x: auto;
  background: #f9fafb;
  border: 2px dashed #9ca3af;
  border-radius: 14px;
  padding: 20px;
}

/* ---------------- ANIMATIONS ---------------- */
.fade-in {
  animation: fade 0.8s ease;
}

.slide-up {
  animation: slide 0.6s ease;
}

@keyframes fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slide {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
