/* admin.css */

/* ===== Theme ===== */
:root{
  --bg: #0b1220;
  --panel: rgba(255,255,255,0.06);
  --panel2: rgba(255,255,255,0.10);
  --border: rgba(255,255,255,0.12);
  --text: rgba(255,255,255,0.92);
  --muted: rgba(255,255,255,0.65);
  --accent: #4ea1ff;
  --danger: #ff5a67;
  --good: #34d399;
  --shadow: 0 12px 30px rgba(0,0,0,0.35);
  --radius: 14px;
  --radius2: 18px;
  --gap: 16px;
  --font: Arial, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body{
  margin:0;
  font-family: var(--font);
  background:
    radial-gradient(circle at 85% 20%, rgba(0,140,255,.18), transparent 45%),
    radial-gradient(circle at 15% 80%, rgba(0,90,200,.12), transparent 50%),
    linear-gradient(155deg, #070b14 0%, #0b1323 40%, #0e1d36 70%, #0f2a4f 100%);
  background-attachment: fixed;
  background-repeat: no-repeat;
  background-size: cover;
  min-height: 100vh;
  color: rgba(200,215,235,.72) !important;
}

/* ===== Layout ===== */
.admin-shell{
  display:flex;
  min-height:100vh;
}

.sidebar{
  padding: 18px 12px 18px 10px;  /* top right bottom left */
  border-right: 1px solid var(--border);
  background: rgba(0,0,0,0.25);
  backdrop-filter: blur(10px);

  /* Make sidebar full height flex column */
  display: flex;
  flex-direction: column;
}

.brand{
  display:flex;
  align-items:center;
  gap:10px;
  padding: 10px 10px 14px;
  margin-bottom: 10px;
}
.brand .logo{
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(78,161,255,0.9), rgba(52,211,153,0.65));
  box-shadow: var(--shadow);
}
.brand .title{
  line-height: 1.1;
}
.brand .title strong{ display:block; font-size: 14px; letter-spacing: .3px; }
.brand .title span{ display:block; font-size: 12px; color: var(--muted); }

.nav{
  display:flex;
  flex-direction:column;
  gap:6px;
  margin-top: 10px;

  /* Let nav expand and push footer down */
  flex: 1;
}

.nav a{
  display:flex;
  align-items:center;
  gap:10px;
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--text);
  text-decoration:none;
  border: 1px solid transparent;
}
.nav a:hover{
  background: var(--panel);
  border-color: var(--border);
}
.nav a.active{
  background: rgba(78,161,255,0.16);
  border-color: rgba(78,161,255,0.30);
}
.nav .dot{
  width: 10px;
  height: 10px;
  border-radius: 99px;
  background: var(--panel2);
  border: 1px solid var(--border);
}
.nav a.active .dot{
  background: var(--accent);
  border-color: rgba(255,255,255,0.25);
}

.sidebar-footer{
  margin-top: 18px;
  padding: 16px;
  border-top: 1px solid rgba(255,255,255,0.06);
  color: var(--muted);
  font-size: 12px;
}

/* Sidebar logout button */
.sidebar-logout{
  display: block;
  text-align: center;
  margin-top: 12px;
}

/* ===== Main ===== */
.main{
  flex:1;
  display:flex;
  flex-direction:column;
}

.topbar{
  height: 60px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: var(--gap);
  padding: 0 18px;
  border-bottom: 1px solid var(--border);
  background: rgba(0,0,0,0.20);
  backdrop-filter: blur(10px);
}

.topbar .left{
  display:flex;
  align-items:center;
  gap: 12px;
}
.page-title{
  font-size: 16px;
  margin:0;
  letter-spacing: .2px;
}
.badge{
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--border);
  color: var(--muted);
}

.topbar .right{
  display:flex;
  align-items:center;
  gap: 10px;
}
.user-pill{
  display:flex;
  align-items:center;
  gap:10px;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
}
.avatar{
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  border: 1px solid var(--border);
}
.user-pill .meta{
  line-height: 1.05;
}
.user-pill .meta strong{ display:block; font-size: 12px; }
.user-pill .meta span{ display:block; font-size: 11px; color: var(--muted); }

