/**
 * PIXL Admin Console Stylesheet
 * Extracted from inline styles for better maintainability
 * 
 * Sections:
 * 1. CSS Variables
 * 2. Base/Reset
 * 3. Header
 * 4. Forms & Inputs
 * 5. Admin Dashboard
 * 6. Tabs
 * 7. Client List & Cards
 * 8. Tables
 * 9. Modals
 * 10. Dashboard Metrics
 * 11. Revenue Card
 * 12. Status Badges
 * 13. Utilities & Misc
 */

/* =================================================================
   1. CSS VARIABLES
   ================================================================= */
:root {
  --bg-top: #070a0f;
  --bg-bottom: #0d1117;
  --dark: #030508;
  --primary: #00ff94;
  --primary-soft: #00d177;
  --primary-glow: #00ff94;
  --white: #ffffff;
  --text-light: #f0f6fc;
  --text-muted: #8b949e;
  --font: 'Poppins', sans-serif;
  --glass: rgba(13, 17, 23, 0.4);
  --glass-border: rgba(0, 255, 148, 0.2);
  --radius: 16px;
  --shadow-glass: 0 8px 32px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 40px rgba(0, 255, 148, 0.3);
  --blur: blur(20px);
}

/* =================================================================
   2. BASE / RESET
   ================================================================= */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  background: radial-gradient(ellipse at top, var(--bg-top) 0%, var(--bg-bottom) 100%);
  color: var(--text-light);
  font-family: var(--font);
  line-height: 1.5;
  scroll-behavior: smooth;
  overflow-x: hidden;
  font-size: 14px;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(0, 255, 148, 0.08) 0, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(0, 255, 148, 0.05) 0, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(0, 255, 148, 0.02) 0, transparent 60%);
  animation: bgpulse 8s ease-in-out infinite alternate;
}

@keyframes bgpulse {
  0% { opacity: 0.3; }
  100% { opacity: 0.7; }
}

/* =================================================================
   3. HEADER
   ================================================================= */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1.5rem 3rem;
  background: rgba(3, 5, 8, 0.8);
  backdrop-filter: var(--blur);
  border-bottom: 1px solid rgba(0, 255, 148, 0.3);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.8);
  min-height: 6rem;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1400px;
  position: relative;
  height: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.header-btn {
  display: flex;
  align-items: center;
  color: var(--text-light);
  background: rgba(0, 255, 148, 0.1);
  border: 1px solid rgba(0, 255, 148, 0.3);
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  text-decoration: none;
}

.header-btn:hover {
  background: rgba(0, 255, 148, 0.2);
  color: var(--primary-glow);
}

.header-btn i {
  margin-right: 0.5rem;
}

.brand {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.6rem;
  color: var(--primary-glow);
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  font-weight: 700;
  text-shadow: 0 0 30px rgba(0, 255, 148, 0.8), 0 0 60px rgba(0, 255, 148, 0.4);
  transition: all 0.3s ease;
  filter: drop-shadow(0 0 10px var(--primary-glow));
}

.brand:hover {
  color: var(--white);
  text-shadow: 0 0 40px rgba(0, 255, 148, 1), 0 0 80px rgba(0, 255, 148, 0.6);
  transform: translateX(-50%) scale(1.05);
}

/* =================================================================
   4. FORMS & INPUTS
   ================================================================= */
.admin-container {
  padding: 120px 2rem 4rem;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 10;
}

.admin-header {
  margin-bottom: 3rem;
  text-align: center;
}

.admin-header h1 {
  color: var(--primary-glow);
  font-size: 2.5rem;
  margin-bottom: 1rem;
  text-shadow: 0 0 20px rgba(0, 255, 148, 0.5);
}

.admin-header p {
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

.admin-panel {
  background: rgba(3, 5, 8, 0.8);
  backdrop-filter: var(--blur);
  border: 1px solid rgba(0, 255, 148, 0.2);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-glass);
}

