/* Root wrapper so styles are scoped */
.app-config-modal{
  --border: #E5E7EB;
  --border-soft:#F3F4F6;
  --text:#111827;
  --muted:#6B7280;
  --bg:#FFFFFF;
  --bg-soft:#F9FAFB;
  --brand:#0C8CE9;
  --brand-dark:#0A77C3;
  --shadow:0 1px 2px rgba(0,0,0,.04),0 10px 30px rgba(15,23,42,.06);
  font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
}

/* Modal body card feel */
.app-config-modal .modal-body{
  background: var(--bg);
  padding: 18px 22px 20px 22px;
}

/* form container */
.app-config-modal .form-horizontal{
  background: var(--bg);
  border-radius: 10px;
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow);
  padding: 18px 18px 14px;
}

/* labels */
.app-config-modal .control-label{
  color: var(--muted);
  font-weight: 600;
  padding-top: 9px;
  font-size: 14px;
}

/* inputs/selects */
.app-config-modal .form-control{
  border-radius: 6px;
  border: 1px solid var(--border);
  box-shadow: none;
  height: 36px;
  font-size: 13px;
  color: var(--text);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.app-config-modal .form-control:focus{
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(12,140,233,.15);
}

/* select arrow */
.app-config-modal select.form-control{
  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) 15px,
      calc(100% - 12px) 15px,
      100% 0;
  background-size: 6px 6px,6px 6px,2.5rem 100%;
  background-repeat: no-repeat;
  padding-right: 38px;
}

/* top application row */
.app-config-modal .top-row{
  margin-bottom: 12px;
}

/* select all row */
.app-config-modal .select-all-row{
  margin-bottom: 8px;
}
.app-config-modal .checkbox-wrapper{
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 24px;
}
.select-action-wrapper {
 display: flex;
  justify-content: flex-end;
  gap: 12px;
}
.select-action {
  width: 200px;
  margin-right: 2rem;

}
.app-config-modal .checkbox-label{
  color: var(--text);
  font-size: 14px;
}

/* blue custom checkbox */
.app-config-modal .hmdm-checkbox{
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 1.5px solid var(--border);
  background: #fff;
  cursor: pointer;
  position: relative;
  transition: all .12s ease;
}
.app-config-modal .hmdm-checkbox:focus{
  outline:none;
  box-shadow: 0 0 0 3px rgba(12,140,233,.18);
}
.app-config-modal .hmdm-checkbox:checked{
  background: var(--brand);
  border-color: var(--brand);
}
.app-config-modal .hmdm-checkbox:checked::after{
  content:"";
  position:absolute;
  width:9px;
  height:5px;
  border-left:2px solid #fff;
  border-bottom:2px solid #fff;
  transform: translate(4px,4px) rotate(-45deg);
}

/* divider under select-all */
.app-config-modal .divider{
  border:0;
  border-top:1px solid var(--border-soft);
  margin: 10px -18px 0;
}

/* configuration list card */
.app-config-modal .config-card{
  margin-top: 10px;
  background: var(--bg-soft);
  border-radius: 8px;
  border: 1px solid var(--border-soft);
  padding: 4px 4px 4px;
}

/* scrolling area */
.app-config-modal .config-list{
  max-height: 260px;     /* scroll if many configs */
  overflow-y: auto;
  padding: 4px 4px 0;
}

/* individual row */
.app-config-modal .config-row{
  display:flex;
  align-items:center;
  gap: 12px;
  padding: 10px 10px;
  border-radius: 8px;
  background:#fff;
  margin-bottom: 4px;
  border:1px solid transparent;
  transition: background .12s ease, border-color .12s ease, box-shadow .12s ease;
}
.app-config-modal .config-row:hover{
  border-color: var(--border);
  box-shadow: 0 2px 6px rgba(15,23,42,.05);
}

/* row columns */
.app-config-modal .config-left{
  flex: 1.4;
}
.app-config-modal .config-middle{
  flex: 0 0 42px;
  text-align:center;
}
.app-config-modal .config-right{
  flex: 1;
}
.app-config-modal .config-right .form-control{
  width: 100%;
}

/* config label text */
.app-config-modal .config-name{
  font-size: 14px;
  color: var(--text);
  font-weight: 600;
}

/* buttons row */
.app-config-modal .buttons-row{
  margin-top: 14px;
}
.app-config-modal .buttons-right{
  display:flex;
  justify-content:flex-end;
  gap:10px;
}

/* buttons */
.app-config-modal .btn{
  min-width: 96px;
  height: 36px;
  border-radius: 8px;
  font-size: 13px;
}
.app-config-modal .btn-ghost{
  background:#fff;
  border:1px solid var(--border);
  color: var(--text);
}
.app-config-modal .btn-ghost:hover{
  background:#F3F4F6;
}
.app-config-modal .btn-primary{
  background: var(--brand);
  border:1px solid var(--brand);
  color:#fff;
}
.app-config-modal .btn-primary:hover{
  background: var(--brand-dark);
  border-color: var(--brand-dark);
}
