@import url('https://fonts.googleapis.com/css2?family=ABeeZee&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'ABeeZee', sans-serif;
}

body {
  background-color: #0f1115;
  color: #e0e6ed;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  padding: 40px 20px;
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: 1200px;
}

header {
  background: rgba(24, 26, 32, 0.9);
  color: #ff00d2;
  text-align: center;
  padding: 16px 12px;
  border-radius: 12px;
  letter-spacing: 1px;
  font-size: 28px;
  font-weight: bold;
  box-shadow: 0 8px 24px rgba(5, 237, 150, 0.15);
  backdrop-filter: blur(6px);
  margin-bottom: 20px;
  animation: fadeInDown 0.6s ease;
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

.balance-container {
  display: flex;
  justify-content: space-evenly;
  gap: 20px;
  background: #181a20;
  border-radius: 10px;
  padding: 12px;
  color: #00bcd4;
  font-size: 14px;
  font-weight: bold;
  border: 1px solid #00bcd4;
  margin-top: 10px;
}

.token-info {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-top: 10px;
  color: #fcd34d;
  font-weight: bold;
  font-size: 15px;
  text-shadow: 0 0 2px #000;
}

.layout {
  display: flex;
  flex-direction: row;
  gap: 30px;
  margin-top: 30px;
}

.left-section {
  width: 40%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.bot-controls {
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding: 20px;
  background: rgba(24, 26, 32, 0.85);
  border: 1px solid #00bcd4;
  border-radius: 14px;
  box-shadow: 0 0 20px rgba(5, 237, 150, 0.07);
  backdrop-filter: blur(8px);
}

.input-field,
.input-file {
  width: 100%;
  padding: 14px;
  font-size: 14px;
  border: 1px solid #353945;
  border-radius: 10px;
  background-color: #1b1d23;
  color: #f1f5f9;
  transition: all 0.3s ease;
}
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type=number] {
  -moz-appearance: textfield; 
}


.input-field:focus,
.input-file:focus {
  border-color: #05ed96;
  outline: none;
  box-shadow: 0 0 10px rgba(5, 237, 150, 0.3);
}

.row-fields {
  display: flex;
  gap: 15px;
  width: 100%;
}
.row-fields .input-field {
  flex: 1;
}

.full-width {
  width: 100%;
}

select.input-field {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg fill='white' height='20' viewBox='0 0 24 24' width='20' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 40px;
}

.log {
  width: 70%;
  height: 525px;
  position: relative;
  border-radius: 14px;
  background: rgba(23, 25, 30, 1);
  border: 1px solid #20232a;
  font-family: 'ABeeZee', monospace;
  font-size: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.log-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.08;
  z-index: 0;
}

.log-messages {
  flex: 1;
  overflow-y: auto;
  padding: 15px;
  z-index: 2;
  position: relative;
  transition: opacity 0.3s ease;
}

.log-messages p {
  background: #2c2f36;
  padding: 10px;
  margin-bottom: 8px;
  border-left: 4px solid #00bcd4;
  border-radius: 6px;
  transition: all 0.2s ease-in-out;
}

.log-messages p:hover {
  transform: translateX(4px);
  background-color: #343942;
}

.dex-chart-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  display: none;
}

.toggle-chart-box {
  padding: 8px 12px;
  z-index: 4;
  position: relative;
  color: #00bcd4;
  font-weight: bold;
}

.log-messages::-webkit-scrollbar {
  width: 6px;
}
.log-messages::-webkit-scrollbar-thumb {
  background: #00bcd4;
  border-radius: 10px;
}
.log-messages::-webkit-scrollbar-track {
  background: transparent;
}

.bottom-controls {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  width: 100%;
}

.bottom-controls .btn {
  min-width: 140px;
  max-width: 200px;
  flex: 1;
}

.btn {
  padding: 14px;
  font-size: 15px;
  font-weight: bold;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.25s ease;
  border: none;
}

.start-btn {
  background: linear-gradient(135deg, #00bcd4, #00bcd4);
  color: #121212;
}
.start-btn:hover {
  background: linear-gradient(135deg, #038709, #038709);
  transform: scale(1.03);
}

.stop-btn {
  background: linear-gradient(135deg, #e84142, #c52f30);
  color: white;
}
.stop-btn:hover {
  background: linear-gradient(135deg, #c52f30, #a62627);
  transform: scale(1.03);
}

.manual-buy-btn {
  background: linear-gradient(135deg, #00bcd4, #00bcd4);
  color: #121212;
}
.manual-buy-btn:hover {
  background: linear-gradient(135deg, #038709, #038709);
  transform: scale(1.03);
}

.manual-sell-btn {
  background: linear-gradient(135deg, #e84142, #c52f30);
  color: white;
}
.manual-sell-btn:hover {
  background: linear-gradient(135deg, #c52f30, #a62627);
  transform: scale(1.03);
}

/* Responsive */
@media (max-width: 768px) {
  .layout {
    flex-direction: column;
    gap: 20px;
  }

  .left-section,
  .log,
  .bottom-controls {
    width: 100%;
  }

  .balance-container {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .token-info {
    flex-direction: column;
    gap: 5px;
    font-size: 14px;
  }

  .bottom-controls {
    flex-direction: column;
    align-items: center;
  }

  .bottom-controls .btn {
    width: 100%;
    max-width: none;
  }

  header {
    font-size: 22px;
    padding: 12px;
  }

  .input-field,
  .input-file {
    font-size: 13px;
    padding: 12px;
  }

  select.input-field {
    padding-right: 36px;
    background-size: 14px;
  }
}
