/* ==========================================================================
   TubeCraft AI — Studio Canvas & Interactive Editor Styles
   ========================================================================== */

.studio-section {
  padding: 36px 0 60px 0;
  background: radial-gradient(circle at 50% 0%, rgba(99, 102, 241, 0.08) 0%, transparent 60%);
}

.studio-grid {
  display: grid;
  grid-template-columns: 1fr 410px;
  gap: 28px;
  align-items: start;
}

/* Canvas Area */
.canvas-wrapper-card {
  background: var(--surface-dark);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.canvas-toolbar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-subtle);
}

.canvas-dimension-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.06);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  color: var(--text-primary);
}

.canvas-guides-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tool-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--surface-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.tool-toggle-btn:hover {
  background: var(--surface-card-hover);
  color: #FFF;
}

.tool-toggle-btn.active {
  background: rgba(99, 102, 241, 0.2);
  border-color: var(--accent-indigo);
  color: #FFF;
}

.tool-toggle-btn.active.safe-zone-active {
  background: rgba(245, 158, 11, 0.2);
  border-color: var(--accent-amber);
  color: #FBBF24;
}

/* Canvas Viewport */
.canvas-viewport-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
}

#thumbnailCanvas {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

/* Visual Overlays on Canvas */
.canvas-overlay-guide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  display: none;
}

.canvas-overlay-guide.visible {
  display: block;
}

/* Rule of Thirds Grid */
.grid-overlay {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: 1fr 1fr 1fr;
  width: 100%;
  height: 100%;
}

.grid-overlay div {
  border: 1px dashed rgba(255, 255, 255, 0.25);
}

/* Safe Zone Indicator */
.safe-zone-box {
  position: absolute;
  bottom: 3.5%;
  right: 2.2%;
  width: 11.5%;
  height: 9%;
  min-width: 58px;
  min-height: 22px;
  background: rgba(0, 0, 0, 0.88);
  border: 1.5px solid #F59E0B;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: system-ui, sans-serif;
  font-size: clamp(9px, 1.2vw, 13px);
  font-weight: 700;
  color: #FFF;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.5);
  pointer-events: none;
  z-index: 10;
  transition: all 0.2s ease;
}

.safe-zone-box.collision-alert {
  background: rgba(255, 0, 51, 0.92);
  border-color: #FF0033;
  box-shadow: 0 0 20px rgba(255, 0, 51, 0.8);
  animation: pulseWarning 1.2s infinite ease-in-out;
}

@keyframes pulseWarning {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.safe-zone-badge-label {
  letter-spacing: 0.04em;
}

/* Canvas Heatmap Simulation */
#heatmapCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: 0.75;
  display: none;
}

#heatmapCanvas.visible {
  display: block;
}

/* Quick Actions Bar */
.canvas-actions-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.export-actions-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* Studio Control Sidebar */
.studio-controls-sidebar {
  background: var(--surface-dark);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  max-height: 850px;
}

/* Tab Navigation */
.studio-tabs-nav {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--surface-card);
  border-bottom: 1px solid var(--border-card);
}

.studio-tab-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 12px 6px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  transition: all 0.15s ease;
  position: relative;
}

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

.studio-tab-btn.active {
  color: var(--text-primary);
  background: var(--surface-dark);
}

.studio-tab-btn.active::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2.5px;
  background: var(--brand-red);
}

