/* ── Tela de ícones de bancos ── */

#icones-view {
  padding: 1.25rem;
  max-width: 960px;
  margin: 0 auto;
}

.ic-toolbar {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.ic-search-wrap {
  flex: 1;
  min-width: 180px;
  position: relative;
}

.ic-search-icon {
  position: absolute;
  left: .6rem;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: .85rem;
  pointer-events: none;
}

.ic-search {
  width: 100%;
  padding: .45rem .75rem .45rem 1.8rem;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-size: .875rem;
  outline: none;
  background: #fff;
}

.ic-search:focus { border-color: #0ea5e9; box-shadow: 0 0 0 2px #bae6fd; }

.ic-btn-novo {
  background: #0ea5e9;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: .5rem 1.1rem;
  font-size: .875rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.ic-btn-novo:hover { background: #0284c7; }

/* Grid */
.ic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: .75rem;
}

.ic-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: #94a3b8;
  padding: 3rem 0;
  font-size: .9rem;
}

.ic-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: .85rem .6rem .7rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .35rem;
  position: relative;
  transition: box-shadow .15s, border-color .15s;
}
.ic-card:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
  border-color: #94a3b8;
}

.ic-card-del {
  position: absolute;
  top: 5px;
  right: 6px;
  background: none;
  border: none;
  cursor: pointer;
  color: #cbd5e1;
  font-size: .8rem;
  line-height: 1;
  padding: 2px;
}
.ic-card-del:hover { color: #ef4444; }

.ic-card-thumb { cursor: pointer; }

.ic-card-img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 6px;
}

.ic-card-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
}

.ic-card-nome {
  font-size: .8rem;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  line-height: 1.2;
}
.ic-card-nome:hover { color: #0ea5e9; }

.ic-card-slug {
  font-size: .7rem;
  color: #94a3b8;
}

/* Modal */
.ic-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
}
.ic-overlay[hidden] { display: none; }

.ic-modal {
  background: #fff;
  border-radius: 10px;
  width: 100%;
  max-width: min(500px, calc(100% - 32px));
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 8px 32px rgba(0,0,0,.18);
}

.ic-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #e2e8f0;
  font-weight: 700;
  font-size: .95rem;
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 1;
}

.ic-modal-close {
  background: none;
  border: none;
  cursor: pointer;
  color: #94a3b8;
  font-size: 1rem;
}
.ic-modal-close:hover { color: #475569; }

.ic-modal-body {
  padding: 1.1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: .85rem;
}

.ic-modal-footer {
  padding: .85rem 1.25rem;
  border-top: 1px solid #e2e8f0;
  display: flex;
  justify-content: flex-end;
  gap: .6rem;
  position: sticky;
  bottom: 0;
  background: #fff;
}

.ic-field {
  display: flex;
  flex-direction: column;
  gap: .3rem;
  font-size: .82rem;
  font-weight: 600;
  color: #475569;
}

.ic-field input[type="text"] {
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: .45rem .65rem;
  font-size: .875rem;
  outline: none;
  font-weight: 400;
}
.ic-field input[type="text"]:focus {
  border-color: #0ea5e9;
  box-shadow: 0 0 0 2px #bae6fd;
}

.ic-field-label {
  font-size: .82rem;
  font-weight: 600;
  color: #475569;
  margin-bottom: .3rem;
}
.ic-field-hint { font-weight: 400; color: #94a3b8; margin-left: .3rem; }

.ic-row2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem;
}

.ic-field-cor { flex-direction: row; align-items: center; gap: .75rem; }
.ic-field-cor input[type="color"] {
  height: 34px;
  width: 56px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  cursor: pointer;
  padding: 2px;
}
.ic-cor-hex { font-size: .8rem; color: #64748b; font-weight: 400; }

/* Paste zone */
.ic-paste-zone {
  border: 2px dashed #cbd5e1;
  border-radius: 8px;
  padding: 1.1rem;
  text-align: center;
  cursor: pointer;
  transition: border-color .15s, background .15s;
  outline: none;
  min-height: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .4rem;
}
.ic-paste-zone:focus,
.ic-paste-zone.ic-drag-over {
  border-color: #0ea5e9;
  background: #f0f9ff;
}

.ic-paste-hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .2rem;
  pointer-events: none;
}
.ic-paste-hint .ic-paste-icon { font-size: 1.5rem; }
.ic-paste-hint strong { font-size: .875rem; color: #1e293b; }
.ic-paste-hint span { font-size: .75rem; color: #94a3b8; }

.ic-paste-preview {
  width: 72px;
  height: 72px;
  object-fit: contain;
  border-radius: 6px;
}

.ic-paste-clear {
  background: none;
  border: none;
  cursor: pointer;
  font-size: .75rem;
  color: #94a3b8;
  text-decoration: underline;
}
.ic-paste-clear:hover { color: #ef4444; }

.ic-error {
  background: #fee2e2;
  color: #dc2626;
  border-radius: 6px;
  padding: .5rem .75rem;
  font-size: .82rem;
}
.ic-error[hidden] { display: none; }

.ic-btn-cancel {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: .5rem 1rem;
  font-size: .875rem;
  cursor: pointer;
}
.ic-btn-cancel:hover { background: #e2e8f0; }

.ic-btn-save {
  background: #0ea5e9;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: .5rem 1.25rem;
  font-size: .875rem;
  font-weight: 600;
  cursor: pointer;
}
.ic-btn-save:hover { background: #0284c7; }

/* ══════════════════════════════════════════
   RESPONSIVO
   ══════════════════════════════════════════ */
@media (max-width: 480px) {
  .ic-row2 { grid-template-columns: 1fr; }
  .ic-grid { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
  #icones-view { padding: 0.85rem; }
}