.auth-container {
  background: rgba(3, 5, 8, 0.8);
  backdrop-filter: var(--blur);
  border: 1px solid rgba(0, 255, 148, 0.2);
  border-radius: var(--radius);
  padding: 2.5rem;
  max-width: 500px;
  margin: 2rem auto;
  box-shadow: var(--shadow-glass);
}

.auth-container h2 {
  color: var(--primary-glow);
  font-size: 2rem;
  margin-bottom: 2rem;
  text-align: center;
  text-shadow: 0 0 20px rgba(0, 255, 148, 0.5);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-light);
}

.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  background: rgba(13, 17, 23, 0.8);
  border: 1px solid rgba(0, 255, 148, 0.2);
  color: var(--text-light);
  font-family: var(--font);
  transition: all 0.3s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary-glow);
  box-shadow: 0 0 15px rgba(0, 255, 148, 0.3);
}

.auth-btn {
  width: 100%;
  padding: 0.75rem;
  background: linear-gradient(135deg, var(--primary-glow) 0%, var(--primary-soft) 100%);
  color: var(--dark);
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 1rem;
}

.auth-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(0, 255, 148, 0.5);
}

.form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
}

.form-col {
  flex: 1;
  min-width: 200px;
}

.data-form {
  background: rgba(13, 17, 23, 0.6);
  border: 1px solid rgba(0, 255, 148, 0.1);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

/* =================================================================
   5. ADMIN DASHBOARD
   ================================================================= */
.admin-dashboard {
  display: none;
  animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.admin-welcome {
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(0, 255, 148, 0.2);
}

.admin-welcome h2 {
  color: var(--primary-glow);
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  text-shadow: 0 0 10px rgba(0, 255, 148, 0.3);
}

.admin-welcome p {
  color: var(--text-muted);
}

/* =================================================================
   6. TABS
   ================================================================= */
.admin-tabs {
  display: flex;
  margin-bottom: 2rem;
  border-bottom: 1px solid rgba(0, 255, 148, 0.2);
}

.tab-btn {
  background: transparent;
  color: var(--text-muted);
  border: none;
  padding: 1rem 1.5rem;
  font-size: 1rem;
  font-family: var(--font);
  cursor: pointer;
  transition: all 0.3s ease;
  border-bottom: 2px solid transparent;
  margin-right: 1rem;
}

.tab-btn.active {
  color: var(--primary-glow);
  border-bottom-color: var(--primary-glow);
}

.tab-btn:hover {
  color: var(--primary-glow);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* =================================================================
   7. CLIENT LIST & CARDS
   ================================================================= */
.client-list {
  margin-bottom: 2rem;
}

.client-item {
  background: rgba(13, 17, 23, 0.6);
  border: 1px solid rgba(0, 255, 148, 0.1);
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.client-item:hover {
  border-color: var(--primary-glow);
  background: rgba(13, 17, 23, 0.8);
}

.client-item.deleted {
  opacity: 0.6;
  position: relative;
}

.search-bar {
  display: flex;
  margin-bottom: 2rem;
}

.search-input {
  flex: 1;
  padding: 0.75rem 1rem;
  border-radius: 8px 0 0 8px;
  background: rgba(13, 17, 23, 0.8);
  border: 1px solid rgba(0, 255, 148, 0.2);
  border-right: none;
  color: var(--text-light);
  font-family: var(--font);
}

.search-input:focus {
  outline: none;
  border-color: var(--primary-glow);
}

.search-btn {
  background: rgba(0, 255, 148, 0.1);
  color: var(--primary-glow);
  border: 1px solid rgba(0, 255, 148, 0.2);
  border-left: none;
  padding: 0.75rem 1.5rem;
  border-radius: 0 8px 8px 0;
  cursor: pointer;
  transition: all 0.3s ease;
}

.search-btn:hover {
  background: rgba(0, 255, 148, 0.2);
}

.client-detail {
  display: none;
}

.section-title {
  color: var(--primary-glow);
  margin-bottom: 1rem;
  font-size: 1.2rem;
  text-shadow: 0 0 10px rgba(0, 255, 148, 0.3);
}

/* Client Cards Grid */
#clientCardsGrid {
  display: none;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1rem;
}

.client-card {
  background: rgba(13, 17, 23, 0.7);
  border: 1px solid rgba(0, 255, 148, 0.12);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  cursor: pointer;
  transition: all 0.25s ease;
}

.client-card:hover {
  border-color: var(--primary-glow);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.client-card .card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}

.client-card .ident {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.client-card .avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-glow), var(--primary-soft));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1rem;
  color: var(--dark);
}

.client-card .names .primary {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-light);
}

