/* Leadway Virtual Account Plugin Styles */
/* All classes prefixed with 'lva-' to avoid WordPress conflicts */

.lva-container {
    max-width: 100%;
    margin: 20px auto;
    padding: 20px;
    font-family: inherit;
    background: transparent;
    border-radius: 8px;
}

.lva-form-container {
    margin-bottom: 30px;
}

.lva-title {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 24px;
    font-weight: 600;
    text-align: center;
}

.lva-form {
    max-width: 400px;
    margin: 0 auto;
}

.lva-form-group {
    margin-bottom: 20px;
}

.lva-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #34495e;
    font-size: 14px;
}

.lva-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e2e2e2 !important;
    border-radius: 4px !important;
    font-size: 16px !important;
    font-family: inherit;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
    outline: none;
}

.lva-input:focus {
    border-color: #f15a24;
    box-shadow: 0 0 0 3px rgba(241, 90, 36, 0.1);
}

.lva-input.lva-error {
    border-color: #e74c3c;
}

.lva-validation-message {
    margin-top: 5px;
    font-size: 12px;
    color: #e74c3c;
    min-height: 16px;
}

.lva-submit-btn {
    width: 100%;
    padding: 12px 24px;
    background: #f15a24;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lva-submit-btn:hover {
    background: #d4491e;
    transform: translateY(-1px);
}

.lva-submit-btn:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
    transform: none;
}

.lva-loading {
    text-align: center;
    padding: 40px;
}

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

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

.lva-results {
    background: transparent;
    border-radius: 8px;
    padding: 25px;
    margin-top: 30px;
}

.lva-results-header {
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 20px;
    margin-bottom: 25px;
}

.lva-policy-info {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
}

.lva-info-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #f15a24;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    flex: 1;
    min-width: 200px;
}

.lva-info-label {
    font-size: 12px;
    color: #7f8c8d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
    font-weight: 500;
}

.lva-info-value {
    font-size: 16px;
    color: #2c3e50;
    font-weight: 600;
    word-break: break-word;
}

.lva-bank-info {
    background: linear-gradient(135deg, #f15a24, #d4491e);
    color: white;
    border-left-color: #d4491e;
}

.lva-bank-info .lva-info-label {
    color: rgba(255, 255, 255, 0.8);
}

.lva-bank-info .lva-info-value {
    color: white;
}

.lva-transactions-section {
    margin-top: 30px;
}

.lva-transactions-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.lva-transactions-title {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
}

.lva-transaction-count {
    background: #f15a24;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

.lva-transactions-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.lva-transactions-table th {
    background: #34495e;
    color: white;
    padding: 15px 12px;
    text-align: left;
    font-weight: 500;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.lva-transactions-table td {
    padding: 15px 12px;
    border-bottom: 1px solid #ecf0f1;
    font-size: 14px;
    color: #2c3e50;
}

.lva-transactions-table tr:hover {
    background: #f8f9fa;
}

.lva-transactions-table tr:last-child td {
    border-bottom: none;
}

.lva-amount {
    font-weight: 600;
    color: #27ae60;
}

.lva-reference {
    font-family: 'Courier New', monospace;
    font-size: 12px;
    background: #ecf0f1;
    padding: 4px 8px;
    border-radius: 4px;
    display: inline-block;
}

/* Toast Notification */
.lva-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #e74c3c;
    color: white;
    padding: 15px 20px;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    max-width: 400px;
    animation: lva-slideIn 0.3s ease-out;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 500;
}

.lva-toast.lva-success {
    background: #27ae60;
}

.lva-toast-close {
    margin-left: 15px;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    opacity: 0.8;
}

.lva-toast-close:hover {
    opacity: 1;
}

@keyframes lva-slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .lva-container {
        margin: 10px;
        padding: 15px;
    }
    
    .lva-policy-info {
        flex-direction: column;
    }
    
    .lva-transactions-table {
        font-size: 12px;
    }
    
    .lva-transactions-table th,
    .lva-transactions-table td {
        padding: 10px 8px;
    }
    
    .lva-transactions-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .lva-toast {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
}

@media (max-width: 480px) {
    .lva-transactions-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
    
    .lva-info-card {
        padding: 15px;
    }
}
