/* ==========================================================================
   F&B FACEBOOK ADS CHỦ QUÁN - MASTER SUITE STYLESHEET
   Dark Slate + Warm Amber & F&B Flame Aesthetic
   ========================================================================== */

:root {
  /* Brand Palette */
  --bg-primary: #0a0e17;
  --bg-secondary: #111827;
  --bg-tertiary: #1a2234;
  --bg-card: #151d2d;
  --bg-card-hover: #1e293b;
  --bg-input: #0d131f;

  /* Accent Colors */
  --primary: #f97316;
  --primary-hover: #ea580c;
  --primary-glow: rgba(249, 115, 22, 0.25);
  --primary-subtle: rgba(249, 115, 22, 0.12);
  --amber-light: #fb923c;
  --gold: #f59e0b;

  /* Status Colors */
  --success: #10b981;
  --success-bg: rgba(16, 185, 129, 0.15);
  --danger: #ef4444;
  --danger-bg: rgba(239, 68, 68, 0.15);
  --warning: #f59e0b;
  --warning-bg: rgba(245, 158, 11, 0.15);
  --info: #38bdf8;
  --info-bg: rgba(56, 189, 248, 0.15);

  /* Typography Colors */
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-subtle: #64748b;
  --border-color: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(249, 115, 22, 0.5);

  /* Layout Constants */
  --header-height: 44px;
  --sidebar-width: 260px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);
  --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Global Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-main);
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  user-select: none;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #475569;
}

/* Frameless Window Bar */
.window-titlebar {
  height: var(--header-height);
  background-color: var(--bg-primary);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  -webkit-app-region: drag;
  z-index: 1000;
}

.window-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3px;
  color: var(--text-main);
}

.app-badge-logo {
  background: linear-gradient(135deg, var(--primary), #ef4444);
  color: #fff;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 700;
  box-shadow: 0 0 10px var(--primary-glow);
}

.window-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  -webkit-app-region: no-drag;
}

.win-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.win-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-main);
}

.win-btn.close:hover {
  background: #ef4444;
  color: white;
}

/* Main Layout Shell */
.app-container {
  display: flex;
  flex: 1;
  overflow: hidden;
  position: relative;
}

/* Sidebar */
.sidebar {
  width: var(--sidebar-width);
  background-color: var(--bg-secondary);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  padding: 16px 12px;
  gap: 8px;
  overflow-y: auto;
}

.sidebar-brand-card {
  padding: 14px 12px;
  background: linear-gradient(145deg, rgba(249, 115, 22, 0.1), rgba(17, 24, 39, 0.8));
  border: 1px solid rgba(249, 115, 22, 0.25);
  border-radius: var(--radius-md);
  margin-bottom: 8px;
}

.brand-meta h2 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.brand-meta p {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.4;
}

.nav-section-title {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-subtle);
  padding: 8px 12px 4px;
  font-weight: 700;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
}

.nav-item i {
  font-size: 15px;
  width: 20px;
  text-align: center;
}

.nav-item:hover {
  background-color: var(--bg-tertiary);
  color: var(--text-main);
}

.nav-item.active {
  background: linear-gradient(90deg, rgba(249, 115, 22, 0.2), rgba(249, 115, 22, 0.05));
  color: var(--primary);
  border-color: rgba(249, 115, 22, 0.3);
  font-weight: 600;
}

.nav-badge {
  margin-left: auto;
  font-size: 11px;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  background: var(--bg-tertiary);
  color: var(--text-muted);
}

.nav-item.active .nav-badge {
  background: var(--primary);
  color: #fff;
  font-weight: 700;
}

.sidebar-footer {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.progress-mini-card {
  padding: 10px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-sm);
  font-size: 11px;
}

.progress-labels {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
  color: var(--text-muted);
}

.progress-bar-bg {
  height: 6px;
  background: #334155;
  border-radius: 3px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), #10b981);
  width: 0%;
  transition: width 0.4s ease;
}

