/* Extreme Efficiency Dark Theme - Desktop 4 Columns & Mobile 2 Columns */
:root {
  --bg-app: #0b0f19;
  --bg-card: #131b2e;
  --bg-card-hover: #17223b;
  --bg-header: #0f172a;
  --border-color: #1e293b;
  --border-subtle: #26334d;
  
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  --color-primary: #06b6d4;
  --color-primary-hover: #0891b2;
  
  /* 5 Stage Colors */
  --stage-idea-bg: #2e1065;
  --stage-idea-text: #d8b4fe;
  --stage-idea-border: #7e22ce;

  --stage-just-started-bg: #172554;
  --stage-just-started-text: #93c5fd;
  --stage-just-started-border: #2563eb;

  --stage-in-progress-bg: #431407;
  --stage-in-progress-text: #fdba74;
  --stage-in-progress-border: #ea580c;

  --stage-polishing-bg: #422006;
  --stage-polishing-text: #fde047;
  --stage-polishing-border: #ca8a04;

  --stage-launch-bg: #064e3b;
  --stage-launch-text: #6ee7b7;
  --stage-launch-border: #059669;

  /* 4 Idea Status Colors */
  --idea-chua-bg: #1e293b;
  --idea-chua-text: #cbd5e1;
  --idea-chua-border: #475569;

  --idea-dang-bg: #3b2005;
  --idea-dang-text: #fcd34d;
  --idea-dang-border: #d97706;

  --idea-xong-bg: #022c22;
  --idea-xong-text: #86efac;
  --idea-xong-border: #15803d;

  --idea-loai-bg: #380716;
  --idea-loai-text: #fca5a5;
  --idea-loai-border: #be123c;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-app);
  color: var(--text-main);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 13px;
  line-height: 1.35;
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* =========================================
   HEADER & STATS BAR
   ========================================= */
.app-header {
  background: var(--bg-header);
  border-bottom: 1px solid var(--border-color);
  padding: 5px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-shrink: 0;
}

.brand-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-icon { font-size: 18px; }

.brand-text h1 {
  font-size: 13.5px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.2px;
  white-space: nowrap;
}

.brand-text .subtext {
  font-size: 9.5px;
  color: var(--text-dim);
  font-family: 'JetBrains Mono', monospace;
  display: block;
}

.stats-bar {
  display: flex;
  align-items: center;
  gap: 5px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 2px;
}
.stats-bar::-webkit-scrollbar { display: none; }

.stat-chip {
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 10.5px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  user-select: none;
  transition: all 0.1s;
}

.stat-chip:hover {
  transform: translateY(-1px);
  filter: brightness(1.15);
}

.stat-chip.active {
  box-shadow: 0 0 0 2px #fff;
}

.stat-all { background: #1e293b; color: #cbd5e1; border-color: #334155; }
.stat-idea { background: var(--stage-idea-bg); color: var(--stage-idea-text); border-color: var(--stage-idea-border); }
.stat-just-started { background: var(--stage-just-started-bg); color: var(--stage-just-started-text); border-color: var(--stage-just-started-border); }
.stat-in-progress { background: var(--stage-in-progress-bg); color: var(--stage-in-progress-text); border-color: var(--stage-in-progress-border); }
.stat-polishing { background: var(--stage-polishing-bg); color: var(--stage-polishing-text); border-color: var(--stage-polishing-border); }
.stat-launch { background: var(--stage-launch-bg); color: var(--stage-launch-text); border-color: var(--stage-launch-border); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.sync-pill {
  font-size: 10px;
  color: #10b981;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 2px 6px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.sync-dot {
  width: 5px;
  height: 5px;
  background: #10b981;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { opacity: 0.4; }
  50% { opacity: 1; }
  100% { opacity: 0.4; }
}

/* =========================================
   CONTROL & FILTER BAR
   ========================================= */
.control-bar {
  background: #0d1322;
  border-bottom: 1px solid var(--border-color);
  padding: 5px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.search-box {
  position: relative;
  flex: 1;
  min-width: 140px;
  max-width: 320px;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 7px;
  font-size: 10.5px;
  color: var(--text-dim);
  pointer-events: none;
}

.search-box input {
  width: 100%;
  background: #141c2e;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  color: #fff;
  padding: 4px 20px 4px 24px;
  font-size: 11.5px;
  outline: none;
}

.search-box input:focus {
  border-color: var(--color-primary);
  background: #182238;
}

.btn-icon {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 2px 5px;
  border-radius: 3px;
  font-size: 11px;
}

.btn-icon:hover { color: #fff; background: #26334d; }

.filters-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 4px;
}

.filter-group label {
  font-size: 10.5px;
  color: var(--text-dim);
  white-space: nowrap;
}

.filter-group select {
  background: #141c2e;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  color: var(--text-main);
  padding: 3px 5px;
  font-size: 11px;
  outline: none;
  cursor: pointer;
}

/* =========================================
   BUTTONS
   ========================================= */
.btn {
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.1s;
  white-space: nowrap;
}

.btn-primary { background: var(--color-primary); color: #042f2e; }
.btn-primary:hover { background: var(--color-primary-hover); color: #fff; }
.btn-secondary { background: #1e293b; color: var(--text-main); border: 1px solid var(--border-color); }
.btn-secondary:hover { background: #27354f; }
.btn-sm { font-size: 11px; padding: 3px 7px; }
.btn-xs { font-size: 10px; padding: 2px 6px; }

/* =========================================
   QUICK ADD SECTION
   ========================================= */
.quick-add-section {
  background: #131c30;
  border-bottom: 2px solid var(--color-primary);
  padding: 6px 12px;
  flex-shrink: 0;
}

.quick-add-form .form-row {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  flex-wrap: wrap;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.form-field label {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
}

.form-field input, .form-field select {
  background: #0b0f19;
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  color: #fff;
  padding: 4px 6px;
  font-size: 11px;
  outline: none;
}

.form-field input:focus, .form-field select:focus {
  border-color: var(--color-primary);
}

.cat-input-group { display: flex; gap: 2px; }
.cat-field { width: 130px; }
.name-field { flex: 2; min-width: 160px; }
.stage-field { width: 160px; }
.tags-field { flex: 1; min-width: 120px; }
.idea-field { flex: 2; min-width: 180px; }

.form-actions { display: flex; gap: 4px; margin-top: 2px; }

/* =========================================
   MATRIX BOARD LAYOUT
   ========================================= */
.matrix-container {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  background: var(--bg-app);
  display: flex;
  flex-direction: column;
}

/* DESKTOP HEADER (4 COLUMNS) */
.matrix-header-desktop {
  display: grid;
  grid-template-columns: 14% 25% 16% 45%;
  background: #0f172a;
  border-bottom: 2px solid #26334d;
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hdr-col {
  padding: 6px 10px;
  font-size: 10.5px;
  font-weight: 700;
  color: #94a3b8;
  letter-spacing: 0.5px;
}

/* MOBILE HEADER (2 COLUMNS) - Hidden on desktop */
.matrix-header-mobile {
  display: none;
}

.matrix-rows-container {
  display: flex;
  flex-direction: column;
}

/* =========================================
   ROW ARCHITECTURE (DISPLAY: CONTENTS TRICK)
   ========================================= */
.matrix-row {
  display: grid;
  grid-template-columns: 14% 25% 16% 45%;
  border-bottom: 1px solid var(--border-color);
  transition: background-color 0.1s;
}

.matrix-row:hover {
  background-color: rgba(30, 41, 59, 0.4);
}

/* Desktop: .col-meta-wrapper unwraps using display: contents */
.col-meta-wrapper {
  display: contents;
}

.cell-category {
  padding: 6px 10px;
  vertical-align: top;
}

.cell-project {
  padding: 6px 10px;
  vertical-align: top;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.cell-tags {
  padding: 6px 10px;
  vertical-align: top;
}

.cell-ideas {
  padding: 6px 10px;
  vertical-align: top;
}

/* =========================================
   ELEMENTS STYLING
   ========================================= */
.cat-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 10.5px;
  font-weight: 600;
  background: #1e293b;
  color: #94a3b8;
  border: 1px solid #334155;
  white-space: nowrap;
}

.cat-badge.cat-ai { background: rgba(168, 85, 247, 0.15); color: #c084fc; border-color: rgba(168, 85, 247, 0.3); }
.cat-badge.cat-desktop { background: rgba(59, 130, 246, 0.15); color: #60a5fa; border-color: rgba(59, 130, 246, 0.3); }
.cat-badge.cat-web { background: rgba(6, 182, 212, 0.15); color: #22d3ee; border-color: rgba(6, 182, 212, 0.3); }
.cat-badge.cat-game { background: rgba(236, 72, 153, 0.15); color: #f472b6; border-color: rgba(236, 72, 153, 0.3); }
.cat-badge.cat-edu { background: rgba(34, 197, 94, 0.15); color: #4ade80; border-color: rgba(34, 197, 94, 0.3); }
.cat-badge.cat-marketing { background: rgba(249, 115, 22, 0.15); color: #fb923c; border-color: rgba(249, 115, 22, 0.3); }
.cat-badge.cat-util { background: rgba(148, 163, 184, 0.15); color: #cbd5e1; border-color: rgba(148, 163, 184, 0.3); }

.cat-select-inline {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 3px;
  color: inherit;
  font-size: 10.5px;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  padding: 1px;
}

.cat-select-inline:hover, .cat-select-inline:focus {
  border-color: #38bdf8;
  background: #0f172a;
}

.proj-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
}

.proj-title {
  font-weight: 700;
  color: #fff;
  font-size: 12.5px;
  letter-spacing: -0.1px;
}

.proj-folder {
  font-size: 9.5px;
  color: var(--text-dim);
  font-family: 'JetBrains Mono', monospace;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stage-select {
  padding: 2px 5px;
  border-radius: 4px;
  font-size: 10.5px;
  font-weight: 600;
  outline: none;
  cursor: pointer;
  width: 100%;
  border: 1px solid transparent;
}

.stage-select[data-stage="Idea / Conceptual"] {
  background: var(--stage-idea-bg); color: var(--stage-idea-text); border-color: var(--stage-idea-border);
}
.stage-select[data-stage="Just Started / Inception"] {
  background: var(--stage-just-started-bg); color: var(--stage-just-started-text); border-color: var(--stage-just-started-border);
}
.stage-select[data-stage="In Progress - Expanding"] {
  background: var(--stage-in-progress-bg); color: var(--stage-in-progress-text); border-color: var(--stage-in-progress-border);
}
.stage-select[data-stage="Near Complete - Polishing"] {
  background: var(--stage-polishing-bg); color: var(--stage-polishing-text); border-color: var(--stage-polishing-border);
}
.stage-select[data-stage="Ready for Promotion / Launch"] {
  background: var(--stage-launch-bg); color: var(--stage-launch-text); border-color: var(--stage-launch-border);
}

.tags-wrapper {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 3px;
}

.tag-chip {
  background: #172033;
  color: #93c5fd;
  border: 1px solid #1e293b;
  border-radius: 3px;
  padding: 1px 4px;
  font-size: 10px;
  font-family: 'JetBrains Mono', monospace;
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.tag-delete { cursor: pointer; color: var(--text-dim); font-size: 11px; }
.tag-delete:hover { color: #f87171; }

.tag-add-btn {
  background: transparent;
  border: 1px dashed #334155;
  color: #64748b;
  border-radius: 3px;
  padding: 1px 4px;
  font-size: 9.5px;
  cursor: pointer;
}
.tag-add-btn:hover { border-color: var(--color-primary); color: #fff; }

.tag-input-inline {
  width: 55px;
  background: #0f172a;
  border: 1px solid var(--color-primary);
  color: #fff;
  font-size: 9.5px;
  padding: 1px 3px;
  border-radius: 3px;
  outline: none;
}

/* IDEAS & STATUS COLUMN */
.ideas-wrapper {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.idea-row {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 2px 4px;
  border-radius: 3px;
  background: rgba(15, 23, 42, 0.4);
}
.idea-row:hover { background: rgba(30, 41, 59, 0.6); }

.idea-status-btn {
  padding: 1px 5px;
  border-radius: 3px;
  font-size: 9.5px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  user-select: none;
  flex-shrink: 0;
}

.status-chua { background: var(--idea-chua-bg); color: var(--idea-chua-text); border-color: var(--idea-chua-border); }
.status-dang { background: var(--idea-dang-bg); color: var(--idea-dang-text); border-color: var(--idea-dang-border); }
.status-xong { background: var(--idea-xong-bg); color: var(--idea-xong-text); border-color: var(--idea-xong-border); }
.status-loai { background: var(--idea-loai-bg); color: var(--idea-loai-text); border-color: var(--idea-loai-border); }

.idea-text {
  flex: 1;
  color: #e2e8f0;
  font-size: 11.5px;
  word-break: break-word;
}
.idea-text.done { text-decoration: line-through; color: #64748b; }
.idea-text.discarded { text-decoration: line-through; color: #ef4444; opacity: 0.7; }

.idea-delete-btn {
  opacity: 0;
  background: transparent;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  padding: 1px 4px;
  font-size: 11px;
}
.idea-row:hover .idea-delete-btn { opacity: 1; }
.idea-delete-btn:hover { color: #f87171; }

.idea-add-inline {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  padding-top: 5px;
  border-top: 1px dashed #22304a;
}

.idea-add-inline input {
  flex: 1;
  background: #141d2e;
  border: 1px solid #334155;
  color: #fff;
  padding: 5px 8px;
  font-size: 11.5px;
  border-radius: 4px;
  outline: none;
  transition: all 0.15s;
}
.idea-add-inline input:focus {
  border-color: var(--color-primary);
  background: #1a253a;
  box-shadow: 0 0 0 2px rgba(6, 182, 212, 0.25);
}

.idea-add-inline button {
  background: var(--color-primary);
  border: none;
  color: #042f2e;
  font-weight: 700;
  font-size: 11px;
  padding: 5px 10px;
  border-radius: 4px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s;
  display: flex;
  align-items: center;
  gap: 2px;
}
.idea-add-inline button:hover {
  background: var(--color-primary-hover);
  color: #fff;
}
.idea-add-inline button:active {
  transform: scale(0.95);
}

/* ==========================================================
   MOBILE RESPONSIVE 2-COLUMN VIEW (<= 768px)
   GỘP 3 CỘT TRÁI (Category + Project/Stage + Tags) THÀNH 1 CỘT
   ========================================================== */
@media (max-width: 768px) {
  .app-header {
    flex-wrap: wrap;
    padding: 4px 8px;
    gap: 6px;
  }
  .brand-text h1 { font-size: 12px; }
  .control-bar {
    flex-direction: column;
    align-items: stretch;
    padding: 6px 8px;
    gap: 6px;
  }
  .search-box { max-width: 100%; }
  .filters-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 4px;
    width: 100%;
  }
  .filter-group { flex-direction: column; align-items: flex-start; gap: 1px; }
  .filter-group select { width: 100%; font-size: 10px; padding: 2px 3px; }

  /* HIDE DESKTOP 4-COLUMN HEADER */
  .matrix-header-desktop {
    display: none;
  }

  /* SHOW MOBILE 2-COLUMN HEADER */
  .matrix-header-mobile {
    display: grid;
    grid-template-columns: 42% 58%;
    background: #0f172a;
    border-bottom: 2px solid #26334d;
    position: sticky;
    top: 0;
    z-index: 10;
  }

  .hdr-m-col {
    padding: 5px 8px;
    font-size: 9.5px;
    font-weight: 700;
    color: #94a3b8;
    letter-spacing: 0.3px;
  }
  .hdr-m-right {
    border-left: 1px solid #1e293b;
  }

  /* MOBILE ROW: EXACTLY 2 COLUMNS */
  .matrix-row {
    display: grid;
    grid-template-columns: 42% 58%;
    padding: 6px 0;
    border-bottom: 1px solid var(--border-color);
  }

  /* WRAP 3 LEFT CELLS INTO ONE UNIFIED VERTICAL CARD */
  .col-meta-wrapper {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 0 6px;
    border-right: 1px solid var(--border-subtle);
  }

  .cell-category {
    padding: 0;
    margin-bottom: 1px;
  }
  .cell-category .cat-badge {
    font-size: 9.5px;
    padding: 1px 4px;
  }

  .cell-project {
    padding: 0;
    gap: 2px;
  }
  .proj-title { font-size: 11.5px; }
  .proj-folder { display: none; /* Hide local path on mobile for extreme compactness */ }
  .stage-select { font-size: 9.5px; padding: 1px 3px; }

  .cell-tags {
    padding: 0;
    margin-top: 2px;
  }
  .tag-chip { font-size: 9px; padding: 0 3px; }

  .cell-ideas {
    padding: 0 6px;
  }
  .idea-text { font-size: 11px; }
  .idea-status-btn { font-size: 8.5px; padding: 1px 4px; }
  .idea-add-inline input { font-size: 9.5px; padding: 2px 4px; }
}

/* =========================================
   EMPTY STATE & TOAST
   ========================================= */
.empty-state {
  padding: 40px 16px;
  text-align: center;
  color: var(--text-muted);
}
.empty-icon { font-size: 32px; margin-bottom: 6px; }
.empty-state h3 { font-size: 13px; color: #fff; margin-bottom: 3px; }
.empty-state p { font-size: 11.5px; color: var(--text-dim); }

.toast {
  position: fixed;
  bottom: 12px;
  right: 12px;
  background: #1e293b;
  color: #fff;
  border-left: 4px solid var(--color-primary);
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 11.5px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
  transform: translateY(60px);
  opacity: 0;
  transition: all 0.2s ease;
  z-index: 1000;
  pointer-events: none;
}
.toast.show { transform: translateY(0); opacity: 1; }
.hidden { display: none !important; }


/* =========================================
   MODAL: IMPORT HUB & 5 PRESETS
   ========================================= */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  animation: fadeIn 0.15s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-dialog {
  background: #111827;
  border: 1px solid #374151;
  border-radius: 8px;
  width: 100%;
  max-width: 740px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.7), 0 10px 10px -5px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.modal-header {
  padding: 10px 14px;
  background: #0f172a;
  border-bottom: 1px solid #1f2937;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.modal-title-group h2 {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}

.modal-subtitle {
  font-size: 11px;
  color: #9ca3af;
  margin-top: 1px;
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: #9ca3af;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
}
.modal-close-btn:hover { color: #fff; background: #374151; }

.modal-body {
  padding: 12px 14px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.section-title {
  font-size: 11px;
  font-weight: 700;
  color: #38bdf8;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

/* 5 PRESETS GRID */
.presets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 8px;
}

.preset-card {
  background: #1f2937;
  border: 1px solid #374151;
  border-radius: 6px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.15s;
  cursor: pointer;
}

.preset-card:hover {
  border-color: #06b6d4;
  background: #232f42;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(6, 182, 212, 0.2);
}

.preset-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

.preset-icon { font-size: 16px; }

.preset-name {
  font-size: 11.5px;
  font-weight: 700;
  color: #f3f4f6;
  line-height: 1.25;
}

.preset-desc {
  font-size: 10.5px;
  color: #9ca3af;
  line-height: 1.35;
  margin-bottom: 8px;
  flex: 1;
}

.preset-action {
  display: flex;
  justify-content: flex-end;
}

/* UPLOAD BOX */
.upload-box {
  border: 1px dashed #4b5563;
  border-radius: 6px;
  background: #141d2e;
  padding: 12px;
  text-align: center;
  transition: border-color 0.15s;
}

.upload-box:hover { border-color: #06b6d4; }

.upload-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.upload-icon { font-size: 22px; }
.upload-text { font-size: 11.5px; color: #d1d5db; }

/* AI PROMPT BOX */
.ai-prompt-box {
  margin-top: 10px;
  background: #0b1120;
  border: 1px solid #1e293b;
  border-radius: 6px;
  padding: 8px 10px;
}

.prompt-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: #facc15;
  margin-bottom: 4px;
}

.prompt-content {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: #cbd5e1;
  background: #070b14;
  padding: 6px 8px;
  border-radius: 4px;
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.4;
  border: 1px solid #1a2333;
}

/* ==========================================================
   WELCOME / SAMPLE BANNER
   ========================================================== */
.welcome-banner {
  background: linear-gradient(90deg, rgba(6, 182, 212, 0.15), rgba(15, 23, 42, 0.98) 70%);
  border-bottom: 1px solid rgba(6, 182, 212, 0.35);
  padding: 8px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  color: #e2e8f0;
  transition: all 0.2s ease;
}
.welcome-banner.hidden {
  display: none !important;
}
.welcome-banner-content {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}
.welcome-banner-content .welcome-icon {
  font-size: 18px;
  flex-shrink: 0;
}
.welcome-banner-content .welcome-text {
  line-height: 1.45;
}
.welcome-banner-content strong {
  color: #38bdf8;
  margin-right: 4px;
}
.welcome-banner-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
@media (max-width: 768px) {
  .welcome-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 10px 12px;
  }
  .welcome-banner-actions {
    width: 100%;
    justify-content: flex-end;
  }
}
