/* General styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 20px;
    background-color: #f5f5f5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Header styles */
header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

h1 {
    color: #333;
    margin: 0 0 20px 0;
}

#status-bar {
    display: flex;
    gap: 20px;
    font-size: 0.9em;
    color: #666;
}

/* Form styles */
.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    color: #2c3e50;
    font-weight: 500;
}

.password-input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input-group input {
    padding-right: 40px;
}

.password-input-group button {
    position: absolute;
    right: 0;
    padding: 8px;
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    font-size: 1.2em;
}

.password-input-group button:hover {
    color: #333;
    background: none;
}

input {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 6px;
    box-sizing: border-box;
    font-size: 1em;
    transition: border-color 0.3s ease;
}

input:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.primary-button {
    background-color: #3498db;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 500;
    width: 100%;
    transition: background-color 0.3s ease;
}

.primary-button:hover {
    background-color: #2980b9;
}

.secondary-button {
    background-color: #95a5a6;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9em;
    transition: background-color 0.3s ease;
}

.secondary-button:hover {
    background-color: #7f8c8d;
}

button:disabled {
    background-color: #bdc3c7;
    cursor: not-allowed;
    opacity: 0.7;
}

/* Section styles */
section {
    margin-bottom: 30px;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Wallet styles */
.wallet-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    margin-bottom: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wallet-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.wallet-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.wallet-address {
    font-family: monospace;
    color: #2c3e50;
    font-size: 0.9em;
}

.wallet-balance {
    font-weight: 600;
    color: #27ae60;
    font-size: 1.1em;
}

.wallet-actions {
    display: flex;
    gap: 10px;
}

.wallet-actions button {
    padding: 8px 16px;
    font-size: 0.9em;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.view-btn {
    background-color: #3498db;
    color: white;
}

.view-btn:hover {
    background-color: #2980b9;
}

.delete-btn {
    background-color: #e74c3c;
    color: white;
}

.delete-btn:hover {
    background-color: #c0392b;
}

/* Toast notifications */
.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 12px 24px;
    border-radius: 6px;
    color: white;
    font-size: 0.9em;
    max-width: 300px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transform: translateY(100%);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    z-index: 1000;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast.error {
    background-color: #e74c3c;
}

.toast.success {
    background-color: #2ecc71;
}

/* Input help text */
.input-help {
    display: block;
    margin-top: 4px;
    font-size: 0.85em;
    color: #7f8c8d;
}

/* Success message */
.success {
    color: #27ae60;
    padding: 12px;
    margin-top: 12px;
    border-radius: 6px;
    background-color: #dafbe9;
    display: none;
}

.success.show {
    display: block;
    animation: fadeIn 0.3s ease;
}

/* Monospace text */
.monospace {
    font-family: 'Courier New', Courier, monospace;
    background-color: #f5f6fa;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
}

/* Transaction history */
.transactions-section {
    margin-top: 24px;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.transactions-section h3 {
    margin: 0 0 16px 0;
    color: #2c3e50;
}

.no-transactions {
    text-align: center;
    color: #95a5a6;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 6px;
    margin-top: 12px;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

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

.confirm-content {
    background-color: white;
    padding: 24px;
    border-radius: 8px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.confirm-content h3 {
    margin: 0 0 16px 0;
    color: #2c3e50;
}

.confirm-content p {
    margin: 0 0 16px 0;
    color: #34495e;
}

.confirm-content .warning {
    color: #e74c3c;
    font-weight: 500;
}

.confirm-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 24px;
}

.confirm-actions button {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9em;
    transition: background-color 0.3s ease;
}

.cancel-btn {
    background-color: #95a5a6;
    color: white;
}

.cancel-btn:hover {
    background-color: #7f8c8d;
}

.confirm-btn {
    background-color: #e74c3c;
    color: white;
}

.confirm-btn:hover {
    background-color: #c0392b;
}

/* Create wallet section */
#wallet-info {
    text-align: center;
    padding: 30px;
    background: linear-gradient(135deg, #f6f8fa 0%, #f1f5f9 100%);
    border-radius: 12px;
    margin: 20px 0;
}

#wallet-info h2 {
    color: #2c3e50;
    margin-bottom: 15px;
}

#wallet-info p {
    color: #64748b;
    margin-bottom: 20px;
    font-size: 1.1em;
}

#create-wallet {
    background-color: #2ecc71;
    color: white;
    padding: 12px 24px;
    font-size: 1.1em;
    border-radius: 8px;
    transition: all 0.3s ease;
}

#create-wallet:hover {
    background-color: #27ae60;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(46, 204, 113, 0.2);
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    position: relative;
    background-color: white;
    margin: 10% auto;
    padding: 20px;
    width: 80%;
    max-width: 600px;
    border-radius: 8px;
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

/* Transaction styles */
.transaction-item {
    padding: 20px;
    margin-bottom: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #3498db;
    transition: transform 0.2s ease;
}

.transaction-item:hover {
    transform: translateX(5px);
}

.transaction-item.sent {
    border-left-color: #e74c3c;
}

.transaction-item.received {
    border-left-color: #2ecc71;
}

.transaction-item p {
    margin: 5px 0;
    color: #2c3e50;
}

.transaction-item .amount {
    font-size: 1.1em;
    font-weight: 600;
    color: #27ae60;
}

.transaction-item .address {
    font-family: monospace;
    color: #7f8c8d;
    font-size: 0.9em;
}

.transaction-item .time {
    color: #95a5a6;
    font-size: 0.9em;
}

.transaction-item .status {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8em;
    font-weight: 500;
}

.transaction-item .status.pending {
    background-color: #fff3cd;
    color: #856404;
}

.transaction-item .status.confirmed {
    background-color: #d4edda;
    color: #155724;
}

.transaction-item .status.failed {
    background-color: #f8d7da;
    color: #721c24;
}

/* Status messages */
.error, .success, .info {
    padding: 12px 16px;
    margin: 15px 0;
    border-radius: 6px;
    display: none;
    font-size: 0.9em;
    text-align: center;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.error {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.success {
    background-color: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.info {
    background-color: #dbeafe;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

/* Testing hint */
.hint {
    background-color: #fffbeb;
    color: #92400e;
    padding: 12px;
    margin-top: 15px;
    border-radius: 6px;
    font-size: 0.9em;
    text-align: center;
    border: 1px solid #fef3c7;
    animation: slideIn 0.5s ease;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}