/* Content Area */
.main-content {
  flex: 1;
  background-color: var(--bg-primary);
  overflow-y: auto;
  padding: 32px 36px 48px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  user-select: text;
}

/* View Panels (Spacious Layout Structure) */
.view-panel {
  display: flex;
  flex-direction: column;
  gap: 32px;
  width: 100%;
}

/* Page Headers */
.view-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 22px;
}

.view-header h1 {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 12px;
}

.view-header p {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 6px;
  line-height: 1.5;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
  outline: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-hover));
  color: white;
  box-shadow: 0 2px 8px var(--primary-glow);
}

.btn-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--bg-tertiary);
  color: var(--text-main);
  border-color: var(--border-color);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-outline-primary {
  background: transparent;
  border-color: var(--primary);
  color: var(--primary);
}

.btn-outline-primary:hover {
  background: var(--primary-subtle);
}

.btn-sm {
  padding: 5px 10px;
  font-size: 12px;
}

/* Cards & Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  display: flex;
  align-items: center;
  gap: 18px;
  transition: var(--transition);
}

.stat-card:hover {
  border-color: rgba(249, 115, 22, 0.4);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.stat-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.stat-icon.orange {
  background: rgba(249, 115, 22, 0.15);
  color: var(--primary);
}

.stat-icon.green {
  background: var(--success-bg);
  color: var(--success);
}

.stat-icon.blue {
  background: var(--info-bg);
  color: var(--info);
}

.stat-icon.gold {
  background: var(--warning-bg);
  color: var(--gold);
}

.stat-icon.red {
  background: var(--danger-bg);
  color: var(--danger);
}

.stat-icon.purple {
  background: rgba(168, 85, 247, 0.15);
  color: #a855f7;
}

.stat-info h4 {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.stat-info .stat-value {
  font-size: 26px;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.2;
}

.stat-info .stat-desc {
  font-size: 12px;
  color: var(--text-subtle);
  margin-top: 6px;
}

/* Dashboard Principles Section */
.dashboard-principles {
  padding: 26px 28px;
  border-radius: var(--radius-lg);
}

.dashboard-principles h3 {
  font-size: 15px;
  font-weight: 800;
  color: var(--amber-light);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: 0.3px;
}

.principles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
}

.principle-item {
  background: var(--bg-tertiary);
  padding: 20px 22px;
  border-radius: var(--radius-md);
  border-left: 4px solid var(--primary);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.principle-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
  background: var(--bg-card-hover);
}

.principle-item.green { border-left-color: var(--success); }
.principle-item.gold { border-left-color: var(--warning); }
.principle-item.blue { border-left-color: var(--info); }

.principle-item h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.principle-item p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 0;
}

/* Dashboard Modules Directory */
.dashboard-modules-header {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.dashboard-modules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
  gap: 20px;
}

.module-card {
  cursor: pointer;
  padding: 22px 24px;
  border-radius: var(--radius-lg);
}

.module-card .stat-info h4 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  margin-bottom: 6px;
}

.module-card .module-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.4;
  margin-bottom: 6px;
}

.module-card .stat-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-top: 4px;
}

/* Filter Controls Bar */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  background: var(--bg-secondary);
  padding: 12px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.search-box {
  flex: 1;
  min-width: 220px;
  position: relative;
}

.search-box i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-subtle);
  font-size: 14px;
}

.search-input {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 8px 12px 8px 36px;
  color: var(--text-main);
  font-size: 13px;
  outline: none;
  transition: var(--transition);
}

.search-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--primary-glow);
}

.filter-select {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 8px 12px;
  color: var(--text-main);
  font-size: 13px;
  outline: none;
  cursor: pointer;
}

.filter-select:focus {
  border-color: var(--primary);
}

/* Lesson Cards List */
.lessons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 16px;
}

.lesson-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}

.lesson-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(249, 115, 22, 0.4);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.lesson-card.completed {
  border-left: 4px solid var(--success);
}

