/* Small shared visual helpers layered on top of Tailwind utility classes. */

::selection { background: #6366f1; color: #fff; }

.card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 1rem;
}

.input {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 0.6rem;
  padding: 0.6rem 0.85rem;
  color: #f1f5f9;
  width: 100%;
  font-size: 0.9rem;
  outline: none;
  transition: border-color .15s ease;
}
.input:focus { border-color: #6366f1; }
.input::placeholder { color: #64748b; }

/* Native <select> dropdown panels ignore the dark background of .input and
   render with the browser's default white popup, which made option text
   (inherited near-white color) invisible against it. Force a dark
   background + light text on the options themselves so the open dropdown
   list is readable. */
select.input option {
  background: #0f172a;
  color: #f1f5f9;
}

.btn-primary {
  background: #4f46e5;
  color: #fff;
  font-weight: 600;
  border-radius: 0.6rem;
  padding: 0.6rem 1.1rem;
  transition: background .15s ease;
}
.btn-primary:hover { background: #4338ca; }
.btn-primary:disabled { opacity: .5; cursor: not-allowed; }

.btn-secondary {
  background: rgba(255,255,255,0.08);
  color: #e2e8f0;
  font-weight: 600;
  border-radius: 0.6rem;
  padding: 0.6rem 1.1rem;
  border: 1px solid rgba(255,255,255,0.12);
  transition: background .15s ease;
}
.btn-secondary:hover { background: rgba(255,255,255,0.14); }

.btn-danger {
  background: rgba(239,68,68,0.12);
  color: #fca5a5;
  font-weight: 600;
  border-radius: 0.6rem;
  padding: 0.5rem 0.9rem;
  border: 1px solid rgba(239,68,68,0.3);
  transition: background .15s ease;
}
.btn-danger:hover { background: rgba(239,68,68,0.22); }

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.8rem;
  border-radius: 0.6rem;
  color: #94a3b8;
  font-size: 0.9rem;
  font-weight: 500;
  transition: background .15s ease, color .15s ease;
}
.sidebar-link:hover { background: rgba(255,255,255,0.06); color: #f1f5f9; }
.sidebar-link.active { background: rgba(99,102,241,0.15); color: #a5b4fc; }

.tab-btn {
  padding: 0.55rem 1rem;
  border-radius: 0.6rem 0.6rem 0 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: #94a3b8;
  border-bottom: 2px solid transparent;
}
.tab-btn.active { color: #fff; border-bottom-color: #6366f1; }

.mic-btn {
  width: 96px; height: 96px;
  border-radius: 9999px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #6366f1, #4338ca);
  box-shadow: 0 0 0 0 rgba(99,102,241,0.5);
  transition: transform .15s ease;
  cursor: pointer;
  user-select: none;
}
.mic-btn:active { transform: scale(0.95); }
.mic-btn.recording {
  animation: pulse 1.4s infinite;
  background: linear-gradient(135deg, #ef4444, #b91c1c);
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(239,68,68,0.5); }
  70% { box-shadow: 0 0 0 20px rgba(239,68,68,0); }
  100% { box-shadow: 0 0 0 0 rgba(239,68,68,0); }
}

.chat-bubble-user {
  background: #4f46e5;
  color: #fff;
  border-radius: 1rem 1rem 0.2rem 1rem;
}
.chat-bubble-assistant {
  background: rgba(255,255,255,0.08);
  color: #e2e8f0;
  border-radius: 1rem 1rem 1rem 0.2rem;
}

table.data-table th {
  text-align: left;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #64748b;
  padding: 0.6rem 0.9rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
table.data-table td {
  padding: 0.7rem 0.9rem;
  font-size: 0.88rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
