/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #1a237e;
    min-height: 100vh;
    color: #333;
    line-height: 1.6;
}

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

/* Header */
.header {
    text-align: center;
    margin-bottom: 30px;
    color: white;
}

.header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    font-weight: 300;
}

/* Loading Spinner */
.loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #e2e8f0;
    border-top: 2px solid #7c3aed;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.loading-spinner.active {
    opacity: 1;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Animation for value updates */
.value-updated {
    animation: highlight 0.6s ease;
}

@keyframes highlight {
    0% { background-color: #fef3c7; }
    100% { background-color: transparent; }
}

/* Status Indicators */
.status-connected {
    color: #059669 !important;
}

.status-error {
    color: #dc2626 !important;
}

.status-loading {
    color: #d97706 !important;
}

/* Balance Section Layout */
.main-balance-section {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.main-balance-section .card {
    flex: 1;
    margin-bottom: 0;
}

/* Single panel layout when account balance is hidden */
.main-balance-section:has(#account-balance-section[style*="display: none"]) .card:first-child {
    flex: none;
    width: 100%;
}

/* Smooth transitions for showing/hiding panels */
#account-balance-section {
    transition: all 0.3s ease;
    transform-origin: left center;
}

#account-balance-section[style*="display: none"] {
    transform: scaleX(0);
    opacity: 0;
}
