body {
    font-family: sans-serif;
    background-color: #1a1a1a;
    color: #eee;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background-color: #222;
    border-bottom: 1px solid #444;
}

header h1 {
    margin: 0;
    color: #f0ad4e; /* Ordinals-like yellow/orange */
}

main {
    flex-grow: 1;
    padding: 2rem;
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

section {
    background-color: #282828;
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    border: 1px solid #444;
}

.hidden {
    display: none;
}

button {
    background-color: #f0ad4e;
    color: #1a1a1a;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    transition: background-color 0.2s ease;
}

button:hover {
    background-color: #ec971f;
}

button:disabled {
    background-color: #555;
    color: #999;
    cursor: not-allowed;
}

input[type="text"], input[type="number"] {
    padding: 0.75rem;
    border: 1px solid #555;
    background-color: #333;
    color: #eee;
    border-radius: 5px;
    font-size: 1rem;
    margin-right: 0.5rem;
    margin-bottom: 1rem; /* Added margin */
    width: calc(100% - 1.5rem); /* Adjusted width */
    box-sizing: border-box;
}

label {
    display: block; /* Make label take full width */
    margin-bottom: 0.5rem; /* Add space below label */
    color: #ccc;
}

#fee-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.fee-option {
    background-color: #333;
    padding: 1.5rem 1rem;
    border-radius: 8px;
    border: 2px solid #555;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.fee-option.selected {
    border-color: #f0ad4e;
    background-color: #444;
}

.fee-option h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    color: #eee;
}

.fee-rate {
    font-size: 1.8em;
    font-weight: bold;
    color: #f0ad4e;
}

.fee-unit {
    font-size: 0.9em;
    color: #aaa;
}

#custom-fee-details {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
    background-color: #333;
    padding: 1rem;
    border-radius: 5px;
}

#custom-fee-slider {
    flex-grow: 1;
    cursor: pointer;
}

#custom-fee-input {
    width: 80px;
    text-align: center;
    margin: 0;
}

#fee-breakdown {
    margin-top: 2rem;
    background-color: #333;
    padding: 1.5rem;
    border-radius: 8px;
    font-size: 1.1em;
}

#fee-breakdown div {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

#fee-breakdown div span:first-child {
    color: #aaa;
}

#fee-breakdown .total span {
    font-weight: bold;
    color: #eee;
}

#fee-breakdown .total span:last-child {
    color: #f0ad4e;
}

#status-section p {
    font-size: 1.1em;
}

#tx-link {
    color: #f0ad4e;
    text-decoration: none;
}

#tx-link:hover {
    text-decoration: underline;
}

/* Error Message Styling */
.error-message {
    color: #ff6b6b; /* Light red for error text */
    background-color: rgba(255, 107, 107, 0.1); /* Faint red background */
    border: 1px solid rgba(255, 107, 107, 0.3);
    padding: 0.75rem;
    border-radius: 5px;
    margin-top: 1rem; /* Space above the error message */
    font-size: 0.9em;
    display: none; /* Hidden by default */
}

/* Wallet Status Styling */
.wallet-status {
    color: #4caf50; /* Green for success */
    background-color: rgba(76, 175, 80, 0.1); /* Faint green background */
    border: 1px solid rgba(76, 175, 80, 0.3);
    padding: 0.75rem;
    border-radius: 5px;
    margin-top: 1rem;
    font-size: 0.9em;
    display: none; /* Hidden by default */
}

/* Responsive adjustments */
@media (max-width: 600px) {
    header {
        flex-direction: column;
        gap: 0.5rem;
        padding: 1rem;
    }

    main {
        padding: 1rem;
    }

    section {
        padding: 1.5rem;
    }

    #fee-options {
        grid-template-columns: 1fr; /* Stack fee options on small screens */
    }
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal.hidden {
    display: none !important;
}

.modal-content {
    background-color: #282828;
    border-radius: 8px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    border: 1px solid #444;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #444;
}

.modal-header h2 {
    margin: 0;
    color: #f0ad4e;
}

.modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: #aaa;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.modal-close:hover {
    background-color: #444;
    color: #eee;
}

.modal-body {
    padding: 1.5rem;
}

.modal-body ol {
    padding-left: 1.5rem;
    line-height: 1.6;
}

.modal-body li {
    margin-bottom: 1rem;
    color: #ccc;
}

.modal-body p {
    line-height: 1.6;
} 