/* ============================================
   IdeaForge — Component Styles
   ============================================ */

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  cursor: pointer;
  border: 1px solid transparent;
  min-height: 38px;
}

.btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: var(--shadow-sm), 0 0 0 0 var(--primary-alpha-30);
}

.btn-primary:hover {
  box-shadow: var(--shadow-md), 0 0 20px var(--primary-alpha-30);
  transform: translateY(-1px);
  filter: brightness(1.1);
}

.btn-primary:active {
  transform: translateY(0);
  filter: brightness(0.95);
}

.btn-secondary {
  background: var(--surface);
  border-color: var(--border-default);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background: var(--surface-hover);
  border-color: var(--border-hover);
  transform: translateY(-1px);
}

.btn-ghost {
  color: var(--text-secondary);
  background: transparent;
}

.btn-ghost:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.btn-danger {
  background: var(--danger);
  color: white;
}

.btn-danger:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.btn-icon {
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: var(--radius-md);
}

.btn-sm {
  padding: var(--space-1) var(--space-3);
  font-size: var(--text-xs);
  min-height: 30px;
}

.btn-sm svg {
  width: 14px;
  height: 14px;
}

.btn-lg {
  padding: var(--space-3) var(--space-6);
  font-size: var(--text-base);
  min-height: 46px;
  border-radius: var(--radius-lg);
}

.btn:disabled, .btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.btn .spinner {
  width: 16px;
  height: 16px;
  border-width: 2px;
  border-color: currentColor;
  border-top-color: transparent;
}

/* ---------- Cards ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  transition: all var(--transition-base);
  position: relative;
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
}

.card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md);
}

.card-interactive {
  cursor: pointer;
}

.card-interactive:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.card-interactive:active {
  transform: translateY(0);
}

.card-glow:hover {
  box-shadow: var(--shadow-glow);
  border-color: var(--primary-alpha-30);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-4);
  gap: var(--space-3);
}

.card-title {
  font-size: var(--text-base);
  font-weight: var(--font-semibold);
  color: var(--text-primary);
}

.card-body {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  line-height: 1.6;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid var(--surface-border);
  gap: var(--space-3);
}

/* ---------- Form Elements ---------- */
.form-group {
  margin-bottom: var(--space-5);
}

.form-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--text-secondary);
  margin-bottom: var(--space-2);
}

.form-input, .form-textarea, .form-select {
  width: 100%;
  padding: var(--space-2) var(--space-3);
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: var(--text-sm);
  transition: all var(--transition-fast);
  min-height: 40px;
}

.form-input::placeholder, .form-textarea::placeholder {
  color: var(--input-placeholder);
}

.form-input:hover, .form-textarea:hover, .form-select:hover {
  border-color: var(--border-hover);
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
  outline: none;
  border-color: var(--input-focus-border);
  box-shadow: 0 0 0 3px var(--primary-alpha-10);
}

.form-textarea {
  min-height: 100px;
  resize: vertical;
  line-height: 1.6;
}

.form-select {
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

.form-input-icon {
  position: relative;
}

.form-input-icon .form-input {
  padding-left: 40px;
}

.form-input-icon svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--text-tertiary);
  pointer-events: none;
}

.form-checkbox {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  cursor: pointer;
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.form-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-default);
  background: var(--input-bg);
  appearance: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
  flex-shrink: 0;
}

.form-checkbox input[type="checkbox"]:checked {
  background: var(--primary);
  border-color: var(--primary);
}

.form-checkbox input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 2px;
  width: 5px;
  height: 9px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* ---------- Tags & Badges ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: 2px 10px;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: var(--font-medium);
  background: var(--primary-alpha-10);
  color: var(--primary);
  border: 1px solid var(--primary-alpha-20);
  white-space: nowrap;
}

.tag-removable {
  cursor: pointer;
}

.tag-removable:hover {
  background: var(--primary-alpha-20);
}

.tag-removable .tag-remove {
  display: flex;
  margin-left: 2px;
  opacity: 0.6;
}

.tag-removable .tag-remove:hover {
  opacity: 1;
}

.tag-success {
  background: var(--success-bg);
  color: var(--success);
  border-color: hsla(145, 65%, 50%, 0.2);
}

