/* ==========================================================================
   PixelBoost PropLeadAi — Modern Light Theme Design System
   Performance Real Estate Lead Scraper & CRM
   Made with ❤️ By CK
   ========================================================================== */

:root {
  /* Light Theme Color Tokens */
  --bg-app: #f8fafc;
  --bg-sidebar: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #f8fafc;
  --bg-input: #ffffff;
  --bg-elevated: #f1f5f9;

  --border-light: #e2e8f0;
  --border-focus: #0284c7;
  --border-highlight: rgba(2, 132, 199, 0.22);

  --text-main: #0f172a;
  --text-secondary: #475569;
  --text-dim: #64748b;

  --primary: #0284c7;
  --primary-cyan: #0284c7;
  --primary-light: #38bdf8;
  --primary-gradient: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  --primary-glow: rgba(2, 132, 199, 0.18);

  --emerald: #059669;
  --emerald-bg: #ecfdf5;
  --emerald-border: #a7f3d0;

  --amber: #d97706;
  --amber-bg: #fffbeb;
  --amber-border: #fde68a;
  
  --rose: #e11d48;
  --rose-bg: #fff1f2;
  --rose-border: #fecdd3;

  --wa-green: #16a34a;
  --wa-bg: #dcfce7;
  --wa-border: #bbf7d0;

  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-brand: 'Space Grotesk', sans-serif;

  --radius-xs: 6px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-pill: 9999px;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.03);
  --shadow-card: 0 4px 16px -2px rgba(15, 23, 42, 0.05), 0 0 0 1px #e2e8f0;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-app);
  color: var(--text-main);
  min-height: 100vh;
  overflow-x: hidden;
  background-image: 
    radial-gradient(at 0% 0%, rgba(2, 132, 199, 0.04) 0px, transparent 40%),
    radial-gradient(at 100% 100%, rgba(5, 150, 105, 0.03) 0px, transparent 40%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

/* App Layout */
.app-layout {
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.sidebar {
  width: 270px;
  background-color: var(--bg-sidebar);
  border-right: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  padding: 24px 18px;
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 30;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.02);
}

.sidebar-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 20px;
}

.brand-logo-wrap {
  width: 100%;
  display: flex;
  align-items: center;
  padding: 2px 0;
}

.sidebar-logo-img {
  height: 36px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.brand-text h2 {
  font-family: var(--font-brand);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-main);
}

.brand-highlight {
  color: var(--primary-cyan);
}

.pro-badge {
  font-size: 0.62rem;
  background: rgba(2, 132, 199, 0.1);
  color: var(--primary-cyan);
  border: 1px solid rgba(2, 132, 199, 0.25);
  padding: 1px 6px;
  border-radius: var(--radius-pill);
  font-weight: 800;
  letter-spacing: 0.06em;
}

.brand-sub {
  font-size: 0.72rem;
  color: var(--text-dim);
  font-weight: 500;
  margin-top: 2px;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-family: var(--font-main);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
  text-align: left;
}

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

.nav-item.active {
  color: var(--primary);
  background: #f0f9ff;
  border-color: #bae6fd;
  font-weight: 700;
  box-shadow: inset 0 0 8px rgba(2, 132, 199, 0.05);
}

.count-pill {
  margin-left: auto;
  font-size: 0.75rem;
  background: var(--bg-elevated);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  color: var(--text-secondary);
  border: 1px solid var(--border-light);
  font-weight: 600;
}

.sidebar-footer {
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Made with Love Card */
.made-by-card {
  background: linear-gradient(135deg, #f0f9ff 0%, #f0fdf4 100%);
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-md);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.heart-pulse {
  font-size: 1.1rem;
  animation: heartBeat 1.8s infinite ease-in-out;
  display: inline-block;
}

@keyframes heartBeat {
  0% { transform: scale(1); }
  14% { transform: scale(1.25); }
  28% { transform: scale(1); }
  42% { transform: scale(1.25); }
  70% { transform: scale(1); }
}

.made-by-text span {
  display: block;
  font-size: 0.7rem;
  color: var(--text-secondary);
}

.made-by-text strong {
  font-size: 0.85rem;
  color: var(--text-main);
  font-family: var(--font-brand);
  letter-spacing: 0.02em;
}

.system-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.74rem;
  color: var(--text-dim);
}

.live-dot {
  width: 7px;
  height: 7px;
  background-color: var(--emerald);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--emerald);
  animation: dotPulse 2s infinite;
}

@keyframes dotPulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; transform: scale(1.2); }
}