.content{
  padding: 18px;
}

/* ===== Cards & grid ===== */
.grid{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gap);
}
.card{
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: var(--radius2);
  box-shadow: var(--shadow);
  padding: 16px;

  /* Prevent card being widened by children */
  min-width: 0;
}
.card h3{
  margin:0 0 8px;
  font-size: 14px;
}
.card p{
  margin:0;
  color: var(--muted);
  font-size: 13px;
}
.span-12{ grid-column: span 12; }
.span-6{ grid-column: span 6; }
.span-4{ grid-column: span 4; }
.span-3{ grid-column: span 3; }

/* ===== Buttons ===== */
.btn{
  appearance:none;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.08);
  color: var(--text);
  padding: 9px 12px;
  border-radius: 12px;
  cursor:pointer;
  text-decoration:none;
  font-size: 13px;
  display:inline-flex;
  align-items:center;
  gap:8px;
}
.btn:hover{ background: rgba(255,255,255,0.12); }
.btn.primary{
  background: rgba(78,161,255,0.18);
  border-color: rgba(78,161,255,0.30);
}
.btn.primary:hover{ background: rgba(78,161,255,0.24); }
.btn.danger{
  background: rgba(255,90,103,0.14);
  border-color: rgba(255,90,103,0.26);
}
.btn.danger:hover{ background: rgba(255,90,103,0.20); }

/* ===== Forms ===== */
.form{
  max-width: 420px;
}
.field{
  display:flex;
  flex-direction:column;
  gap: 6px;
  margin: 10px 0;
}
.label{
  font-size: 12px;
  color: var(--muted);
}
.input{
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(0,0,0,0.25);
  color: var(--text);
  outline: none;
}
.input:focus{
  border-color: rgba(78,161,255,0.45);
  box-shadow: 0 0 0 4px rgba(78,161,255,0.12);
}

/* compact email+id row */
.row{
  display:flex;
  gap: 12px;
  align-items:flex-end;
}
.row .grow{ flex:1; }
.row .idbox{ width: 120px; }

/* error message */
.alert{
  border-radius: 14px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.06);
  color: var(--muted);
  margin-bottom: 12px;
}
.alert.error{
  background: rgba(255,90,103,0.12);
  border-color: rgba(255,90,103,0.22);
  color: rgba(255,255,255,0.90);
}

/* login container */
.center-wrap{
  min-height: 100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 18px;
}
.login-card{
  width: 440px;
  max-width: 100%;
}

/* responsive sidebar (keep it visible on mobile) */
@media (max-width: 880px){
  .admin-shell{
    flex-direction: column;   /* sidebar on top, content below */
  }

  .sidebar{
    display: block;           /* undo the hide */
    width: 100%;
    border-right: 0;
    border-bottom: 1px solid var(--border);
    padding: 12px 12px 10px 12px;
  }

  .nav{
    flex-direction: row;      /* make nav wrap horizontally */
    flex-wrap: wrap;
    gap: 8px;
  }

  .nav a{
    width: auto;
    padding: 10px 12px;
  }

  .sidebar-footer{
    display: none;            /* optional: declutter on mobile */
  }

  .topbar{
    padding: 0 12px;
  }

  .content{
    padding: 12px;
  }
}

/* ===== SFB Sidebar Logo ===== */
.brand-sfb{
  display:flex;
  justify-content:center;
}

.brand-sfb .logo-wrap img{
  max-width: 35px;
  height: auto;
  display:block;
  transition: filter 200ms ease, transform 200ms ease;
  filter: drop-shadow(0 0 6px rgba(78,161,255,0.18));
}

.brand-sfb .logo-wrap:hover img{
  filter: drop-shadow(0 0 10px rgba(78,161,255,0.28));
  transform: scale(1.01);
}