.lesson-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

.lesson-number-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  background: rgba(249, 115, 22, 0.15);
  color: var(--primary);
}

.lesson-badges {
  display: flex;
  gap: 6px;
}

.badge {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
}

.badge-basic { background: rgba(56, 189, 248, 0.15); color: #38bdf8; }
.badge-practical { background: rgba(245, 158, 11, 0.15); color: #f59e0b; }
.badge-advanced { background: rgba(168, 85, 247, 0.15); color: #c084fc; }
.badge-completed { background: var(--success-bg); color: var(--success); }

.lesson-title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text-main);
}

.lesson-module-tag {
  font-size: 11px;
  color: var(--text-subtle);
  display: flex;
  align-items: center;
  gap: 4px;
}

.lesson-summary-excerpt {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.lesson-card-footer {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--text-subtle);
}

.action-favorite-btn {
  background: transparent;
  border: none;
  color: var(--text-subtle);
  cursor: pointer;
  font-size: 14px;
  transition: var(--transition);
}

.action-favorite-btn.active {
  color: #ef4444;
}

/* Detail Modal / Drawer */
.modal-overlay {
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  z-index: 999;
  display: flex;
  justify-content: flex-end;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

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

.modal-drawer {
  width: min(850px, 92vw);
  height: 100%;
  background: var(--bg-secondary);
  border-left: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.6);
}

.modal-overlay.open .modal-drawer {
  transform: translateX(0);
}

.modal-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-tertiary);
}

.modal-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.detail-section {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 18px;
}

.detail-section h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--amber-light);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.detail-content {
  font-size: 13px;
  line-height: 1.6;
  color: #cbd5e1;
}

.detail-content p {
  margin-bottom: 10px;
}

.detail-content ul, .detail-content ol {
  padding-left: 20px;
  margin-bottom: 10px;
}

.detail-content li {
  margin-bottom: 6px;
}

.detail-content strong {
  color: var(--text-main);
}

/* Interactive Workspace in Modal */
.workspace-box {
  background: linear-gradient(145deg, rgba(249, 115, 22, 0.08), rgba(21, 29, 45, 0.95));
  border: 1px solid rgba(249, 115, 22, 0.3);
  border-radius: var(--radius-md);
  padding: 18px;
}

.workspace-box h3 {
  color: var(--primary);
}

.form-group {
  margin-bottom: 14px;
}

.form-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 6px;
}

.form-textarea {
  width: 100%;
  min-height: 120px;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 10px;
  color: var(--text-main);
  font-size: 13px;
  font-family: inherit;
  resize: vertical;
  outline: none;
}

.form-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--primary-glow);
}

/* Facebook Feed Mockup */
.fb-mockup {
  max-width: 520px;
  background: #242526;
  border-radius: 12px;
  border: 1px solid #3a3b3c;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  margin: 0 auto;
}

.fb-header {
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.fb-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #ef4444);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 15px;
}

.fb-meta h4 {
  font-size: 14px;
  color: #e4e6eb;
  font-weight: 600;
}

.fb-meta span {
  font-size: 11px;
  color: #b0b3b8;
  display: flex;
  align-items: center;
  gap: 4px;
}

.fb-body {
  padding: 0 14px 12px;
  font-size: 13px;
  line-height: 1.5;
  color: #e4e6eb;
  white-space: pre-line;
}

.fb-media {
  background: #18191a;
  height: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  border-top: 1px solid #3a3b3c;
  border-bottom: 1px solid #3a3b3c;
}

.fb-media-preview-icon {
  font-size: 48px;
  color: var(--primary);
  margin-bottom: 8px;
}

.fb-media-tag {
  background: rgba(0, 0, 0, 0.7);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 11px;
  color: #fff;
}