.client-card .names .secondary {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.client-card .chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.chip {
  font-size: 0.6rem;
  padding: 0.15rem 0.5rem;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  font-weight: 500;
}

.chip-role-admin { background: rgba(255, 99, 71, 0.2); color: #ff6347; }
.chip-role-staff { background: rgba(100, 149, 237, 0.2); color: #6495ed; }
.chip-role-viewer { background: rgba(255, 255, 255, 0.08); color: var(--text-muted); }
.chip-status-new { background: rgba(255, 193, 7, 0.15); color: #ffc107; }
.chip-status-approved { background: rgba(0, 255, 148, 0.15); color: var(--primary-glow); }
.chip-status-deleted { background: rgba(255, 0, 68, 0.15); color: #ff0044; }
.chip-tier { background: rgba(138, 43, 226, 0.15); color: #ba55d3; }
.chip-warn { background: rgba(255, 152, 0, 0.15); color: #ff9800; }

.client-card .card-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.client-card .metric {
  text-align: center;
}

.client-card .m-label {
  display: block;
  font-size: 0.55rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 0.1rem;
}

.client-card .m-val {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-light);
}

.client-card .card-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
}

.mini-btn {
  background: rgba(0, 255, 148, 0.08);
  border: 1px solid rgba(0, 255, 148, 0.2);
  color: var(--text-muted);
  font-size: 0.65rem;
  padding: 0.35rem 0.65rem;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mini-btn:hover {
  background: rgba(0, 255, 148, 0.15);
  color: var(--primary-glow);
  border-color: var(--primary-glow);
}

/* =================================================================
   8. TABLES
   ================================================================= */
.item-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
}

.item-table th,
.item-table td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid rgba(0, 255, 148, 0.1);
}

.item-table th {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.9rem;
}

/* =================================================================
   9. MODALS
   ================================================================= */
.admin-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(3, 5, 8, 0.7);
  backdrop-filter: blur(8px);
  z-index: 1000;
  overflow-y: auto;
  padding: 2rem 1rem;
}

.modal-content {
  background: rgba(7, 10, 15, 0.95);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  max-width: 600px;
  width: 100%;
  margin: 1rem auto;
  box-shadow: var(--shadow-glass), var(--shadow-glow);
  animation: modalAppear 0.3s ease;
}

@keyframes modalAppear {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

.modal-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  color: var(--primary-glow);
  font-size: 1.5rem;
  text-shadow: 0 0 10px rgba(0, 255, 148, 0.3);
}

.close-modal {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.close-modal:hover {
  color: var(--primary-glow);
}

.modal-body {
  padding: 1.5rem;
}

.modal-footer {
  padding: 1.5rem;
  border-top: 1px solid var(--glass-border);
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
}

/* =================================================================
   10. DASHBOARD METRICS
   ================================================================= */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.dashboard-card {
  background: rgba(3, 5, 8, 0.8);
  backdrop-filter: var(--blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-glass);
}

.dashboard-card h3 {
  color: var(--primary-glow);
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  text-shadow: 0 0 10px rgba(0, 255, 148, 0.3);
}

.dashboard-row {
  margin-bottom: 2rem;
}

.full-width {
  grid-column: 1 / -1;
}

.metrics {
  display: flex;
  justify-content: space-between;
}

.metric {
  text-align: center;
  flex: 1;
}

.metric-value {
  font-size: 2rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.5rem;
  text-shadow: 0 0 10px rgba(0, 255, 148, 0.3);
}

.metric-label {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* =================================================================
   11. REVENUE CARD
   ================================================================= */
.revenue-card {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.revenue-card.full-width {
  grid-column: 1 / -1;
  width: 100%;
}

.revenue-metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
}

.rev-metric {
  background: rgba(13, 17, 23, 0.55);
  border: 1px solid rgba(0, 255, 148, 0.15);
  padding: 0.65rem 0.75rem 0.6rem;
  border-radius: 10px;
  position: relative;
  overflow: hidden;
}

.rev-metric .label {
  display: block;
  font-size: 0.6rem;
  letter-spacing: 0.08rem;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
}

.rev-metric .value {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--primary-glow);
  text-shadow: 0 0 6px rgba(0, 255, 148, 0.4);
}

.revenue-chart-wrapper {
  position: relative;
  background: linear-gradient(145deg, rgba(0, 255, 148, 0.08), rgba(0, 255, 148, 0.02));
  border: 1px solid rgba(0, 255, 148, 0.15);
  padding: 1rem 1rem 1.2rem;
  border-radius: 14px;
  backdrop-filter: blur(12px);
  box-shadow: inset 0 0 25px rgba(0, 255, 148, 0.05);
}

.revenue-chart-wrapper::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 20%, rgba(0, 255, 148, 0.12), transparent 60%);
  opacity: 0.6;
  pointer-events: none;
}

#revenueTrendChart {
  width: 100%;
}

.mini-breakdowns {
  margin-top: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  font-size: 0.65rem;
  letter-spacing: 0.4px;
}

.mini-breakdowns .badge {
  background: rgba(0, 255, 148, 0.1);
  border: 1px solid rgba(0, 255, 148, 0.25);
  padding: 0.35rem 0.55rem;
  border-radius: 30px;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--text-light);
  position: relative;
  overflow: hidden;
}