/* ===== FantasyCares Logo (separate styling) ===== */
.brand-fc{
  display:flex;
  justify-content:center;
  padding: 12px 0 18px;
}

.brand-fc .logo-wrap img{
  max-width: 170px;
  height: auto;
  display:block;
}

/* ===== Dark mode styling for your existing .sortable table ===== */
table.sortable{
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #0f1115;
  color: rgba(200,215,235,.72) !important;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 10px;
  overflow: hidden;
}

/* Header row (thead ONLY — no special tbody first row) */
table.sortable > thead > tr > td,
table.sortable > thead > tr > th{
  background: #07080b !important;
  color: rgba(200,215,235,.72) !important;
  font-weight: 800;
  letter-spacing: .02em;
  padding: 12px 12px !important;
  border-bottom: 1px solid rgba(255,255,255,.12);
}

/* Body cells */
table.sortable td{
  padding: 12px 12px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  vertical-align: top;
  background: transparent;
}

/* Stripe rows (tbody only) */
table.sortable tbody tr:nth-child(even) td{
  background: rgba(255,255,255,.03);
}

/* Hover (tbody only) */
table.sortable tbody tr:hover td{
  background: rgba(255,255,255,.06);
}

/* Links */
table.sortable a{
  color: rgba(140,200,255,.95);
  text-decoration: none;
}
table.sortable a:hover{
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Notes column wrap (tbody only) */
table.sortable tbody td:nth-child(7){
  max-width: 420px;
  white-space: normal;
  word-break: break-word;
}

/* Button-y Update/Remove links (tbody only) */
table.sortable tbody td:nth-last-child(2) a,
table.sortable tbody td:last-child a{
  display: inline-block;
  padding: 7px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.04);
  color: rgba(255,255,255,.92);
  font-weight: 800;
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
}
table.sortable tbody td:nth-last-child(2) a:hover{
  background: rgba(255,255,255,.08);
}
table.sortable tbody td:last-child a{
  border-color: rgba(255,90,90,.35);
}
table.sortable tbody td:last-child a:hover{
  background: rgba(255,90,90,.12);
}

/* Green flag image polish */
table.sortable img{
  vertical-align: middle;
  filter: drop-shadow(0 0 2px rgba(0,0,0,.5));
}

/* If your inline <tr style="font-size:10px;"> makes it too small, override it */
table.sortable tr.full{ font-size: 12px !important; }

