body {
  margin: 0;
  font-family: Inter, sans-serif;
  background: #0d1117;
  color: #e6edf3;
}

/* Layout */
.container {
  display: flex;
}

/* Sidebar */
.sidebar {
  width: 240px;
  background: #161b22;
  height: 100vh;
  padding: 20px;
}

.sidebar h2 {
  color: #58a6ff;
}

.sidebar ul {
  list-style: none;
  padding: 0;
}

.sidebar li {
  margin: 15px 0;
  cursor: pointer;
  color: #c9d1d9;
}

.sidebar li:hover {
  color: #58a6ff;
}

/* Main */
.main {
  flex: 1;
  padding: 30px;
}

/* Cards */
.cards {
  display: flex;
  gap: 20px;
}

.card {
  background: linear-gradient(145deg, #0f1720, #0b0f14);
  padding: 20px;
  border-radius: 12px;
  border: 1px solid rgba(0, 255, 159, 0.15);
  box-shadow: 0 0 20px rgba(0, 255, 159, 0.05);
  transition: 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 25px rgba(0, 255, 159, 0.2);
}

/* Terminal */
.terminal {
  background: #020617;
  border: 1px solid rgba(0,255,159,0.2);
  box-shadow: inset 0 0 10px rgba(0,255,159,0.05);
}

#terminalOutput {
  color: #00ff9f;
  font-size: 14px;
  line-height: 1.6;
}

/* Inputs */
input {
  margin-top: 10px;
  padding: 10px;
  width: 220px;
  background: #0d1117;
  color: white;
  border: 1px solid #30363d;
  border-radius: 6px;
}

/* Button */
button {
  padding: 8px 12px;
  background: linear-gradient(90deg, #00ff9f, #00cc7a);
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  color: black;
  transition: 0.2s ease;
}

button:hover {
  filter: brightness(1.2);
  transform: scale(1.05);
}

button:hover {
  background: #2ea043;
}
button {
  background: linear-gradient(90deg, #00ff9f, #00cc7a);
  border-radius: 6px;
  font-weight: bold;
}

button:hover {
  filter: brightness(1.2);
}
.tx-item {
  display: flex;
  justify-content: space-between;
  padding: 10px;
  border-bottom: 1px solid #1f2a36;
  font-size: 14px;
}

.tx-type {
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 4px;
}

.tx-type.send { color: #ff6b6b; }
.tx-type.recv { color: #00ff9f; }
.tx-type.swap { color: #4dabf7; }
.tx-type.exec { color: #ffd43b; }

.tx-addr { opacity: 0.7; }
.tx-time { opacity: 0.5; }
.sidebar li {
  margin: 18px 0;
  padding: 8px 10px;
  border-radius: 6px;
}
.sidebar li:hover {
  background: rgba(77, 171, 247, 0.15);
  color: #4dabf7;
}
.tx-amount {
  font-weight: bold;
}

.tx-type {
  min-width: 60px;
  display: inline-block;
}
/* ========================= */
/* 🔥 UI POLISH (ADD AT END) */
/* ========================= */

/* 1. Glow / premium feel */
.card {
  box-shadow: 0 0 0 rgba(0,0,0,0);
  transition: all 0.2s ease;
}

.card:hover {
  box-shadow: 0 0 20px rgba(0, 255, 159, 0.15);
  transform: translateY(-2px);
}

/* 2. Sidebar upgrade */
.sidebar li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  opacity: 0.8;
}

.sidebar li:hover {
  opacity: 1;
}

/* 3. System activity animation */
.tx-item {
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.balance-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.label {
  font-size: 12px;
  color: #888;
}

.wallet-address p {
  font-size: 13px;
  color: #ccc;
  word-break: break-all;
}

.wallet-balance h2 {
  font-size: 22px;
  font-weight: bold;
  color: #4dabf7;
}
.balance-card {
  padding: 10px;
  border-radius: 8px;
}

.wallet-balance h2 {
  text-shadow: 0 0 10px rgba(77, 171, 247, 0.4);
}
#balanceResult {
  margin-top: 10px;
  line-height: 1.6;
  font-size: 14px;
  color: #ccc;
}
#balanceResult {
  margin-top: 10px;
  line-height: 1.6;
  font-size: 14px;
  color: #ccc;
}
/* ===== FINAL LAYOUT (CLEAN) ===== */

/* Top cards row */
.cards {
  display: flex;
  gap: 20px;
  margin-bottom: 25px;
}

.cards .card {
  flex: 1;
}

/* Bottom layout */
.bottom {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 20px;
}

/* Terminal styling */
.terminal {
  background: #020617;
  border: 1px solid rgba(0,255,159,0.2);
  box-shadow: inset 0 0 10px rgba(0,255,159,0.05);
  height: 300px;
  display: flex;
  flex-direction: column;
}

#terminalOutput {
  flex: 1;
  overflow-y: auto;
  padding: 10px;
}

/* Fix SOL balance spacing */
#walletAddress {
  font-size: 13px;
  opacity: 0.7;
  margin-bottom: 10px;
  word-break: break-all;
}

#balanceAmount {
  font-size: 20px;
  font-weight: bold;
  color: #00ff9f;
}
#balanceResult {
  margin-top: 10px;
  line-height: 1.6;
  font-size: 14px;
  color: #ccc;
}
.tx-item {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 12px;
}