.tag-warning {
  background: var(--warning-bg);
  color: var(--warning);
  border-color: hsla(38, 95%, 60%, 0.2);
}

.tag-danger {
  background: var(--danger-bg);
  color: var(--danger);
  border-color: hsla(0, 78%, 62%, 0.2);
}

.tag-info {
  background: var(--info-bg);
  color: var(--info);
  border-color: hsla(210, 85%, 60%, 0.2);
}

/* Status badges */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 12px;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  text-transform: capitalize;
}

.status-badge::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.status-badge.status-idea {
  background: hsla(280, 70%, 55%, 0.12);
  color: hsl(280, 70%, 65%);
}
.status-badge.status-idea::before { background: hsl(280, 70%, 65%); }

.status-badge.status-research {
  background: var(--info-bg);
  color: var(--info);
}
.status-badge.status-research::before { background: var(--info); }

.status-badge.status-development {
  background: var(--warning-bg);
  color: var(--warning);
}
.status-badge.status-development::before { background: var(--warning); }

.status-badge.status-testing {
  background: hsla(30, 85%, 55%, 0.12);
  color: hsl(30, 85%, 60%);
}
.status-badge.status-testing::before { background: hsl(30, 85%, 60%); }

.status-badge.status-completed {
  background: var(--success-bg);
  color: var(--success);
}
.status-badge.status-completed::before { background: var(--success); }

.status-badge.status-archived {
  background: hsla(220, 10%, 50%, 0.12);
  color: hsl(220, 10%, 55%);
}
.status-badge.status-archived::before { background: hsl(220, 10%, 55%); }

/* Priority badges */
.priority-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
}

.priority-badge.priority-critical { color: var(--danger); }
.priority-badge.priority-high { color: hsl(25, 90%, 55%); }
.priority-badge.priority-medium { color: var(--warning); }
.priority-badge.priority-low { color: var(--text-tertiary); }

/* ---------- Modal ---------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  z-index: var(--z-modal-backdrop);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  animation: fadeIn 200ms ease-out;
}

.modal-backdrop.closing {
  animation: fadeOut 150ms ease-out forwards;
}

.modal {
  background: var(--bg-elevated);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 560px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-xl);
  animation: scaleIn 250ms cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow: hidden;
}

.modal-backdrop.closing .modal {
  animation: fadeOut 150ms ease-out forwards;
  transform: scale(0.95);
}

.modal-lg {
  max-width: 720px;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-5) var(--space-6);
  border-bottom: 1px solid var(--border-default);
  flex-shrink: 0;
}

.modal-header h2 {
  font-size: var(--text-lg);
  font-weight: var(--font-bold);
}

.modal-close {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  color: var(--text-tertiary);
  transition: all var(--transition-fast);
}

.modal-close:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.modal-close svg {
  width: 18px;
  height: 18px;
}

.modal-body {
  padding: var(--space-6);
  overflow-y: auto;
  flex: 1;
}

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-6);
  border-top: 1px solid var(--border-default);
  flex-shrink: 0;
}

/* ---------- Toast ---------- */
.toast-container {
  position: fixed;
  top: var(--space-4);
  right: var(--space-4);
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-4);
  background: var(--bg-elevated);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  backdrop-filter: var(--glass-blur);
  min-width: 300px;
  max-width: 420px;
  animation: slideInRight 300ms cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: all;
}

.toast.closing {
  animation: slideOutRight 200ms ease-out forwards;
}

.toast-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  margin-top: 1px;
}

.toast-success .toast-icon { color: var(--success); }
.toast-error .toast-icon { color: var(--danger); }
.toast-warning .toast-icon { color: var(--warning); }
.toast-info .toast-icon { color: var(--info); }

.toast-content {
  flex: 1;
}

.toast-title {
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  margin-bottom: 2px;
}

.toast-message {
  font-size: var(--text-xs);
  color: var(--text-secondary);
  line-height: 1.4;
}

.toast-close {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-tertiary);
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  transition: all var(--transition-fast);
}

.toast-close:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.toast-close svg {
  width: 14px;
  height: 14px;
}

/* ---------- Dropdown ---------- */
.dropdown {
  position: relative;
  display: inline-flex;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  background: var(--bg-elevated);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: var(--space-2);
  min-width: 180px;
  z-index: var(--z-dropdown);
  animation: scaleIn 150ms ease-out;
  display: none;
}

