:root {
  --bg-color: #030303;
  --accent-color: #ffffff;
  --gradient-start: #0a0a0a;
  --gradient-end: #000000;
}

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

body {
  background: radial-gradient(
    circle at center,
    var(--gradient-start) 0%,
    var(--gradient-end) 100%
  );
  background-color: var(--bg-color);
  height: 100vh;
  width: 100vw;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  font-family:
    'Inter',
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    Roboto,
    Helvetica,
    Arial,
    sans-serif;
}

.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  animation: fadeIn 1.5s ease-out;
}

.logo-wrapper {
  width: 300px;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.1));
}

.logo-wrapper:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 0 30px rgba(255, 255, 255, 0.2));
}

.logo-wrapper img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

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

.result-container {
  width: 100%;
  max-width: 600px;
  max-height: 50vh;
  overflow-y: auto;
  margin: 20px 0;
  padding: 20px;
  display: none;
  animation: fadeIn 0.5s ease-out;
  color: #ddd;
  font-size: 15px;
  line-height: 1.6;
}

.result-container.visible {
  display: block;
}

/* Custom Scrollbar for Result Container */
.result-container::-webkit-scrollbar {
  width: 6px;
}

.result-container::-webkit-scrollbar-track {
  background: transparent;
}

.result-container::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}

.result-container::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

.result-container a {
  color: #fff;
}

.result-container img {
  border-radius: 20px;
}

.input-wrapper {
  position: relative;
  width: 100%;
  max-width: 400px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.05);
  padding: 8px 16px;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.input-wrapper:focus-within {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.05);
}

#prompt-input {
  flex: 1;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 16px;
  outline: none;
  font-family: inherit;
}

#prompt-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

#send-button {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  padding: 4px;
}

#send-button:hover {
  color: #fff;
  transform: translateX(2px);
}

#send-button.loading {
  animation: pulse 1s infinite;
  opacity: 0.5;
  pointer-events: none;
}

#send-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

.error-msg {
  color: #ff4d4d;
  font-size: 14px;
  text-align: center;
}

/* Subtle background animation */
body::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMDAiIGhlaWdodD0iMjAwIiB2aWV3Qm94PSIwIDAgMjAwIDIwMCI+PGNpcmNsZSBjeD0iMTAwIiBjeT0iMTAwIiByPSIxIiBmaWxsPSJyZ2JhKDI1NSwyNTUsMjU1LDAuMDUpIi8+PC9zdmc+');
  opacity: 0.3;
  pointer-events: none;
}