.fb-action-bar {
  padding: 10px 14px;
  background: #2a2b2c;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.fb-headline {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}

.fb-cta-btn {
  background: #0866ff;
  color: white;
  border: none;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

/* Calculator Layout */
.calculator-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

@media (max-width: 992px) {
  .calculator-container {
    grid-template-columns: 1fr;
  }
}

.calc-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.calc-panel-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--amber-light);
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 12px;
}

.preset-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.preset-pill {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
  cursor: pointer;
  transition: var(--transition);
  color: var(--text-muted);
}

.preset-pill:hover, .preset-pill.active {
  background: var(--primary-subtle);
  border-color: var(--primary);
  color: var(--primary);
}

.calc-input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.calc-input-group label {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
}

.calc-input-row {
  display: flex;
  align-items: center;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 6px 12px;
}

.calc-input-row:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--primary-glow);
}

.calc-input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-main);
  font-size: 16px;
  font-weight: 700;
  outline: none;
}

.calc-suffix {
  font-size: 12px;
  color: var(--text-subtle);
  font-weight: 600;
}

/* Calculator Output Results */
.result-card {
  background: linear-gradient(145deg, #131b2a, #0b111d);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.result-card.highlight {
  border-color: var(--primary);
  background: linear-gradient(145deg, rgba(249, 115, 22, 0.15), #0b111d);
}

.result-card.success {
  border-color: var(--success);
  background: linear-gradient(145deg, rgba(16, 185, 129, 0.15), #0b111d);
}

.result-label {
  font-size: 12px;
  color: var(--text-muted);
}

.result-value {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-main);
}

.result-sub {
  font-size: 11px;
  color: var(--text-subtle);
}

/* Decision Radar Widget */
.decision-radar {
  padding: 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 16px;
}

.decision-radar.scale {
  background: rgba(16, 185, 129, 0.12);
  border-color: var(--success);
}

.decision-radar.kill {
  background: rgba(239, 68, 68, 0.12);
  border-color: var(--danger);
}

.decision-radar.hold {
  background: rgba(245, 158, 11, 0.12);
  border-color: var(--warning);
}

.radar-icon {
  font-size: 28px;
}

.radar-text h4 {
  font-size: 15px;
  font-weight: 700;
}

.radar-text p {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Checklist Radar */
.checklist-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  transition: var(--transition);
  cursor: pointer;
}

.checklist-item:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.2);
}

.checklist-item.checked {
  border-color: var(--success);
  background: rgba(16, 185, 129, 0.05);
}

.check-box {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 2px solid var(--text-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
  flex-shrink: 0;
  transition: var(--transition);
}

.checklist-item.checked .check-box {
  background: var(--success);
  border-color: var(--success);
  color: white;
}

.check-content h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 4px;
}

.check-content p {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}

.check-warning {
  margin-top: 8px;
  font-size: 11px;
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.1);
  padding: 6px 10px;
  border-radius: 4px;
  border-left: 3px solid #ef4444;
}

/* Simulator Chat Room */
.simulator-container {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 20px;
  height: calc(100vh - 160px);
}

.scenario-list {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
}

.scenario-card {
  padding: 12px;
  border-radius: var(--radius-sm);
  background: var(--bg-tertiary);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
}

.scenario-card:hover {
  background: var(--bg-card-hover);
}

.scenario-card.active {
  border-color: var(--primary);
  background: var(--primary-subtle);
}

.scenario-card h4 {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
}

