/* General Styles */
html,
body {
    padding: 0;
    margin: 0;
    background-color: #f8f9fa;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #343a40;
    line-height: 1.5;
}

#app {
    max-width: 85rem;
    margin: 0 auto;
}

button {
    margin: 0 0.3rem;
    height: 2.5rem;
    width: 7rem;
    padding: 0 1rem;
    background-color: #007bff;
    color: #ffffff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    font-weight: 600;
    font-size: 0.9rem;
    transition: background-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

button:hover {
    background-color: #0056b3;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

#header {
    background-color: #ffffff;
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid #dee2e6;
    margin-bottom: 20px;
}

#wallet-info,
.field-section,
#wallet-utxos,
#transaction-composer,
#transaction-inputs,
#transaction-outputs {
    padding: 20px;
    background-color: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    margin: 0 20px 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    overflow: auto;
}

.field-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.label {
    font-weight: bold;
    width: 8rem;
    text-align: left;
}

input {
    flex: 1;
    padding: 0.5rem 0.75rem;
    height: 2.5rem;
    border: 1px solid #ced4da;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

input:focus {
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, .25);
}

#wallet-utxos {
    display: flex;
    flex-direction: column;
}

table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
    font-family: inherit;
    font-size: 1rem;
    background-color: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #dee2e6;
}

table tr {
    height: auto;
    transition: background-color 0.2s;
}

table th,
table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #dee2e6;
    color: #343a40;
}

table th {
    background-color: #f8f9fa;
    font-weight: 600;
    text-align: left;
    letter-spacing: 0.02em;
}

table td {
    text-align: center;
}

table tr:hover td {
    background-color: #f1f3f5;
}

table tr:last-child td {
    border-bottom: none;
}

td:has(button),
th:has(button) {
    text-align: right !important;
    width: 7rem;
}

.long {
    flex: 4;
    width: 100%;
}

.filler {
    width: 7rem;
}

h2,
h3 {
    margin-top: 0;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 20px;
    font-weight: 400;
    color: #495057;
}

h3 {
    font-weight: 600;
}

.total {
    font-weight: bold;
    color: #495057;
    padding-right: 1rem;
}

.total-label {
    font-weight: 600;
    color: #495057;
    text-align: left;
}

#submit-button {
    font-weight: 600;
    padding-right: 1rem;
    width: 14rem;
    display: block;
    margin: 0.2rem auto;
}