section {
  margin: 20px 0 20px 0;
}

textarea {
  height: auto;
  width: 100%;
  max-width: 100%;
}

.info-text {
  font-size: 1.1em;
}

.wrap {
  white-space: pre-wrap;
}

.full-width {
  width: 100%;
}

.card {
  margin-bottom: 20px;
}

/* Logo & Header */

header {
  display: flex;
  justify-content: center;
  align-items: center;
}

#logo-container {
  display: inline-flex;
  flex-direction: column;
}

#logo-text {
  padding-top: 15px;
  padding-bottom: 5px;
}

#mm-logo {
  width: 100%;
}

/* EIP6963 Section */

.eip6963-providers {
  max-height: 770px;
  overflow: auto;
}

/* EIP6963 Warning Banner */

.warning-message {
  min-height: 32px;
  border: 1px solid #a5bc22;
  color: #24292e;
  background: #fcf2f3;
  border-radius: 8px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding: 8px 10px;
  background-color: #dddd19;
}
.warning-message-icon {
  margin-right: 8px;
  flex: 0 0 auto;
}
.warning-message-text {
  overflow: auto;
}


/* Encrypt/Decrypt */

#encryptMessageInput {
  margin-bottom: 1rem;
}

.error-div {
  margin-bottom: 12px;
}

.error-message {
  min-height: 32px;
  border: 1px solid #e88f97;
  color: #24292e;
  background: #fcf2f3;
  border-radius: 8px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding: 8px 10px;
}
.error-message-icon {
  margin-right: 8px;
  flex: 0 0 auto;
}
.error-message-text {
  overflow: auto;
}

.warning-invisible {
  display: none;
}

.networks-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.network-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
  width: 100%;
}

.network-item:hover {
  background: #e9ecef;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.network-item.active {
  background: #007bff;
  color: white;
  border-color: #007bff;
}

.network-item.active:hover {
  background: #0056b3;
}

.network-name {
  font-weight: 500;
  font-size: 14px;
}

.network-chain-id {
  font-size: 12px;
  opacity: 0.7;
  font-family: monospace;
}

.network-item.active .network-chain-id {
  opacity: 0.9;
}

.network-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
}

.network-modal-content {
  background-color: white;
  border-radius: 12px;
  width: 90%;
  max-width: 500px;
  max-height: 80vh;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.network-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid #e9ecef;
}

.network-modal-header h5 {
  margin: 0;
  font-weight: 600;
  color: #212529;
}

.network-modal-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #6c757d;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.2s;
}

.network-modal-close:hover {
  background-color: #f8f9fa;
  color: #495057;
}

.network-modal-body {
  padding: 20px 24px;
  max-height: 60vh;
  overflow-y: auto;
}

.network-category {
  margin-bottom: 24px;
}

.network-category:last-child {
  margin-bottom: 0;
}

.network-category h6 {
  margin: 0 0 12px 0;
  font-weight: 600;
  color: #495057;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.network-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.network-modal-item {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.network-modal-item:hover {
  background-color: #f8f9fa;
  border-color: #dee2e6;
}

.network-modal-item.active {
  background-color: #e3f2fd;
  border-color: #2196f3;
}

.network-modal-item-content {
  display: flex;
  align-items: center;
  width: 100%;
}

.network-modal-item-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  margin-right: 12px;
  flex-shrink: 0;
}

.network-modal-item-info {
  flex: 1;
}

.network-modal-item-name {
  font-weight: 500;
  font-size: 14px;
  color: #212529;
  margin-bottom: 2px;
}

.network-modal-item-chain-id {
  font-size: 12px;
  color: #6c757d;
  font-family: monospace;
}

.network-modal-item.active .network-modal-item-name {
  color: #1976d2;
  font-weight: 600;
}

.network-modal-item.active .network-modal-item-chain-id {
  color: #1976d2;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .network-modal-content {
    width: 95%;
    margin: 20px;
  }
  
  .network-modal-body {
    padding: 16px 20px;
  }
  
  .network-modal-header {
    padding: 16px 20px;
  }
}