.dropdown-menu.open {
  display: block;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
  width: 100%;
}

.dropdown-item:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.dropdown-item svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.dropdown-divider {
  height: 1px;
  background: var(--border-default);
  margin: var(--space-2) 0;
}

.dropdown-item.danger {
  color: var(--danger);
}

.dropdown-item.danger:hover {
  background: var(--danger-bg);
}

/* ---------- Tabs ---------- */
.tabs {
  display: flex;
  gap: var(--space-1);
  border-bottom: 1px solid var(--border-default);
  margin-bottom: var(--space-5);
  overflow-x: auto;
}

.tab-item {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--text-tertiary);
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
  margin-bottom: -1px;
}

.tab-item:hover {
  color: var(--text-primary);
}

.tab-item.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

/* ---------- Empty State ---------- */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-16) var(--space-8);
  text-align: center;
}

.empty-state-icon {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-2xl);
  background: var(--gradient-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-5);
}

.empty-state-icon svg {
  width: 36px;
  height: 36px;
  color: var(--primary);
}

.empty-state h3 {
  font-size: var(--text-xl);
  font-weight: var(--font-bold);
  margin-bottom: var(--space-2);
}

.empty-state p {
  font-size: var(--text-sm);
  color: var(--text-tertiary);
  max-width: 360px;
  margin-bottom: var(--space-6);
}

/* ---------- ICE Score ---------- */
.ice-score {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.ice-score-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
}

.ice-score-value {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-lg);
  font-weight: var(--font-bold);
  border: 2px solid;
}

.ice-score-label {
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  font-weight: var(--font-medium);
}

.ice-total {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
  padding-left: var(--space-4);
  border-left: 1px solid var(--border-default);
}

.ice-total-value {
  font-size: var(--text-2xl);
  font-weight: var(--font-extrabold);
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.ice-total-label {
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  font-weight: var(--font-medium);
}

/* ---------- Search ---------- */
.search-bar {
  position: relative;
  max-width: 320px;
  width: 100%;
}

.search-bar svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--text-tertiary);
  pointer-events: none;
}

.search-bar input {
  width: 100%;
  padding: var(--space-2) var(--space-3) var(--space-2) 40px;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: var(--radius-full);
  color: var(--text-primary);
  font-size: var(--text-sm);
  transition: all var(--transition-fast);
  min-height: 38px;
}

.search-bar input::placeholder {
  color: var(--input-placeholder);
}

.search-bar input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-alpha-10);
}

/* ---------- FAB (Floating Action Button) ---------- */
.fab {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  background: var(--gradient-primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  cursor: pointer;
  transition: all var(--transition-base);
  z-index: var(--z-fab);
  border: none;
}

.fab:hover {
  transform: scale(1.1) translateY(-2px);
  box-shadow: var(--shadow-xl), 0 0 40px var(--primary-alpha-30);
}

.fab:active {
  transform: scale(0.95);
}

.fab svg {
  width: 24px;
  height: 24px;
}

/* FAB menu */
.fab-menu {
  position: fixed;
  bottom: calc(56px + var(--space-6) + var(--space-3));
  right: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  z-index: var(--z-fab);
  pointer-events: none;
  opacity: 0;
  transition: all var(--transition-base);
}

.fab-menu.open {
  pointer-events: all;
  opacity: 1;
}

.fab-menu-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) var(--space-4);
  background: var(--bg-elevated);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-md);
  color: var(--text-primary);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  white-space: nowrap;
  cursor: pointer;
  transition: all var(--transition-fast);
  transform: translateY(10px);
  opacity: 0;
}

.fab-menu.open .fab-menu-item {
  transform: translateY(0);
  opacity: 1;
}

.fab-menu.open .fab-menu-item:nth-child(1) { transition-delay: 50ms; }
.fab-menu.open .fab-menu-item:nth-child(2) { transition-delay: 100ms; }
.fab-menu.open .fab-menu-item:nth-child(3) { transition-delay: 150ms; }

.fab-menu-item:hover {
  background: var(--surface-hover);
  transform: translateX(-4px);
}

.fab-menu-item svg {
  width: 18px;
  height: 18px;
  color: var(--primary);
}

/* ---------- Tooltip ---------- */
.tooltip {
  position: relative;
}

