html {
    background: #1c1c1c;
}

body {
    font-family: "Roboto", sans-serif;
    font-size: 16px;
    margin: 0;
    background: #1c1c1c;
    color: #e0e0e0;
}

/* Introductory content container */
.intro {
    width: 100%;
    margin: 0 auto;
    text-align: center;
}

/* Heading styling */
.intro h1 {
    color: #e0e0e0;
    font-size: 2.5em;
    margin: 20px 0;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* Paragraph styling */
.intro p {
    color: #b0bec5;
    font-size: 1em;
    margin: 10px 0;
}

.banner {
    width: 100vw;
    margin-left: calc((100% - 100vw) / 2);
    margin-right: calc((100% - 100vw) / 2);
    margin-bottom: 20px;
    padding: 0;
}
.banner img {
    width: 100%;
    height: auto;
    max-height: 200px;
}

/* General table styling */
table {
    width: 80%;
    margin: 0 auto;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid #b0bec5;
    border-radius: 4px;
    box-shadow: 0 0 5px;
}

/* Common styling for info tables */
.info-table {
    width: 80%;
}

.info-table th {
    text-align: center;
}

.info-table th:first-child {
    width: 300px;
}

.info-table.table-collapsed thead {
    display: none;
}

.sortable th {
    cursor: pointer;
    background-color: #1565c0;
    color: #ffffff;
    padding: 15px;
    text-align: left;
    border-bottom: 2px solid #b0bec5;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sortable th:hover {
    background-color: #0d47a1;
}

.sortable td {
    padding: 15px;
    border-bottom: 1px solid #b0bec5;
}

.text-cell {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

tr {
    cursor: pointer;
    background-color: #424242;
    transition: background-color 0.3s ease;
}

tr:nth-child(even) {
    background-color: #525252;
}

tr:hover {
    background-color: #616161;
}

.detail-row {
    background-color: #333333;
    display: none;
}

.detail-content {
    padding: 15px;
    font-size: 14px;
    white-space: pre-wrap;
    color: #e0e0e0;
    background-color: #333333;
}

.search-bar {
    width: 80%;
    margin: 0 auto 20px auto;
    text-align: center;
}

#searchInput {
    width: 50%;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #b0bec5;
    border-radius: 4px;
    box-sizing: border-box;
    background-color: #424242;
    color: #e0e0e0;
    display: inline-block;
    vertical-align: middle;
}

#searchInput:focus {
    border-color: #1565c0;
    box-shadow: 0 0 5px #1565c0;
}

#searchButton {
    padding: 10px 20px;
    font-size: 16px;
    background-color: #1565c0;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    box-shadow: 0 0 5px;
    display: inline-block;
    vertical-align: middle;
    margin-left: 10px;
}

#searchButton:hover {
    background-color: #0d47a1;
    box-shadow: 0 0 10px #0d47a1;
}

#cancelButton {
    padding: 10px 20px;
    font-size: 16px;
    background-color: #c62828;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    box-shadow: 0 0 5px;
    display: inline-block;
    vertical-align: middle;
    margin-left: 10px;
}

#cancelButton:hover {
    background-color: #b71c1c;
    box-shadow: 0 0 10px #b71c1c;
}

#searchResult {
    margin-top: 20px;
    padding: 15px;
    border: 1px solid #b0bec5;
    background-color: #424242;
    color: #e0e0e0;
    border-radius: 4px;
    box-shadow: 0 0 5px rgba(0,0,0,0.5);
}

.button-container {
    text-align: center;
    margin: 20px 0;
}

.button {
    display: inline-block;
    padding: 10px 20px;
    margin: 5px;
    background-color: #1565c0;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    box-shadow: 0 0 5px;
}

.button:hover {
    background-color: #0d47a1;
    box-shadow: 0 0 10px #0d47a1;
}

.button.active {
    background-color: #0d47a1;
    cursor: default;
    box-shadow: 0 0 5px;
}

/* Section and table headers */
tr.section-header th,
tr.table-header th {
    font-size: 1.4em;
    text-align: center;
    padding: 20px;
    border-top: 2px solid #b0bec5;
    border-bottom: 2px solid #b0bec5;
    font-weight: bold;
    background-color: #1565c0;
    color: #ffffff;
}

