/* Utility helpers layered on Tailwind */
:root {
  --osean-blue: #1F3A5F;
  --osean-blue-dark: #162B46;
  --osean-blue-soft: #E8EEF6;
  --osean-blue-accent: #2E5B8F;
  --osean-blue-border: #C7D6EA;
}

.menu-link {
  @apply hover:text-blue-700 transition;
}

.menu-active {
  @apply text-blue-700 bg-blue-50 px-3 py-1 rounded-full;
}

.card {
  @apply bg-white border border-slate-200 rounded-2xl p-6 shadow-sm;
}

.section-title {
  @apply text-2xl font-extrabold text-slate-900;
}

.section-subtitle {
  @apply text-slate-600 mt-2;
}

.btn-primary {
  @apply px-8 py-4 rounded-2xl font-bold text-base text-white transition;
  background-color: var(--osean-blue);
}

.btn-primary:hover {
  background-color: var(--osean-blue-dark);
}

.btn-outline {
  @apply px-8 py-4 rounded-2xl font-bold text-base transition;
  border: 2px solid var(--osean-blue);
  color: var(--osean-blue);
}

.btn-outline:hover {
  background-color: var(--osean-blue-soft);
}


.btn-outline {
  @apply border border-white text-white px-6 py-3 rounded-xl font-bold hover:bg-white hover:text-blue-700 transition;
}

.badge {
  @apply inline-flex items-center rounded-full border border-blue-200 bg-blue-50 px-3 py-1 text-xs font-semibold text-blue-700;
}

.input {
  @apply w-full rounded-xl border border-slate-200 bg-white px-3 py-2 text-sm text-slate-900 outline-none focus:ring-4 focus:ring-blue-100 focus:border-blue-400;
}

.textarea {
  @apply w-full rounded-xl border border-slate-200 bg-white px-3 py-2 text-sm text-slate-900 outline-none focus:ring-4 focus:ring-blue-100 focus:border-blue-400;
}


/* Partners cards */
.partner-card {
  @apply bg-white border border-slate-200 rounded-2xl p-6 shadow-sm flex items-center justify-center;
}
.partner-logo {
  @apply h-12 md:h-14 object-contain;
}

/* Pills inside marquee */
.partner-pill {
  @apply flex items-center gap-3 bg-white border border-slate-200 rounded-full px-5 py-3 shadow-sm;
}
.partner-logo-sm {
  @apply h-6 w-auto object-contain;
}

.status-pill {
  @apply inline-flex items-center rounded-full px-3 py-1 text-xs font-semibold border;
  border-color: var(--osean-blue-border);
  background: white;
  color: var(--osean-blue);
}

.chat-panel {
  @apply h-[520px] overflow-auto rounded-2xl border bg-white p-4 space-y-3;
  border-color: var(--osean-blue-border);
}

.msg-row {
  @apply flex;
}

.msg-user {
  @apply ml-auto max-w-[85%] rounded-2xl px-4 py-3 text-sm leading-relaxed border;
  background: var(--osean-blue-soft);
  border-color: var(--osean-blue-border);
}

.msg-bot {
  @apply mr-auto max-w-[85%] rounded-2xl px-4 py-3 text-sm leading-relaxed border;
  background: white;
  border-color: var(--osean-blue-border);
}

.msg-meta {
  @apply text-[11px] text-slate-500 mt-1;
}

/* Card like your sample */
.osean-card{
  background:#fff;
  border-radius:16px;
  padding:16px 18px;
  box-shadow:0 2px 10px rgba(15, 23, 42, 0.05);
  border:1px solid rgba(148, 163, 184, 0.35);
}