.tx-item p {
  margin: 4px 0;
  font-size: 13px;
  color: #d1d5db;
}
#txFeed {
  max-height: 300px;
  overflow-y: auto;
  padding-right: 6px;
}
#txFeed::-webkit-scrollbar {
  width: 6px;
}

#txFeed::-webkit-scrollbar-thumb {
  background: #22c55e;
  border-radius: 10px;
}
.tx-item strong {
  color: white;
}
/* MOBILE RESPONSIVENESS */
@media (max-width: 900px) {
  .container {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    height: auto;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  input {
    width: 100%;
  }
}
/* ================== YENDO RESPONSIVE LAYOUT ================== */

.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* SOL Balance - Normal size */
.sol-balance-card {
  max-width: 280px;
  padding: 20px;
  flex-shrink: 0;
}

/* Make AI section take most of the space */
.ai-card {
  flex: 1;
  min-height: 65vh;
  display: flex;
  flex-direction: column;
}

/* Terminal / Response area */
#aiResponse {
  flex: 1;
  min-height: 300px;
  line-height: 1.6;
  overflow-y: auto;
}

/* Responsive for smaller screens */
@media (max-width: 768px) {
  .container {
    padding: 12px;
  }
  
  .sol-balance-card {
    max-width: 100%;
  }
  
  .ai-card {
    min-height: 55vh;
  }
}
#aiInput {
  background: #0d1117;
  color: white;
  border: 1px solid #30363d;
}
.logo-container {
  display: flex;
  justify-content: center;
  margin-top: 40px;
  margin-bottom: 20px;
}

.yendo-logo {
  width: 280px;
  max-width: 90%;
  height: auto;
}
.login-card {
  background: #111111;
  border-radius: 16px;
  padding: 40px 32px;
  width: 100%;
  max-width: 380px;
  margin: 0 auto;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.logo {
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -2px;
  margin-bottom: 8px;
}

.logo span {
  color: #22ff88;
}

.password-container {
  position: relative;
}

.eye-icon {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: #888;
}

.links {
  margin-top: 24px;
  display: flex;
  justify-content: space-between;
  font-size: 14px;
}

.links a {
  color: #22ff88;
  text-decoration: none;
}
/* ================== BASE STYLES ================== */

.login-card, .signup-card {
  background: #111111;
  border-radius: 16px;
  padding: 40px 32px;
  width: 100%;
  max-width: 380px;
  margin: 40px auto;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.logo, .yendo-logo {
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -2px;
  margin-bottom: 16px;
  color: white;
}

.logo span, .yendo-logo span {
  color: #22ff88;
}

.password-container {
  position: relative;
}

.eye-icon {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: #888;
  font-size: 18px;
}

.links {
  margin-top: 24px;
  display: flex;
  justify-content: space-between;
  font-size: 14px;
}

.links a {
  color: #22ff88;
  text-decoration: none;
}

/* ================== MOBILE RESPONSIVE ================== */

@media (max-width: 768px) {
  .login-card, .signup-card {
    margin: 20px 16px !important;
    padding: 32px 24px !important;
    max-width: 92% !important;
  }

  .logo, .yendo-logo {
    font-size: 36px !important;
  }

  h1 {
    font-size: 26px !important;
  }

  input {
    font-size: 16px !important;
    padding: 14px 16px !important;
  }

  button {
    padding: 16px !important;
    font-size: 17px !important;
  }

  .links {
    font-size: 15px !important;
  }
}
/* ================== DASHBOARD MOBILE FIX ================== */

@media (max-width: 768px) {
  .container {
    padding: 12px !important;
  }

  .card {
    margin-bottom: 16px !important;
    padding: 20px !important;
  }

  .ai-card {
    min-height: 60vh !important;
  }

  /* Make SOL Balance card wider on mobile */
  .sol-balance-card {
    max-width: 100% !important;
    width: 100% !important;
  }

  #aiResponse {
    min-height: 250px !important;
  }
}
.container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 20px;
  max-width: 1400px;
  margin: 0 auto;
}

