/* Inspiré directement du CSS de TrustTime */
body {
  font-family: Arial, sans-serif;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  transition: background-color 0.3s, color 0.3s;
  background-color: #1a1a1a;
  color: #ffffff;
}
body.light {
  background-color: #ffffff;
  color: #000000;
}
h1 {
  text-align: center;
  margin-top: 60px;
}
.brand {
  font-weight: bold;
  color: #8247E5;
}
.brand:hover {
  color: #6B3ABF;
}
.slogan {
  font-weight: normal;
  color: #ffffff;
}
body.light .slogan {
  color: #000000;
}
.container {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 20px;
}
.left-column, .right-column {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 50%;
}
.section {
  border: 1px solid #444;
  padding: 16px;
  border-radius: 5px;
  box-sizing: border-box;
  background-color: #2a2a2a;
  width: 100%;
}
body.light .section {
  border-color: #ccc;
  background-color: #ffffff;
}
.section.transaction-search {
  background-color: #3b2a50; /* Fond rosé/violacé en mode sombre */
}
body.light .section.transaction-search {
  background-color: #f3e8ff; /* Fond rosé/violacé en mode clair */
}
.accordion h2 {
  cursor: pointer;
  margin: 0;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.accordion.disabled h2 {
  cursor: not-allowed;
  opacity: 0.5;
}
.accordion.closed .accordion-content {
  display: none;
}
.accordion h2::after {
  content: '▼';
  font-size: 12px;
}
.accordion.closed h2::after {
  content: '▶';
}
.success { color: #28a745; }
.error { color: #dc3545; }
input, textarea, button {
  width: 100%;
  margin: 12px 0;
  padding: 6.4px;
  box-sizing: border-box;
}
input[readonly] {
  background-color: #666;
  cursor: not-allowed;
  color: #ffffff;
}
body.light input[readonly] {
  background-color: #d0d0d0;
  color: #000000;
}
button {
  background-color: #8247E5;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  margin-top: 16px;
  padding: 10px;
}
button:disabled {
  background-color: #b0a1f0;
  cursor: not-allowed;
}
button:hover:not(:disabled) {
  background-color: #6B3ABF;
}
a { color: #8247E5; text-decoration: none; }
a:hover { text-decoration: underline; }
.warning-container {
  display: flex;
  align-items: center;
  margin: 0;
}
.warning-icon {
  width: 20px;
  height: 20px;
  min-width: 20px;
  min-height: 20px;
  margin-right: 8px;
  fill: #dc3545;
}
hr {
  margin: 16px 0;
  border: none;
  border-top: 1px solid #444;
}
body.light hr {
  border-top: 1px solid #ccc;
}
.title-separator {
  margin: 20px auto;
  width: 80%;
  border-top: 2px solid #8247E5;
}
body.light .title-separator {
  border-top: 2px solid #8247E5;
}
label {
  margin-top: 12px;
  display: block;
}
.button-group {
  display: flex;
  gap: 10px;
}
.button-group button {
  flex: 1;
}
.tx-hash-container {
  display: flex;
  align-items: center;
  width: 100%;
}
.tx-hash-container input {
  flex: 1;
  margin-right: 8px;
}
.copy-btn {
  display: inline-block;
  width: 24px;
  height: 24px;
  cursor: pointer;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%238247E5"><path d="M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 16H8V7h11v14z"/></svg>') no-repeat center;
}
.header-controls {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  position: absolute;
  top: 20px;
  right: 20px;
}
.theme-toggle {
  background-color: #8247E5;
  color: white;
  padding: 8px 16px;
  border-radius: 5px;
  min-width: 120px;
  text-align: center;
  line-height: 1.5;
}
.theme-toggle:hover {
  background-color: #6B3ABF;
}
.language-select {
  padding: 8px;
  border-radius: 5px;
  background-color: #1a1a1a;
  color: #ffffff;
  border: 1px solid #444;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M7 10l5 5 5-5H7z"/></svg>');
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 12px;
}
body.light .language-select {
  background-color: #ffffff;
  color: #000000;
  border: 1px solid #ccc;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="black"><path d="M7 10l5 5 5-5H7z"/></svg>');
}
.language-select option {
  background-color: #1a1a1a;
  color: #ffffff;
}
body.light .language-select option {
  background-color: #ffffff;
  color: #000000;
}
@media (max-width: 768px) {
  .container {
    flex-direction: column;
  }
  .left-column, .right-column {
    width: 100%;
  }
  .section {
    width: 100%;
  }
}