.scenario-card p {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

.chat-arena {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.chat-header {
  padding: 14px 20px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 12px;
}

.chat-stream {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.chat-bubble {
  max-width: 75%;
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 13px;
  line-height: 1.5;
}

.chat-bubble.customer {
  align-self: flex-start;
  background: #334155;
  color: #fff;
  border-bottom-left-radius: 4px;
}

.chat-bubble.merchant {
  align-self: flex-end;
  background: linear-gradient(135deg, var(--primary), var(--primary-hover));
  color: #fff;
  border-bottom-right-radius: 4px;
}

.simulator-options {
  padding: 16px 20px;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sim-choice-btn {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  text-align: left;
  color: var(--text-main);
  font-size: 13px;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.sim-choice-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--primary);
}

.sim-feedback-box {
  margin-top: 12px;
  padding: 14px;
  border-radius: var(--radius-md);
  font-size: 13px;
  line-height: 1.5;
}

/* Toast Notifications */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #1e293b;
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--primary);
  color: var(--text-main);
  padding: 12px 18px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 10px;
  transform: translateY(100px);
  opacity: 0;
  transition: var(--transition);
  z-index: 9999;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* ==========================================================================
   MCP (MODEL CONTEXT PROTOCOL) INTEGRATION STYLES
   ========================================================================== */

.mcp-subnav {
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 12px;
  margin-bottom: 20px;
}

.mcp-subnav-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
}

.mcp-subnav-btn:hover {
  background: var(--bg-tertiary);
  color: var(--text-main);
}

.mcp-subnav-btn.active {
  background: var(--primary-subtle);
  color: var(--primary);
  border-color: rgba(249, 115, 22, 0.3);
}

.mcp-banner-card {
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.08) 0%, rgba(17, 24, 39, 0.8) 100%);
  border: 1px solid rgba(249, 115, 22, 0.2);
  border-radius: var(--radius-lg);
  padding: 18px 24px;
  margin-bottom: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.mcp-banner-meta h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.mcp-banner-meta p {
  font-size: 13px;
  color: var(--text-muted);
}

.mcp-endpoint-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  padding: 6px 12px;
  border-radius: var(--radius-md);
}

.mcp-endpoint-input {
  background: transparent;
  border: none;
  color: #38bdf8;
  font-family: monospace;
  font-size: 13px;
  width: 280px;
  outline: none;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 6px;
}

.status-dot.online {
  background: var(--success);
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.8);
}

.status-dot.warning {
  background: var(--warning);
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.8);
}

.mcp-key-preview {
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  background: rgba(255, 255, 255, 0.06);
  padding: 3px 8px;
  border-radius: 4px;
  color: #fb923c;
  font-size: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.mcp-code-container {
  position: relative;
  background: #070a10;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-top: 12px;
}

.mcp-code-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.mcp-code-title {
  font-size: 12px;
  color: var(--text-subtle);
  font-family: monospace;
}

.mcp-code-block {
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  font-size: 12px;
  line-height: 1.6;
  color: #cbd5e1;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 380px;
  overflow-y: auto;
}

.mcp-guide-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.mcp-guide-tab-btn {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}

.mcp-guide-tab-btn:hover {
  color: var(--text-main);
  border-color: rgba(255, 255, 255, 0.2);
}

.mcp-guide-tab-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.mcp-playground-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 16px;
}

@media (max-width: 1024px) {
  .mcp-playground-grid {
    grid-template-columns: 1fr;
  }
}

.mcp-console-box {
  background: #06090e;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  height: 480px;
}

.mcp-console-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 12px;
}

.mcp-console-body {
  flex: 1;
  overflow-y: auto;
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  font-size: 12px;
  line-height: 1.5;
  color: #a5f3fc;
  background: transparent;
  border: none;
  resize: none;
  white-space: pre-wrap;
}

.mcp-secret-alert {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  margin: 16px 0;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.mcp-secret-alert i {
  color: var(--danger);
  font-size: 18px;
  margin-top: 2px;
}

.mcp-secret-display {
  background: #050811;
  border: 1px dashed var(--primary);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.mcp-secret-display input {
  background: transparent;
  border: none;
  color: #f97316;
  font-family: monospace;
  font-size: 13px;
  font-weight: 700;
  width: 100%;
  outline: none;
}

/* Utilities */
.text-orange { color: var(--primary); }
.text-green { color: var(--success); }
.text-red { color: var(--danger); }
.text-muted { color: var(--text-muted); }
.hidden { display: none !important; }

