/* ===== Evidence Upload – quick modern facelift ===== */

/* Card container for the whole form */
.entity-form {
  --pp-radius: 14px;
  --pp-shadow: 0 10px 24px rgba(16, 24, 40, .08);
  --pp-border: 1px solid rgba(16, 24, 40, .08);
  --pp-bg: #fff;
  --pp-gap: 16px;
}

.entity-form .tab {
  background: var(--pp-bg);
  border: var(--pp-border);
  border-radius: var(--pp-radius);
  box-shadow: var(--pp-shadow);
  padding: 20px;
}

/* Make sections breathe */
.entity-form .section,
.entity-form .tab .row {
  margin-bottom: 18px;
}

/* Labels */
.entity-form label {
  font-weight: 600;
  color: #0F172A; /* slate-900 */
  margin-bottom: 6px;
}

/* Inputs, lookups, selects, textareas */
.entity-form .form-control,
.entity-form input[type="text"],
.entity-form input[type="search"],
.entity-form input[type="email"],
.entity-form input[type="number"],
.entity-form textarea,
.entity-form select {
  border-radius: 10px !important;
  border: 1px solid #E5E7EB; /* gray-200 */
  box-shadow: none;
  transition: border-color .15s ease, box-shadow .15s ease;
  padding: 10px 12px;
}

/* Focus ring */
.entity-form .form-control:focus {
  border-color: #2563EB; /* indigo-600 */
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .15);
}

/* Make textarea taller by default */
.entity-form textarea {
  min-height: 120px;
  resize: vertical;
}

/* Lookup (text box with search icon) */
.entity-form .input-group .form-control {
  border-right: 0;
}
.entity-form .input-group .input-group-btn .btn {
  border-left: 0;
  border-radius: 0 10px 10px 0;
  border-color: #E5E7EB;
  background: #F8FAFC;
}

/* Buttons */
.entity-form .actions .btn,
.entity-form .btn-primary {
  border-radius: 10px;
  font-weight: 600;
  padding: 10px 16px;
  border: none;
  background: #2563EB;
  color: #fff;
  transition: transform .06s ease, box-shadow .15s ease, background .15s ease;
}
.entity-form .actions .btn:hover,
.entity-form .btn-primary:hover {
  background: #1E40AF;
  box-shadow: 0 8px 18px rgba(30, 64, 175, .25);
  transform: translateY(-1px);
}
.entity-form .btn-default,
.entity-form .btn-secondary {
  background: #F3F4F6;
  color: #111827;
}
.entity-form .btn-default:hover,
.entity-form .btn-secondary:hover {
  background: #E5E7EB;
}

/* Validation summary + messages */
.validation-summary,
.alert-danger,
.text-danger {
  border-radius: 10px;
}
.validation-summary ul {
  margin-bottom: 0;
}
.field-validation-error,
.text-danger {
  color: #B91C1C; /* red-700 */
}

/* Required asterisk – slightly nicer color */
.entity-form label.required:after,
.entity-form .required label:after {
  color: #DC2626;
}

/* Tighten column spacing on large screens, but keep it airy */
@media (min-width: 992px) {
  .entity-form .col-md-6,
  .entity-form .col-sm-6 {
    padding-left: 12px;
    padding-right: 12px;
  }
}

/* Subtle divider for “Related” sections if visible */
.entity-form .tab h2,
.entity-form .tab h3 {
  margin-top: 8px;
  margin-bottom: 12px;
  font-weight: 700;
  color: #0F172A;
}

/* “Upload file” input - make it look tidier */
.entity-form input[type="file"] {
  padding: 8px;
  border: 1px solid #E5E7EB;
  border-radius: 10px;
  background: #fff;
}

/* Make the page background softer */
.main-container,
.page-copy,
.content-wrapper {
  background: #F8FAFC; /* subtle gray */
}

/* Optional: hide the list page "Add Evidence" button if you still see it */
.btn.btn-primary.entitylist-create-action,
a[aria-label="Add Evidence"] {
  display: none !important;
}
