/* ===== Coordinator visual polish ===== */
:root {
  --surface-border: rgba(255, 255, 255, .13);
  --surface-shadow: 0 14px 36px rgba(0, 0, 0, .24);
}

body {
  background-image:
    radial-gradient(circle at 82% 3%, rgba(0, 240, 255, .055), transparent 26rem),
    radial-gradient(circle at 14% 90%, rgba(168, 85, 247, .055), transparent 30rem);
}

::selection { background: rgba(0, 240, 255, .28); color: #fff; }
button, input, select, textarea, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }

.admin-side { border-right-color: var(--surface-border); box-shadow: 12px 0 32px rgba(0, 0, 0, .16); }
.side-brand { padding-block: 1.45rem 1.2rem; }
.side-link { border: 1px solid transparent; }
.side-link:hover { background: rgba(0, 240, 255, .07); border-color: rgba(0, 240, 255, .13); }
.side-link.active { border-color: rgba(0, 240, 255, .22); box-shadow: inset 3px 0 0 var(--cyan), 0 6px 16px rgba(0, 0, 0, .15); }

.admin-top { padding-block: 1rem; border-bottom-color: var(--surface-border); box-shadow: 0 8px 20px rgba(0, 0, 0, .1); }
.admin-content { padding-top: 2rem; }
.admin-head { margin-bottom: 1.65rem; }
.admin-head .sub { max-width: 720px; }

.stat-card, .panel, .list-card, .photo-card, .chat-coords, .chat-main {
  border-color: var(--surface-border);
  box-shadow: var(--surface-shadow), inset 0 1px 0 rgba(255, 255, 255, .035);
}
.stat-card { border-radius: 14px; }
.stat-card:hover { transform: translateY(-3px); }
.panel { border-radius: 14px; }
.panel h2 { padding-bottom: .8rem; border-bottom: 1px solid rgba(255, 255, 255, .07); }

.btn { min-height: 40px; border-radius: 9px; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease, color .18s ease; }
.btn-primary { background: linear-gradient(135deg, #6efff7, var(--cyan) 62%, #3bc5ff); box-shadow: 0 7px 18px rgba(0, 240, 255, .2); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(0, 240, 255, .3); }
.btn-purple { background: linear-gradient(135deg, #c28cff, var(--purple)); box-shadow: 0 7px 18px rgba(168, 85, 247, .22); }
.btn-photo-upload { background: linear-gradient(135deg, #b8ff68, var(--lime) 55%, #44e5bf); color: #07120b; box-shadow: 0 8px 20px rgba(157, 255, 0, .2); }
.btn-photo-upload:hover { color: #07120b; transform: translateY(-2px); box-shadow: 0 12px 28px rgba(157, 255, 0, .3), 0 0 18px rgba(68, 229, 191, .17); }
.btn-ghost:hover, .btn-blue:hover, .btn-green:hover, .btn-red:hover { background: rgba(255, 255, 255, .045); }
.btn:active { transform: scale(.98); }

.chip { border-color: var(--surface-border); transition: transform .18s ease, background .18s ease, border-color .18s ease, color .18s ease; }
.chip:hover { transform: translateY(-1px); }
.chip:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }

.table-wrap { border-color: var(--surface-border); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .03); }
.admin-table th { background: rgba(255, 255, 255, .035); }
.admin-table tr:hover td { background: rgba(0, 240, 255, .055); }

.field input, .field select, .field textarea {
  border-color: var(--surface-border);
  background: rgba(7, 4, 9, .74);
  min-height: 42px;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgba(255, 255, 255, .23); }
.field input:focus, .field select:focus, .field textarea:focus { box-shadow: 0 0 0 3px rgba(0, 240, 255, .17); }

.empty { background: linear-gradient(135deg, rgba(0, 240, 255, .035), rgba(168, 85, 247, .055)); border-color: rgba(0, 240, 255, .24); }
.spinner { border-width: 2px; }

.modal-ov, .call-modal-ov { background: rgba(3, 2, 7, .73); backdrop-filter: blur(5px); }
.modal, .call-incoming { border-color: rgba(185, 245, 255, .18); box-shadow: 0 24px 72px rgba(0, 0, 0, .66), 0 0 30px rgba(0, 240, 255, .12); }
.modal-x:hover { transform: rotate(90deg); }
.toast { border-color: var(--surface-border); box-shadow: 0 12px 32px rgba(0, 0, 0, .46); }

.chat-layout { gap: 1.15rem; }
.chat-coords, .chat-main { border-radius: 14px; }
.coord { border: 1px solid transparent; }
.coord:hover { border-color: rgba(0, 240, 255, .13); }
.msg-bubble { box-shadow: 0 4px 12px rgba(0, 0, 0, .12); }
.chat-input textarea { border-color: var(--surface-border); background: rgba(7, 4, 9, .78); }
.chat-input textarea:focus { box-shadow: 0 0 0 3px rgba(0, 240, 255, .17); }
.chat-send { box-shadow: 0 7px 18px rgba(0, 240, 255, .23); }

@media (max-width: 768px) {
  .admin-content { padding: 1.35rem 1rem 2.5rem; }
  .admin-top { padding-inline: 1rem; }
  .cards { gap: .75rem; }
  .stat-card, .panel { border-radius: 12px; }
  .modal-ov { padding: .7rem; align-items: center; }
  .modal-head, .modal-body, .modal-foot { padding-inline: 1rem; }
  .toast-wrap { top: .75rem; right: .75rem; left: .75rem; max-width: none; }
  .chat-layout { gap: .8rem; }
}

@media (prefers-reduced-motion: reduce) {
  .btn, .chip, .stat-card, .side-link, .modal-x { transition-duration: .01ms !important; }
}
body::after {
  content: "shriyans2026";
  position: fixed;
  z-index: 9999;
  right: .75rem;
  bottom: .45rem;
  color: rgba(255, 255, 255, .58);
  font: 500 .58rem/1 system-ui, sans-serif;
  letter-spacing: .08em;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .65);
  pointer-events: none;
}
