:root {
  --primary: #f0a036;
  --addition: #ffffff;
  --secondary: #e8505b;
  --info: #0077b6;
  --dark: #0f1c2f;
  --glass-bg: rgba(255, 255, 255, 0.25);
  --glass-border: rgba(255, 255, 255, 0.4);
}

html, body {
  height: 100%;
  margin: 0;
  scroll-behavior: smooth;
  color: #000;

  background: linear-gradient(135deg, var(--info), var(--addition));
  background-attachment: fixed;
  background-repeat: no-repeat;
  background-size: cover;
}

.liquid-glass,
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  color: #333;
}

.glass-card {
  border-radius: 1rem;
  transition: transform .3s, box-shadow .3s;
}

.glass-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.2);
}

/* Navbar */
.navbar {
  background: rgba(15, 28, 47, 0.6) !important;
  backdrop-filter: blur(10px);
}

.navbar-brand,
.nav-link {
  color: white !important;
  transition: color .3s;
}

.nav-link:hover {
  color: var(--primary) !important;
}

/* Buttons */
.btn-accent {
  background: var(--primary);
  color: white;
  border: none;
  transition: background .3s;
}

.btn-accent:hover {
  background: var(--secondary);
}

/* Hero */
.hero {
  padding: 8rem 1rem;
  text-align: center;
  position: relative;
  color: white;
}

.hero .glass-card {
  max-width: 600px;
  margin: auto;
  padding: 2rem;
}

/* Section: Pricing */
section#pricing {
  background: rgba(255,255,255,0.1);
  padding: 4rem 0;
}

/* Chat Layout */
.chat-container {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 56px); /* adjust for navbar */
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  background-color: #1e1e1e;
}

.chat-input {
  border-top: 1px solid #333;
  padding: 15px;
  background-color: #1e1e1e;
}

/* Chat Bubbles */
.chat-bubble {
  padding: 10px 15px;
  border-radius: 6px;
  margin-bottom: 10px;
  max-width: 75%;
  white-space: pre-wrap;
  font-size: 1rem;
  font-family: Arial, sans-serif;
  line-height: 1;
}

.user-message {
  background-color: #087830;
  color: white;
  align-self: flex-end;
}

.bot-message {
  background-color: #2b2b2b;
  color: #ddd;
  align-self: flex-start;
}

/* Chat Bubble Content */
.chat-bubble p {
  margin: 0 0 0.7em 0;
}

.chat-bubble ol,
.chat-bubble ul {
  margin: 0;
  padding-left: 1.2em;
}

.chat-bubble ol + ul,
.chat-bubble ul + ol {
  margin-top: -0.5em;
}

.chat-bubble li {
  margin-bottom: 0.3em;
  line-height: 1.4;
}

.chat-bubble pre,
.chat-bubble code {
  background-color: #2a2a2a;
  font-family: monospace;
  border-radius: 4px;
  color: #ffcc00;
}

.chat-bubble pre {
  padding: 10px;
  overflow-x: auto;
  font-size: 0.95em;
  color: #e0e0e0;
}

.chat-bubble code {
  padding: 2px 4px;
}

.chat-bubble table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.5em;
  font-size: 0.95em;
}

.chat-bubble th,
.chat-bubble td {
  border: 1px solid #444;
  padding: 8px;
  text-align: left;
}

.chat-bubble th {
  background-color: #333;
  color: #fff;
}

.chat-bubble td {
  background-color: #222;
  color: #ccc;
}

/* Input Styling */
#messageInput {
  background-color: #2c2c2c;
  color: white;
  border: 1px solid #444;
}

#messageInput::placeholder {
  color: #aaa;
}

/* Typing Animation */
.typing-dots span {
  animation: blink 1.4s infinite both;
  font-size: 1.5rem;
  margin-right: 2px;
}

.typing-dots span:nth-child(2) {
  animation-delay: 0.2s;
}

.typing-dots span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes blink {
  0%, 80%, 100% { opacity: 0; }
  40% { opacity: 1; }
}
.btn {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  font-weight: 500;
  cursor: pointer;
}

/* Hover effect: lift + shadow, retain original background */
.btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  opacity: 0.95;
}
