/* Forms, editor fields, shared controls */

button, input, textarea, select {
    font: inherit;
}

.toolbar {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 12px;
    margin: 24px 0 30px;
}

.search-input, select, input, textarea {
    width: 100%;
    background: #121b2c;
    color: #fff;
    border: 1px solid #2e3a50;
    border-radius: 14px;
    padding: 14px 15px;
    outline: none;
}

textarea {
    min-height: 110px;
    resize: vertical;
}

.search-input:focus, input:focus, textarea:focus, select:focus {
        border-color: var(--gold);
        box-shadow: 0 0 0 4px rgba(245,164,0,.14);
    }

.small-btn {
    border: 0;
    border-radius: 11px;
    padding: 10px 12px;
    font-weight: 800;
}

.small-btn.primary {
        background: var(--gold);
        color: #111827;
    }

.small-btn.ghost {
        background: #0f172a;
        color: white;
        border: 1px solid #334155;
    }

.editor-card {
    padding: 24px;
}

.editor-grid {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 12px;
}

.editor-grid textarea, .wide {
        grid-column: 1 / -1;
    }

.image-fields {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 14px;
    margin: 18px 0;
}

.image-field {
    background: #0f172a;
    border: 1px solid #263347;
    border-radius: 16px;
    padding: 14px;
}

.image-field label {
        display: block;
        color: #cbd5e1;
        font-weight: 700;
        margin-bottom: 9px;
    }

.image-field img {
        width: 100%;
        height: 130px;
        object-fit: contain;
        background: #fff;
        border-radius: 12px;
        margin-top: 10px;
    }

.remove-row {
    border: 0;
    border-radius: 10px;
    background: #fee2e2;
    color: #991b1b;
    font-weight: 900;
}

.form-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.status {
    color: #22c55e;
    font-weight: 800;
    padding: 10px;
}


/* BANKNOTE BULK PASTE MODAL — matches Coins bulk paste */
.bulk-paste-modal .modal-backdrop{
  background:rgba(2,6,23,.72)!important;
  backdrop-filter:blur(7px)!important;
  -webkit-backdrop-filter:blur(7px)!important;
}
.clean-bulk-paste-panel{
  width:min(1500px, calc(100vw - 80px))!important;
  max-height:calc(100vh - 80px)!important;
  margin:40px auto!important;
  border-radius:28px!important;
  background:#111827!important;
  color:#f8fafc!important;
  border:1px solid rgba(148,163,184,.22)!important;
  box-shadow:0 30px 90px rgba(0,0,0,.55)!important;
  overflow:auto!important;
}
.clean-bulk-paste-panel .bulk-paste-content{padding:42px 36px 38px!important}
.clean-bulk-paste-panel h2{
  margin:0 0 24px!important;color:#fff!important;font-size:32px!important;
  line-height:1.1!important;font-weight:900!important;letter-spacing:-.03em!important;
}
.clean-bulk-paste-panel p{
  color:#cbd5e1!important;font-size:18px!important;line-height:1.45!important;
  font-weight:750!important;margin:0 0 8px!important;
}
.clean-bulk-paste-panel .bulk-format-line{
  color:#f5a400!important;font-size:20px!important;line-height:1.45!important;
  font-weight:900!important;margin:0 0 8px!important;
}
.clean-bulk-paste-panel .bulk-example-label{margin-top:6px!important}
.clean-bulk-paste-panel .bulk-example-line{
  color:#dbeafe!important;font-size:18px!important;line-height:1.45!important;
  font-weight:800!important;margin:0 0 24px!important;word-break:break-word!important;
}
.clean-bulk-paste-panel textarea{
  width:100%!important;min-height:300px!important;resize:vertical!important;
  display:block!important;box-sizing:border-box!important;background:#0f172a!important;
  color:#f8fafc!important;border:1px solid #334155!important;border-radius:18px!important;
  outline:none!important;padding:18px!important;font-size:17px!important;line-height:1.45!important;
}
.clean-bulk-paste-panel textarea:focus{
  border-color:#f5a400!important;box-shadow:0 0 0 2px rgba(245,164,0,.18)!important;
}
.clean-bulk-paste-panel .bulk-paste-actions{
  display:flex!important;align-items:center!important;gap:14px!important;margin-top:26px!important;
}
.clean-bulk-paste-panel .bulk-paste-actions .btn{
  width:auto!important;min-width:130px!important;height:58px!important;border-radius:16px!important;
  font-size:18px!important;font-weight:900!important;justify-content:center!important;
}
.clean-bulk-paste-panel .status{color:#cbd5e1!important;font-weight:800!important;min-height:24px!important}
.clean-bulk-paste-panel .bulk-paste-close{
  position:absolute!important;top:24px!important;right:24px!important;margin:0!important;float:none!important;
  width:54px!important;height:54px!important;border-radius:18px!important;background:#0f172a!important;
  color:#fff!important;border:1px solid #334155!important;font-size:28px!important;font-weight:900!important;
}
.clean-bulk-paste-panel .bulk-paste-close:hover{border-color:#f5a400!important;color:#f5a400!important}
@media(max-width:860px){
  .clean-bulk-paste-panel{width:calc(100vw - 24px)!important;max-height:calc(100dvh - 24px)!important;margin:12px auto!important;border-radius:22px!important}
  .clean-bulk-paste-panel .bulk-paste-content{padding:28px 18px 22px!important}
  .clean-bulk-paste-panel h2{font-size:26px!important;padding-right:56px!important}
  .clean-bulk-paste-panel .bulk-format-line,.clean-bulk-paste-panel .bulk-example-line{font-size:15px!important}
  .clean-bulk-paste-panel textarea{min-height:260px!important;font-size:15px!important}
  .clean-bulk-paste-panel .bulk-paste-actions{display:grid!important;grid-template-columns:1fr 1fr!important;gap:12px!important}
  .clean-bulk-paste-panel .bulk-paste-actions .btn{min-width:0!important;width:100%!important}
  .clean-bulk-paste-panel .status{grid-column:1 / -1!important}
  .clean-bulk-paste-panel .bulk-paste-close{top:14px!important;right:14px!important;width:46px!important;height:46px!important}
}


/* =========================================================
   BULK PASTE BANKNOTES READABILITY FIX
   Force dark background and readable text.
========================================================= */
#bulkPasteModal .clean-bulk-paste-panel,
#bulkPasteModal .bulk-paste-panel{
  background:#111827!important;
  color:#f8fafc!important;
  border:1px solid rgba(148,163,184,.22)!important;
}

#bulkPasteModal .bulk-paste-content,
#bulkPasteModal .bulk-paste-content *{
  color:#f8fafc!important;
}

#bulkPasteModal .bulk-paste-content p{
  color:#cbd5e1!important;
}

#bulkPasteModal .bulk-format-line{
  color:#f5a400!important;
}

#bulkPasteModal .bulk-example-line{
  color:#dbeafe!important;
}

#bulkPasteModal #bulkPasteText{
  background:#0f172a!important;
  color:#f8fafc!important;
  border:1px solid #f5a400!important;
  caret-color:#f5a400!important;
}

#bulkPasteModal #bulkPasteText::placeholder{
  color:rgba(203,213,225,.55)!important;
}

#bulkPasteModal .bulk-paste-close{
  background:#0f172a!important;
  color:#ffffff!important;
  border:1px solid #334155!important;
}

#bulkPasteModal .bulk-paste-close:hover{
  color:#f5a400!important;
  border-color:#f5a400!important;
}

#bulkPasteModal .status{
  color:#cbd5e1!important;
}