/* Main Content */
.main-content {
  flex: 1;
  padding: 28px 36px;
  max-width: 1600px;
}

/* Top Header */
.top-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 26px;
  gap: 20px;
  flex-wrap: wrap;
}

.header-title-box {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.badge-pill {
  display: inline-flex;
  font-size: 0.74rem;
  font-weight: 700;
  color: #0369a1;
  background: #e0f2fe;
  border: 1px solid #bae6fd;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  width: fit-content;
  margin-bottom: 2px;
}

.header-title-box h1 {
  font-family: var(--font-brand);
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-main);
}

.header-title-box p {
  color: var(--text-secondary);
  font-size: 0.88rem;
}

/* Header Metrics */
.header-metrics {
  display: flex;
  gap: 12px;
}

.metric-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  min-width: 130px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}

.metric-card.highlight-green {
  border-color: var(--emerald-border);
  background: linear-gradient(180deg, #ecfdf5 0%, #ffffff 100%);
}

.metric-card.highlight-amber {
  border-color: var(--amber-border);
  background: linear-gradient(180deg, #fffbeb 0%, #ffffff 100%);
}

.metric-label {
  font-size: 0.72rem;
  color: var(--text-secondary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.metric-num {
  font-family: var(--font-brand);
  font-size: 1.45rem;
  font-weight: 800;
  margin-top: 2px;
  color: var(--text-main);
}

.text-emerald { color: var(--emerald); }
.text-amber { color: var(--amber); }
.text-rose { color: var(--rose); }

/* Tabs */
.tab-pane {
  display: none;
}
.tab-pane.active {
  display: block;
}

/* Scraper Grid */
.scraper-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 24px;
}

@media (max-width: 1200px) {
  .scraper-grid {
    grid-template-columns: 1fr;
  }
}

/* Cards */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 22px;
}

.card-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-light);
}

.card-heading {
  display: flex;
  align-items: center;
  gap: 10px;
}

.card-icon-tag {
  width: 32px;
  height: 32px;
  background: #e0f2fe;
  color: #0284c7;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
}

.card-icon-tag.green {
  background: var(--emerald-bg);
  color: var(--emerald);
}

.card-heading h3 {
  font-family: var(--font-brand);
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-main);
}

.card-heading p {
  font-size: 0.76rem;
  color: var(--text-dim);
}

/* Mode Switcher */
.mode-toggle-group {
  display: flex;
  background: var(--bg-elevated);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-pill);
  padding: 3px;
  gap: 2px;
}

.mode-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 0.76rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.2s ease;
}

.mode-btn:hover {
  color: var(--text-main);
}

.mode-btn.active {
  background: var(--primary-gradient);
  color: #fff;
  box-shadow: 0 2px 8px var(--primary-glow);
}

/* Clean Form */
.clean-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.select-field, .text-field, .filter-select {
  background: var(--bg-input);
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  color: var(--text-main);
  font-family: var(--font-main);
  font-size: 0.88rem;
  outline: none;
  transition: all 0.2s ease;
  width: 100%;
}

.select-field:focus, .text-field:focus, .filter-select:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px var(--border-highlight);
  background: #ffffff;
}

/* Quick Locality Chips */
.chip-label-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
}

.sub-label {
  font-weight: 600;
  color: var(--text-dim);
}

.text-dim-xs {
  font-size: 0.7rem;
  color: var(--text-dim);
}

.chips-container {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.area-chip {
  background: var(--bg-elevated);
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  font-size: 0.76rem;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.2s ease;
}

.area-chip:hover {
  color: var(--primary);
  border-color: #bae6fd;
  background: #f0f9ff;
  transform: translateY(-1px);
}

.area-chip.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 2px 6px var(--primary-glow);
}

/* Volume Slider */
.slider-box {
  background: var(--bg-elevated);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 10px 14px;
}

.slider-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.slider-pill {
  font-size: 0.78rem;
  font-weight: 700;
  color: #0369a1;
  background: #e0f2fe;
  border: 1px solid #bae6fd;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}

.range-slider {
  width: 100%;
  accent-color: var(--primary);
  cursor: pointer;
}

/* Action Hero Buttons */
.btn-hero {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: var(--radius-md);
  font-family: var(--font-main);
  font-size: 0.94rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  width: 100%;
  letter-spacing: -0.01em;
}

.btn-extract {
  background: var(--primary-gradient);
  color: #fff;
  box-shadow: 0 4px 14px var(--primary-glow);
}

.btn-extract:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.35);
}

