/* ------------------------------------------------------------------
   Logisent Studio — Master Stylesheet (The WOW Factor)
   ------------------------------------------------------------------ */

/* --- 1. THEME ENGINE --- */
:root {
  /* DARK MODE (Default Studio Theme) */
  --bg-main: #050505;
  --bg-gradient-1: radial-gradient(circle at top, #111827 0, #020617 45%, #000 100%);
  --bg-gradient-2: radial-gradient(circle at 0% 0%, rgba(56,189,248,0.07), transparent 55%), radial-gradient(circle at 100% 100%, rgba(129,140,248,0.09), transparent 55%);
  
  --sidebar-bg: rgba(15,23,42,0.96);
  --sidebar-border: rgba(148,163,184,0.12);
  --card-bg: radial-gradient(circle at 0 0, rgba(59,130,246,0.21), rgba(15,23,42,1));
  
  /* FIXED: High Contrast Text Source of Truth */
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  
  --input-bg: rgba(17, 24, 39, 0.8);
  --input-border: rgba(75,85,99,0.9);
  
  --topbar-bg: linear-gradient(to bottom, rgba(15,23,42,0.94), rgba(15,23,42,0.9));
  
  --bot-bubble-bg: rgba(31, 41, 55, 0.8);
  --bot-text: #f3f4f6;
  --bot-border: rgba(148,163,184,0.2);
  
  --brand-blue: #2f81f7;
  --brand-blue-hover: #58a6ff;
  --brand-green: #22c55e;
  --danger: #da3633;
}

/* LIGHT MODE (High Contrast Inheritance) */
body.light-mode {
  --bg-main: #f8fafc;
  --bg-gradient-1: none;
  --bg-gradient-2: none;
  
  --sidebar-bg: #ffffff;
  --sidebar-border: #cbd5e1;
  --card-bg: #ffffff;
  
  --text-primary: #020617;
  --text-secondary: #334155; 
  
  --input-bg: #ffffff;
  --input-border: #94a3b8;
  --topbar-bg: rgba(255, 255, 255, 0.95);
  
  --bot-bubble-bg: #f1f5f9;
  --bot-text: #0f172a;
  --bot-border: #e2e8f0;
}

/* --- 2. BASE RESET --- */
*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0; padding: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg-main);
  background-image: var(--bg-gradient-1);
  color: var(--text-primary); /* Forced high contrast */
  height: 100vh; overflow: hidden;
  transition: background 0.3s ease, color 0.3s ease;
}

/* 🟢 REDUCED MOTION: Disable animations and transitions for accessibility */
html[data-reduced-motion="true"] *,
html[data-reduced-motion="true"] *::before,
html[data-reduced-motion="true"] *::after,
html.reduced-motion *,
html.reduced-motion *::before,
html.reduced-motion *::after {
  animation-duration: 0.01ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.01ms !important;
  scroll-behavior: auto !important;
}

/* Also respect system preference */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* FIXED: Global Text Visibility Enforcement */
h1, h2, h3, h4, h5, h6, p, span, label, div {
    color: inherit;
}

/* FIXED: No Underline on Section Titles */
.section-title, #nav-company-profile {
    text-decoration: none !important;
    border-bottom: none !important;
}

::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(148, 163, 184, 0.3); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(148, 163, 184, 0.5); }

/* --- 3. LAYOUT --- */
.app-root, .settings-container { display: flex; height: 100vh; width: 100vw; overflow: hidden; background: var(--bg-gradient-2); }
.main { flex: 1; display: flex; flex-direction: column; position: relative; overflow: hidden; height: 100vh; }

/* --- 4. SIDEBAR --- */
.sidebar, .settings-sidebar {
  width: 280px; min-width: 260px; max-width: 600px;
  background: var(--sidebar-bg);
  border-right: 1px solid var(--sidebar-border); 
  display: flex; flex-direction: column; 
  padding: 14px 12px;
  backdrop-filter: blur(18px); z-index: 30;
  position: relative;
}

/* RESIZER */
#sidebar-resizer {
    width: 6px; height: 100%; position: absolute; right: 0; top: 0;
    cursor: col-resize; background: transparent; border-right: 1px solid var(--sidebar-border);
    transition: background 0.2s; z-index: 40;
}
#sidebar-resizer:hover { background: rgba(47, 129, 247, 0.5); }

