/* General Styles */
body {
  font-family: 'Arial', sans-serif;
  background: radial-gradient(circle, #8fbfff, #e6f3ff);
  color: #333;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

header {
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid rgba(0, 102, 204, 0.3);
}

.logo {
  display: flex;
  align-items: center;
}

.logo-img {
  width: 50px;
  height: auto;
  margin-right: 10px;
}

header h1 {
  color: #0066cc;
  margin: 0;
}

nav ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
  display: flex;
}

nav ul li {
  margin: 0 10px;
}

nav ul li a {
  text-decoration: none;
  color: #0066cc;
}

nav ul li a:hover {
  color: #004499;
  text-decoration: underline;
}

.wallet-section {
  text-align: center;
  padding: 30px;
  margin-bottom: 50px;
}

.wallet-section input {
  padding: 15px;
  font-size: 18px;
  border-radius: 25px;
  border: 2px solid rgba(0, 102, 204, 0.3);
  width: 60%;
  max-width: 500px;
  background: rgba(255, 255, 255, 0.6);
  color: #333;
  text-align: center;
}

.wallet-section input::placeholder {
  color: #666;
}

.wallet-section button {
  padding: 12px 25px;
  background-color: #0066cc;
  color: white;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  font-size: 16px;
  margin-top: 10px;
}

.wallet-section button:hover {
  background-color: #0055bb;
}

.section-title {
  text-align: center;
  margin: 60px 0 40px 0;
  color: #0066cc;
}

.glass-box {
  background-color: rgba(255, 255, 255, 0.2);
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 0 25px rgba(0, 102, 204, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.3);
  margin: 20px 0;
}

.glass-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 35px rgba(0, 102, 204, 0.5);
}

.info-boxes {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
  padding: 20px;
}

footer {
  text-align: center;
  padding: 30px;
  margin-top: auto;
  border-top: 2px solid rgba(0, 102, 204, 0.3);
}

footer p {
  margin: 0;
}

footer ul {
  list-style-type: none;
  padding: 0;
}

footer ul li {
  display: inline;
  margin: 0 10px;
}

footer ul li a {
  text-decoration: none;
  color: #0066cc;
}

footer ul li a:hover {
  color: #004499;
  text-decoration: underline;
}

/* Add/Update these styles in your existing CSS */
/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal.show {
  display: flex;
}

.modal-content {
  background: linear-gradient(135deg, #e6f3ff, #8fbfff);
  padding: 40px;
  border-radius: 20px;
  width: 700px; /* Increased size */
  max-width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  color: #333;
  box-shadow: 0 0 30px rgba(0, 102, 204, 0.5);
  position: relative;
  margin: auto; /* Ensure centering */
}

/* Transaction List Styling */
.transaction-list {
  max-height: 200px;
  overflow-y: auto;
  padding-right: 15px;
}

.transaction-item {
  background: rgba(255, 255, 255, 0.2);
  padding: 10px;
  margin: 8px 0;
  border-radius: 8px;
  font-family: monospace;
  font-size: 14px;
}

/* AI Rating Section */
.ai-rating {
  background: rgba(255, 255, 255, 0.2);
  padding: 20px;
  border-radius: 15px;
  margin-top: 20px;
}

.rating-meter {
  height: 20px;
  background: #e0e0e0;
  border-radius: 10px;
  overflow: hidden;
  margin: 15px 0;
}

.rating-fill {
  height: 100%;
  background: #4CAF50;
  transition: width 0.5s ease;
}

.behavior-analysis {
  font-style: italic;
  color: #666;
  margin-top: 15px;
}

.close-button {
  float: right;
  cursor: pointer;
  font-size: 28px;
  color: #0066cc;
  transition: color 0.3s ease;
  position: absolute;
  right: 20px;
  top: 10px;
}

.close-button:hover {
  color: #004499;
}

.tabs {
  display: flex;
  justify-content: space-around;
  margin-bottom: 20px;
  gap: 10px;
}

.tab-button {
  padding: 12px 24px;
  background: #0066cc;
  color: white;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-size: 16px;
  transition: background 0.3s ease;
}

.tab-button.active {
  background: #0055bb;
}

.tab-button:hover {
  background: #004499;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* Button Styles inside Modal */
button {
  padding: 12px 25px;
  background-color: #0066cc;
  color: white;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  font-size: 16px;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

button:hover {
  background-color: #0055bb;
  transform: scale(1.05);
}

/* Adjustments for Input Fields Inside Modal */
.wallet-section input {
  padding: 15px;
  font-size: 18px;
  border-radius: 25px;
  border: 2px solid rgba(0, 102, 204, 0.3);
  width: 60%;
  max-width: 500px;
  background: rgba(255, 255, 255, 0.8);
  color: #333;
  text-align: center;
  transition: border-color 0.3s ease;
}

.wallet-section input::placeholder {
  color: #666;
}

.wallet-section input:focus {
  border-color: #0066cc;
}

/* Tab Content Inside the Modal */
.modal .tab-content {
  margin: 20px 0;
  font-size: 16px;
  line-height: 1.5;
}

.modal .tab-content li {
  margin: 10px 0;
}

/* Token List */
.token-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(0, 102, 204, 0.3);
}

.token-info .token-name {
  font-weight: bold;
}

.token-info .token-amount {
  color: #0066cc;
}

/* Copy Button Style */
button.copy-button {
  background-color: #4caf50;
  border-radius: 50%;
  padding: 8px 12px;
  transition: background-color 0.3s ease;
}

button.copy-button:hover {
  background-color: #45a049;
}

button.copy-button:focus {
  outline: none;
}