/* Buttons */
.osean-btn{
  display:inline-flex; align-items:center; justify-content:center;
  gap:6px; padding:10px 14px; border-radius:12px;
  font-weight:700; font-size:14px;
  transition:all .15s ease;
}
.osean-btn-primary{
  background:var(--osean-blue);
  color:#fff;
  box-shadow:0 10px 18px rgba(31, 58, 95, 0.18);
}
.osean-btn-primary:hover{ background:var(--osean-blue-dark); }
.osean-btn-secondary{
  background:#eef2f7;
  color:#0f172a;
  border:1px solid rgba(148, 163, 184, 0.5);
}
.osean-btn-secondary:hover{ background:#e6edf6; }

/* Inputs */
.osean-input, .osean-textarea{
  width:100%;
  box-sizing:border-box;
  border-radius:12px;
  border:1px solid rgba(148, 163, 184, 0.6);
  padding:10px 12px;
  font-size:14px;
  outline:none;
  background:#fff;
}
.osean-textarea{ min-height:92px; resize:vertical; }
.osean-input:focus, .osean-textarea:focus{
  border-color:var(--osean-blue-accent);
  box-shadow:0 0 0 4px rgba(46, 91, 143, 0.12);
}

/* CSV row */
.osean-csv-row{
  display:flex; gap:10px; align-items:center;
}
.osean-csv-row .osean-input{ flex:1; }
.osean-btn-danger{
  background:#ef4444; color:#fff;
}
.osean-btn-danger:hover{ background:#dc2626; }

/* Status pill */
.osean-pill{
  display:inline-flex; align-items:center;
  border-radius:999px;
  padding:3px 10px;
  font-size:12px;
  font-weight:700;
  border:1px solid var(--osean-blue-border);
  background:var(--osean-blue-soft);
  color:var(--osean-blue);
}

/* Chat window */
.osean-chat-wrap{
  max-height:420px;
  overflow:auto;
  padding-right:4px;
}
.osean-chat-inner{
  display:flex; flex-direction:column;
  gap:10px;
}
.osean-msg{
  border-radius:14px;
  padding:10px 12px;
  font-size:14px;
  line-height:1.45;
  white-space:pre-wrap;
}
.osean-msg.user{
  background:#dbeafe;
  align-self:flex-end;
}
.osean-msg.ai{
  background:#eef2f7;
  align-self:flex-start;
}
.osean-role{
  font-weight:800;
  font-size:11px;
  opacity:.7;
  margin-bottom:3px;
}

/* Marquee animation */
.marquee {
  position: relative;
  overflow: hidden;
  padding: 14px 0 18px;
}

.marquee-track {
  display: flex;
  gap: 14px;
  width: max-content;
  padding: 0 18px;
  animation: marqueeScroll 22s linear infinite;
}


/* ===== OSEAN FORM FIELD ===== */
.form-field {
  position: relative;
  margin-top: 18px;
}

.form-input,
.form-textarea {
  width: 100%;
  border: 2px solid #CBD5E1; /* slate-300 */
  border-radius: 12px;
  padding: 14px 14px 28px; /* extra bottom space for label */
  font-size: 14px;
  background: #fff;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-textarea {
  min-height: 110px;
  resize: vertical;
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--osean-blue);
  box-shadow: 0 0 0 4px rgba(31, 58, 95, 0.12);
}

/* Bottom label */
.form-label {
  position: absolute;
  left: 12px;
  bottom: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #64748B; /* slate-500 */
  background: #fff;
  padding: 0 6px;
  pointer-events: none;
}

/* Optional: error state */
.form-field.error .form-input,
.form-field.error .form-textarea {
  border-color: #DC2626;
}

.form-field.error .form-label {
  color: #DC2626;
}

/* ===== OSEAN BUTTON SYSTEM ===== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  padding: 14px 22px;
  border-radius: 14px;

  background: linear-gradient(
    135deg,
    var(--osean-blue),
    var(--osean-blue-accent)
  );
  color: #ffffff;

  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.2px;

  border: none;
  cursor: pointer;

  box-shadow:
    0 10px 22px rgba(31, 58, 95, 0.25),
    inset 0 -1px 0 rgba(255,255,255,0.15);

  transition: transform 0.15s ease,
              box-shadow 0.15s ease,
              filter 0.15s ease;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow:
    0 14px 28px rgba(31, 58, 95, 0.35);
  filter: brightness(1.05);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow:
    0 8px 16px rgba(31, 58, 95, 0.25);
}


/* Secondary button */
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 13px 20px;
  border-radius: 14px;

  background: #ffffff;
  color: var(--osean-blue);

  font-size: 14px;
  font-weight: 700;

  border: 2px solid var(--osean-blue-border);
  cursor: pointer;

  transition: background 0.15s ease,
              border-color 0.15s ease,
              color 0.15s ease;
}

.btn-secondary:hover {
  background: var(--osean-blue-soft);
  border-color: var(--osean-blue);
}


/* Ghost / utility */
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 13px 18px;
  border-radius: 14px;

  background: transparent;
  color: #64748b; /* slate-500 */

  font-size: 14px;
  font-weight: 600;

  border: 2px dashed #cbd5e1;
  cursor: pointer;

  transition: color 0.15s ease,
              border-color 0.15s ease,
              background 0.15s ease;
}

.btn-ghost:hover {
  color: #1f2937;
  border-color: #94a3b8;
  background: #f8fafc;
}


.marquee-item {
  flex: 0 0 auto;
}

@keyframes marqueeScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}