/* Logo */
.logo-block {
  display: flex; align-items: center; gap: 12px; padding: 12px 10px 18px;
  border-radius: 10px; margin-bottom: 10px; border-bottom: 1px solid var(--sidebar-border);
  flex-shrink: 0; transition: transform 0.2s;
}
.logo-block:hover { transform: scale(1.02); cursor: pointer; }
.logo-img { width: 50px; height: 50px; border-radius: 10px; object-fit: cover; }
.logo-text-main { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; color: var(--text-primary); white-space: nowrap; }
.logo-text-sub { font-size: 12px; color: var(--text-secondary); white-space: nowrap; }

/* SPLIT SECTIONS */
.sidebar-split-section { flex: 1; display: flex; flex-direction: column; min-height: 0; margin-bottom: 10px; }
#section-chats { border-top: 1px solid var(--sidebar-border); padding-top: 15px; margin-top: 5px; }

.section-header {
    display: flex; justify-content: space-between; align-items: center;
    font-size: 11px; text-transform: uppercase; letter-spacing: 0.13em;
    color: var(--text-secondary); font-weight: 600;
    padding: 8px 4px; cursor: pointer; user-select: none;
    white-space: nowrap;
}
.section-header:hover { color: var(--text-primary); }
.arrow-icon { transition: transform 0.2s; font-size: 10px; }

/* Scrollable Lists */
.scrollable-list { flex: 1; overflow-y: auto; padding: 2px; }

/* --- SIDEBAR LIST ITEMS (UNIFIED) --- */
.session-row, .wf-row {
    position: relative; overflow: visible !important;
    display: flex; align-items: center; justify-content: flex-start; gap: 8px;
    padding: 8px 10px; border-radius: 6px; cursor: pointer;
    font-size: 13px; color: var(--text-secondary);
    transition: background 0.1s ease; margin-bottom: 2px;
    z-index: 10;
}
.session-row:hover, .wf-row:hover { 
    background: rgba(255, 255, 255, 0.05); 
    color: var(--text-primary); 
    z-index: 100;
}
body.light-mode .session-row:hover, body.light-mode .wf-row:hover { background: rgba(0, 0, 0, 0.05); }

.session-row.active, .wf-row.active { background: rgba(47, 129, 247, 0.15); color: var(--brand-blue); font-weight: 500; }

.session-row span, .wf-row span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Alignment logic */
.session-row > :last-child { margin-left: auto; flex-shrink: 0; opacity: 0.7; }
.wf-row { text-align: left; }
.wf-row > :last-child { margin-left: 0; text-align: left; flex: 1; }

/* BUTTONS */
.session-actions { padding: 0 0 10px 0; }
.btn-primary { 
    width: 100%; border: none; border-radius: 8px; padding: 10px; 
    background: var(--brand-blue); color: #fff; font-size: 14px; font-weight: 600; 
    display: flex; align-items: center; justify-content: center; gap: 8px; 
    cursor: pointer; transition: 0.2s; box-shadow: 0 4px 10px rgba(47, 129, 247, 0.2);
}
.btn-primary:hover { background: var(--brand-blue-hover); transform: translateY(-1px); }

/* Footer */
.sidebar-footer { padding-top: 8px; border-top: 1px solid var(--sidebar-border); margin-top: auto; flex-shrink: 0; }
.user-profile-btn {
    display:flex; align-items:center; gap:10px; cursor:pointer; padding:8px; border-radius:8px; 
    transition: transform 0.2s, background 0.2s;
}
.user-profile-btn:hover { transform: translateY(-2px); background: rgba(129,140,248,0.1); }

/* --- 5. MAIN CONTENT --- */
.top-row {
  display: flex; justify-content: space-between; align-items: center; padding: 10px 30px;
  border-bottom: 1px solid var(--sidebar-border);
  backdrop-filter: blur(18px); background: var(--topbar-bg);
  flex-shrink: 0; z-index: 20; min-height: 80px;
}

/* --- 6. WORKFLOW CARDS (THE WOW DESIGN) --- */
section.workflow-launch { padding: 15px 24px 0px; border-bottom: 1px solid var(--sidebar-border); flex-shrink: 0; }
.workflow-row { 
    display: grid; 
    grid-auto-flow: column; 
    grid-auto-columns: minmax(200px, 240px); /* Smaller, sleeker width */
    gap: 14px; 
    padding: 10px 2px 20px; 
    overflow-x: auto; 
}