.btn-stop {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #fff;
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.25);
}

/* Progress */
.progress-box {
  margin-top: 14px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
}

.progress-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-secondary);
}

.font-mono { font-family: monospace; }

.progress-bar-bg {
  height: 6px;
  background: #e2e8f0;
  border-radius: var(--radius-pill);
  overflow: hidden;
}

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

/* Console Box */
.console-box {
  margin-top: 14px;
  background: #0f172a;
  border: 1px solid #1e293b;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.console-top {
  background: #1e293b;
  padding: 6px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #334155;
}

.console-lights {
  display: flex;
  gap: 5px;
}
.console-lights span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #475569;
}
.console-lights span:nth-child(1) { background: #ef4444; }
.console-lights span:nth-child(2) { background: #f59e0b; }
.console-lights span:nth-child(3) { background: #10b981; }

.console-title {
  font-size: 0.7rem;
  color: #94a3b8;
  font-family: monospace;
}

.console-clear {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 0.7rem;
  cursor: pointer;
}
.console-clear:hover { color: #fff; }

.console-body {
  padding: 10px;
  max-height: 120px;
  overflow-y: auto;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.78rem;
  line-height: 1.45;
  display: flex;
  flex-direction: column;
  gap: 3px;
  color: #e2e8f0;
}

.log-line { word-break: break-all; }

/* Stream Card & Feed */
.stream-card {
  display: flex;
  flex-direction: column;
  height: 600px;
}

.live-counter {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--emerald);
  background: var(--emerald-bg);
  border: 1px solid var(--emerald-border);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
}

.stream-scroll-box {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-right: 4px;
}

.stream-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
  color: var(--text-dim);
  padding: 30px;
  gap: 8px;
}

.empty-icon-circle {
  width: 56px;
  height: 56px;
  background: #f1f5f9;
  color: var(--text-dim);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}

.stream-empty h4 {
  color: var(--text-main);
  font-size: 0.95rem;
  font-weight: 600;
}

.stream-empty p {
  font-size: 0.8rem;
  max-width: 240px;
}

/* Stream Lead Item */
.stream-lead-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  animation: slideDown 0.25s ease;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.stream-lead-card:hover {
  border-color: #bae6fd;
  background: #f8fafc;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.08);
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.stream-lead-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

.stream-lead-name {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--text-main);
}

.stream-lead-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.phone-action-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: monospace;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--emerald);
  background: var(--emerald-bg);
  border: 1px solid var(--emerald-border);
  padding: 3px 8px;
  border-radius: var(--radius-xs);
  text-decoration: none;
}

.phone-action-pill:hover {
  background: #d1fae5;
}

.wa-action-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--wa-green);
  background: var(--wa-bg);
  border: 1px solid var(--wa-border);
  padding: 3px 8px;
  border-radius: var(--radius-xs);
  text-decoration: none;
}

.wa-action-pill:hover {
  background: #bbf7d0;
  color: #047857;
}

.ig-action-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.74rem;
  font-weight: 700;
  color: #e11d48;
  background: var(--rose-bg);
  border: 1px solid var(--rose-border);
  padding: 3px 8px;
  border-radius: var(--radius-xs);
  text-decoration: none;
  transition: all 0.2s;
}

.ig-action-pill:hover {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  color: #fff;
  border-color: transparent;
  transform: scale(1.05);
}

.stream-lead-addr {
  font-size: 0.76rem;
  color: var(--text-dim);
}

/* CRM Table */
.crm-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.crm-header-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.search-input-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-input);
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  min-width: 300px;
}

.search-input-box input {
  background: none;
  border: none;
  color: var(--text-main);
  outline: none;
  width: 100%;
  font-size: 0.88rem;
  font-family: var(--font-main);
}

.filter-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-control {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-input);
  border: 1px solid #cbd5e1;
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
}

.btn-control:hover {
  color: var(--text-main);
  border-color: #94a3b8;
  background: #f8fafc;
}

.bulk-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.84rem;
  color: var(--text-main);
}

.bulk-actions-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.select-field-sm {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: var(--text-main);
  padding: 5px 8px;
  border-radius: var(--radius-xs);
  font-size: 0.78rem;
  outline: none;
}

.btn-sm {
  padding: 5px 10px;
  border-radius: var(--radius-xs);
  font-size: 0.78rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
}

.btn-primary-sm {
  background: var(--primary);
  color: #fff;
}

.btn-danger-sm {
  background: var(--rose);
  color: #fff;
}