/* Tab Panels Content */
.studio-tabs-content {
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.studio-tab-panel {
  display: none;
  flex-direction: column;
  gap: 20px;
}

.studio-tab-panel.active {
  display: flex;
}

/* Form Controls & Groups */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.form-label-val {
  color: var(--accent-cyan);
  font-family: monospace;
  font-size: 0.78rem;
}

.input-text, .select-input {
  width: 100%;
  padding: 10px 14px;
  background: var(--surface-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.15s ease;
}

.input-text:focus, .select-input:focus {
  border-color: var(--accent-indigo);
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}

.input-range {
  width: 100%;
  accent-color: var(--brand-red);
  cursor: pointer;
}

.color-input-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
}

.input-color {
  -webkit-appearance: none;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  background: transparent;
}

.input-color::-webkit-color-swatch-wrapper {
  padding: 0;
}

.input-color::-webkit-color-swatch {
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
}

/* Presets Carousel / Grid in Studio */
.preset-grid-mini {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.preset-card-mini {
  background: var(--surface-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  padding: 10px;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}

.preset-card-mini:hover {
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.preset-card-mini.active {
  border-color: var(--brand-red);
  background: rgba(255, 0, 51, 0.08);
}

.preset-color-bar {
  height: 6px;
  border-radius: 3px;
  width: 100%;
}

.preset-mini-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-primary);
}

.preset-mini-tag {
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* Stickers & Badges Selection */
.stickers-palette {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.sticker-select-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 10px 6px;
  background: var(--surface-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 1.25rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.sticker-select-btn span.sticker-label {
  font-size: 0.68rem;
  color: var(--text-muted);
  font-weight: 600;
}

.sticker-select-btn:hover {
  border-color: var(--accent-cyan);
  background: var(--surface-card-hover);
}

.sticker-select-btn.active {
  border-color: var(--brand-red);
  background: rgba(255, 0, 51, 0.12);
}

/* File Upload Zone */
.file-drop-zone {
  border: 2px dashed var(--border-card);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.01);
}

.file-drop-zone:hover, .file-drop-zone.dragover {
  border-color: var(--accent-indigo);
  background: rgba(99, 102, 241, 0.06);
}

.file-drop-icon {
  color: var(--accent-indigo);
}

.file-drop-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
}

.file-drop-sub {
  font-size: 0.74rem;
  color: var(--text-muted);
}

/* CTR Audit Card Component */
.ctr-meter-box {
  background: var(--surface-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ctr-score-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ctr-score-val-large {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--accent-emerald);
  line-height: 1;
}

.ctr-score-status {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
}

.ctr-score-status.high { background: rgba(16, 185, 129, 0.15); color: var(--accent-emerald); }
.ctr-score-status.medium { background: rgba(245, 158, 11, 0.15); color: var(--accent-amber); }
.ctr-score-status.low { background: rgba(255, 0, 51, 0.15); color: var(--brand-red); }

.ctr-metrics-checklist {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ctr-metric-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.ctr-metric-icon {
  flex-shrink: 0;
  margin-top: 2px;
}

.ctr-metric-icon.pass { color: var(--accent-emerald); }
.ctr-metric-icon.warn { color: var(--accent-amber); }
.ctr-metric-icon.fail { color: var(--brand-red); }

/* YouTube Feed Simulation Modal */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(8px);
  z-index: 9990;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-backdrop.open {
  display: flex;
}

.modal-window {
  background: #0F0F0F; /* YouTube Dark Mode Background */
  border: 1px solid #272727;
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 1100px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  background: #181818;
  border-bottom: 1px solid #272727;
}

.modal-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.modal-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #FFF;
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: #AAA;
  font-size: 1.4rem;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}

.modal-close-btn:hover {
  color: #FFF;
}

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

/* Mock YouTube Feed Cards */
.yt-sim-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.yt-view-toggles {
  display: flex;
  background: #272727;
  border-radius: var(--radius-sm);
  padding: 2px;
}

.yt-view-btn {
  padding: 6px 14px;
  border: none;
  background: transparent;
  color: #AAA;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: 4px;
}

.yt-view-btn.active {
  background: #3F3F3F;
  color: #FFF;
}

.yt-feed-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.yt-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: transparent;
}

.yt-thumb-holder {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: #202020;
}

.yt-thumb-holder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.yt-time-badge {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.85);
  color: #FFF;
  font-size: 12px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.yt-card-meta {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.yt-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #444;
  flex-shrink: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  color: #FFF;
}

.yt-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.yt-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #F1F1F1;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.yt-channel {
  font-size: 0.8rem;
  color: #AAA;
}

.yt-stats {
  font-size: 0.8rem;
  color: #AAA;
}

.yt-card.user-target-card {
  outline: 2px solid var(--brand-red);
  border-radius: 14px;
  padding: 4px;
  background: rgba(255, 0, 51, 0.05);
}

.user-badge-target {
  font-size: 0.72rem;
  background: var(--brand-red);
  color: #FFF;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 3px;
  display: inline-block;
  margin-bottom: 4px;
}

/* ==========================================================================
   Floating AI Advisor Chatbot & Consultation Drawer
   ========================================================================== */

.ai-advisor-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 990;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: linear-gradient(135deg, #FF0033 0%, #D9002C 50%, #99001F 100%);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 9999px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(255, 0, 51, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.1);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.ai-advisor-fab:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 14px 30px rgba(255, 0, 51, 0.6);
  border-color: rgba(255, 255, 255, 0.4);
}

.ai-advisor-fab .fab-badge {
  background: #FFE600;
  color: #000;
  font-size: 0.68rem;
  font-weight: 900;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.ai-advisor-fab .fab-icon {
  font-size: 1.2rem;
}

/* AI Advisor Drawer Modal */
.ai-advisor-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  z-index: 1000;
  display: none;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 24px;
}

.ai-advisor-backdrop.open {
  display: flex;
}

.ai-advisor-drawer {
  width: 100%;
  max-width: 480px;
  height: 650px;
  max-height: 90vh;
  background: #0D121F;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 0, 51, 0.2);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: slideUpAdvisor 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUpAdvisor {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.ai-advisor-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: #13192B;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ai-advisor-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ai-advisor-avatar {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #FF0033, #7928CA);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  box-shadow: 0 4px 10px rgba(255, 0, 51, 0.3);
}

.ai-advisor-title {
  font-size: 1rem;
  font-weight: 700;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ai-advisor-status-pill {
  font-size: 0.65rem;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.2);
  color: #34D399;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.ai-advisor-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10B981;
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.ai-advisor-close-btn {
  background: transparent;
  border: none;
  color: #94A3B8;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: all 0.15s ease;
}

.ai-advisor-close-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
}

/* Chat Messages Container */
.ai-advisor-messages {
  flex: 1;
  overflow-y: auto;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  scrollbar-width: thin;
  scrollbar-color: #2D3748 transparent;
}

.ai-msg {
  display: flex;
  gap: 12px;
  max-width: 92%;
}

.ai-msg.user {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.ai-msg.assistant {
  align-self: flex-start;
}

.ai-msg-avatar {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #2D3748;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.ai-msg.assistant .ai-msg-avatar {
  background: linear-gradient(135deg, #FF0033, #7928CA);
}

.ai-msg.user .ai-msg-avatar {
  background: #3B82F6;
}

.ai-msg-bubble {
  background: #182238;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 12px 16px;
  font-size: 0.88rem;
  line-height: 1.55;
  color: #E2E8F0;
}

.ai-msg.user .ai-msg-bubble {
  background: #2563EB;
  border-color: #3B82F6;
  color: #FFFFFF;
}

/* Quick Prompt Suggestions */
.ai-quick-prompts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.ai-prompt-pill {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 0.75rem;
  color: #94A3B8;
  cursor: pointer;
  transition: all 0.15s ease;
}

.ai-prompt-pill:hover {
  background: rgba(255, 0, 51, 0.15);
  border-color: #FF0033;
  color: #FFFFFF;
}

/* Structured AI Strategy Card inside Chat */
.ai-strategy-card {
  background: #0F172A;
  border: 1px solid rgba(255, 0, 51, 0.3);
  border-radius: 12px;
  padding: 14px;
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ai-strategy-header {
  font-size: 0.8rem;
  font-weight: 700;
  color: #F87171;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.ai-hooks-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ai-hook-item {
  background: rgba(255, 255, 255, 0.05);
  border: 1px dashed rgba(255, 255, 255, 0.15);
  padding: 8px 12px;
  border-radius: 6px;
  font-weight: 800;
  font-size: 0.85rem;
  color: #FDE047;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ai-hook-number {
  font-size: 0.7rem;
  color: #94A3B8;
  font-weight: 600;
}

.ai-swatch-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ai-swatch {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.ai-apply-layout-btn {
  background: linear-gradient(135deg, #10B981, #059669);
  color: #FFFFFF;
  border: none;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.ai-apply-layout-btn:hover {
  background: linear-gradient(135deg, #059669, #047857);
  transform: translateY(-1px);
}

/* Chat Input Bar */
.ai-advisor-input-area {
  padding: 14px 18px;
  background: #13192B;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.ai-advisor-form {
  display: flex;
  gap: 10px;
}

.ai-advisor-input {
  flex: 1;
  background: #0A0E1A;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 10px 14px;
  color: #FFFFFF;
  font-size: 0.88rem;
  outline: none;
  transition: border-color 0.15s ease;
}

.ai-advisor-input:focus {
  border-color: #FF0033;
}

.ai-advisor-send-btn {
  background: var(--brand-red);
  color: #FFFFFF;
  border: none;
  border-radius: 10px;
  padding: 10px 16px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.ai-advisor-send-btn:hover {
  background: #D9002C;
}

.ai-advisor-send-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