.workflow-card {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px; 
  padding: 14px; /* More compact padding */
  border: 1px solid var(--sidebar-border); 
  cursor: pointer; 
  min-height: 110px; /* Sleeker height */
  display: flex; 
  flex-direction: column; 
  justify-content: space-between; 
  position: relative;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* NEON GLOW HOVER */
.workflow-card:hover { 
    transform: translateY(-4px); 
    border-color: var(--brand-blue); 
    box-shadow: 0 10px 30px -5px rgba(47, 129, 247, 0.3); 
    z-index: 10; 
    background: rgba(47, 129, 247, 0.05);
}
body.light-mode .workflow-card:hover { box-shadow: 0 15px 30px rgba(47,129,247,0.15); }

.workflow-card.soon { border-style: dashed; border-color: var(--text-secondary); background: transparent; opacity: 0.6; }
.workflow-card.soon:hover { opacity: 1; border-color: var(--text-primary); transform: translateY(-2px); box-shadow: none; }

.workflow-title { font-size: 13px; font-weight: 700; line-height: 1.3; }
.workflow-desc { font-size: 11px; color: var(--text-secondary); margin-top: 6px; line-height: 1.4; }
.coming-soon-pill { margin-top: 6px; align-self: flex-start; font-size: 9px; padding: 2px 8px; border-radius: 999px; background: rgba(55,65,81,0.6); color: #e5e7eb; text-transform: uppercase; letter-spacing: 0.5px; font-weight: 700; }

/* --- 6. CHAT AREA --- */
.chat-container { flex: 1; display: flex; flex-direction: column; padding: 10px 24px 16px; gap: 10px; height: 100%; min-height: 0; overflow: hidden; }
#messages { flex: 1; overflow-y: auto; padding-right: 8px; min-height: 0; width: 100%; }

.input-row { display: flex; align-items: flex-end; gap: 10px; margin-top: 2px; flex-shrink: 0; width: 100%; }
#chat-input, .input-text, .form-input, .form-select {
  flex: 1; border-radius: 16px; border: 1px solid var(--input-border);
  background: var(--input-bg); color: var(--text-primary) !important;
  padding: 12px 16px; min-height: 44px; max-height: 110px; font-family: inherit; font-size: 14px;
  outline: none; resize: none; transition: 0.2s; width: 100%;
}
#chat-input:focus { border-color: var(--brand-blue); }

.send-btn { 
  border-radius: 8px; border: none; padding: 0 28px; height: 46px; 
  font-size: 14px; font-weight: 600; cursor: pointer; 
  background: var(--brand-blue); color: white; transition: 0.2s;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; flex-shrink: 0;
}
.send-btn:hover { background: var(--brand-blue-hover); transform: translateY(-2px); }

/* Bubbles */
.message-row { display: flex; margin: 6px 0; width: 100%; }
.user-row { justify-content: flex-end; }
.ai-row { justify-content: flex-start; }
.message-bubble { max-width: 720px; padding: 10px 14px; border-radius: 12px; font-size: 14px; line-height: 1.5; white-space: pre-wrap; }
.user-bubble { background: var(--brand-blue); color: white; border-bottom-right-radius: 2px; }
.ai-bubble { background: var(--bot-bubble-bg); color: var(--bot-text); border: 1px solid var(--bot-border); border-bottom-left-radius: 2px; }

/* Utilities */
.company-brand img { height: 60px; width: auto; mix-blend-mode: screen; filter: brightness(1.1); display: block; }
body.light-mode .company-brand img { mix-blend-mode: multiply; filter: invert(1) hue-rotate(180deg); }
.state-bar { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--text-secondary); margin-top: 2px; padding-left: 4px; border: none; width: auto; background: transparent; }
.state-dot { width: 8px; height: 8px; min-width: 8px; min-height: 8px; border-radius: 50%; background: var(--brand-green); box-shadow: 0 0 0 4px rgba(34,197,94,0.3); flex-shrink: 0; display: block; }

/* --- 9. MENU FIX (SOLID & OPAQUE) --- */
#session-list .session-row > div[style*="absolute"] {
    background-color: #111827 !important; /* Solid Dark */
    border: 1px solid rgba(255,255,255,0.15) !important;
    border-radius: 8px !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8) !important;
    z-index: 9999 !important;
    min-width: 120px;
    opacity: 1 !important;
    padding: 6px !important;
    backdrop-filter: none !important;
    display: block !important;
}

#session-list .session-row > div[style*="absolute"] button {
    background: transparent !important;
    border: none !important;
    color: #e5e7eb !important;
    padding: 8px 12px;
    text-align: left;
    font-size: 13px;
    cursor: pointer;
    border-radius: 4px;
    width: 100%;
    display: block;
}

