/* Plexseller Carousel Automator CSS Design System */

:root {
  --bg-primary: #080c14;
  --bg-secondary: #0f1524;
  --bg-tertiary: #172033;
  --bg-glass: rgba(15, 21, 36, 0.7);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(255, 210, 0, 0.15);
  
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  --brand-yellow: #ffd200;
  --brand-yellow-hover: #e6bd00;
  --brand-yellow-gradient: linear-gradient(135deg, #ffd200 0%, #ff9f00 100%);
  --brand-yellow-glow: 0 0 20px rgba(255, 210, 0, 0.3);
  
  --accent-green: #10b981;
  --accent-red: #ef4444;
  
  --font-display: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --border-radius-lg: 16px;
  --border-radius-md: 10px;
  --border-radius-sm: 6px;
}

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

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  min-height: 100vh;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(255, 210, 0, 0.03) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(15, 21, 36, 0.5) 0%, transparent 50%);
}

/* App Container Layout */
.app-container {
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: 100vh;
}

/* Sidebar Navigation */
.sidebar {
  background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
  border-right: 1px solid var(--border-color);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  height: 100vh;
  position: sticky;
  top: 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 3rem;
}

.logo-circle {
  width: 42px;
  height: 42px;
  background: var(--brand-yellow-gradient);
  border-radius: 50%;
  color: #000;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--brand-yellow-glow);
}

.brand-text h1 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.5px;
}

.brand-text span {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 600;
}

.nav-menu {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-grow: 1;
}

.nav-item {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  padding: 12px 16px;
  border-radius: var(--border-radius-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  transition: var(--transition-smooth);
}

.nav-item .icon {
  width: 20px;
  height: 20px;
  transition: var(--transition-smooth);
}

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

.nav-item.active {
  background: rgba(255, 210, 0, 0.08);
  color: var(--brand-yellow);
  font-weight: 600;
  border: 1px solid rgba(255, 210, 0, 0.15);
}

.nav-item.active .icon {
  stroke: var(--brand-yellow);
  filter: drop-shadow(0 0 4px rgba(255, 210, 0, 0.4));
}

.sidebar-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
  font-size: 13px;
  color: var(--text-secondary);
}

.status-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.status-indicator.online {
  background-color: var(--accent-green);
  box-shadow: 0 0 10px var(--accent-green);
}

/* Main Content Area */
.main-content {
  padding: 2.5rem 3rem;
  overflow-y: auto;
  max-height: 100vh;
}

.main-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2.5rem;
}

.header-title h2 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 4px;
}

.header-title p {
  color: var(--text-secondary);
  font-size: 15px;
}

.api-status {
  display: flex;
  gap: 10px;
}

