/* === App Editor Modal (scoped) === */
.app-editor-modal{
  --field-h: 38px;
  --radius: 6px;
  --stroke: #E5E7EB;
  --stroke-dark:#D1D5DB;
  --text:#111827;
  --muted:#6B7280;
  --bg:#FFFFFF;
  --bg-soft:#F9FAFB;
  --brand:#0C8CE9;          /* blue like in your screenshot */
  --brand-ink:#0A77C3;
  --shadow: 0 1px 2px rgba(0,0,0,.06), 0 8px 24px rgba(17,24,39,.06);
  display: flex;
  justify-content: center;
}

/* Card-like body */
.app-editor-modal .modal-body{
  width: 99%;
}
.app-editor-modal .form-horizontal{
  background: var(--bg);
  border:none;
  border-radius: 10px;
  padding: 20px 24px 18px;
}

/* Labels */
.app-editor-modal .control-label{
  color: var(--muted);
  font-weight: 600;
  padding: 10px;
  letter-spacing:.1px;
  text-align: start;
}

/* Inputs / selects */
.app-editor-modal .form-control{
  height: var(--field-h);
  border-radius: var(--radius);
  border: 1px solid var(--stroke);
  box-shadow: none;
  background: #fff;
  color: var(--text);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.app-editor-modal .form-control:focus{
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(12,140,233,.15);
}

/* Select arrow */
.app-editor-modal select.form-control{
  appearance: none;
  -webkit-appearance:none;
  background-image:
    linear-gradient(45deg, transparent 50%, #9CA3AF 50%),
    linear-gradient(135deg, #9CA3AF 50%, transparent 50%),
    linear-gradient(to top, #fff, #fff);
  background-position:
    calc(100% - 18px) 16px,
    calc(100% - 12px) 16px,
    100% 0;
  background-size: 6px 6px, 6px 6px, 2.5rem 100%;
  background-repeat: no-repeat;
  padding-right: 36px;
}

/* File area */
.app-editor-modal .btn-upload{
  height: var(--field-h);
  border-radius: var(--radius);
  border: 1px dashed var(--stroke-dark);
  background: var(--bg-soft);
  color: var(--muted);
}

/* Helper text */
.app-editor-modal .field-hint,
.app-editor-modal .warning-font,
.app-editor-modal .success-font{
  font-size: 12px;
  color: var(--muted);
  margin-top: 6px;
}

/* Blue checkbox */
.app-editor-modal input[type="checkbox"].form-control{
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border: 1.5px solid var(--stroke-dark);
  border-radius: 5px;
  background: #fff;
  display: inline-block;
  cursor: pointer;
  vertical-align: middle;
  margin-top: 11px;
  margin-left: -14rem;
  transition: all .12s ease;
}
.app-editor-modal input[type="checkbox"].form-control:focus{
  outline: none;
  box-shadow: 0 0 0 3px rgba(12,140,233,.15);
}
.app-editor-modal input[type="checkbox"].form-control:checked{
  background: var(--brand);
  border-color: var(--brand);
}
.app-editor-modal input[type="checkbox"].form-control:checked::after{
  content: "";
  position: relative;
  display: block;
  width: 10px;
  height: 6px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: translate(3.7px, 4.2px) rotate(-45deg);
}

/* Vertical spacing */
.app-editor-modal .form-group{
  margin-bottom: 16px;
  width: 140%;
}

/* Buttons row */
.app-editor-modal .col-sm-offset-4.col-sm-8{
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-right: 26rem;
}

/* Buttons */
.app-editor-modal .btn.btn-default{
  min-width: 90px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--stroke);
  background: #fff;
  color: var(--text);
  font-weight: 500;
}
.app-editor-modal .btn.btn-default:hover{
  border-color: var(--stroke-dark);
  background: var(--bg-soft);
}

/* Save button (blue) */
.app-editor-modal .btn.btn-default[type="submit"],
.app-editor-modal .btn.btn-default[ng-click*="save"]{
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}
.app-editor-modal .btn.btn-default[ng-click*="save"]:hover{
  background: var(--brand-ink);
  border-color: var(--brand-ink);
}

/* Header messages */
.app-editor-modal .modal-header .error,
.app-editor-modal .modal-header .success{
  font-size: 13px;
}
@media (min-width: 768px) {
  .col-sm-8 {
    width: 74%;
  }
}