/* Keep wide tables inside cards on mobile */
.table-wrapper{
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.table-wrapper table{
  min-width: 900px;          /* forces scroll instead of squish */
  width: 100%;
}

/* Counts above tables */
.table-count{
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  color: rgba(210,225,245,.85);
}

/* Admin table (non-sortable) */
.admin-table{
  width: 100%;
  border-collapse: collapse;
  background: linear-gradient(145deg, rgba(15,25,45,.96), rgba(12,20,38,.96));
  border-radius: 14px;
  overflow: hidden;
}
.admin-table th{
  text-align: left;
  padding: 16px 14px;
  font-size: 15px;
  font-weight: 800;
  background: linear-gradient(90deg, #0d1a2f, #0f2f5c);
  color: rgba(210,225,245,.78);
  border-bottom: 1px solid rgba(0,140,255,.25);
}
.admin-table td{
  padding: 14px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  color: rgba(215,225,240,.82);
  vertical-align: top;
}
.admin-table tr:nth-child(even){
  background: rgba(255,255,255,.02);
}
.admin-table tr:hover{
  background: rgba(255,255,255,.05);
}
.admin-table a{
  color: rgba(140,200,255,.95);
  text-decoration: none;
}
.admin-table a:hover{
  text-decoration: underline;
}
.admin-table img{
  vertical-align: middle;
}
.admin-table td,
.admin-table th{
  vertical-align: middle !important;
}

/* Global links */
a{
  color: #58a6ff;
  text-decoration: none;
  transition: color 0.2s ease;
}
a:visited{
  color: #58a6ff;
}
a:hover{
  color: #79c0ff;
  text-decoration: underline;
}
a:active{
  color: #79c0ff;
}

/* Sidebar links (keep white) */
.sidebar .nav a,
.sidebar .nav a:visited{
  color: #ffffff;
  text-decoration: none;
}
.sidebar .nav a:hover{
  color: #d6eaff;
}
.sidebar .nav a.active{
  color: #ffffff;
}

/* Dark Themed Logout Button - stronger outline */
.topbar .btn.danger,
.topbar .btn.danger:visited{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.3px;
  background-color: #0c2236;
  color: #c7d6e6;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: 0 0 0 1px rgba(0,0,0,0.25) inset;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.topbar .btn.danger:hover{
  background-color: #0f2d49;
  color: #e0edf9;
  border-color: rgba(255,255,255,0.28);
}
.topbar .btn.danger:active{
  background-color: #091a2a;
}

/* Default Avatar */
.avatar{
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  background-image: url("https://fantasycares.org/images/FC-metal.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border: 2px solid rgba(255,255,255,0.15);
}

/* Compact both tables on this page */
.table-wrapper table{
  border-collapse: collapse;
  font-size: 12px;
}

/* Big submissions table */
.table-wrapper table.sortable{
  width: 100%;
  table-layout: fixed; /* prevents columns from exploding */
}

/* Tight cells */
.table-wrapper table td,
.table-wrapper table th{
  padding: 4px 6px;
  vertical-align: top;
  word-break: break-word;
}

/* Header row (thead only) */
.table-wrapper table.sortable thead td,
.table-wrapper table.sortable thead th{
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
}

/* Shrink the SFB year badges */
.table-wrapper .shadow{
  padding: 2px 4px !important;
  margin: 2px !important;
  font-size: 10px !important;
  display: inline-block;
  line-height: 1.1;
}

/* Socials column: tighten line spacing */
.table-wrapper td{
  line-height: 1.2;
}

/* Optional: make email slightly smaller so it fits */
.table-wrapper td.full{
  font-size: 11px;
}

/* Optional: on small screens, shrink a bit more */
@media (max-width: 900px){
  .table-wrapper table{ font-size: 11px; }
  .table-wrapper table td, .table-wrapper table th{ padding: 3px 5px; }
}

/* =========================
   LIVE ORGANIZER NAV (BUTTON STYLE)
========================= */

.live-nav{
  background: linear-gradient(135deg, #0b1e33 0%, #102a44 60%, #174d7a 100%);
  padding: 24px 32px;
  border-radius: 14px;
  margin-bottom: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
}

.live-nav-title{
  font-size: 22px;
  font-weight: 600;
  color: rgba(255,255,255,0.90);
  margin: 0 0 8px 0;
  letter-spacing: 0.6px;
}

.live-nav-links{
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.live-nav a{
  display: inline-block;
  padding: 10px 18px;
  border-radius: 8px;
  background: rgba(255,255,255,0.08);
  color: rgba(240,245,250,0.90);
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.4px;
  transition: all 0.25s ease;
  border: 1px solid rgba(255,255,255,0.12);
}

.live-nav a:visited{
  color: rgba(240,245,250,0.90);
}

.live-nav a:hover{
  background: #3ea6ff;
  color: #0b1e33;
  border-color: #3ea6ff;
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.35);
}

.live-nav a.admin-link{
  background: rgba(255, 180, 70, 0.12);
  border-color: rgba(255, 180, 70, 0.30);
  color: #ffcc7a;
}
.live-nav a.admin-link:hover{
  background: #ffb347;
  color: #0b1e33;
  border-color: #ffb347;
}

@media (max-width: 768px){
  .live-nav{
    padding: 20px;
  }
  .live-nav-links{
    gap: 12px;
  }
  .live-nav a{
    font-size: 13px;
    padding: 8px 14px;
  }
  .live-nav-title{
    font-size: 18px;
    margin-bottom: 6px;
  }
}

/* =========================
   EVENT PAGE NAV (BUTTONS)
========================= */

.event-nav{
  margin: 0 0 10px 0;
  padding: 0;
}

.event-nav + *{
  margin-top: 0;
}

.event-nav-links{
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.event-nav a{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 16px;
  border-radius: 10px;
  background: rgba(255,255,255,0.06);
  color: rgba(235,240,245,0.90);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.25px;
  border: 1px solid rgba(255,255,255,0.12);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.event-nav a:visited{
  color: rgba(235,240,245,0.90);
}

.event-nav a:hover{
  background: var(--accent);
  color: #0b1e33;
  border-color: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.30);
}

@media (max-width: 768px){
  .event-nav{
    margin-bottom: 8px;
  }
  .event-nav-links{
    gap: 10px;
  }
  .event-nav a{
    font-size: 13px;
    padding: 8px 14px;
  }
}

/* ===== Scoped Dark Mode Select Fix (Preserves Rounded Look) ===== */

.card select,
.admin-shell select {
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.92);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius);
  padding: 10px 40px 10px 12px;
  font-family: inherit;
  box-shadow: var(--shadow);
}

.card select {
  appearance: auto;
  -webkit-appearance: auto;
  -moz-appearance: auto;
}

.card select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(78,161,255,0.25);
}

.card select option {
  background-color: #0f1a2b;
  color: rgba(255,255,255,0.92);
}

/* ===== Admin Search Form Styling ===== */

.card input[type="text"],
.card input[type="email"],
.card select {
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.92);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius);
  padding: 10px 14px;
  font-family: var(--font);
  box-shadow: var(--shadow);
  transition: all 0.2s ease;
}