#session-list .session-row > div[style*="absolute"] button:hover {
    background-color: var(--brand-blue) !important;
    color: white !important;
}

/* Modal Styles (Restored) */
.modal-overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.7); backdrop-filter: blur(5px); z-index: 99999; display: none; align-items: center; justify-content: center; }
.modal-overlay.active, .modal-overlay[style*="display: flex"] { display: flex !important; }
.modal-box { background: var(--card-bg); border: 1px solid var(--sidebar-border); padding: 25px; border-radius: 12px; max-width: 400px; width: 90%; box-shadow: 0 20px 50px rgba(0,0,0,0.8); text-align: center; }
.modal-box h2 { font-size: 20px; margin-top: 0; color: var(--text-primary); margin-bottom: 10px; }
.modal-box p { color: var(--text-secondary); font-size: 14px; line-height: 1.5; margin-bottom: 20px; }
.modal-btn { background: var(--brand-blue); color: white; border: none; padding: 10px 24px; border-radius: 8px; cursor: pointer; font-weight: 600; }
.modal-btn:hover { background: var(--brand-blue-hover); }

/* ==================================================================
   WORKFLOW SIDEBAR FIX (Tree View Restoration)
   ================================================================== */
#workflow-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 10px 8px;
}

.workflow-sidebar-item {
  display: flex;
  flex-direction: column;
}

.workflow-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 8px;
  margin-bottom: 4px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s;
}

.workflow-top-row:hover {
  background: rgba(255, 255, 255, 0.05);
}

.wf-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wf-status-badge {
  font-size: 10px;
  color: var(--text-secondary);
  opacity: 0.7;
}

.wf-actions {
  display: flex;
  gap: 6px;
  opacity: 0;
  transition: opacity 0.2s;
}
.workflow-top-row:hover .wf-actions { opacity: 1; }

.wf-rename-btn, .wf-delete-btn {
  background: none; border: none; cursor: pointer; padding: 0;
  font-size: 12px; opacity: 0.6; color: var(--text-secondary);
}
.wf-rename-btn:hover, .wf-delete-btn:hover { opacity: 1; color: var(--text-primary); }

.workflow-steps-list {
  display: flex;
  flex-direction: column;
  position: relative;
  margin-left: 20px;
  padding-left: 0;
  border-left: 1px solid var(--sidebar-border); 
  gap: 2px;
}

.workflow-step-row {
  position: relative;
  display: flex;
  align-items: center;
  padding: 6px 10px 6px 18px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  min-height: 28px;
}

.workflow-step-row:hover {
  background: rgba(255, 255, 255, 0.03);
}

.step-dot {
  position: absolute;
  left: -4px;
  top: 50%;
  transform: translateY(-50%);
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--sidebar-bg);
  border: 1px solid var(--text-secondary);
  box-shadow: 0 0 0 2px var(--sidebar-bg);
  z-index: 2;
}

.step-label {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.3;
  font-weight: 400;
}

.workflow-step-row:has(.step-active) {
  background: rgba(47, 129, 247, 0.1);
}

.workflow-step-row:has(.step-active) .step-label {
  color: var(--brand-blue);
  font-weight: 600;
}

.step-dot.step-active {
  background-color: var(--brand-blue);
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(47, 129, 247, 0.2);
}

/* ==================================================================
   SETTINGS PAGE OVERHAUL (SaaS Professional Look)
   ================================================================== */
.settings-shell {
  display: flex;
  height: 100vh;
  width: 100vw;
  background: var(--bg-main);
  background-image: var(--bg-gradient-1);
  overflow: hidden;
}

.settings-nav-col {
  width: 260px;
  background: var(--sidebar-bg);
  border-right: 1px solid var(--sidebar-border);
  display: flex;
  flex-direction: column;
  padding: 20px 15px;
  flex-shrink: 0;
}

.settings-nav-header {
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--sidebar-border);
}

.settings-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  color: var(--text-secondary);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 4px;
  text-decoration: none; /* 🟢 FIX: Remove underline from links */
}

.settings-nav-item:hover {
  background: rgba(255,255,255,0.05);
  color: var(--text-primary);
}

.settings-nav-item.active {
  background: rgba(47, 129, 247, 0.1);
  color: var(--brand-blue);
  font-weight: 600;
}

.settings-main-col {
  flex: 1;
  overflow-y: auto;
  padding: 40px 60px;
}

