
:root {
  --primary: #E91E63;
  --primary-light: #F8BBD0;
  --primary-dark: #C2185B;
  --bg-dark: #0F172A;
  --bg-card: #1E293B;
  --text-main: #F8FAFC;
  --text-muted: #94A3B8;
  --user-bubble: #334155;
  --ai-bubble: #E91E63;
  --font-bn: 'Hind Siliguri', sans-serif;
  --font-en: 'Plus Jakarta Sans', sans-serif;
}

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

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-en);
  height: 100vh;
  overflow: hidden;
  display: flex;
  justify-content: center;
}

.app-container {
  width: 100%;
  max-width: 600px;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, var(--bg-dark) 0%, #161b22 100%);
  position: relative;
}

/* Header */
.app-header {
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(30, 41, 59, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  z-index: 10;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.logo-icon {
  width: 32px;
  height: 32px;
  background: var(--primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: white;
}

.status-badge {
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  font-weight: 500;
  transition: all 0.3s ease;
}

.status-badge.listening {
  background: rgba(233, 30, 99, 0.2);
  color: var(--primary);
  animation: pulse-text 1.5s infinite;
}

.status-badge.thinking {
  background: rgba(255, 193, 7, 0.2);
  color: #FFC107;
}

/* Chat Area */
.chat-area {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  scroll-behavior: smooth;
}

.message {
  display: flex;
  gap: 12px;
  max-width: 85%;
  animation: slideUp 0.3s ease-out;
}

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

.message.ai-message {
  align-self: flex-start;
}

.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 600;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.ai-message .avatar {
  background: var(--primary);
  color: white;
  border: none;
}

.bubble {
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 0.95rem;
  line-height: 1.5;
  position: relative;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.user-message .bubble {
  background: var(--user-bubble);
  color: var(--text-main);
  border-bottom-right-radius: 4px;
}

.ai-message .bubble {
  background: var(--ai-bubble);
  color: white;
  border-bottom-left-radius: 4px;
}

.bubble p {
  font-family: var(--font-bn);
}

/* Controls */
.controls {
  padding: 20px 0 30px;
  display: flex;
  justify-content: center;
  background: linear-gradient(0deg, var(--bg-dark) 60%, transparent 100%);
}

.mic-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.mic-btn {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--primary);
  border: none;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 8px 24px rgba(233, 30, 99, 0.4);
  z-index: 2;
}

.mic-btn:hover {
  transform: scale(1.05);
  background: var(--primary-dark);
}

.mic-btn:active {
  transform: scale(0.95);
}

.mic-btn.listening {
  background: #FF5252;
  box-shadow: 0 8px 24px rgba(255, 82, 82, 0.5);
  animation: pulse-btn 1.5s infinite;
}

.mic-btn svg {
  width: 28px;
  height: 28px;
  z-index: 3;
}

.mic-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.05em;
}

/* Animations */
@keyframes slideUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse-btn {
  0% { box-shadow: 0 0 0 0 rgba(255, 82, 82, 0.6); }
  70% { box-shadow: 0 0 0 15px rgba(255, 82, 82, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 82, 82, 0); }
}

@keyframes pulse-text {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* Scrollbar */
.chat-area::-webkit-scrollbar {
  width: 6px;
}
.chat-area::-webkit-scrollbar-track {
  background: transparent;
}
.chat-area::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

/* Mobile Adjustments */
@media (max-width: 480px) {
  .app-header { padding: 12px 16px; }
  .chat-area { padding: 16px; }
  .mic-btn { width: 64px; height: 64px; }
}