.card {
  background: #111;
  border-radius: 12px;
  padding: 20px;
}

.sol-balance-card {
  max-width: 280px;
}

.ai-card {
  flex: 1;
  min-height: 60vh;
}

/* Mobile */
@media (max-width: 768px) {
  .container {
    padding: 12px;
  }
  .sol-balance-card {
    max-width: 100%;
  }
  .ai-card {
    min-height: 55vh;
  }
}
/* ================== MODERN AI TERMINAL ================== */

.ai-card {
  background: #0f0f0f;
  border-radius: 16px;
  padding: 24px;
  min-height: 65vh;
  display: flex;
  flex-direction: column;
  border: 1px solid #222;
}

.ai-card h2 {
  color: #22ff88;
  margin-bottom: 12px;
  font-size: 20px;
}

.ai-card p {
  color: #aaa;
  margin-bottom: 20px;
  line-height: 1.5;
}

/* Input Area */
#aiInput {
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 12px;
  padding: 16px 20px;
  color: white;
  font-size: 16px;
  min-height: 60px;
  resize: none;
  margin-bottom: 12px;
}

#aiInput:focus {
  outline: none;
  border-color: #22ff88;
  box-shadow: 0 0 0 3px rgba(34, 255, 136, 0.1);
}

/* Ask Button */
button[onclick="askYendoAI"] {
  background: #22ff88;
  color: black;
  font-weight: 600;
  padding: 14px 24px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-size: 16px;
  transition: all 0.2s;
}

button[onclick="askYendoAI"]:hover {
  background: #1aff77;
  transform: translateY(-1px);
}

/* Response Area */
#aiResponse {
  flex: 1;
  background: #151515;
  border-radius: 12px;
  padding: 20px;
  margin-top: 16px;
  line-height: 1.7;
  color: #ddd;
  overflow-y: auto;
  white-space: pre-wrap;
  border: 1px solid #222;
}
/* ================== TRANSACTION CONFIRMATION ================== */

.transaction-confirmation {
  background: #111111;
  border-radius: 16px;
  padding: 24px;
  margin: 16px 0;
}

.transaction-confirmation strong {
  color: #22ff88;
}

.transaction-confirmation p {
  margin: 12px 0;
  line-height: 1.5;
  word-break: break-all;
}

/* Buttons */
.confirm-buttons {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.confirm-buttons button {
  flex: 1;
  padding: 16px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 12px;
  border: none;
  cursor: pointer;
}

.confirm-buttons .confirm-btn {
  background: #22ff88;
  color: black;
}

.confirm-buttons .cancel-btn {
  background: #ff4444;
  color: white;
}
#disconnectWalletBtn{
    background:#dc3545;
    color:white;
    border:none;
    padding:10px 18px;
    border-radius:6px;
    cursor:pointer;
}

#disconnectWalletBtn:hover{
    background:#b52b38;
}
header nav button {
    width: 170px;      /* Same width for all buttons */
    height: 42px;      /* Same height */
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
}
#disconnectWalletBtn {
    width: 200px;
}
.logout-section {
  display: flex;
  justify-content: flex-end;
  margin-top: 25px;
}

.logout-btn {
  width: 220px; /* same width as the wallet buttons */
}
#connectWalletBtn {
    margin-right: 12px;
}