.card input::placeholder {
  color: rgba(255,255,255,0.45);
}

.card input:focus,
.card select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(78,161,255,0.25);
}

/* ===== Search Button ===== */

.card button {
  background: linear-gradient(135deg, var(--accent), #2d7fe0);
  color: #ffffff;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius);
  padding: 10px 18px;
  font-weight: 700;
  font-family: var(--font);
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: all 0.2s ease;
}

.card button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.35);
  filter: brightness(1.05);
}

.card button:active {
  transform: translateY(0);
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
}

.kpi .chip {
  padding:12px 16px;
  border-radius:14px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.10);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 130px;
}

/* Anchor */
.topbar{
  position: relative;
}

/* Pin logout to the top-right corner of the topbar */
.topbar-logout{
  position: absolute;
  top: 6px;
  right: 10px;
  z-index: 5;
  padding: 6px 14px;
  font-size: 13px;
}

/* Prevent overlap with the pinned logout */
.topbar .right{
  padding-right: 80px;
}

/* =========================================
   SFB Live – Create Event Button + Modal
========================================= */

.sfb-h2row{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:nowrap;
}

.sfb-h2{
  margin:0;
  display:inline-block;
}

/* Smaller green circle (+) */
.sfb-addbtn{
  width:26px;
  height:26px;
  min-width:26px;
  min-height:26px;
  border-radius:50%;
  border:0;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:#22c55e;
  color:#fff;
  font-size:18px;
  font-weight:700;
  line-height:1;
  text-align:center;
  box-shadow:0 4px 12px rgba(0,0,0,.25);
  transition:.15s ease;
  padding:0;
}
.sfb-addbtn:hover{ background:#16a34a; }
.sfb-addbtn:active{ transform:translateY(1px); }

/* Modal backdrop (hidden by default) */
.sfb-create-backdrop{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.55);
  display:none;
  align-items:center;
  justify-content:center;
  padding:18px;
  z-index:9999;
}
.sfb-create-backdrop.is-open{ display:flex; }

