/* XESTUS AI Sarkari & Career Assistant Stylesheet */
:root {
  --primary: #4f46e5;
  --primary-hover: #4338ca;
  --bg-main: #f8fafc;
  --chat-bg: #ffffff;
  --user-bubble: #4f46e5;
  --ai-bubble: #f1f5f9;
  --text-primary: #0f172a;
  --text-secondary: #64748b;
  --border: #e2e8f0;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Hind Siliguri', 'Inter', -apple-system, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */
.app-header {
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 50;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: #1e1b4b;
}

.brand-icon {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, #4f46e5, #06b6d4);
  color: white;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.brand-text h1 {
  font-size: 1.15rem;
  font-weight: 700;
}

.brand-text span {
  font-size: 0.75rem;
  color: #4f46e5;
  font-weight: 600;
}

.header-badges {
  display: flex;
  gap: 0.5rem;
}

.badge-pill {
  background: #e0e7ff;
  color: #3730a3;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}

/* Main Chat Container */
.chat-container {
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 1rem;
}

/* Suggested Chips */
.quick-chips-wrapper {
  margin-bottom: 1rem;
}

.quick-chips-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.quick-chips {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.chip-btn {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  padding: 0.4rem 0.85rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
}

.chip-btn:hover {
  background: #4f46e5;
  color: white;
  border-color: #4f46e5;
}

/* Chat History Window */
.chat-window {
  flex: 1;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.25rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  min-height: 420px;
  max-height: 550px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.chat-bubble {
  display: flex;
  gap: 0.75rem;
  max-width: 85%;
  line-height: 1.6;
  font-size: 0.95rem;
}

.chat-bubble.user {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.chat-bubble.ai {
  align-self: flex-start;
}

.bubble-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.chat-bubble.user .bubble-avatar {
  background: #4f46e5;
  color: white;
}

.chat-bubble.ai .bubble-avatar {
  background: linear-gradient(135deg, #06b6d4, #3b82f6);
  color: white;
}

.bubble-content {
  padding: 0.85rem 1.15rem;
  border-radius: 14px;
}

.chat-bubble.user .bubble-content {
  background: var(--user-bubble);
  color: white;
  border-bottom-right-radius: 2px;
}

.chat-bubble.ai .bubble-content {
  background: var(--ai-bubble);
  color: #1e293b;
  border-bottom-left-radius: 2px;
}

.bubble-content h3 {
  font-size: 1rem;
  color: #3730a3;
  margin-bottom: 0.5rem;
}

.bubble-content ul {
  padding-left: 1.25rem;
  margin: 0.5rem 0;
}

.bubble-content li {
  margin-bottom: 0.35rem;
}

.bubble-content a {
  color: #4f46e5;
  font-weight: 600;
  text-decoration: underline;
}

/* Chat Input Bar */
.chat-input-bar {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
  position: relative;
}

.chat-input-bar input {
  flex: 1;
  padding: 0.85rem 1.25rem;
  border: 1px solid #cbd5e1;
  border-radius: 30px;
  font-size: 0.95rem;
  font-family: inherit;
  box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}

.chat-input-bar input:focus {
  outline: none;
  border-color: #4f46e5;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

.chat-input-bar button {
  background: var(--primary);
  color: white;
  border: none;
  padding: 0 1.5rem;
  border-radius: 30px;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  transition: background 0.15s ease;
}

.chat-input-bar button:hover {
  background: var(--primary-hover);
}

/* Ad Slot */
.ad-slot {
  max-width: 900px;
  margin: 1rem auto;
  text-align: center;
  background: #f1f5f9;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  padding: 10px;
}

/* Footer */
.app-footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 2rem 1.5rem;
  font-size: 0.85rem;
  margin-top: auto;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: #cbd5e1;
  text-decoration: none;
}

.footer-links a:hover {
  color: #818cf8;
}