.badge {
  padding: 6px 12px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.gemini-badge {
  background: rgba(138, 180, 248, 0.1);
  color: #8ab4f8;
  border: 1px solid rgba(138, 180, 248, 0.2);
}

.open-badge {
  background: rgba(16, 185, 129, 0.1);
  color: var(--accent-green);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

/* Grid Layouts */
.grid-layout {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 2rem;
  align-items: start;
}

.grid-layout.cols-50-50 {
  grid-template-columns: 1fr 1fr;
}

/* Panel Card & Glassmorphism */
.panel-card {
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 2rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
  transition: var(--transition-smooth);
}

.panel-card:hover {
  border-color: rgba(255, 210, 0, 0.12);
}

.panel-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.panel-desc {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

/* Directory Config Box */
.directory-config {
  margin-bottom: 1.5rem;
}

.directory-config label, .form-row label {
  display: block;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 6px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.input-group {
  display: flex;
  gap: 8px;
}

input[type="text"], input[type="password"] {
  background-color: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 14px;
  padding: 10px 14px;
  border-radius: var(--border-radius-sm);
  flex-grow: 1;
  transition: var(--transition-smooth);
}

input[type="text"]:focus, input[type="password"]:focus {
  outline: none;
  border-color: var(--brand-yellow);
  box-shadow: 0 0 8px rgba(255, 210, 0, 0.2);
}

/* Buttons */
.btn {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 14px;
  padding: 10px 20px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition-smooth);
}

.btn-primary {
  background: var(--brand-yellow-gradient);
  color: #000;
  border: none;
  box-shadow: var(--brand-yellow-glow);
}

.btn-primary:hover:not(.disabled) {
  background: var(--brand-yellow-hover);
  transform: translateY(-1px);
  box-shadow: 0 0 25px rgba(255, 210, 0, 0.45);
}

.btn-primary:active:not(.disabled) {
  transform: translateY(0);
}

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

.btn-full-width {
  width: 100%;
  padding: 14px 20px;
  font-size: 15px;
}

.btn.disabled, .btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

.btn-tiny {
  padding: 4px 8px;
  font-size: 11px;
  border-radius: 4px;
  background: rgba(255,255,255,0.04);
}

.btn-tiny:hover {
  background: rgba(255,255,255,0.08);
  color: var(--brand-yellow);
}

/* File Browser Selection List */
.file-list-container {
  margin-bottom: 1.5rem;
}

.file-list-header {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.file-list {
  list-style: none;
  max-height: 200px;
  overflow-y: auto;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  background: rgba(0, 0, 0, 0.15);
}

.file-list li {
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  font-size: 13.5px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition-smooth);
}

.file-list li:last-child {
  border-bottom: none;
}

.file-list li:hover {
  background-color: rgba(255, 255, 255, 0.03);
}

.file-list li.selected {
  background-color: rgba(255, 210, 0, 0.08);
  border-left: 3px solid var(--brand-yellow);
  color: var(--brand-yellow);
}

.file-list li .file-name {
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.file-list li .file-meta {
  font-size: 11px;
  color: var(--text-muted);
}

.file-list li.empty-state {
  color: var(--text-muted);
  text-align: center;
  padding: 2rem 1rem;
  font-style: italic;
  cursor: default;
}

/* File Preview Block */
.file-preview-container {
  margin-bottom: 1.5rem;
}

.file-preview-container label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
}

.file-preview-box {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 12px;
  font-family: 'Space Grotesk', monospace;
  font-size: 12px;
  height: 180px;
  overflow-y: auto;
  color: var(--text-secondary);
  white-space: pre-wrap;
  line-height: 1.4;
}

.file-preview-box.empty {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--text-muted);
  font-style: italic;
}

/* Placeholder for Results */
.generation-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 500px;
  color: var(--text-muted);
  border: 2px dashed var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 2rem;
}

.placeholder-icon {
  width: 64px;
  height: 64px;
  stroke: var(--text-muted);
  margin-bottom: 1.5rem;
}

.generation-placeholder h4 {
  color: var(--text-secondary);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.generation-placeholder p {
  max-width: 320px;
  font-size: 14px;
}

/* Spinner / Loader Section */
.generation-loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 500px;
  padding: 2rem;
  border-radius: var(--border-radius-lg);
  background: rgba(8, 12, 20, 0.4);
}

.spinner-container {
  position: relative;
  width: 80px;
  height: 80px;
  margin-bottom: 2rem;
}

.loader-ring {
  box-sizing: border-box;
  display: block;
  position: absolute;
  width: 80px;
  height: 80px;
  border: 4px solid var(--brand-yellow);
  border-radius: 50%;
  animation: spinner-rotate 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
  border-color: var(--brand-yellow) transparent transparent transparent;
}

.loader-core {
  position: absolute;
  top: 15px;
  left: 15px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--bg-tertiary);
  border: 2px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pulse 2s infinite ease-in-out;
}

@keyframes spinner-rotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.08); opacity: 1; }
}

.generation-loader h4 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 1.5rem;
  font-family: var(--font-display);
}

.loader-steps {
  width: 100%;
  max-width: 380px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 2rem;
}

.loader-step {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13.5px;
  color: var(--text-muted);
  transition: var(--transition-smooth);
}

.loader-step .step-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--bg-tertiary);
  border: 2px solid var(--border-color);
}

.loader-step.active {
  color: var(--text-primary);
}

.loader-step.active .step-dot {
  background-color: var(--brand-yellow);
  border-color: var(--brand-yellow);
  box-shadow: var(--brand-yellow-glow);
  animation: pulse 1s infinite;
}

.loader-step.complete {
  color: var(--accent-green);
}

.loader-step.complete .step-dot {
  background-color: var(--accent-green);
  border-color: var(--accent-green);
}

.progress-bar-container {
  width: 100%;
  max-width: 380px;
  height: 6px;
  background-color: var(--bg-tertiary);
  border-radius: 10px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: var(--brand-yellow-gradient);
  width: 0%;
  transition: width 0.4s ease;
}

/* Alert / Warning Banner */
.alert-banner {
  display: flex;
  gap: 12px;
  background-color: rgba(255, 210, 0, 0.08);
  border: 1px solid rgba(255, 210, 0, 0.18);
  padding: 12px 16px;
  border-radius: var(--border-radius-md);
  margin-bottom: 1.5rem;
  font-size: 13px;
}

.alert-icon {
  font-size: 16px;
}

.alert-content {
  color: var(--text-primary);
  line-height: 1.4;
}

/* Instagram Phone Simulator Layout */
.phone-simulator {
  width: 100%;
  max-width: 420px;
  margin: 0 auto 2rem auto;
  background-color: #000;
  border-radius: 36px;
  border: 10px solid #222;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.phone-header {
  padding: 12px 16px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid #111;
  background-color: #000;
}

