/* MINODI GAMES — racun.css
   Korisnicki racun panel (Srazpad i Klizac) */

/* ── Gumb u headeru ─────────────────────────────────────────── */

.racun-gumb {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  position: relative;
}

.racun-gumb svg { flex-shrink: 0; }

.racun-gumb-tekst { font-size: .8rem; }

.racun-gumb-tocka {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #3db8ff;
  border: 1.5px solid #0e141c;
  pointer-events: none;
}

/* Klizac nema --steel, pa direktna boja */
.m-traka .racun-gumb-tocka {
  background: #00AEEF;
  border-color: #1B1F4B;
}

/* ── Overlay ─────────────────────────────────────────────────── */

#racun-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .72);
  display: none;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 4rem 1rem 1rem;
  z-index: 9999;
  box-sizing: border-box;
}

#racun-overlay.otvoren { display: flex; }

/* ── Modal ───────────────────────────────────────────────────── */

.racun-modal {
  background: #141c26;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 12px;
  width: min(380px, 96vw);
  max-height: calc(100vh - 5rem);
  overflow-y: auto;
  padding: 1.2rem 1.4rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: .9rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .5);
  color: #d7e0ea;
  font-family: "Space Grotesk", "Nunito", "Segoe UI", sans-serif;
  font-size: .92rem;
}

/* ── Zaglavlje ───────────────────────────────────────────────── */

.racun-zaglavlje {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
}

.racun-zaglavlje h2 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: .03em;
  color: #d7e0ea;
  font-family: inherit;
}

.racun-zatvori {
  background: none;
  border: none;
  color: rgba(215, 224, 234, .5);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 .2rem;
  transition: color .15s;
}
.racun-zatvori:hover { color: #d7e0ea; }

/* ── Tabs ────────────────────────────────────────────────────── */

.racun-tabs {
  display: flex;
  gap: .4rem;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  padding-bottom: .6rem;
}

.racun-tab {
  background: none;
  border: 1px solid transparent;
  border-radius: 6px;
  color: rgba(215, 224, 234, .6);
  cursor: pointer;
  font-size: .82rem;
  font-family: inherit;
  padding: .3rem .7rem;
  transition: all .15s;
}
.racun-tab:hover { color: #d7e0ea; }
.racun-tab.on {
  background: rgba(61, 184, 255, .15);
  border-color: rgba(61, 184, 255, .4);
  color: #3db8ff;
}

.racun-badge {
  display: inline-block;
  background: #ff8a3d;
  color: #0e141c;
  font-size: .7rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 0 .4rem;
  min-width: 1.2rem;
  text-align: center;
  vertical-align: middle;
  margin-left: .2rem;
}

.racun-tab-ploca { display: flex; flex-direction: column; gap: .7rem; }

/* ── Form ────────────────────────────────────────────────────── */

.racun-polje {
  display: flex;
  flex-direction: column;
  gap: .3rem;
}

.racun-polje label {
  font-size: .78rem;
  color: rgba(215, 224, 234, .65);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.racun-input {
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 7px;
  color: #d7e0ea;
  font-family: inherit;
  font-size: .92rem;
  padding: .5rem .75rem;
  outline: none;
  transition: border-color .15s;
  width: 100%;
  box-sizing: border-box;
}
.racun-input:focus { border-color: #3db8ff; }
.racun-input::placeholder { color: rgba(215, 224, 234, .3); }

/* ── Misc text ───────────────────────────────────────────────── */

.racun-opis {
  color: rgba(215, 224, 234, .65);
  margin: 0;
  line-height: 1.5;
  font-size: .88rem;
}

.racun-hint {
  color: rgba(215, 224, 234, .45);
  font-size: .78rem;
  margin: 0;
}

.racun-podnaslov {
  margin: .5rem 0 .2rem;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(215, 224, 234, .45);
  font-weight: 600;
}

.racun-poruka {
  border-radius: 7px;
  font-size: .85rem;
  padding: .55rem .8rem;
  line-height: 1.4;
}
.racun-poruka.info   { background: rgba(61, 184, 255, .15); color: #a8deff; border: 1px solid rgba(61,184,255,.25); }
.racun-poruka.greska { background: rgba(255, 80, 80, .12); color: #ffa8a8; border: 1px solid rgba(255,80,80,.25); }

/* ── Buttons (reuse Srazpad names; Klizac uses m-btn via inline class) */

.racun-modal .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .45rem 1rem;
  border: 1px solid transparent;
  border-radius: 7px;
  font-family: inherit;
  font-size: .88rem;
  font-weight: 600;
  cursor: pointer;
  background: #3db8ff;
  color: #0e141c;
  transition: opacity .15s;
  white-space: nowrap;
}
.racun-modal .btn:hover { opacity: .85; }
.racun-modal .btn.btn-ghost {
  background: transparent;
  color: rgba(215, 224, 234, .7);
  border-color: rgba(255, 255, 255, .15);
}
.racun-modal .btn.btn-sm {
  padding: .3rem .7rem;
  font-size: .8rem;
}

/* ── Actions row ────────────────────────────────────────────── */

.racun-akcije {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  margin-top: .2rem;
}

.racun-akcije-mini {
  display: flex;
  gap: .4rem;
}

/* ── Friends rows ────────────────────────────────────────────── */

.racun-red {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  padding: .35rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.racun-handle {
  font-weight: 600;
  color: #d7e0ea;
}

/* Input+button u istom redu */
form.racun-red {
  padding: .4rem 0 0;
  border: none;
}
form.racun-red .racun-input {
  flex: 1;
  min-width: 0;
}

/* ── Responsive ──────────────────────────────────────────────── */

@media (max-width: 400px) {
  #racun-overlay {
    align-items: flex-end;
    justify-content: stretch;
    padding: 0;
  }
  .racun-modal {
    width: 100%;
    border-radius: 12px 12px 0 0;
    max-height: 85vh;
  }
}
