/* Tema modern SS Manage - Light Glassmorphism Default */
:root {
  --brand-1: #0f6fec;
  --brand-2: #12b5cb;
  --brand-3: #0a2742;
  --surface: #f5f8fb;
  /* Updated for better contrast: Gradient + clearer transparency */
  --card: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.75) 100%);
  --border: rgba(255, 255, 255, 0.9);
  --shadow: 0 10px 40px -5px rgba(22, 54, 95, 0.15), 0 0 0 1px rgba(255, 255, 255, 0.5) inset;
  --text-main: #0f172a;
  --text-muted: #64748b;
}

/* Hapus preferensi dark mode otomatis agar tampilan konsisten (Light) */
/* User meminta background tidak gelap */

body {
  background: radial-gradient(circle at 10% 20%, rgba(18, 181, 203, 0.15), transparent 25%),
    radial-gradient(circle at 80% 0%, rgba(15, 111, 236, 0.12), transparent 35%),
    linear-gradient(160deg, #e9f2ff 0%, #f6fbff 40%, #eef7ff 100%);
  color: var(--text-main);
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  min-height: 100vh;
}

.text-muted {
  color: var(--text-muted) !important;
}

.app-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.navbar,
.app-nav {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  box-shadow: 0 6px 30px rgba(12, 36, 64, 0.08);
  border-bottom: 1px solid var(--border);
}

.app-nav .navbar-brand,
.navbar-brand {
  font-weight: 700;
  color: var(--brand-1);
  letter-spacing: 0.3px;
}

.hero {
  padding: 120px 0 60px;
  text-align: center;
}

.hero-title {
  font-weight: 700;
  font-size: clamp(28px, 4vw, 42px);
  color: var(--text-main);
}

.hero-subtitle {
  font-size: 18px;
  color: var(--text-muted);
}

.card-glass {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  color: var(--text-main);
}

.card-glass .card-header {
  background: linear-gradient(120deg, rgba(15, 111, 236, 0.08), rgba(18, 181, 203, 0.08));
  border-bottom: 1px solid var(--border);
  font-weight: 600;
  color: var(--text-main);
}

.btn-primary,
.btn-gradient {
  background: linear-gradient(120deg, var(--brand-1), var(--brand-2));
  border: none;
  color: #fff;
  box-shadow: 0 12px 30px rgba(15, 111, 236, 0.25);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.btn-primary:hover,
.btn-gradient:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
  box-shadow: 0 14px 36px rgba(15, 111, 236, 0.32);
}

.btn-outline-primary {
  border-color: var(--brand-1);
  color: var(--brand-1);
}

.btn-outline-primary:hover {
  background: var(--brand-1);
  color: #fff;
  box-shadow: 0 12px 30px rgba(15, 111, 236, 0.22);
}

.form-control,
.form-select {
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background-color: rgba(255, 255, 255, 0.9);
  color: var(--text-main);
}

.form-control:focus,
.form-select:focus {
  border-color: var(--brand-1);
  box-shadow: 0 0 0 0.2rem rgba(15, 111, 236, 0.18);
  background-color: #fff;
  color: #0f172a;
}

.page-footer {
  color: var(--text-muted);
  font-size: 14px;
  padding: 24px 0;
  text-align: center;
}

.badge-soft {
  background: rgba(15, 111, 236, 0.1);
  color: var(--brand-3);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 12px;
  font-weight: 600;
}

.pill-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.8);
  color: var(--brand-3);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.15s ease;
}

.pill-link:hover {
  color: var(--brand-1);
  border-color: var(--brand-1);
  box-shadow: 0 12px 24px rgba(15, 111, 236, 0.14);
}

.muted {
  color: var(--text-muted);
}

.input-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  cursor: pointer;
}

.section-spacer {
  padding: 32px 0;
}

@media (max-width: 768px) {
  .hero {
    padding-top: 80px;
  }
}

/* --- Chat Interface Improvements --- */
.chat-container {
  height: 75vh;
  display: flex;
  flex-direction: column;
}

.chat-list {
  border-right: 1px solid var(--border);
  height: 100%;
  overflow-y: auto;
  background: rgba(255, 255, 255, 0.4);
}

.chat-window {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
}

.chat-history {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chat-bubble {
  padding: 12px 18px;
  border-radius: 18px;
  max-width: 80%;
  position: relative;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  font-size: 0.95rem;
  line-height: 1.5;
  color: #1e293b;
}

.chat-bubble.me {
  background: linear-gradient(135deg, var(--brand-1), var(--brand-2));
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.chat-bubble.other {
  background: #fff;
  color: var(--brand-3);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
  border: 1px solid var(--border);
}

.chat-meta {
  font-size: 0.75rem;
  margin-top: 5px;
  opacity: 0.8;
  display: flex;
  align-items: center;
  gap: 4px;
}

.chat-input-area {
  padding: 16px;
  background: rgba(255, 255, 255, 0.6);
  border-top: 1px solid var(--border);
  backdrop-filter: blur(10px);
}

.blob-bg {
  position: fixed;
  top: -100px;
  left: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle at 30% 30%, rgba(15, 111, 236, 0.4), rgba(18, 181, 203, 0.4));
  border-radius: 50%;
  filter: blur(100px);
  z-index: -1;
  opacity: 0.6;
  pointer-events: none;
}