.mini-breakdowns .badge::before {
  content: '';
  position: absolute;
  top: 0;
  left: -60%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 255, 148, 0.25), transparent);
  transform: skewX(-20deg);
  animation: badgeShine 5s linear infinite;
}

@keyframes badgeShine {
  0% { left: -60%; }
  60% { left: 120%; }
  100% { left: 120%; }
}

.mini-breakdowns .badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary-glow);
  box-shadow: 0 0 8px rgba(0, 255, 148, 0.6);
}

.dashboard-row .full-span {
  grid-column: 1 / -1;
}

@media (max-width: 900px) {
  .revenue-card {
    grid-column: span 1 !important;
  }
}

/* =================================================================
   12. STATUS BADGES
   ================================================================= */
.status-badge {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 12px;
  font-size: 0.65rem;
  margin-left: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-new { background: #ffc10722; color: #ffc107; }
.status-approved { background: #00ff9422; color: #00ff94; }
.status-deleted { background: #ff004422; color: #ff0044; }
.duplicate-flag { background: #ff980022; color: #ff9800; }

.purge-btn {
  background: #8b0000;
  color: #fff;
  font-size: 0.65rem;
  padding: 4px 8px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  margin-top: 6px;
}

.purge-btn:hover {
  background: #a00;
}

/* =================================================================
   13. UTILITIES & MISC
   ================================================================= */
.action-btn {
  background: rgba(0, 255, 148, 0.1);
  color: var(--primary-glow);
  border: 1px solid rgba(0, 255, 148, 0.2);
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: var(--font);
  font-size: 0.9rem;
}

.action-btn:hover {
  background: rgba(0, 255, 148, 0.2);
  box-shadow: 0 0 15px rgba(0, 255, 148, 0.2);
}

.action-btn.danger {
  background: rgba(220, 53, 69, 0.1);
  color: #dc3545;
  border-color: rgba(220, 53, 69, 0.2);
}

.action-btn.danger:hover {
  background: rgba(220, 53, 69, 0.2);
  box-shadow: 0 0 15px rgba(220, 53, 69, 0.2);
}

.add-item-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.add-item-btn i {
  font-size: 1rem;
}

.empty-message {
  color: var(--text-muted);
  text-align: center;
  padding: 2rem 0;
  font-style: italic;
}

.back-link {
  display: inline-flex;
  align-items: center;
  color: var(--text-muted);
  text-decoration: none;
  margin-bottom: 2rem;
  transition: all 0.3s ease;
}

.back-link:hover {
  color: var(--primary-glow);
}

.back-link i {
  margin-right: 0.5rem;
}

/* Floating Logout Button */
.floating-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  display: flex;
  align-items: center;
  color: var(--text-light);
  background: rgba(0, 255, 148, 0.1);
  border: 1px solid rgba(0, 255, 148, 0.3);
  padding: 0.7rem 1.2rem;
  border-radius: 8px;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  text-decoration: none;
  z-index: 100;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.floating-btn:hover {
  background: rgba(0, 255, 148, 0.25);
  color: var(--primary-glow);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4), 0 0 20px rgba(0, 255, 148, 0.15);
}

.floating-btn i {
  margin-right: 0.5rem;
}

/* Footer */
footer {
  background: rgba(3, 5, 8, 0.8);
  backdrop-filter: var(--blur);
  border-top: 1px solid rgba(0, 255, 148, 0.3);
  padding: 3rem 5% 2rem 5%;
  font-size: 0.85rem;
  margin-top: 3rem;
  color: var(--text-muted);
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid rgba(0, 255, 148, 0.2);
}

/* Loading Spinner */
.btn-spinner {
  display: none;
  width: 1rem;
  height: 1rem;
  border: 2px solid transparent;
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Role Inline Select */
.role-inline-select {
  background: rgba(13, 17, 23, 0.8);
  border: 1px solid rgba(0, 255, 148, 0.2);
  color: var(--text-light);
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  cursor: pointer;
}

.role-inline-select:focus {
  outline: none;
  border-color: var(--primary-glow);
}

/* Client Detail Tabs */
.client-detail-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.client-detail-tabs button {
  background: rgba(0, 255, 148, 0.05);
  border: 1px solid rgba(0, 255, 148, 0.15);
  color: var(--text-muted);
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.client-detail-tabs button.active {
  background: rgba(0, 255, 148, 0.15);
  border-color: var(--primary-glow);
  color: var(--primary-glow);
}

.client-detail-tabs button:hover:not(.active) {
  background: rgba(0, 255, 148, 0.1);
  color: var(--text-light);
}

/* Client Cost Summary */
#clientCostSummary {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding: 1rem;
  background: rgba(0, 255, 148, 0.05);
  border: 1px solid rgba(0, 255, 148, 0.15);
  border-radius: 8px;
  margin-bottom: 1.5rem;
  font-size: 0.85rem;
}

#clientCostSummary span {
  display: flex;
  gap: 0.35rem;
}

/* View Toggle Buttons */
.view-toggle {
  display: flex;
  gap: 0.35rem;
  margin-left: auto;
}

.view-toggle button {
  background: rgba(0, 255, 148, 0.05);
  border: 1px solid rgba(0, 255, 148, 0.15);
  color: var(--text-muted);
  padding: 0.4rem 0.6rem;
  border-radius: 4px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.view-toggle button:hover {
  background: rgba(0, 255, 148, 0.1);
  color: var(--text-light);
}

/* Invite Link UI */
#inviteLinkWrap {
  margin-top: 1rem;
  padding: 1rem;
  background: rgba(0, 255, 148, 0.05);
  border: 1px solid rgba(0, 255, 148, 0.2);
  border-radius: 8px;
}

#inviteLinkOutput {
  width: 100%;
  margin-bottom: 0.5rem;
}

/* Recent Invites Table */
#recentInvitesTable {
  font-size: 0.8rem;
}

#recentInvitesTable th {
  font-size: 0.7rem;
}