.settings-max-width {
  max-width: 800px;
  margin: 0 auto;
}

.pro-card {
  background: var(--card-bg);
  border: 1px solid var(--sidebar-border);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.pro-card-header {
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--sidebar-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pro-card-title { font-size: 16px; font-weight: 600; color: var(--text-primary); margin: 0; }
.pro-card-subtitle { font-size: 13px; color: var(--text-secondary); margin-top: 4px; }

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

.input-group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

.pro-input {
  width: 100%;
  background: var(--input-bg);
  border: 1px solid var(--sidebar-border);
  padding: 12px;
  border-radius: 8px;
  color: var(--text-primary) !important; /* Forced visibility */
  font-size: 14px;
  transition: border 0.2s;
}

.pro-input:focus {
  border-color: var(--brand-blue);
  outline: none;
}

.toggle-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.toggle-row:last-child { border-bottom: none; }

.toggle-switch {
  position: relative;
  width: 44px;
  height: 24px;
}
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.slider {
  position: absolute; cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #374151;
  border-radius: 24px; transition: .3s;
}
.slider:before {
  position: absolute; content: "";
  height: 18px; width: 18px;
  left: 3px; bottom: 3px;
  background-color: white;
  border-radius: 50%; transition: .3s;
}
input:checked + .slider { background-color: var(--brand-blue); }
input:checked + .slider:before { transform: translateX(20px); }

.avatar-grid { display: flex; gap: 15px; flex-wrap: wrap; }
.avatar-option {
  width: 60px; height: 60px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s;
  padding: 2px;
}
.avatar-option img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.avatar-option:hover { transform: scale(1.1); }
.avatar-option.selected { border-color: var(--brand-blue); box-shadow: 0 0 10px rgba(47,129,247,0.4); }

.integration-row {
  display: flex; align-items: center; gap: 15px;
  padding: 15px;
  background: rgba(255,255,255,0.03);
  border-radius: 8px;
  margin-bottom: 10px;
  border: 1px solid transparent;
  transition: border 0.2s;
}
.integration-row:hover { border-color: var(--sidebar-border); }
.app-icon { width: 40px; height: 40px; background: white; border-radius: 8px; padding: 5px; object-fit: contain; }
.app-info { flex: 1; }
.app-name { font-weight: 600; font-size: 14px; color: var(--text-primary); }
.app-desc { font-size: 12px; color: var(--text-secondary); }
.connect-btn {
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid var(--sidebar-border);
  background: transparent;
  color: var(--text-primary);
  font-size: 12px;
  cursor: pointer;
}
.connect-btn:hover { background: rgba(255,255,255,0.1); }
.connect-btn.connected { color: var(--brand-green); border-color: var(--brand-green); background: rgba(34,197,94,0.1); }

.save-bar {
  position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%);
  background: #111827; border: 1px solid var(--brand-blue);
  padding: 10px 20px; border-radius: 50px;
  display: flex; gap: 15px; align-items: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  z-index: 100;
  opacity: 0; pointer-events: none; transition: all 0.3s;
}
.save-bar.visible { opacity: 1; pointer-events: all; bottom: 40px; }

.flyer-gallery {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(148, 163, 184, 0.08);
  border: 1px solid rgba(148, 163, 184, 0.12);
}

.flyer-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 12px;
}

.flyer-card {
  background: rgba(15, 23, 42, 0.85);
  border-radius: 12px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  border: 1px solid rgba(148,163,184,0.12);
}

.flyer-image {
  width: 100%;
  border-radius: 10px;
  display: block;
}

.flyer-meta {
  font-size: 0.75rem;
  opacity: 0.85;
}

.flyer-meta-line {
  display: flex;
  justify-content: space-between;
}

.flyer-actions {
  margin-top: 4px;
  display: flex;
  justify-content: flex-end;
}

.flyer-select-btn {
  font-size: 0.75rem;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.4);
  background: rgba(255,255,255,0.04);
  color: var(--text-primary);
  cursor: pointer;
  transition: 0.2s;
}

.flyer-select-btn:hover {
  background: var(--brand-blue);
  color: white;
  border-color: var(--brand-blue);
}

body.light-mode .flyer-card {
  background: #ffffff;
  border-color: #d1d5db;
}

body.light-mode .flyer-select-btn {
  background: #ffffff;
  color: #0f172a;
  border-color: #cbd5e1;
}

body.light-mode .flyer-select-btn:hover {
  background: var(--brand-blue);
  color: white;
  border-color: var(--brand-blue);
}
