
/* ═══════════════════════════════════════════════════════════
   SIM IMAGE MODAL — Tabs + Gallery
   Append these to the bottom of dashboard.css
   ═══════════════════════════════════════════════════════════ */

/* ── TABS ── */
.sim-img-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.sim-img-tab {
  flex: 1;
  padding: 10px;
  border: none;
  background: transparent;
  color: var(--txm);
  font-size: 12px;
  font-weight: 700;
  font-family: 'Hind Siliguri', sans-serif;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all .2s;
}
.sim-img-tab:hover { color: var(--tx2); }
.sim-img-tab.active {
  color: var(--acc);
  border-bottom-color: var(--acc);
}

/* ── GALLERY GRID ── */
.sim-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
}

.sim-gallery-item {
  border-radius: 8px;
  border: 2px solid var(--border);
  overflow: hidden;
  cursor: pointer;
  transition: border-color .2s, box-shadow .2s;
  background: rgba(255,255,255,.02);
}
.sim-gallery-item:hover {
  border-color: rgba(112,80,224,.5);
  box-shadow: 0 0 12px rgba(112,80,224,.2);
}
.sim-gallery-item.selected {
  border-color: var(--acc);
  box-shadow: 0 0 0 3px rgba(112,80,224,.25);
}

.sim-gallery-thumb {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #080e1c;
}
.sim-gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .2s;
}
.sim-gallery-item:hover .sim-gallery-thumb img { transform: scale(1.05); }

.sim-gallery-del {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  border-radius: 5px;
  border: none;
  background: rgba(208,64,32,.85);
  color: #fff;
  font-size: 11px;
  cursor: pointer;
  opacity: 0;
  transition: opacity .15s;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.sim-gallery-item:hover .sim-gallery-del { opacity: 1; }
.sim-gallery-del:hover { background: #e03020; }

.sim-gallery-label {
  padding: 5px 6px;
  font-size: 10px;
  color: var(--txm);
  font-family: 'JetBrains Mono', monospace;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border-top: 1px solid var(--border);
}
.sim-gallery-item.selected .sim-gallery-label {
  color: var(--acc);
}
