/* Balance Inquiry Plugin Styles */

.balance-inquiry-container {
    max-width: 500px;
    margin: 2rem auto;
    padding: 2rem;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.balance-inquiry-container h2 {
    margin-top: 0;
    margin-bottom: 1.5rem;
    color: #333;
    text-align: center;
    font-size: 1.75rem;
}

/* Form Styles */
.balance-form {
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #555;
    font-weight: 600;
    font-size: 0.95rem;
}

.form-group input[type="text"],
.form-group input[type="password"] {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e0e0e0;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.form-group input[type="text"]:focus,
.form-group input[type="password"]:focus {
    outline: none;
    border-color: #4CAF50;
}

.form-group input[type="text"]::placeholder,
.form-group input[type="password"]::placeholder {
    color: #999;
}

/* Button Styles */
.btn-check-balance {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-check-balance:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-check-balance:active {
    transform: translateY(0);
}

.btn-check-balance:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Loading Styles */
.balance-loading {
    text-align: center;
    padding: 2rem;
}

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

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

.balance-loading p {
    color: #666;
    font-size: 1rem;
}

/* Result Styles */
.balance-result {
    margin-top: 1.5rem;
    padding: 1.5rem;
    border-radius: 4px;
    animation: fadeIn 0.3s ease;
}

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

.result-success {
    background: #f1f8f4;
    border-left: 4px solid #4CAF50;
    padding: 1.5rem;
}

.result-success h3 {
    margin-top: 0;
    color: #4CAF50;
    font-size: 1.25rem;
}

.balance-amount {
    margin: 1.5rem 0;
    padding: 1rem;
    background: white;
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.balance-amount .label {
    font-weight: 600;
    color: #555;
}

.balance-amount .amount {
    font-size: 1.75rem;
    font-weight: 700;
    color: #4CAF50;
}

.card-info,
.expiry-info {
    margin: 0.75rem 0;
    display: flex;
    justify-content: space-between;
}

.card-info .label,
.expiry-info .label {
    font-weight: 600;
    color: #666;
}

.card-info .value,
.expiry-info .value {
    color: #333;
}

/* Error Styles */
.result-error {
    background: #fff3f3;
    border-left: 4px solid #f44336;
    padding: 1.5rem;
}

.result-error h3 {
    margin-top: 0;
    color: #f44336;
    font-size: 1.25rem;
}

.result-error p {
    color: #666;
    margin-bottom: 0;
}

/* Responsive Design */
@media (max-width: 600px) {
    .balance-inquiry-container {
        padding: 1.5rem;
        margin: 1rem;
    }

    .balance-amount {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }

    .balance-amount .amount {
        font-size: 1.5rem;
    }
}