/* Optional: For section separation */
tr.section-last td {
    border-bottom: 2px solid #b0bec5;
}

.column-headers th {
    background-color: #1565c0;
    color: #ffffff;
    padding: 15px;
    text-align: left;
    border-bottom: 2px solid #b0bec5;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Keep the banner as a relative container */
.banner {
    position: relative;
}

/* Position the nav-buttons container at the top right */
.nav-buttons {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Override absolute positioning for buttons inside nav-buttons */
.nav-buttons .button {
    position: static;
    padding: 5px 10px;
    font-size: 14px;
    display: flex;
    align-items: center;
}

/* Space between icon and text in buttons */
.button i {
    margin-right: 5px;
}

/* Appended styles for payment page */

/* Container for payment details (wallet address, amount, QR code) */
.payment-details {
    margin: 20px 0;
    padding: 15px;
    background-color: #424242;
    border: 1px solid #b0bec5;
    border-radius: 4px;
    box-shadow: 0 0 5px rgba(0,0,0,0.5);
}

/* Labels in payment details (e.g., "To Account", "Amount") */
.payment-details strong {
    color: #e0e0e0;
    font-weight: bold;
}

/* Values in payment details (e.g., wallet address, XRP amount) */
.payment-details p {
    color: #b0bec5;
    margin: 5px 0;
    word-break: break-all;
}

/* QR code container for wallet scanning */
.qr-code {
    margin: 15px 0;
}

/* Input field for transaction hash */
.transaction-input {
    width: 50%;
    padding: 10px;
    margin: 10px auto;
    font-family: monospace;
    font-size: 16px;
    border: 1px solid #b0bec5;
    border-radius: 4px;
    background-color: #424242;
    color: #e0e0e0;
    display: block;
}

/* Focus state for input field */
.transaction-input:focus {
    border-color: #1565c0;
    box-shadow: 0 0 5px #1565c0;
}

/* Container for verification results or errors */
.result {
    margin-top: 20px;
    padding: 15px;
    border: 1px solid #b0bec5;
    border-radius: 4px;
    box-shadow: 0 0 5px rgba(0,0,0,0.5);
}

/* Success state for verification result */
.result.success {
    background-color: #2e7d32;
    border-color: #4caf50;
}

/* Error state for verification result */
.result.error {
    background-color: #c62828;
    border-color: #d32f2f;
}

/* Text within result container */
.result p {
    color: #e0e0e0;
    margin: 5px 0;
}

/* Highlighted text in result (e.g., addresses, password) */
.result strong {
    color: #bbdefb;
}

/* Container for user guide on payment page */
.user-guide {
    margin: 20px 0;
    padding: 15px;
    background-color: #424242;
    border: 1px solid #b0bec5;
    border-radius: 4px;
    box-shadow: 0 0 5px rgba(0,0,0,0.5);
    text-align: left;
}

/* Headings in user guide */
.user-guide h2 {
    color: #e0e0e0;
    font-size: 1.5em;
    margin: 10px 0;
    font-weight: bold;
}

/* Subheadings in user guide */
.user-guide h3 {
    color: #bbdefb;
    font-size: 1.2em;
    margin: 8px 0;
}

/* Paragraphs in user guide */
.user-guide p {
    color: #b0bec5;
    margin: 5px 0;
}

/* Lists in user guide */
.user-guide ul, .user-guide ol {
    color: #b0bec5;
    margin: 10px 0;
    padding-left: 20px;
}

/* List items in user guide */
.user-guide li {
    margin: 5px 0;
}

/* Links in user guide */
.user-guide a {
    color: #1565c0;
    text-decoration: none;
}

.user-guide a:hover {
    color: #0d47a1;
    text-decoration: underline;
}


/* ADD THESE NEW RULES TO THE END OF YOUR CSS FILE */

/* 1. This creates a responsive container that provides comfortable padding */
.table-container table {
    width: 90%;
    table-layout: fixed; /* This is the key: it forces columns to a fixed size */
    overflow-wrap: break-word; /* This allows long strings like addresses to wrap */
}

/* 2. This more specific rule sets the table width to 100% ONLY for tables inside our new container */
.table-container table {
    width: 90%;
}