@tailwind base;
@tailwind components;
@tailwind utilities;
:root {
  --background: #000;
  --chat-background: #111;
  --user-message: #1c1c1c;
  --bot-message: #141414;
  --input-background: #1a1a1a;
  --primary: #333;
  --primary-hover: #404040;
  --accent: #666;
  --text: #fff;
  --text-secondary: grey;
  --border: hsla(0, 0%, 50%, 0.1);
}
* {
  box-sizing: border-box;
}
*,
body,
html {
  margin: 0;
  padding: 0;
}
body,
html {
  width: 100%;
  height: 100%;
  background-color: var(--background);
  color: var(--text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto,
    sans-serif;
}
.header {
  background: rgba(0, 2, 18, 0.8);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0 1.5rem;
  height: 60px;
  display: flex;
  align-items: center;
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 10;
}
.logo,
.logo-icon {
  display: none;
}
.chat-history {
  position: fixed;
  left: 0;
  top: 0;
  width: 300px;
  height: 100vh;
  background: var(--chat-background);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  z-index: 20;
  transition: transform 0.3s ease;
}
.chat-history-header {
  padding: 1rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.chat-history-footer {
  padding: 1rem;
  border-top: 1px solid var(--border);
  background: var(--chat-background);
}
.new-chat-button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: linear-gradient(135deg, var(--primary), var(--primary-hover));
  color: #fff;
  border-radius: 12px;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.3s ease;
}
.new-chat-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 15px rgba(255, 61, 0, 0.2);
}
.chat-list {
  flex: 1 1;
  overflow-y: auto;
  padding: 1rem;
}
.chat-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem;
  border-radius: 12px;
  color: var(--text);
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.875rem;
  border: 1px solid transparent;
}
.chat-item:hover {
  background: var(--user-message);
  border-color: var(--border);
}
.chat-item.active {
  background: var(--user-message);
  border-color: var(--primary);
}
.chat-item-icon {
  width: 18px;
  height: 18px;
  color: var(--primary);
}
.chat-item-title {
  flex: 1 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.main-content {
  margin-left: 300px;
  height: 100vh;
  flex-direction: column;
  background: radial-gradient(
      circle at top,
      rgba(255, 61, 0, 0.05) 0,
      transparent 70%
    ),
    radial-gradient(
      circle at bottom,
      rgba(0, 229, 255, 0.05) 0,
      transparent 70%
    );
}
.chat-area,
.main-content {
  display: flex;
  overflow: hidden;
}
.chat-area {
  position: relative;
}
.chat-area,
.messages {
  flex: 1 1;
  flex-direction: column;
}
.messages {
  overflow-y: scroll;
  display: flex;
  padding: 2rem 1.5rem;
  gap: 1rem;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
  margin-bottom: 0;
}
.messages::-webkit-scrollbar {
  width: 6px;
}
.messages::-webkit-scrollbar-track {
  background: transparent;
}
.messages::-webkit-scrollbar-thumb {
  background-color: var(--border);
  border-radius: 3px;
}
.messages::-webkit-scrollbar-thumb:hover {
  background-color: var(--text-secondary);
}
.message {
  max-width: 85%;
  margin-bottom: 1.5rem;
  animation: fadeIn 0.3s ease;
}
.message-user {
  margin-left: auto;
  background: linear-gradient(135deg, var(--primary), var(--primary-hover));
  padding: 1rem 1.5rem;
  border-radius: 16px 16px 4px 16px;
  color: #fff;
}
.message-assistant {
  margin-right: auto;
  background: var(--bot-message);
  padding: 1rem 1.5rem;
  border-radius: 16px 16px 16px 4px;
  border: 1px solid var(--border);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.message-content {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.avatar {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}
.user-avatar {
  background: linear-gradient(135deg, var(--primary), var(--primary-hover));
}
.bot-avatar {
  background: linear-gradient(135deg, var(--accent), #00b8d4);
}
.input-area {
  padding: 1.5rem;
  background: rgba(0, 2, 18, 0.8);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
}
.input-form {
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: 900px;
  margin: 0 auto;
  background: var(--input-background);
  padding: 0.75rem;
  border-radius: 16px;
  border: 1px solid var(--border);
  transition: border-color 0.3s ease;
}
.input-form:focus-within {
  border-color: var(--primary);
}
.input-field {
  flex: 1 1;
  padding: 0.5rem 1rem;
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.5;
}
.input-field:focus {
  outline: none;
}
.input-field::placeholder {
  color: var(--text-secondary);
}
.send-button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, var(--primary), var(--primary-hover));
  color: #fff;
  border-radius: 12px;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.3s ease;
}
.send-button:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 5px 15px rgba(255, 61, 0, 0.2);
}
.send-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 160px);
  text-align: center;
  padding: 2rem;
}
.welcome-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.example-buttons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  grid-gap: 1rem;
  gap: 1rem;
  width: 100%;
  max-width: 800px;
  margin-top: 2rem;
}
.example-button {
  padding: 1rem 1.5rem;
  background: var(--chat-background);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  text-align: left;
  transition: all 0.3s ease;
  font-weight: 500;
}
.example-button:hover {
  background: var(--user-message);
  border-color: var(--primary);
  transform: translateY(-1px);
}
.loading-dots {
  display: flex;
  gap: 0.5rem;
  padding: 1rem;
  justify-content: center;
}
.loading-dot {
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  animation: bounce 1.4s ease-in-out infinite;
  opacity: 0.6;
}
.loading-dot:first-child {
  animation-delay: -0.32s;
}
.loading-dot:nth-child(2) {
  animation-delay: -0.16s;
}
@keyframes bounce {
  0%,
  80%,
  to {
    transform: scale(0);
  }
  40% {
    transform: scale(1);
  }
}
@keyframes fadeIn {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.token-status {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  font-size: 0.875rem;
  font-weight: 500;
  background: var(--input-background);
  border: 1px solid var(--border);
  transition: all 0.3s ease;
  margin-bottom: 0.75rem;
}
.token-status.active {
  background: rgba(0, 229, 255, 0.05);
  border: 1px solid rgba(0, 229, 255, 0.2);
}
.token-status.inactive {
  background: rgba(255, 61, 0, 0.05);
  border: 1px solid rgba(255, 61, 0, 0.2);
}
.token-status .balance {
  color: var(--text);
  font-weight: 600;
}
.token-status .symbol {
  color: var(--text-secondary);
  font-size: 0.75rem;
}
.wallet-button,
.wallet-connect-container {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.wallet-button {
  padding: 0.5rem 1rem;
  background: linear-gradient(90deg, #ff3d00, #00e5ff);
  color: #fff;
  border-radius: 0.75rem;
  font-weight: 500;
  transition: all 0.3s;
}
.wallet-button:hover {
  opacity: 0.9;
}
.wallet-button.connect {
  background: linear-gradient(90deg, #ff3d00, #00e5ff);
}
.wallet-icon {
  width: 1.25rem;
  height: 1.25rem;
}
.chain-button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: hsla(0, 0%, 100%, 0.1);
  border-radius: 0.75rem;
  font-weight: 500;
  transition: all 0.3s;
}
.chain-button:hover {
  background: hsla(0, 0%, 100%, 0.15);
}
.chain-icon {
  width: 1.25rem;
  height: 1.25rem;
}
.address-text {
  font-family: monospace;
}
.dialog-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 2, 18, 0.8);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  z-index: 25;
  animation: fadeIn 0.2s ease;
}
.clear-chat-dialog {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--chat-background);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  width: 90%;
  max-width: 450px;
  z-index: 30;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  animation: fadeIn 0.3s ease;
}
.dialog-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.dialog-icon {
  width: 32px;
  height: 32px;
  color: var(--primary);
}
.dialog-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text);
}
.dialog-content {
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.6;
  font-size: 1rem;
}
.dialog-buttons {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
}
.dialog-button {
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.3s ease;
}
.dialog-button.cancel {
  background: var(--input-background);
  color: var(--text);
  border: 1px solid var(--border);
}
.dialog-button.cancel:hover {
  background: var(--user-message);
}
.dialog-button.delete {
  background: linear-gradient(135deg, var(--primary), var(--primary-hover));
  color: #fff;
}
.dialog-button.delete:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 15px rgba(255, 61, 0, 0.2);
}
@media (max-width: 768px) {
  body,
  html {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
  }
  .chat-history {
    transform: translateX(-100%);
    width: 100%;
    max-width: 280px;
  }
  .chat-history.open {
    transform: translateX(0);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
  }
  .main-content {
    margin-left: 0;
    height: 100%;
    width: 100%;
    position: fixed;
  }
  .header {
    padding: 0 1rem;
    height: 50px;
    justify-content: space-between;
  }
  .logo,
  .logo-icon {
    display: none;
  }
  .chat-area {
    height: calc(100vh - 50px);
  }
  .messages {
    padding: 1rem;
  }
  .message {
    max-width: 95%;
  }
  .message-content {
    gap: 0.75rem;
  }
  .avatar {
    width: 32px;
    height: 32px;
    font-size: 1rem;
  }
  .input-area {
    padding: 0.75rem;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 2, 18, 0.95);
  }
  .input-form {
    padding: 0.5rem;
    margin: 0;
  }
  .input-field {
    padding: 0.5rem;
    font-size: 0.875rem;
  }
  .send-button {
    padding: 0.5rem 0.75rem;
  }
  .send-button span {
    display: none;
  }
  .wallet-connect-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
  }
  .token-status {
    font-size: 0.75rem;
    background: transparent;
    border: none;
  }
  .wallet-button {
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
    white-space: nowrap;
    min-width: auto;
  }
  .wallet-button.connect {
    padding: 0.5rem 0.75rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
  }
  .chain-button {
    display: none;
  }
  .welcome-title {
    font-size: 1.75rem;
    padding: 0 1rem;
  }
  .example-buttons {
    grid-template-columns: 1fr;
    padding: 0 1rem;
  }
  .example-button {
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
  }
  .dialog-overlay {
    padding: 1rem;
  }
  .clear-chat-dialog {
    padding: 1.5rem;
    width: calc(100% - 2rem);
  }
  .dialog-title {
    font-size: 1.25rem;
  }
  .dialog-content {
    font-size: 0.875rem;
  }
  .dialog-button {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
  }
  .header button[title="Sohbeti Temizle"] {
    display: none;
  }
  .chat-history-footer {
    padding: 0.75rem;
  }
  .token-status {
    padding: 0.5rem;
    margin-bottom: 0.5rem;
  }
  .wallet-button {
    padding: 0.5rem;
  }
}
@media (max-width: 480px) {
  .token-status {
    padding: 0.375rem;
  }
  .token-status .symbol {
    display: none;
  }
  .wallet-button {
    font-size: 0.75rem;
  }
  .wallet-button,
  .wallet-button.connect {
    padding: 0.375rem 0.75rem;
  }
  .address-text {
    max-width: 60px;
  }
  .input-form {
    padding: 0.375rem;
  }
  .input-field {
    padding: 0.375rem 0.5rem;
  }
  .send-button {
    padding: 0.375rem;
  }
  .message {
    max-width: 100%;
  }
  .message-content {
    gap: 0.5rem;
  }
  .avatar {
    width: 28px;
    height: 28px;
  }
  .chat-history-footer {
    padding: 0.5rem;
  }
}
.generated-image {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  width: 100%;
  max-width: 512px;
  margin: 0 auto;
}
.generated-image img {
  border-radius: 12px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
  max-width: 100%;
  height: auto;
}
