/* OneX AI Playbook - Custom Styles */
:root {
  --onex-red: #E8001A;
  --onex-gray: #6B7280;
  --onex-dark: #1F2937;
  --onex-light: #F9FAFB;
  --onex-border: #E5E7EB;
  --sidebar-width: 260px;
}

* { box-sizing: border-box; }
body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; background: #F3F4F6; margin: 0; }

/* Login Screen */
#login-screen {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #1F2937;
  background-image: url('/static/login-bg.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}
#login-screen::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(17,24,39,0.80) 0%, rgba(232,0,26,0.35) 100%);
  z-index: 0;
}
.login-card {
  position: relative;
  z-index: 1;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 20px;
  padding: 48px 44px;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 32px 64px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.15);
}
.login-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 24px;
}
.login-logo img { height: 56px; display: block; }
.login-title { font-size: 22px; font-weight: 700; color: #1F2937; margin: 0 0 6px 0; text-align: center; width: 100%; display: block; }
.login-subtitle { font-size: 14px; color: #6B7280; margin: 0 0 28px 0; text-align: center; width: 100%; display: block; }
/* Thin red accent line below logo */
.login-logo::after {
  content: none;
}
.login-card-divider {
  width: 48px;
  height: 3px;
  background: var(--onex-red);
  border-radius: 2px;
  margin: 0 auto 20px;
}

.login-input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #E5E7EB;
  border-radius: 10px;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s;
}
.login-input:focus { border-color: var(--onex-red); }
.login-btn {
  width: 100%;
  padding: 13px;
  background: var(--onex-red);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 14px;
  transition: background 0.2s, transform 0.1s;
}
.login-btn:hover { background: #c8001a; transform: translateY(-1px); }
.login-error { color: var(--onex-red); font-size: 13px; margin-top: 8px; display: none; }

/* Main Layout */
#main-app { display: flex; min-height: 100vh; }

/* Sidebar */
.sidebar {
  width: var(--sidebar-width);
  background: #1F2937;
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  z-index: 100;
  overflow-y: auto;
}
.sidebar-header {
  padding: 24px 20px 20px;
  border-bottom: 1px solid #374151;
}
.sidebar-logo img { height: 40px; }
.sidebar-nav { flex: 1; padding: 12px 0; }
.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  color: #9CA3AF;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  border-left: 3px solid transparent;
}
.nav-item:hover { color: white; background: #374151; }
.nav-item.active { color: white; background: #374151; border-left-color: var(--onex-red); }
.nav-item i { width: 18px; text-align: center; font-size: 15px; }
.sidebar-footer {
  padding: 16px 20px;
  border-top: 1px solid #374151;
}
.user-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #9CA3AF;
  font-size: 13px;
}
.user-avatar {
  width: 32px;
  height: 32px;
  background: var(--onex-red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 12px;
}
.logout-btn {
  background: none;
  border: none;
  color: #9CA3AF;
  cursor: pointer;
  font-size: 13px;
  padding: 4px 8px;
  border-radius: 6px;
  transition: color 0.2s;
  margin-left: auto;
}
.logout-btn:hover { color: var(--onex-red); }

/* Main Content */
.main-content {
  margin-left: var(--sidebar-width);
  flex: 1;
  min-height: 100vh;
}
.page-header {
  background: white;
  border-bottom: 1px solid #E5E7EB;
  padding: 20px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.page-title { font-size: 20px; font-weight: 700; color: #1F2937; }
.page-subtitle { font-size: 13px; color: #6B7280; margin-top: 2px; }
.page-body { padding: 28px 32px; }

/* Stats Cards */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 28px;
}
.stat-card {
  background: white;
  border-radius: 12px;
  padding: 20px 24px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.07);
  display: flex;
  align-items: center;
  gap: 16px;
  border-left: 4px solid transparent;
  transition: transform 0.2s, box-shadow 0.2s;
}
.stat-card:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.stat-card.red { border-left-color: var(--onex-red); }
.stat-card.blue { border-left-color: #3B82F6; }
.stat-card.green { border-left-color: #10B981; }
.stat-card.purple { border-left-color: #8B5CF6; }
.stat-card.orange { border-left-color: #F59E0B; }
.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}
.stat-icon.red { background: #FEF2F2; color: var(--onex-red); }
.stat-icon.blue { background: #EFF6FF; color: #3B82F6; }
.stat-icon.green { background: #ECFDF5; color: #10B981; }
.stat-icon.purple { background: #F5F3FF; color: #8B5CF6; }
.stat-icon.orange { background: #FFFBEB; color: #F59E0B; }
.stat-value { font-size: 28px; font-weight: 800; color: #1F2937; }
.stat-label { font-size: 13px; color: #6B7280; margin-top: 2px; }

/* Dashboard Sections */
.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}
.card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.07);
  overflow: hidden;
}
.card-header {
  padding: 18px 24px;
  border-bottom: 1px solid #F3F4F6;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.card-title { font-size: 15px; font-weight: 700; color: #1F2937; }
.card-body { padding: 20px 24px; }

/* How To Use Section */
.how-to-steps { display: flex; flex-direction: column; gap: 12px; }
.how-step {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px;
  background: #F9FAFB;
  border-radius: 8px;
}
.step-num {
  width: 28px;
  height: 28px;
  background: var(--onex-red);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 12px;
  flex-shrink: 0;
}
.step-content { flex: 1; }
.step-title { font-size: 13px; font-weight: 600; color: #1F2937; }
.step-desc { font-size: 12px; color: #6B7280; margin-top: 2px; }

/* Components Table */
.components-table { width: 100%; border-collapse: collapse; }
.components-table th {
  text-align: left; font-size: 12px; font-weight: 600; color: #6B7280;
  padding: 8px 12px; background: #F9FAFB; border-bottom: 1px solid #E5E7EB;
  text-transform: uppercase; letter-spacing: 0.05em;
}
.components-table td { padding: 10px 12px; border-bottom: 1px solid #F3F4F6; font-size: 13px; color: #374151; }
.component-badge {
  display: inline-block; padding: 2px 8px; border-radius: 12px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.05em;
}
.component-badge.role { background: #FEF2F2; color: #991B1B; }
.component-badge.context { background: #EFF6FF; color: #1E40AF; }
.component-badge.task { background: #ECFDF5; color: #065F46; }
.component-badge.format { background: #F5F3FF; color: #5B21B6; }
.component-badge.constraints { background: #FFFBEB; color: #92400E; }

/* Activity Feed */
.activity-feed { display: flex; flex-direction: column; gap: 0; }
.activity-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #F3F4F6;
}
.activity-item:last-child { border-bottom: none; }
.activity-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-top: 5px;
  flex-shrink: 0;
}
.activity-dot.view { background: #3B82F6; }
.activity-dot.copy { background: #10B981; }
.activity-dot.submit { background: #8B5CF6; }
.activity-dot.login { background: #F59E0B; }
.activity-text { font-size: 13px; color: #374151; }
.activity-time { font-size: 11px; color: #9CA3AF; margin-top: 2px; }

/* Prompt Library */
.filters-bar {
  background: white;
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.07);
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}
.filter-input {
  flex: 1;
  min-width: 200px;
  padding: 9px 14px;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}
.filter-input:focus { border-color: var(--onex-red); }
.filter-select {
  padding: 9px 14px;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  font-size: 13px;
  color: #374151;
  background: white;
  cursor: pointer;
  outline: none;
}
.filter-select:focus { border-color: var(--onex-red); }
.filter-clear-btn {
  padding: 9px 16px;
  background: #F3F4F6;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  font-size: 13px;
  color: #6B7280;
  cursor: pointer;
  transition: all 0.2s;
}
.filter-clear-btn:hover { background: #E5E7EB; }
.results-count { font-size: 13px; color: #6B7280; }

/* Prompt Cards */
.prompt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 16px;
}
.prompt-card {
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.07);
  border: 1px solid #F3F4F6;
  transition: box-shadow 0.2s, transform 0.2s;
  cursor: pointer;
}
.prompt-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.1); transform: translateY(-2px); }
.prompt-card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.category-tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  flex-shrink: 0;
}
.cat-ci { background: #FEF2F2; color: #991B1B; }
.cat-rg { background: #EFF6FF; color: #1E40AF; }
.cat-pm { background: #ECFDF5; color: #065F46; }
.cat-eo { background: #F5F3FF; color: #5B21B6; }
.cat-da { background: #FFFBEB; color: #92400E; }
.cat-od { background: #F0FDF4; color: #166534; }
.cat-ic { background: #FFF1F2; color: #9F1239; }
.cat-ai { background: #EFF6FF; color: #1D4ED8; }
.cat-cm { background: #FDF4FF; color: #7E22CE; }
.cat-gen { background: #F3F4F6; color: #374151; }
.prompt-scenario { font-size: 15px; font-weight: 700; color: #1F2937; margin-bottom: 6px; }
.prompt-role { font-size: 12px; color: #6B7280; margin-bottom: 10px; }
.prompt-when {
  font-size: 12px;
  color: #374151;
  background: #F9FAFB;
  padding: 8px 10px;
  border-radius: 6px;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.prompt-stats { display: flex; gap: 16px; margin-top: 12px; }
.prompt-stat { display: flex; align-items: center; gap: 5px; font-size: 12px; color: #9CA3AF; }
.prompt-stat i { font-size: 11px; }
.view-prompt-btn {
  display: block;
  width: 100%;
  padding: 9px;
  background: var(--onex-red);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: background 0.2s;
  margin-top: 12px;
}
.view-prompt-btn:hover { background: #c8001a; }

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
  backdrop-filter: blur(4px);
}
.modal {
  background: white;
  border-radius: 16px;
  max-width: 760px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px rgba(0,0,0,0.25);
}
.modal-header {
  padding: 24px 28px;
  border-bottom: 1px solid #E5E7EB;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  position: sticky;
  top: 0;
  background: white;
  z-index: 1;
}
.modal-title { font-size: 18px; font-weight: 700; color: #1F2937; }
.modal-close {
  width: 32px; height: 32px;
  background: #F3F4F6;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #6B7280;
  flex-shrink: 0;
  transition: background 0.2s;
}
.modal-close:hover { background: #E5E7EB; }
.modal-body { padding: 24px 28px; }
.modal-section { margin-bottom: 24px; }
.modal-section-title {
  font-size: 12px;
  font-weight: 700;
  color: #6B7280;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}
.prompt-text-box {
  background: #F9FAFB;
  border: 1px solid #E5E7EB;
  border-radius: 10px;
  padding: 16px;
  font-size: 13px;
  color: #374151;
  white-space: pre-wrap;
  line-height: 1.7;
  max-height: 280px;
  overflow-y: auto;
  font-family: 'Monaco', 'Menlo', monospace;
}
.copy-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: #1F2937;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  margin-top: 10px;
}
.copy-btn:hover { background: #374151; }
.copy-btn.success { background: #10B981; }

/* Reusable Prompt Bank */
.reusable-card {
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.07);
  border: 1px solid #F3F4F6;
  margin-bottom: 16px;
  transition: box-shadow 0.2s;
}
.reusable-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.reusable-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 10px; }
.reusable-meta { display: flex; align-items: center; gap: 12px; }
.contributor-avatar {
  width: 36px;
  height: 36px;
  background: var(--onex-red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
}
.contributor-name { font-size: 14px; font-weight: 600; color: #1F2937; }
.contributor-scenario { font-size: 12px; color: #6B7280; margin-top: 2px; }
.prompt-preview {
  font-size: 13px;
  color: #374151;
  background: #F9FAFB;
  padding: 12px 14px;
  border-radius: 8px;
  margin: 12px 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.6;
}
.reusable-actions { display: flex; gap: 8px; margin-top: 12px; }
.btn-sm {
  padding: 7px 14px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 5px;
}
.btn-primary { background: var(--onex-red); color: white; }
.btn-primary:hover { background: #c8001a; }
.btn-secondary { background: #F3F4F6; color: #374151; }
.btn-secondary:hover { background: #E5E7EB; }
.btn-outline { background: white; border: 1px solid #E5E7EB; color: #374151; }
.btn-outline:hover { background: #F9FAFB; }

/* Submit Prompt Form */
.submit-form {
  background: white;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.07);
  margin-bottom: 24px;
  border: 2px dashed #E5E7EB;
  transition: border-color 0.2s;
}
.submit-form.expanded { border-style: solid; border-color: var(--onex-red); }
.form-label { font-size: 13px; font-weight: 600; color: #374151; margin-bottom: 6px; display: block; }
.form-input, .form-textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  font-size: 14px;
  color: #374151;
  outline: none;
  transition: border-color 0.2s;
  font-family: inherit;
}
.form-input:focus, .form-textarea:focus { border-color: var(--onex-red); }
.form-textarea { min-height: 120px; resize: vertical; }
.form-group { margin-bottom: 16px; position: relative; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* Prompt Builder */
.builder-section {
  background: white;
  border-radius: 12px;
  padding: 28px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.07);
  margin-bottom: 24px;
}
.builder-component { margin-bottom: 20px; }
.component-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.component-label {
  font-size: 13px;
  font-weight: 700;
  color: #1F2937;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.component-hint {
  font-size: 12px;
  color: #6B7280;
  padding: 6px 10px;
  background: #F9FAFB;
  border-radius: 6px;
  margin-bottom: 8px;
  border-left: 3px solid #E5E7EB;
}
.component-required { color: var(--onex-red); font-size: 12px; }
.generated-prompt {
  background: #1F2937;
  color: #D1FAE5;
  padding: 20px;
  border-radius: 10px;
  font-family: 'Monaco', 'Menlo', monospace;
  font-size: 13px;
  white-space: pre-wrap;
  line-height: 1.7;
  min-height: 120px;
  max-height: 380px;
  overflow-y: auto;
}
.refine-banner {
  background: linear-gradient(135deg, #3B82F6, #1D4ED8);
  color: white;
  padding: 16px 20px;
  border-radius: 10px;
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.refine-banner-text { flex: 1; }
.refine-banner-title { font-size: 14px; font-weight: 700; }
.refine-banner-desc { font-size: 12px; opacity: 0.85; margin-top: 3px; }
.refine-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  background: white;
  color: #1D4ED8;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s;
  flex-shrink: 0;
}
.refine-link:hover { background: #EFF6FF; }

/* Chart containers */
.chart-container { position: relative; height: 230px; }

/* Contributor List */
.contributor-list { display: flex; flex-direction: column; gap: 8px; }
.contributor-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: #F9FAFB;
  border-radius: 8px;
}
.contributor-info { display: flex; align-items: center; gap: 10px; }
.contributor-mini-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--onex-red);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 10px;
  font-weight: 700;
}
.contributor-row-name { font-size: 13px; color: #1F2937; font-weight: 500; }
.contribution-badge {
  background: var(--onex-red);
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
}

/* Notification toast */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #1F2937;
  color: white;
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 8px;
  transform: translateY(80px);
  opacity: 0;
  transition: all 0.3s ease;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast.success { background: #10B981; }
.toast.error { background: #EF4444; }

/* Pill tabs */
.tabs {
  display: flex;
  gap: 4px;
  background: #F3F4F6;
  padding: 4px;
  border-radius: 10px;
  margin-bottom: 20px;
  width: fit-content;
}
.tab {
  padding: 8px 18px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  color: #6B7280;
  transition: all 0.2s;
  border: none;
  background: none;
}
.tab.active { background: white; color: #1F2937; box-shadow: 0 1px 3px rgba(0,0,0,0.1); }

/* Empty state */
.empty-state {
  text-align: center;
  padding: 48px 20px;
  color: #9CA3AF;
}
.empty-state i { font-size: 40px; margin-bottom: 12px; }
.empty-state p { font-size: 14px; }

/* Badge */
.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
}
.badge-red { background: #FEF2F2; color: var(--onex-red); }
.badge-blue { background: #EFF6FF; color: #1D4ED8; }
.badge-green { background: #ECFDF5; color: #065F46; }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #F3F4F6; }
::-webkit-scrollbar-thumb { background: #D1D5DB; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #9CA3AF; }

/* Responsive */
@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); }
  .main-content { margin-left: 0; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .prompt-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

.hidden { display: none !important; }

/* Safe use banner */
.safe-banner {
  background: #FFFBEB;
  border: 1px solid #FCD34D;
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 13px;
  color: #92400E;
  margin-bottom: 20px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.safe-banner i { color: #D97706; margin-top: 1px; flex-shrink: 0; }

/* ===== ASK #2 NEW STYLES ===== */

/* Password toggle button */
.pass-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: #9CA3AF;
  font-size: 14px;
  padding: 4px;
  line-height: 1;
  z-index: 2;
}
.pass-toggle:hover { color: #6B7280; }

/* Admin badge in sidebar */
.admin-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 10px;
  background: var(--onex-red);
  color: white;
  padding: 2px 6px;
  border-radius: 8px;
  font-weight: 700;
  margin-left: 4px;
  vertical-align: middle;
}

/* First-login setup section containers */
.setup-section {
  background: #F9FAFB;
  border-radius: 10px;
  padding: 16px;
  border: 1px solid #E5E7EB;
  margin-bottom: 4px;
}
.setup-section-label {
  font-size: 13px;
  font-weight: 700;
  color: #1F2937;
  margin-bottom: 10px;
  display: block;
}

/* "You" badge on own prompts */
.my-badge {
  display: inline-block;
  font-size: 10px;
  background: #EFF6FF;
  color: #1D4ED8;
  padding: 1px 6px;
  border-radius: 8px;
  font-weight: 600;
  margin-left: 6px;
  vertical-align: middle;
}

/* Edit / Delete action buttons */
.btn-edit {
  background: #EFF6FF;
  color: #1D4ED8;
  border: 1px solid #BFDBFE;
}
.btn-edit:hover { background: #DBEAFE; }

.btn-delete {
  background: #FEF2F2;
  color: #DC2626;
  border: 1px solid #FECACA;
}
.btn-delete:hover { background: #FEE2E2; }

/* Plain text link button (e.g. "Forgot password?") */
.text-link-btn {
  background: none;
  border: none;
  color: #6B7280;
  font-size: 13px;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
  font-family: inherit;
}
.text-link-btn:hover { color: var(--onex-red); }

/* Admin Panel table */
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.admin-table th {
  text-align: left;
  padding: 10px 14px;
  background: #F9FAFB;
  border-bottom: 2px solid #E5E7EB;
  font-size: 12px;
  font-weight: 700;
  color: #6B7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.admin-table td {
  padding: 11px 14px;
  border-bottom: 1px solid #F3F4F6;
  color: #374151;
  vertical-align: middle;
}
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: #FAFAFA; }

/* Password-reset modal */
.reset-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 20px;
  backdrop-filter: blur(3px);
}
.reset-modal {
  background: white;
  border-radius: 14px;
  padding: 28px;
  max-width: 400px;
  width: 100%;
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}
.reset-modal h3 {
  font-size: 17px;
  font-weight: 700;
  color: #1F2937;
  margin: 0 0 8px;
}
.reset-modal p {
  font-size: 13px;
  color: #6B7280;
  margin: 0 0 20px;
  line-height: 1.6;
}
.reset-modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

/* Strength bar for password */
.strength-bar {
  height: 4px;
  border-radius: 2px;
  background: #E5E7EB;
  margin-top: 6px;
  overflow: hidden;
}
.strength-bar-fill {
  height: 100%;
  border-radius: 2px;
  transition: width 0.3s, background 0.3s;
}

/* ===== AI TOOL RECOMMENDATION BADGES ===== */
.tool-row {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin-top: 10px;
  margin-bottom: 6px;
  align-items: center;
}
.tool-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid;
  transition: all 0.18s ease;
  cursor: pointer;
  line-height: 1.4;
  white-space: nowrap;
}
.tool-badge:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(0,0,0,0.14);
  text-decoration: none;
}
.tool-badge.copilot {
  background: #EFF6FF;
  color: #0078D4;
  border-color: #BFDBFE;
}
.tool-badge.copilot:hover {
  background: #DBEAFE;
}
.tool-badge.chatgpt {
  background: #F0FDF4;
  color: #10A37F;
  border-color: #BBF7D0;
}
.tool-badge.chatgpt:hover {
  background: #DCFCE7;
}
.tool-badge.claude {
  background: #FAF5FF;
  color: #7C3AED;
  border-color: #E9D5FF;
}
.tool-badge.claude:hover {
  background: #F3E8FF;
}
.tool-badge.gemini {
  background: #FFF7ED;
  color: #EA4335;
  border-color: #FED7AA;
}
.tool-badge.gemini:hover {
  background: #FFEDD5;
}
.tool-badge.primary-tool {
  font-weight: 700;
}
.tool-badge svg {
  flex-shrink: 0;
}

/* ===== VIEWER ADMIN BADGE ===== */
.viewer-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 10px;
  background: #3B82F6;
  color: white;
  padding: 2px 7px;
  border-radius: 10px;
  font-weight: 700;
  margin-left: 4px;
  vertical-align: middle;
  letter-spacing: 0.02em;
}