/* Modal */
.sfb-create-modal{
  width:min(560px, 100%);
  background:var(--bg, #0b1220);
  border:1px solid var(--border, rgba(255,255,255,.12));
  border-radius:16px;
  box-shadow:0 18px 60px rgba(0,0,0,.5);
  overflow:hidden;
}
.sfb-create-modal header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px 16px;
  border-bottom:1px solid var(--border, rgba(255,255,255,.12));
}
.sfb-create-modal header h3{ margin:0; font-size:18px; }
.sfb-create-modal .modal-body{ padding:16px; }
.sfb-create-modal .modal-actions{
  display:flex;
  gap:10px;
  justify-content:flex-end;
  padding:14px 16px;
  border-top:1px solid var(--border, rgba(255,255,255,.12));
}
.sfb-create-modal .field{
  display:flex;
  flex-direction:column;
  gap:8px;
}
.sfb-create-modal label{
  color:var(--text, rgba(255,255,255,.92));
  font-size:14px;
}
.sfb-create-modal input[type="text"]{
  width:100%;
  padding:12px;
  border-radius:12px;
  border:1px solid var(--border, rgba(255,255,255,.12));
  background:var(--panel, rgba(255,255,255,.06));
  color:var(--text, rgba(255,255,255,.92));
}
.sfb-create-modal input[type="text"]::placeholder{
  color:var(--muted, rgba(255,255,255,.65));
}

/* Action Buttons */
.btn-action {
  display: inline-block;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  transition: all .15s ease;
  border: 0;
  cursor: pointer;
  white-space: nowrap;
}

/* Green Approve */
.btn-approve {
  background: #22c55e;
  color: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,.25);
}

.btn-approve:hover {
  background: #16a34a;
  transform: translateY(-1px);
}

/* Yellow Queue */
.btn-queue {
  background: #facc15;
  color: #111;
  box-shadow: 0 4px 12px rgba(0,0,0,.25);
}

.btn-queue:hover {
  background: #eab308;
  transform: translateY(-1px);
}




/* =========================================
   Live Interest table action buttons (force)
   Put this at the VERY BOTTOM of admin.css
========================================= */

table.sortable a.btn-action{
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 6px 12px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  border-radius: 8px !important;
  text-decoration: none !important;
  white-space: nowrap !important;

  /* override table link button-y defaults */
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: inherit !important;
}

table.sortable a.btn-action.btn-approve{
  background: #22c55e !important;
  color: #fff !important;
  box-shadow: 0 4px 12px rgba(0,0,0,.25) !important;
}

table.sortable a.btn-action.btn-approve:hover{
  background: #16a34a !important;
  transform: translateY(-1px);
}

table.sortable a.btn-action.btn-queue{
  background: #facc15 !important;
  color: #111 !important;
  box-shadow: 0 4px 12px rgba(0,0,0,.25) !important;
}

table.sortable a.btn-action.btn-queue:hover{
  background: #eab308 !important;
  transform: translateY(-1px);
}




/* ---- Standard admin table styling (matches your screenshot) ---- */
.table-wrapper{
  width:100%;
  overflow-x:auto;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.08);
  background: rgba(0,0,0,.25);
}

.table{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
  min-width: 900px; /* keeps columns readable; wrapper handles scroll */
}

.table thead th{
  text-align:left;
  font-weight:700;
  letter-spacing:.2px;
  padding:14px 16px;
  background: rgba(0,0,0,.55);
  border-bottom:1px solid rgba(255,255,255,.08);
  color: rgba(255,255,255,.92);
  position: sticky;
  top: 0;
  z-index: 2;
}

.table tbody td{
  padding:14px 16px;
  border-bottom:1px solid rgba(255,255,255,.06);
  color: rgba(255,255,255,.86);
  vertical-align:middle;
  white-space:nowrap;
}

.table tbody tr:nth-child(even) td{
  background: rgba(255,255,255,.02);
}

.table tbody tr:hover td{
  background: rgba(255,255,255,.06);
}

.table a{
  color:#58a6ff; /* screenshot-ish link blue */
  text-decoration:none;
}
.table a:hover{
  text-decoration:underline;
}
