/* =========================================================================
   admin.css  —  #page-admin (ადმინ პანელი). კლასები იწყება ad- პრეფიქსით.
   ფერები: #ff4747 · #eaeaea · მუქი შავი
   ========================================================================= */
#page-admin {
  --red: #ff4747; --red2: #d93030; --light: #eaeaea; --mut: #eaeaea8c;
  --bg: #0a0a0a; --line: #eaeaea1f; --panel: #eaeaea0a;
  --fh: "Rajdhani", "Noto Sans Georgian", "Segoe UI", Arial, sans-serif;
  --fb: "Noto Sans Georgian", "Manrope", "Segoe UI", Arial, sans-serif;
  font-family: var(--fb); color: var(--light);
  background: radial-gradient(ellipse at center, #00000059 0%, #000000b3 100%);
  backdrop-filter: blur(3px);
}
#page-admin * { box-sizing: border-box; }
#page-admin svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.ad-win { position: relative; display: flex; width: min(1040px, 96vw); height: min(640px, 90vh); background: linear-gradient(180deg, #131316, #08080a); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: 0 30px 90px #000c, 0 0 60px #ff474718; }
.ad-win::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--red), var(--red2) 60%, transparent); z-index: 2; }

/* გვერდითა პანელი */
.ad-side { width: 214px; padding: 22px 12px 16px; display: flex; flex-direction: column; gap: 4px; border-right: 1px solid var(--line); background: #0000004d; }
.ad-brand { padding: 0 12px; font: 700 12px var(--fh); letter-spacing: .22em; color: var(--mut); }
.ad-brand span { color: var(--red); }
.ad-me { padding: 4px 12px 16px; font-size: 12px; font-weight: 700; color: var(--light); }
.ad-me small { display: block; color: var(--mut); font-weight: 500; }
.ad-nav { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.ad-tab { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 0; border-radius: 10px; background: none; color: var(--mut); font: 600 13px var(--fb); text-align: left; cursor: pointer; }
.ad-tab:hover { background: #eaeaea0d; color: var(--light); }
.ad-tab.on { background: #ff47471f; color: var(--light); }
.ad-tab.on svg { color: var(--red); }
.ad-tab .bd { margin-left: auto; padding: 1px 7px; border-radius: 9px; background: var(--red); color: var(--bg); font-size: 11px; font-weight: 800; }

/* მთავარი არე */
.ad-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ad-head { display: flex; align-items: center; justify-content: space-between; padding: 22px 26px 14px; }
.ad-title { margin: 0; font-size: 20px; font-weight: 800; letter-spacing: .02em; text-transform: uppercase; color: #fff; }
.ad-body { flex: 1; overflow: auto; padding: 0 26px 24px; }
.ad-body::-webkit-scrollbar { width: 6px; }
.ad-body::-webkit-scrollbar-thumb { background: #eaeaea33; border-radius: 3px; }

/* ღილაკები / ველები */
.ad-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); color: var(--light); font: 600 12px var(--fb); cursor: pointer; transition: .15s; }
.ad-btn:hover { border-color: var(--red); background: #ff47471a; }
.ad-btn.pri { background: var(--red); border-color: var(--red); color: var(--bg); }
.ad-btn.pri:hover { background: var(--red2); }
.ad-btn.arm { background: var(--red); border-color: var(--red); color: var(--bg); animation: adp .6s infinite alternate; }
@keyframes adp { to { box-shadow: 0 0 14px #ff474799; } }
.ad-in { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #00000066; color: var(--light); font: 500 13px var(--fb); outline: none; }
.ad-in:focus { border-color: var(--red); }
.ad-in::placeholder { color: var(--mut); }
.ad-lbl { display: block; margin: 0 0 6px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--mut); }
.ad-sel { appearance: none; }
.ad-sel option { background: #131316; }

/* ბარათები / სიები */
.ad-card { padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); margin-bottom: 14px; }
.ad-card h3 { margin: 0 0 12px; display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.ad-card h3 svg { color: var(--red); }
.ad-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.ad-fr { display: flex; gap: 8px; align-items: flex-end; }
.ad-fr > * { flex: 1; }
.ad-fr > .ad-btn { flex: none; }
.ad-split { display: grid; grid-template-columns: 1fr 300px; gap: 14px; height: 100%; min-height: 380px; }
.ad-col { display: flex; flex-direction: column; gap: 10px; min-height: 0; }
.ad-list { flex: 1; overflow: auto; border: 1px solid var(--line); border-radius: 14px; }
.ad-row { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line); font-size: 13px; cursor: pointer; }
.ad-row:hover { background: #eaeaea0d; }
.ad-row.on { background: #ff47471f; box-shadow: inset 3px 0 var(--red); }
.ad-row b { min-width: 30px; color: var(--red); font-family: var(--fh); font-size: 15px; }
.ad-row span { flex: 1; font-weight: 600; }
.ad-row em { font-style: normal; font-size: 11px; color: var(--mut); }
.ad-det { margin: 0; display: flex; flex-direction: column; gap: 12px; }
.ad-empty { padding: 40px 10px; text-align: center; font-size: 13px; color: var(--mut); }
.ad-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ad-stat { padding: 8px 10px; border-radius: 10px; background: #00000066; font-size: 11px; color: var(--mut); }
.ad-stat b { display: block; font-size: 14px; color: var(--light); }
.ad-pn { font: 700 20px var(--fh); color: #fff; }

/* რეპორტები */
.ad-rep .ad-t { margin: 6px 0 12px; font-size: 13px; line-height: 1.5; }
.ad-rep .ad-who { font-size: 12px; font-weight: 700; color: var(--red); }

/* ტელეპორტები */
.ad-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; margin-bottom: 14px; }
.ad-tpc { display: flex; flex-direction: column; gap: 4px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); color: var(--light); font: 700 13px var(--fb); text-align: left; cursor: pointer; }
.ad-tpc svg { color: var(--red); margin-bottom: 4px; }
.ad-tpc small { font-weight: 500; font-size: 10px; color: var(--mut); }
.ad-tpc:hover { border-color: var(--red); background: #ff47471a; }

/* გადამრთველი */
.ad-tg { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 13px; font-weight: 600; }
.ad-tg:last-child { border: 0; }
.ad-sw { position: relative; width: 42px; height: 24px; border: 0; border-radius: 12px; background: #eaeaea26; cursor: pointer; transition: .15s; }
.ad-sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--light); transition: .15s; }
.ad-sw.on { background: var(--red); }
.ad-sw.on::after { left: 21px; background: var(--bg); }

.ad-toast { position: absolute; left: 50%; bottom: 20px; transform: translate(-50%, 20px); padding: 10px 18px; border-radius: 10px; background: var(--red); color: var(--bg); font-size: 12px; font-weight: 800; opacity: 0; pointer-events: none; transition: .2s; z-index: 5; }
.ad-toast.on { opacity: 1; transform: translate(-50%, 0); }

/* რეპორტის ჩათი */
#page-admin .ad-chat { display: flex; flex-direction: column; gap: 12px; height: 100%; min-height: 380px; }
#page-admin .ad-chead { display: flex; align-items: center; gap: 12px; }
#page-admin .ad-chead .ad-pn { flex: 1; }
#page-admin .ad-msgs { flex: 1; min-height: 0; overflow: auto; display: flex; flex-direction: column; gap: 10px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: #00000059; }
#page-admin .ad-msgs::-webkit-scrollbar { width: 6px; }
#page-admin .ad-msgs::-webkit-scrollbar-thumb { background: #eaeaea33; border-radius: 3px; }
#page-admin .ad-m { display: flex; flex-direction: column; gap: 3px; max-width: 78%; }
#page-admin .ad-m.p { align-self: flex-start; }
#page-admin .ad-m.a { align-self: flex-end; align-items: flex-end; }
#page-admin .ad-b { padding: 9px 13px; border-radius: 14px; font-size: 13px; line-height: 1.45; word-break: break-word; }
#page-admin .ad-m.p .ad-b { background: #eaeaea14; border: 1px solid var(--line); border-top-left-radius: 4px; }
#page-admin .ad-m.a .ad-b { background: var(--red); color: var(--bg); font-weight: 600; border-top-right-radius: 4px; }
#page-admin .ad-m span { font-size: 10.5px; font-weight: 600; color: var(--mut); }
#page-admin .ad-cin { align-items: center; }

/* მოთამაშეები: ძებნის ზოლი, ფილტრები, თეგები */
#page-admin .ad-bar { display: flex; align-items: center; gap: 10px; }
#page-admin .ad-bar .ad-in { flex: 1; }
#page-admin .ad-cnt { flex: none; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); font-size: 12px; font-weight: 800; color: var(--light); white-space: nowrap; }
#page-admin .ad-chips { display: flex; flex-wrap: wrap; gap: 6px; }
#page-admin .ad-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: none; color: var(--mut); font: 600 12px var(--fb); cursor: pointer; transition: .15s; }
#page-admin .ad-chip b { min-width: 18px; padding: 0 5px; border-radius: 9px; background: #eaeaea1f; color: var(--light); font-size: 10.5px; font-weight: 800; text-align: center; }
#page-admin .ad-chip:hover { border-color: #eaeaea59; color: var(--light); }
#page-admin .ad-chip.on { background: #ff47471f; border-color: var(--red); color: var(--light); }
#page-admin .ad-chip.on b { background: var(--red); color: var(--bg); }
#page-admin .ad-tag { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; background: #eaeaea1a; color: var(--mut); font-style: normal; font-size: 10.5px; font-weight: 700; vertical-align: 1px; }
#page-admin .ad-tag.adm { background: var(--red); color: var(--bg); }
#page-admin .ad-row em.ok { color: #6ee7a0; }
#page-admin .ad-row em.mid { color: #ffc857; }
#page-admin .ad-row em.bad { color: var(--red); font-weight: 800; }
#page-admin .ad-list::-webkit-scrollbar { width: 6px; }
#page-admin .ad-list::-webkit-scrollbar-thumb { background: #eaeaea33; border-radius: 3px; }