.profile-pic {
  width: 32px;
  height: 32px;
  background: var(--brand-yellow-gradient);
  border-radius: 50%;
  color: #000;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  margin-right: 10px;
}

.profile-meta {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.profile-name {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}

.profile-location {
  font-size: 10px;
  color: #aaa;
}

.phone-actions {
  color: #fff;
  cursor: pointer;
}

/* Slider Container */
.carousel-container {
  position: relative;
  width: 100%;
  padding-top: 100%; /* 1:1 Aspect Ratio */
  overflow: hidden;
  background-color: #111;
}

.carousel-slide-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-slide {
  min-width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Text Overlay Layer */
.slide-text-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0.2) 50%, rgba(0, 0, 0, 0.6) 100%);
  padding: 2.2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
}

.overlay-header {
  font-family: var(--font-display);
  color: var(--brand-yellow);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.overlay-body {
  font-family: var(--font-sans);
  color: #fff;
  font-size: 23px;
  font-weight: 800;
  line-height: 1.35;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.7);
  word-wrap: break-word;
}

.overlay-body mark {
  background: var(--brand-yellow-gradient);
  color: #000;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 800;
}

.overlay-footer {
  color: #ddd;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1px;
}

.slide-overlay-ui {
  position: absolute;
  top: 15px;
  right: 15px;
  z-index: 10;
}

.slide-badge {
  background-color: rgba(0,0,0,0.65);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 50px;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  border: none;
  color: #fff;
  font-size: 18px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.carousel-arrow:hover {
  background-color: rgba(255, 210, 0, 0.7);
  color: #000;
}

.carousel-arrow.prev {
  left: 10px;
}

.carousel-arrow.next {
  right: 10px;
}

.phone-engagement {
  background-color: #000;
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #111;
}

.engagement-icons {
  display: flex;
  gap: 14px;
}

.eng-icon {
  width: 22px;
  height: 22px;
  color: #fff;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.eng-icon:hover {
  color: var(--brand-yellow);
}

.engagement-dots {
  display: flex;
  gap: 5px;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #444;
  transition: var(--transition-smooth);
}

.dot.active {
  background-color: var(--brand-yellow);
  transform: scale(1.2);
}

/* Prompt Tabs & Editors */
.prompt-tabs-container {
  margin-bottom: 2rem;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  background: rgba(0,0,0,0.15);
}

.prompt-tabs-header {
  display: flex;
  background-color: rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid var(--border-color);
  overflow-x: auto;
}

.prompt-tab {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  padding: 10px 16px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-smooth);
  border-right: 1px solid var(--border-color);
  white-space: nowrap;
}

.prompt-tab:hover {
  background-color: rgba(255, 255, 255, 0.02);
  color: var(--text-primary);
}

.prompt-tab.active {
  background-color: var(--bg-secondary);
  color: var(--brand-yellow);
  font-weight: 600;
  border-bottom: 2px solid var(--brand-yellow);
}

.prompt-tabs-body {
  padding: 14px;
}

.slide-prompt-display {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.slide-prompt-display strong {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
}

.slide-prompt-display p {
  font-size: 13.5px;
  line-height: 1.4;
  color: var(--text-secondary);
  background: rgba(0, 0, 0, 0.2);
  padding: 10px;
  border-radius: var(--border-radius-sm);
  border-left: 2px solid var(--brand-yellow);
}

/* Caption Card */
.caption-card {
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  background-color: rgba(0, 0, 0, 0.2);
}

.caption-card-header {
  background-color: rgba(255, 255, 255, 0.02);
  padding: 12px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-secondary);
  letter-spacing: 0.5px;
}

.caption-text {
  padding: 1.2rem;
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--text-primary);
  white-space: pre-wrap;
  line-height: 1.6;
  max-height: 250px;
  overflow-y: auto;
}

/* TABS UTILITIES */
.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
  animation: fadeIn 0.4s ease-in-out;
}

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

/* Saved History (Grid List) */
.history-list-header {
  margin-bottom: 2rem;
}

.history-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.history-card {
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
}

.history-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 210, 0, 0.2);
  box-shadow: 0 10px 25px rgba(0,0,0,0.4);
}

.history-card-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 12px;
}

.history-file-tag {
  font-weight: 600;
  font-size: 14px;
  color: var(--brand-yellow);
}

.history-date {
  font-size: 11px;
  color: var(--text-muted);
}

.history-card-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 1.5rem;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.history-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.history-slides-badge {
  font-size: 12px;
  color: var(--text-muted);
}

.history-card-actions {
  display: flex;
  gap: 8px;
}

/* Forms & Toggles (Automation Settings) */
.automation-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

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

.form-row.toggle-row {
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  background-color: rgba(255,255,255,0.02);
  padding: 14px;
  border-radius: var(--border-radius-md);
  border: 1px solid var(--border-color);
}

.form-row.toggle-row span {
  font-weight: 600;
  font-size: 15px;
}

