body {
  font-family: 'Segoe UI', sans-serif;
  margin: 0;
  padding: 0;
  background: #f3f1ff;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
  background-color: #1b1531;
  padding: 0 10px;
}

.logo-section img {
  height: 45px;
  width: auto;
  object-fit: contain;
}

.container {
  max-width: 1500px;
  margin: 60px auto;
  padding: 40px;
  background: white;
  border-radius: 14px;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.15);
}

h1 {
  text-align: center;
  margin-bottom: 30px;
  color: #2c234d;
}

h2 {
  grid-column: 1 / -1;
  font-size: 18px;
  margin-top: 20px;
  color: #4c0480;
  border-bottom: 2px solid #ccc;
  padding-bottom: 5px;
}

.form-horizontal {
  display: flex;
  align-items: center;
  gap: 25px;
  flex-wrap: wrap;
  justify-content: center;
}

.upload-icon-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background-color: #6a0dad;
  color: white;
  padding: 12px 20px;
  font-size: 15px;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.upload-icon-btn:hover {
  background-color: #4c0480;
}

.file-chip {
  background-color: #eae6f8;
  color: #3a2c64;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  max-width: 250px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.submit-btn {
  background-color: #4c0480;
  color: white;
  padding: 10px 18px;
  font-size: 15px;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.submit-btn:hover {
  background-color: #32025d;
}

.results {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.result-item {
  padding: 12px;
  border-radius: 6px;
  margin-bottom: 10px;
  background-color: #eee;
  border-left: 6px solid transparent;

  /* 🔽 ESTAS SON LAS LÍNEAS IMPORTANTES */
  word-wrap: break-word;
  overflow-wrap: break-word;
  word-break: break-word;
}


.result-item.ok {
  border-color: #28a745;
  background-color: #e6ffed;
}

.result-item.warning {
  border-color: #ffc107;
  background-color: #fffbe6;
}

.result-item.fail {
  border-color: #dc3545;
  background-color: #ffe6e6;
}

.loader-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.8);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.loader-img {
  width: 80px;
  height: 80px;
  margin-bottom: 20px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.loader-container p {
  font-size: 18px;
  color: #4c0480;
  font-weight: bold;
}