/* --- DESIGN SYSTEM TOKENS --- */
:root {
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;

  /* Color Palette */
  --bg-app: #090d16;
  --bg-surface: rgba(17, 24, 39, 0.7);
  --bg-surface-elevated: rgba(31, 41, 55, 0.85);
  
  --border-color: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(99, 102, 241, 0.5);

  --text-primary: #f9fafb;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;

  /* Accent Colors */
  --color-primary: #6366f1; /* Indigo */
  --color-primary-hover: #4f46e5;
  --color-primary-glow: rgba(99, 102, 241, 0.2);

  --color-secondary: #0d9488; /* Teal */
  --color-secondary-hover: #0f766e;
  --color-secondary-glow: rgba(13, 148, 136, 0.15);

  --color-danger: #ef4444; /* Red */
  --color-danger-hover: #dc2626;

  --color-warning: #f59e0b; /* Amber */
  --color-warning-light: rgba(245, 158, 11, 0.15);

  --color-success: #10b981; /* Emerald */
  --color-success-light: rgba(16, 185, 129, 0.1);

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-glow: 0 0 20px 0 rgba(99, 102, 241, 0.15);

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-round: 50%;

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- RESET & BASIC STYLES --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-app);
  color: var(--text-primary);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background-image: 
    radial-gradient(at 0% 0%, rgba(99, 102, 241, 0.12) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(13, 148, 136, 0.08) 0px, transparent 50%);
  background-attachment: fixed;
}

/* --- LAYOUT CONTAINERS --- */
.app-container {
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

/* --- HEADER --- */
.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.header-left {
  display: flex;
  align-items: baseline;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-icon {
  font-size: 2.25rem;
  background: linear-gradient(135deg, var(--color-primary), #38bdf8);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 8px rgba(99, 102, 241, 0.3));
}

.logo h1 {
  font-family: var(--font-heading);
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  background: linear-gradient(to right, #ffffff, #e2e8f0);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.version-tag {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-secondary);
  background-color: var(--color-secondary-glow);
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  border: 1px solid rgba(13, 148, 136, 0.2);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Slot Navigation / Tabs */
.slot-navigation {
  display: flex;
  background: rgba(17, 24, 39, 0.6);
  padding: 0.35rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(10px);
}

.slot-tab {
  border: none;
  background: transparent;
  color: var(--text-secondary);
  padding: 0.65rem 1.25rem;
  border-radius: calc(var(--radius-md) - 2px);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  transition: all var(--transition-fast);
  min-width: 160px;
}

.slot-tab:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.03);
}

.slot-tab.active {
  background: var(--color-primary);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.slot-badge {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.slot-time {
  font-size: 0.75rem;
  opacity: 0.8;
}

/* Profile Widget */
.profile-widget {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.03);
  padding: 0.5rem 1rem 0.5rem 0.5rem;
  border-radius: 9999px;
  border: 1px solid var(--border-color);
  transition: all var(--transition-fast);
}

.hidden {
  display: none !important;
}

.profile-avatar {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-round);
  background: linear-gradient(135deg, var(--color-primary), #a855f7);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  color: #fff;
  font-size: 0.95rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.profile-info {
  display: flex;
  flex-direction: column;
}

.profile-name {
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.2;
}

.profile-role {
  font-size: 0.7rem;
  color: var(--text-secondary);
}

.logout-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-round);
  margin-left: 0.25rem;
  transition: all var(--transition-fast);
}

.logout-btn:hover {
  color: var(--color-danger);
  background: rgba(239, 68, 68, 0.1);
}

/* --- STATS PANEL --- */
.stats-dashboard {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.stat-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(16px);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--border-color);
}

.stat-card.highlight::before {
  background: var(--color-primary);
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.stat-value {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 0.75rem;
}

.stat-progress-bar {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 9999px;
  overflow: hidden;
}

.stat-progress-fill {
  height: 100%;
  background: linear-gradient(to right, var(--color-secondary), #2dd4bf);
  border-radius: 9999px;
  transition: width 0.5s ease-out;
}

.stat-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.user-schedule-summary {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.schedule-item {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.05);
  padding-bottom: 0.25rem;
}

.schedule-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.item-label {
  color: var(--text-secondary);
  font-weight: 500;
}

.item-value {
  font-weight: 600;
  color: var(--color-secondary);
  max-width: 180px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: right;
}

.item-value.unregistered {
  color: var(--text-muted);
  font-style: italic;
  font-weight: 400;
}

/* --- MAIN CONTENT & GRID --- */
.main-content {
  flex-grow: 1;
}

.section-header {
  margin-bottom: 2rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 0.9rem;
  max-width: 800px;
}

.tables-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

/* --- TABLE CARD --- */
.table-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
  backdrop-filter: blur(12px);
  min-height: 380px;
}

.table-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

/* Card Header */
.card-header {
  padding: 1.25rem 1.25rem 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.table-num-badge {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--color-primary);
  background: rgba(99, 102, 241, 0.08);
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(99, 102, 241, 0.15);
}

.spots-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.spots-badge.available {
  background-color: var(--color-success-light);
  color: var(--color-success);
  border: 1px solid rgba(16, 185, 129, 0.15);
}

.spots-badge.full {
  background-color: rgba(239, 68, 68, 0.08);
  color: var(--color-danger);
  border: 1px solid rgba(239, 68, 68, 0.15);
}

/* Card Body */
.card-body {
  padding: 0.5rem 1.25rem 1.25rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

/* Empty State Table Card */
.empty-table-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-grow: 1;
  text-align: center;
  padding: 2.5rem 1rem;
}

.empty-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
  opacity: 0.4;
  animation: float 4s ease-in-out infinite;
}

.empty-table-state h4 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.empty-table-state p {
  font-size: 0.8rem;
  color: var(--text-muted);
  max-width: 180px;
}

/* Proposed State Table Card */
.topic-container {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.topic-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 0.5rem;
  color: #fff;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 3rem;
}

.topic-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.45;
  margin-bottom: 1.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 3.5rem;
}

.facilitator-tag {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(245, 158, 11, 0.06);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-md);
  border: 1px dashed rgba(245, 158, 11, 0.25);
  margin-bottom: 1.25rem;
}

