body {
    font-family: Arial, sans-serif;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.container {
    background: #f5f5f5;
    padding: 20px;
    border-radius: 8px;
}

.actions {
    margin: 20px 0;
    display: flex;
    gap: 10px;
}

button {
    padding: 10px 20px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

button:hover {
    background: #0056b3;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

th, td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th {
    background-color: #f8f9fa;
}

/* Login Page Specific Styles */
#loginForm {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
}

.form-group input[type="text"] {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.error-message {
    color: #dc3545;
    margin-top: 10px;
}

/* History Page Specific Styles */
.back-link {
    display: inline-block;
    margin-bottom: 20px;
    color: #007bff;
    text-decoration: none;
}

.monospace {
    font-family: monospace;
    font-size: 0.9em;
}

#historyTable th:nth-child(5),
#historyTable td:nth-child(5) {
    width: 250px;
}

/* Active Transaction Card Styles */
.active-transaction {
    background: #fff;
    border: 2px solid #007bff;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.active-transaction h3 {
    color: #007bff;
    margin-top: 0;
}

.txn-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.label {
    font-weight: bold;
    color: #666;
}

.value {
    color: #333;
}

.txn-id {
    font-family: monospace;
    color: #28a745;
}

/* Highlight pending status */
.status[data-status="pending"] {
    color: #ffc107;
    font-weight: bold;
}
.fa-spinner {
    margin-right: 8px;
    font-size: 0.9em;
}

button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}