.tooltip::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) scale(0.8);
  padding: 4px 10px;
  background: var(--bg-elevated);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  color: var(--text-primary);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: all var(--transition-fast);
  z-index: var(--z-tooltip);
  box-shadow: var(--shadow-md);
}

.tooltip:hover::after {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}

/* ---------- Progress Bar ---------- */
.progress-bar {
  width: 100%;
  height: 6px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
  transition: width var(--transition-slow);
}

/* ---------- Avatar / Color Dot ---------- */
.color-dot {
  width: 12px;
  height: 12px;
  border-radius: var(--radius-full);
  flex-shrink: 0;
}

/* ---------- Divider ---------- */
.divider {
  width: 100%;
  height: 1px;
  background: var(--border-default);
  margin: var(--space-4) 0;
}

/* ---------- Stat Card ---------- */
.stat-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-5);
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  backdrop-filter: var(--glass-blur);
  transition: all var(--transition-base);
}

.stat-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

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

.stat-card-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-card-icon svg {
  width: 20px;
  height: 20px;
}

.stat-card-value {
  font-size: var(--text-3xl);
  font-weight: var(--font-extrabold);
  line-height: 1;
}

.stat-card-label {
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  font-weight: var(--font-medium);
}

/* ---------- Chip / Filter ---------- */
.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: var(--font-medium);
  border: 1px solid var(--border-default);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.chip:hover {
  border-color: var(--primary-alpha-30);
  color: var(--text-primary);
}

.chip.active {
  background: var(--primary-alpha-10);
  border-color: var(--primary-alpha-30);
  color: var(--primary);
}

/* ---------- AI Chat Bubble ---------- */
.chat-bubble {
  max-width: 85%;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-lg);
  font-size: var(--text-sm);
  line-height: 1.7;
  word-wrap: break-word;
}

.chat-bubble-user {
  background: var(--primary-alpha-20);
  border: 1px solid var(--primary-alpha-30);
  margin-left: auto;
  border-bottom-right-radius: var(--radius-sm);
}

.chat-bubble-ai {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  margin-right: auto;
  border-bottom-left-radius: var(--radius-sm);
}

.chat-bubble-ai .markdown-content h1,
.chat-bubble-ai .markdown-content h2,
.chat-bubble-ai .markdown-content h3 {
  margin-top: var(--space-3);
  margin-bottom: var(--space-2);
}

.chat-bubble-ai .markdown-content p {
  margin-bottom: var(--space-2);
}

.chat-bubble-ai .markdown-content ul,
.chat-bubble-ai .markdown-content ol {
  padding-left: var(--space-5);
  margin-bottom: var(--space-2);
}

.chat-bubble-ai .markdown-content li {
  list-style: disc;
  margin-bottom: var(--space-1);
}

.chat-bubble-ai .markdown-content ol li {
  list-style: decimal;
}

.chat-bubble-ai .markdown-content code {
  background: var(--bg-tertiary);
  padding: 1px 6px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.85em;
}

.chat-bubble-ai .markdown-content pre {
  background: var(--bg-tertiary);
  padding: var(--space-3);
  border-radius: var(--radius-md);
  overflow-x: auto;
  margin: var(--space-2) 0;
}

.chat-bubble-ai .markdown-content pre code {
  background: none;
  padding: 0;
}

.chat-bubble-ai .markdown-content strong {
  font-weight: var(--font-semibold);
  color: var(--text-primary);
}

.chat-input-area {
  display: flex;
  gap: var(--space-3);
  padding: var(--space-4);
  border-top: 1px solid var(--border-default);
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
}

.chat-input-area textarea {
  flex: 1;
  min-height: 42px;
  max-height: 150px;
  resize: none;
  padding: var(--space-2) var(--space-4);
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: var(--radius-xl);
  color: var(--text-primary);
  font-size: var(--text-sm);
  line-height: 1.5;
  transition: border-color var(--transition-fast);
}

.chat-input-area textarea::placeholder {
  color: var(--input-placeholder);
}

.chat-input-area textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.chat-send-btn {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-full);
  background: var(--gradient-primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--transition-fast);
  align-self: flex-end;
}

.chat-send-btn:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-glow);
}

.chat-send-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

.chat-send-btn svg {
  width: 20px;
  height: 20px;
}
