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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #000;
  color: #fff;
  height: 100vh;
  overflow: hidden;
}

.container {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
}

/* Background style */
.background {
  position: fixed;
  inset: 0;
  overflow: hidden;
  z-index: -1;
}

.gradient-orb {
  position: absolute;
  width: 800px;
  height: 800px;
  border-radius: 50%;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  filter: blur(150px);
  opacity: 0.3;
  animation: float 8s ease-in-out infinite;
}

.pink {
  background: linear-gradient(45deg, rgba(236, 72, 153, 0.3), rgba(139, 92, 246, 0.3));
  animation-delay: -2s;
}

.purple {
  background: linear-gradient(-45deg, rgba(96, 165, 250, 0.3), rgba(236, 72, 153, 0.3));
  animation-delay: -4s;
}

.blue {
  background: linear-gradient(90deg, rgba(139, 92, 246, 0.3), rgba(96, 165, 250, 0.3));
  animation-delay: -6s;
}

/* Top navigation style */
.top-nav {
  position: relative;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  z-index: 10;
}

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

.logo-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ec4899, #8b5cf6);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.title {
  font-size: 1.5rem;
  font-weight: bold;
  color: white;
}

.wallet-button {
  background-color: #ec4899;
  color: white;
  padding: 8px 16px;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.wallet-button:hover {
  opacity: 0.9;
}

.nav-logo {
  width: 50%;
  height: 50%;
  object-fit: cover;
}

/* Chat container style */
.chat-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* Internet Explorer 10+ */
}

.messages::-webkit-scrollbar {
  display: none; /* WebKit */
}

.message {
  display: flex;
  align-items: flex-start;
  max-width: 80%;
}

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

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

.avatar {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
}

.avatar img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.message-content {
  background: linear-gradient(135deg, #ec4899, #8b5cf6);
  backdrop-filter: blur(10px);
  padding: 15px 30px;
  border-radius: 12px;
  color: white;
  line-height: 1.5;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.message.user .message-content {
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.3), rgba(139, 92, 246, 0.3));
}

.message-content h1,
.message-content h2,
.message-content h3,
.message-content h4,
.message-content h5,
.message-content h6 {
  margin: 0.5em 0;
  color: #ec4899;
}

.message-content p {
  margin: 0.5em 0;
}

.message-content code {
  background: rgba(255, 255, 255, 0.1);
  padding: 0.2em 0.4em;
  border-radius: 3px;
  font-family: monospace;
}

.message-content pre {
  background: rgba(255, 255, 255, 0.1);
  padding: 1em;
  border-radius: 4px;
  overflow-x: auto;
  margin: 0.5em 0;
}

.input-container {
  padding: 20px;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: white;
  resize: none;
  outline: none;
  font-family: inherit;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* Internet Explorer 10+ */
}

textarea::-webkit-scrollbar {
  display: none; /* WebKit */
}

textarea::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.input-controls {
  display: flex;
  justify-content: space-between;
}

#model-select {
  padding: 12px;
  background: rgba(255, 255, 255, 0.05);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  outline: none;
  cursor: pointer;
  font-family: inherit;
  transition: background-color 0.3s ease;
}

#model-select:hover {
  background: rgba(255, 255, 255, 0.1);
}

#model-select option {
  background: #1a1a1a;
}

button {
  padding: 12px 24px;
  background: linear-gradient(135deg, #ec4899, #8b5cf6);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  transition: opacity 0.3s ease;
}

button:hover {
  opacity: 0.9;
}

/* Bottom navigation style */
.bottom-nav {
  position: relative;
  padding: 1rem;
  display: flex;
  justify-content: center;
  gap: 3rem;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  z-index: 10;
  align-items: center;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition: all 0.3s ease;
}

.nav-item:hover {
  color: rgba(255, 255, 255, 0.8);
}

.nav-item.active {
  color: #fff;
  background-color: #ec4899;
  width: 65px;
  padding: 10px 0;
  border-radius: 10px;
}

.nav-item .icon {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.nav-item span {
  font-size: 0.75rem;
  font-weight: 500;
  margin-top: -5px;
}

/* New styles for analysis steps */
.analysis-steps {
  background: rgba(23, 23, 23, 0.8);
  border-left: 3px solid #8b5cf6;
  padding: 10px;
  padding-left: 30px;
  margin-bottom: 10px;
  margin-left: 60px;
  border-radius: 0 5px 5px 0;
  font-size: 0.9em;
  color: rgba(255, 255, 255, 0.7);
}

.analysis-steps p {
  margin-bottom: 5px;
}

/* New styles for summary */
.summary {
  background: rgba(139, 92, 246, 0.1);
  border-left: 3px solid #8b5cf6;
  padding: 10px;
  margin-bottom: 10px;
  border-radius: 0 5px 5px 0;
}

@keyframes float {
  0%,
  100% {
    transform: translate(-50%, -50%) translateY(-30px) translateX(-20px);
  }
  25% {
    transform: translate(-50%, -50%) translateY(0px) translateX(20px);
  }
  50% {
    transform: translate(-50%, -50%) translateY(30px) translateX(-10px);
  }
  75% {
    transform: translate(-50%, -50%) translateY(0px) translateX(10px);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile styles */
@media (max-width: 768px) {
  .input-container {
    position: relative;
        height: 150px;
        width: 94%;
        margin: 0 auto;
        padding: 12px;
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.05);
  }

  textarea {
    height: 45%;
    /* padding-bottom: 50px; */
  }

  .input-controls {
    position: absolute;
        bottom: 30px;
        left: 14px;
        right: 14px;
        display: flex;
        justify-content: space-between;
        align-items: center;

  }

  #model-select {
    height: 40px;
    padding: 0 12px;
  }

  #send-button {
    height: 40px;
    padding: 0 24px;
  }
}

