/* Balance Settings Styles */

.balance-settings-container {
    padding: 30px;
    max-width: 800px;
    margin: 0 auto;
}

/* Current Balance Display */
.balance-display-section {
    display: flex;
    align-items: center;
    gap: 25px;
    padding: 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.balance-icon {
    font-size: 64px;
    animation: coin-spin 3s ease-in-out infinite;
}

@keyframes coin-spin {
    0%, 100% { transform: rotateY(0deg); }
    50% { transform: rotateY(180deg); }
}

.balance-info {
    flex: 1;
    color: white;
}

.balance-info h3 {
    margin: 0 0 10px 0;
    font-size: 20px;
    font-weight: 600;
    opacity: 0.9;
}

.balance-amount {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 10px;
}

.balance-value {
    font-size: 48px;
    font-weight: 700;
    line-height: 1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.balance-currency {
    font-size: 18px;
    font-weight: 500;
    opacity: 0.9;
}

.balance-description {
    margin: 0;
    font-size: 14px;
    opacity: 0.85;
    line-height: 1.4;
}

/* Purchase Section */
.balance-purchase-section {
    padding: 30px;
    background: white;
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    margin-bottom: 30px;
}

.balance-purchase-section h3 {
    margin: 0 0 15px 0;
    font-size: 20px;
    font-weight: 600;
    color: #2d3748;
}

.purchase-description {
    margin: 0 0 25px 0;
    font-size: 15px;
    color: #718096;
    line-height: 1.5;
}

.coin-selector {
    margin-bottom: 25px;
}

.coin-selector label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    font-size: 15px;
    color: #2d3748;
}

.coin-select {
    width: 100%;
    padding: 14px 16px;
    font-size: 16px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    background: white;
    color: #2d3748;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
}

.coin-select:hover {
    border-color: #cbd5e0;
}

.coin-select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.purchase-action {
    display: flex;
    justify-content: center;
}

.purchase-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 40px;
    font-size: 18px;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.purchase-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.purchase-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.3);
}

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

.purchase-btn svg {
    width: 20px;
    height: 20px;
}

/* Transaction History Section */
.balance-history-section {
    padding: 30px;
    background: white;
    border: 2px solid #e1e5e9;
    border-radius: 12px;
}

.balance-history-section h3 {
    margin: 0 0 20px 0;
    font-size: 20px;
    font-weight: 600;
    color: #2d3748;
}

.transaction-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.transaction-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.transaction-item.positive {
    border-left-color: #48bb78;
}

.transaction-item.negative {
    border-left-color: #f56565;
}

.transaction-info {
    flex: 1;
}

.transaction-type {
    font-weight: 600;
    font-size: 15px;
    color: #2d3748;
    margin-bottom: 4px;
}

.transaction-date {
    font-size: 13px;
    color: #718096;
}

.transaction-amount {
    font-size: 18px;
    font-weight: 700;
}

.transaction-amount.positive {
    color: #48bb78;
}

.transaction-amount.negative {
    color: #f56565;
}

/* Balance Settings Message */
#balanceSettingsMessage {
    margin-top: 20px;
}

/* Loading State */
.balance-value.loading {
    opacity: 0.6;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* Responsive Design */
@media (max-width: 768px) {
    .balance-settings-container {
        padding: 20px;
    }
    
    .balance-display-section {
        flex-direction: column;
        text-align: center;
        padding: 25px;
    }
    
    .balance-icon {
        font-size: 48px;
    }
    
    .balance-value {
        font-size: 36px;
    }
    
    .balance-currency {
        font-size: 16px;
    }
    
    .balance-purchase-section {
        padding: 20px;
    }
    
    .purchase-btn {
        width: 100%;
        justify-content: center;
    }
}