/* CRM Table View */
.crm-table-container {
  overflow-x: auto;
  max-height: 580px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background: #ffffff;
}

.crm-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.86rem;
}

.crm-table th {
  background: #f8fafc;
  padding: 11px 12px;
  font-weight: 700;
  color: var(--text-secondary);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--border-light);
}

.crm-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
}

.crm-table tr:hover {
  background: #f8fafc;
}

.contact-cell {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.contact-name {
  font-weight: 700;
  color: var(--text-main);
}

.contact-cat {
  font-size: 0.72rem;
  color: var(--text-dim);
}

/* Status Pill */
.status-pill {
  padding: 4px 8px;
  border-radius: var(--radius-xs);
  font-size: 0.76rem;
  font-weight: 600;
  border: 1px solid transparent;
  outline: none;
  cursor: pointer;
  background: var(--bg-elevated);
  color: var(--text-main);
}

.status-new { background: #eff6ff; color: #1d4ed8; border-color: #bfdbfe; }
.status-interested { background: var(--amber-bg); color: #b45309; border-color: var(--amber-border); }
.status-followup { background: #faf5ff; color: #7e22ce; border-color: #e9d5ff; }
.status-rnr { background: #f1f5f9; color: #475569; border-color: #cbd5e1; }
.status-notinterested { background: var(--rose-bg); color: #be123c; border-color: var(--rose-border); }
.status-dealclosed { background: var(--emerald-bg); color: #047857; border-color: var(--emerald-border); }

.notes-inline-input {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-secondary);
  padding: 5px 8px;
  border-radius: var(--radius-xs);
  font-size: 0.8rem;
  width: 100%;
  min-width: 160px;
  transition: all 0.2s;
}

.notes-inline-input:hover {
  border-color: #cbd5e1;
  background: #ffffff;
}

.notes-inline-input:focus {
  border-color: var(--border-focus);
  background: #ffffff;
  color: var(--text-main);
  outline: none;
  box-shadow: 0 0 0 2px var(--border-highlight);
}

.table-footer-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: var(--text-secondary);
  padding-top: 4px;
}

.footer-export-btns {
  display: flex;
  gap: 16px;
}

.btn-text-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.82rem;
}

.btn-text-link:hover {
  color: #0369a1;
  text-decoration: underline;
}

/* Export / Import Layout */
.export-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

@media (max-width: 900px) {
  .export-layout {
    grid-template-columns: 1fr;
  }
}

.export-formats-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.export-format-item {
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 16px;
  gap: 14px;
  box-shadow: var(--shadow-sm);
}

.format-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-brand);
  font-weight: 800;
  font-size: 0.8rem;
}

.excel-icon { background: #ecfdf5; color: #059669; border: 1px solid #a7f3d0; }
.csv-icon { background: #f0f9ff; color: #0284c7; border: 1px solid #bae6fd; }

.format-desc {
  flex: 1;
}

.format-desc h4 {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 2px;
}

.format-desc p {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary-gradient);
  color: #fff;
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  box-shadow: 0 4px 12px var(--primary-glow);
}

.btn-download:hover {
  transform: translateY(-1px);
}

.btn-download.secondary {
  background: var(--bg-elevated);
  border: 1px solid var(--border-light);
  color: var(--text-main);
  box-shadow: none;
}
.btn-download.secondary:hover {
  background: #e2e8f0;
}

.dropzone-box {
  border: 2px dashed #cbd5e1;
  border-radius: var(--radius-md);
  padding: 28px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  background: #f8fafc;
}

.dropzone-box:hover {
  border-color: var(--primary);
  background: #f0f9ff;
}

.file-hidden { display: none; }

.dropzone-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.upload-icon-circle {
  width: 50px;
  height: 50px;
  background: #e0f2fe;
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}

.dropzone-main-text {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-main);
}

.dropzone-sub-text {
  font-size: 0.76rem;
  color: var(--text-dim);
}

/* App Footer */
.app-footer {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--border-light);
  display: flex;
  justify-content: center;
  align-items: center;
}

.footer-attribution {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.footer-attribution strong {
  color: var(--text-main);
  font-family: var(--font-brand);
}

.dot-separator {
  color: var(--text-dim);
}

/* Toast */
.toast-wrapper {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 100;
}

.toast-item {
  background: #0f172a;
  color: #fff;
  border: 1px solid #334155;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  font-size: 0.84rem;
  animation: toastSlide 0.25s ease;
}

@keyframes toastSlide {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.hidden { display: none !important; }
