/* Custom API Plugin Styles */

/* LiqPay Payment Section */
.liqpay-payment-section {
    margin: 20px 0;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background: #f9f9f9;
    font-family: Arial, sans-serif;
}

.liqpay-payment-section .payment-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.liqpay-payment-section label {
    margin: 0;
    white-space: nowrap;
    font-weight: 500;
    color: #333;
}

.liqpay-payment-section input[type="number"] {
    width: 100px;
    padding: 5px 8px;
    border: 1px solid #ccc;
    border-radius: 3px;
    font-size: 14px;
    text-align: center;
}

.liqpay-payment-section input[type="number"]:focus {
    outline: none;
    border-color: #1976d2;
    box-shadow: 0 0 3px rgba(25, 118, 210, 0.3);
}

.liqpay-payment-section .liqpay-form-container {
    display: inline-block;
}

.liqpay-payment-section .alert {
    font-size: 12px;
    margin-bottom: 0;
}

/* AG-Grid LiqPay row styling */
.ag-theme-alpine .liqpay-row {
    background-color: #e8f5e8 !important;
}

.ag-theme-alpine .liqpay-row:hover {
    background-color: #c8e6c9 !important;
}

/* Account header with logout button */
.account-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Balance Display */
.balance {
    font-weight: bold;
    font-size: 1.1em;
}

.balance.negative {
    color: #dc3545;
}

.balance.positive {
    color: #28a745;
}

/* Success and Error Messages */
.success-message {
    color: #28a745;
    background: #d4edda;
    border: 1px solid #c3e6cb;
    padding: 10px;
    border-radius: 4px;
    margin: 10px 0;
}

.error-message {
    color: #dc3545;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    padding: 10px;
    border-radius: 4px;
    margin: 10px 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .account-header {
        flex-direction: column;
        align-items: start;
        gap: 10px;
    }

    .liqpay-payment-section .payment-row {
        align-items: flex-start;
        gap: 8px;
    }

    .custom-ecoway-form {
        margin: 0 10px;
        padding: 15px;
    }

    .liqpay-payment-section .alert {
        font-size: 14px;
    }
}