.facilitator-icon {
  color: var(--color-warning);
  font-size: 0.9rem;
}

.facilitator-details {
  display: flex;
  flex-direction: column;
}

.facilitator-label {
  font-size: 0.65rem;
  color: var(--color-warning);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.facilitator-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 180px;
}

/* Participants List */
.participants-section {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  margin-bottom: 1.25rem;
}

.participants-header {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.participants-avatars {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.avatar-pill {
  font-size: 0.7rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  padding: 0.25rem 0.55rem;
  border-radius: 9999px;
  max-width: 120px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: inline-block;
  cursor: default;
}

.avatar-pill.user-self {
  border-color: var(--color-primary);
  color: #fff;
  background: rgba(99, 102, 241, 0.1);
}

.avatar-pill.is-facilitator {
  border-color: var(--color-warning);
  color: var(--color-warning);
  background: rgba(245, 158, 11, 0.05);
}

/* Card Footer Actions */
.card-footer {
  padding: 0 1.25rem 1.25rem;
  margin-top: auto;
}

/* --- BUTTONS --- */
.btn {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  text-align: center;
  vertical-align: middle;
  cursor: pointer;
  user-select: none;
  border: 1px solid transparent;
  padding: 0.65rem 1rem;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-primary {
  background-color: var(--color-primary);
  color: #ffffff;
  box-shadow: 0 2px 4px rgba(99, 102, 241, 0.2);
}

.btn-primary:hover {
  background-color: var(--color-primary-hover);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-secondary);
  border-color: var(--border-color);
}

.btn-secondary:hover {
  color: #fff;
  background-color: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-outline-primary {
  background-color: transparent;
  color: var(--color-primary);
  border-color: rgba(99, 102, 241, 0.3);
}

.btn-outline-primary:hover {
  color: #fff;
  background-color: var(--color-primary);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.btn-danger {
  background-color: rgba(239, 68, 68, 0.1);
  color: var(--color-danger);
  border-color: rgba(239, 68, 68, 0.2);
}

.btn-danger:hover {
  background-color: var(--color-danger);
  color: #fff;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.btn-block {
  display: flex;
  width: 100%;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background-color: rgba(255, 255, 255, 0.02) !important;
  color: var(--text-muted) !important;
  border-color: var(--border-color) !important;
  box-shadow: none !important;
}

/* --- FORMS & MODALS --- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(9, 13, 22, 0.85);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: var(--bg-surface-elevated);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  width: 100%;
  max-width: 520px;
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  transform: scale(0.95);
  transition: transform var(--transition-normal);
}

.modal-overlay.active .modal-content {
  transform: scale(1);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.modal-header h3 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
}

.close-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
  transition: color var(--transition-fast);
}

.close-btn:hover {
  color: #fff;
}

.login-card {
  max-width: 440px;
  text-align: center;
  border: 1px solid rgba(99, 102, 241, 0.25);
  box-shadow: 0 10px 40px rgba(99, 102, 241, 0.1);
}

.login-card h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.login-card .subtitle {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--color-primary-glow);
  padding: 0.4rem 1rem;
  border-radius: 9999px;
  border: 1px solid rgba(99, 102, 241, 0.2);
  margin-bottom: 1.25rem;
}

.brand-text {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-group {
  margin-bottom: 1.5rem;
  text-align: left;
}

.form-group label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-group input,
.form-group textarea {
  width: 100%;
  background: rgba(17, 24, 39, 0.6);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: all var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-glow);
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 2rem;
}

/* --- TOAST NOTIFICATIONS --- */
.toast-container {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 1100;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  pointer-events: none;
}

.toast {
  background: var(--bg-surface-elevated);
  border-left: 4px solid var(--color-primary);
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
  color: var(--text-primary);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.85rem 1.25rem;
  width: 320px;
  pointer-events: auto;
  animation: slideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.toast.success {
  border-left-color: var(--color-success);
}

.toast.error {
  border-left-color: var(--color-danger);
}

.toast-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1.15rem;
  line-height: 1;
}

.toast-close:hover {
  color: #fff;
}

/* --- FOOTER --- */
.app-footer {
  text-align: center;
  padding: 2.5rem 0 1rem;
  border-top: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.75rem;
  margin-top: auto;
}

/* --- ANIMATIONS --- */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes slideIn {
  from {
    transform: translateX(120%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes pulseUpdate {
  0% { transform: scale(1); }
  50% { transform: scale(1.02); box-shadow: 0 0 15px var(--color-primary-glow); }
  100% { transform: scale(1); }
}

.pulse-animation {
  animation: pulseUpdate 0.5s ease-out;
}

/* --- RESPONSIVE ADJUSTMENTS --- */
@media (max-width: 768px) {
  .app-container {
    padding: 1rem;
  }

  .app-header {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }

  .header-left {
    justify-content: space-between;
  }

  .slot-navigation {
    width: 100%;
  }

  .slot-tab {
    flex-grow: 1;
    min-width: unset;
  }

  .profile-widget {
    justify-content: flex-start;
    width: 100%;
  }
}

/* --- ADMIN SPECIFIC STYLINGS --- */
.admin-key-btn {
  background: transparent;
  border: 1px solid var(--border-color);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: var(--radius-round);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  width: 36px;
  height: 36px;
  user-select: none;
}

.admin-key-btn:hover,
.admin-key-btn.active {
  background: var(--color-primary-glow);
  border-color: var(--color-primary);
  box-shadow: 0 0 10px var(--color-primary-glow);
}

.profile-widget.admin-mode {
  border-color: rgba(168, 85, 247, 0.4);
  background: rgba(168, 85, 247, 0.08);
  box-shadow: 0 0 12px rgba(168, 85, 247, 0.1);
}

.profile-widget.admin-mode .profile-avatar {
  background: linear-gradient(135deg, #a855f7, #ec4899);
}

.profile-widget.admin-mode .profile-role {
  color: #d8b4fe;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.avatar-pill {
  position: relative;
  padding-right: 0.5rem;
  display: inline-flex;
  align-items: center;
}

.kick-btn {
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 0.25rem;
  transition: color var(--transition-fast);
  user-select: none;
}

.kick-btn:hover {
  color: var(--color-danger);
}

.admin-card-actions {
  display: flex;
  gap: 0.5rem;
  width: 100%;
}

.admin-card-actions .btn {
  flex: 1;
  padding: 0.65rem 0.5rem;
}

/* --- ATTENDEE DIRECTORY MODAL --- */
.directory-modal-content {
  max-width: 600px;
  width: 90%;
  display: flex;
  flex-direction: column;
  max-height: 85vh;
}

.directory-search-wrapper {
  margin-bottom: 1.25rem;
}

.directory-search-wrapper input {
  width: 100%;
  padding: 0.8rem 1.2rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.directory-search-wrapper input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.directory-list {
  flex: 1;
  overflow-y: auto;
  padding-right: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-height: 250px;
  max-height: calc(85vh - 160px);
}

/* Custom Scrollbar for Directory List */
.directory-list::-webkit-scrollbar {
  width: 6px;
}
.directory-list::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-sm);
}
.directory-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
}
.directory-list::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

.directory-empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.directory-item-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.directory-item-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.directory-item-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-primary-light);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 700;
  border: 1px solid rgba(99, 102, 241, 0.15);
}

.directory-item-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.directory-item-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.directory-item-email {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin: 0;
}

.directory-item-slots {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 0.75rem;
}

.directory-slot-reg {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(99, 102, 241, 0.05);
  border: 1px solid rgba(99, 102, 241, 0.1);
  padding: 0.4rem 0.6rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
}

.directory-slot-reg.empty {
  background: rgba(255, 255, 255, 0.02);
  border-color: transparent;
  color: var(--text-muted);
}

.slot-badge-mini {
  font-weight: 700;
  font-size: 0.7rem;
  text-transform: uppercase;
  color: var(--color-primary);
  background: rgba(99, 102, 241, 0.1);
  padding: 0.15rem 0.35rem;
  border-radius: var(--radius-xs);
  flex-shrink: 0;
}

.table-badge-mini {
  font-weight: 700;
  font-size: 0.7rem;
  color: var(--color-success);
  background: var(--color-success-light);
  padding: 0.15rem 0.35rem;
  border-radius: var(--radius-xs);
  border: 1px solid rgba(16, 185, 129, 0.1);
  flex-shrink: 0;
}

.session-title-mini {
  color: var(--text-primary);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

.directory-slot-reg.empty .session-title-mini {
  color: var(--text-muted);
}

.facilitator-badge-mini {
  font-size: 0.7rem;
  font-weight: 700;
  color: #a855f7;
  background: rgba(168, 85, 247, 0.1);
  padding: 0.15rem 0.35rem;
  border-radius: var(--radius-xs);
  border: 1px solid rgba(168, 85, 247, 0.15);
  flex-shrink: 0;
}

.directory-kick-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1;
  font-weight: 700;
  cursor: pointer;
  padding: 0 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--transition-fast);
  margin-left: auto;
}

.directory-kick-btn:hover {
  color: var(--color-danger);
}

.directory-delete-user-btn:hover {
  color: var(--color-danger) !important;
}

