/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #f5f5f7;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
header {
    text-align: center;
    margin-bottom: 40px;
    padding: 40px 0;
}

h1 {
    font-size: 2.5rem;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 10px;
}

.subtitle {
    font-size: 1.1rem;
    color: #6e6e73;
}

/* Cards */
.card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.card h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #1d1d1f;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-primary {
    background-color: #007aff;
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background-color: #0051d5;
}

.btn-success {
    background-color: #34c759;
    color: white;
}

.btn-success:hover:not(:disabled) {
    background-color: #2da048;
}

.btn-secondary {
    background-color: #f2f2f7;
    color: #007aff;
}

.btn-secondary:hover:not(:disabled) {
    background-color: #e2e2e7;
}

/* Status Box */
.status-box {
    background-color: #f2f2f7;
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
}

.status-text {
    font-size: 0.95rem;
    color: #6e6e73;
}

/* Wallet Info */
.wallet-info {
    margin-top: 20px;
    padding: 20px;
    background-color: #f9f9fc;
    border-radius: 8px;
}

.wallet-info p {
    margin: 8px 0;
    font-size: 0.95rem;
}

.wallet-info strong {
    color: #1d1d1f;
    margin-right: 10px;
}

/* Assets */
.summary-box {
    background-color: #007aff;
    color: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.summary-box p {
    font-size: 1.1rem;
    font-weight: 500;
}

.assets-list {
    max-height: 400px;
    overflow-y: auto;
}

.asset-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #f2f2f7;
    transition: background-color 0.2s;
}

.asset-item:hover {
    background-color: #f9f9fc;
}

.asset-item:last-child {
    border-bottom: none;
}

.asset-info {
    flex: 1;
}

.asset-name {
    font-weight: 500;
    color: #1d1d1f;
    margin-bottom: 4px;
}

.asset-details {
    font-size: 0.85rem;
    color: #6e6e73;
}

.asset-value {
    font-weight: 600;
    color: #34c759;
    font-size: 1.1rem;
}

/* Loading */
.loading {
    text-align: center;
    padding: 40px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f2f2f7;
    border-top-color: #007aff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Footer */
footer {
    text-align: center;
    margin-top: 40px;
    padding: 20px;
    color: #6e6e73;
    font-size: 0.9rem;
}

footer p {
    margin: 5px 0;
}

/* Utility Classes */
.hidden {
    display: none !important;
}

.error {
    color: #ff3b30;
}

.success {
    color: #34c759;
}

.warning {
    color: #ff9500;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .card {
        padding: 20px;
    }
    
    .summary-box {
        flex-direction: column;
        text-align: center;
    }
    
    .summary-box p {
        margin: 5px 0;
    }
}