.form-help {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 6px;
}

.preset-links {
  margin-top: 8px;
  font-size: 12px;
  color: var(--text-muted);
}

.preset-links a {
  color: var(--brand-yellow);
  text-decoration: none;
  transition: var(--transition-smooth);
}

.preset-links a:hover {
  text-decoration: underline;
}

.form-actions {
  display: flex;
  gap: 12px;
  margin-top: 1rem;
}

/* Switch Toggle Element */
.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 26px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #2a3447;
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .4s;
}

input:checked + .slider {
  background-color: var(--brand-yellow);
}

input:focus + .slider {
  box-shadow: 0 0 1px var(--brand-yellow);
}

input:checked + .slider:before {
  transform: translateX(24px);
  background-color: #000;
}

.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}

/* Log list panel */
.log-viewer {
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  background: rgba(0,0,0,0.25);
  overflow: hidden;
}

.log-header {
  display: grid;
  grid-template-columns: 140px 80px 1fr;
  padding: 10px 14px;
  background: rgba(0,0,0,0.4);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-color);
}

.log-list {
  list-style: none;
  height: 380px;
  overflow-y: auto;
}

.log-list li {
  display: grid;
  grid-template-columns: 140px 80px 1fr;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.02);
  font-family: 'Space Grotesk', monospace;
  font-size: 12px;
  line-height: 1.4;
  align-items: center;
}

.log-list li:last-child {
  border-bottom: none;
}

.log-list li .log-time {
  color: var(--text-muted);
}

.log-list li .log-status {
  font-weight: 700;
}

.log-list li .log-status.success {
  color: var(--accent-green);
}

.log-list li .log-status.failed {
  color: var(--accent-red);
}

.log-list li .log-message {
  color: var(--text-secondary);
}

.log-list li.empty-state {
  display: flex;
  height: 100%;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-style: italic;
}

/* Global Toast Alert */
.toast {
  position: fixed;
  top: 24px;
  right: 24px;
  background: var(--bg-secondary);
  border: 1px solid var(--brand-yellow);
  color: var(--text-primary);
  padding: 14px 24px;
  border-radius: var(--border-radius-md);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5), var(--brand-yellow-glow);
  z-index: 9999;
  display: flex;
  align-items: center;
  font-weight: 500;
  font-size: 14px;
  transition: opacity 0.3s, transform 0.3s;
}

.toast.hidden {
  opacity: 0;
  transform: translateY(-20px);
  pointer-events: none;
}

/* Responsive fixes */
@media (max-width: 1024px) {
  .app-container {
    grid-template-columns: 1fr;
  }
  .sidebar {
    height: auto;
    position: relative;
  }
  .grid-layout {
    grid-template-columns: 1fr;
  }
}

/* Bulk Automator Feature Cards & Layout */
.feature-bulk-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 1.5rem;
  transition: var(--transition-smooth);
}

.feature-bulk-card:hover {
  border-color: rgba(255, 210, 0, 0.2);
}

.feature-bulk-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 10px;
}

.feature-bulk-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  color: var(--brand-yellow);
}

.feature-bulk-meta {
  font-size: 11.5px;
  color: var(--text-muted);
}

.status-badge {
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.status-badge.ready {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
}

.status-badge.analyzing {
  background: rgba(255, 210, 0, 0.1);
  color: var(--brand-yellow);
  animation: pulse 1.5s infinite;
}

.status-badge.analyzed {
  background: rgba(138, 180, 248, 0.1);
  color: #8ab4f8;
}

.status-badge.generating {
  background: rgba(255, 159, 0, 0.15);
  color: #ff9f00;
  animation: pulse 1.5s infinite;
}

.status-badge.completed {
  background: rgba(16, 185, 129, 0.1);
  color: var(--accent-green);
}

.status-badge.failed {
  background: rgba(239, 68, 68, 0.1);
  color: var(--accent-red);
}

.feature-bulk-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.feature-bulk-body label {
  font-size: 11.5px;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
}

.instruction-textarea {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 10px;
  font-family: var(--font-sans);
  font-size: 13.5px;
  color: var(--text-primary);
  width: 100%;
  height: 90px;
  resize: vertical;
  line-height: 1.5;
  transition: var(--transition-smooth);
}

.instruction-textarea:focus {
  outline: none;
  border-color: var(--brand-yellow);
}

.feature-bulk-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 4px;
}

/* Premium branding overlay badge on generated slides */
.slide-logo-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(15, 17, 23, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 6px 12px;
  border-radius: 20px;
  z-index: 10;
  pointer-events: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.logo-circle-mini {
  width: 18px;
  height: 18px;
  background: var(--brand-yellow-gradient);
  border-radius: 50%;
  color: #000;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide-logo-badge .logo-text {
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.5px;
  font-family: var(--font-sans);
}


