* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

html, body {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #e0f2fe 0%, #f0f4f9 50%, #ffffff 100%);
  background-attachment: fixed;
  color: #1f1f1f;
  overflow: hidden;
}

body {
  display: flex;
  flex-direction: column;
}

.top-bar {
  flex-shrink: 0;
  width: 100%;
  height: 64px;
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #e0e0e0;
  z-index: 1000;
}

.logo-container {
  display: flex;
  align-items: center;
}

.logo-text {
  font-weight: 600;
  font-size: 1.2rem;
  color: #0b57d0;
}

.top-bar .nav-links {
  display: flex;
  gap: 8px;
}

.nav-btn {
  text-decoration: none;
  color: #1f1f1f;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 8px 14px;
  border-radius: 8px;
  transition: background-color 0.2s;
}

.nav-btn:hover {
  background-color: rgba(240, 244, 249, 0.8);
}

.chat-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  overflow: hidden;
  position: relative;
  transition: justify-content 0.3s ease;
}

.chat-wrapper.active {
  justify-content: flex-start;
}

.chat-container {
  max-width: 800px;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 20px;
}

.welcome-banner {
  text-align: center;
  margin-bottom: 10px;
}

.welcome-banner h1 {
  font-size: 2.2rem;
  font-weight: 500;
  color: #1f1f1f;
}

.message {
  max-width: 80%;
  padding: 16px 20px;
  border-radius: 16px;
  line-height: 1.5;
  font-size: 1rem;
}

.user-message {
  align-self: flex-end;
  background-color: #f0f4f9;
  border: 1px solid #e0e0e0;
  border-bottom-right-radius: 4px;
}

.ai-message {
  align-self: flex-start;
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-bottom-left-radius: 4px;
}

.input-container {
  flex-shrink: 0;
  width: 100%;
  height: 75px;
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-top: 1px solid #e0e0e0;
  display: flex;
  align-items: center;
  padding: 12px 24px;
  gap: 12px;
  z-index: 2000;
}

.upload-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: #444746;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.upload-btn:hover {
  background-color: #e2e7ec;
}

.chat-input {
  flex: 1;
  border: 1px solid #dadce0;
  background: #f0f4f9;
  padding: 12px 16px;
  font-size: 1rem;
  border-radius: 24px;
  outline: none;
  color: #1f1f1f;
}

.send-btn {
  background-color: #0b57d0;
  color: white;
  border: none;
  cursor: pointer;
  padding: 10px 20px;
  border-radius: 20px;
  font-weight: 500;
  font-size: 0.9rem;
  transition: background-color 0.2s;
}

.send-btn:hover {
  background-color: #084298;
}

.requests-container {
  max-width: 800px;
  width: 100%;
  margin: 90px auto 40px auto;
  padding: 24px;
}

.requests-header {
  margin-bottom: 30px;
}

.requests-header h1 {
  font-size: 1.8rem;
  font-weight: 500;
  margin-bottom: 8px;
}

.request-form-card {
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid #e0e0e0;
  border-radius: 20px;
  padding: 32px;
  max-width: 650px;
  margin: 0 auto;
  box-shadow: 0 4px 16px rgba(0,0,0,0.04);
}

.form-group {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group input, 
.form-group textarea {
  padding: 12px 16px;
  border: 1px solid #dadce0;
  border-radius: 12px;
  font-size: 1rem;
  outline: none;
  background-color: #ffffff;
}

.submit-request-btn {
  background-color: #0b57d0;
  color: white;
  border: none;
  padding: 14px;
  width: 100%;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
}

.typing-indicator {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 12px 16px;
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 18px;
  width: fit-content;
  margin-bottom: 10px;
  border-bottom-left-radius: 4px;
  align-self: flex-start;
}

.typing-dot {
  width: 8px;
  height: 8px;
  background-color: #555;
  border-radius: 50%;
  animation: bounce 1.4s infinite ease-in-out both;
}

.typing-dot:nth-child(1) { animation-delay: -0.32s; }
.typing-dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes bounce {
  0%, 80%, 100% { transform: scale(0); }
  40% { transform: scale(1.0); }
}
