/* ==== GSTIN VERIFICATION STYLES ==== */

/* Verification feedback container */
.psb-gstin-verification-feedback {
    margin-top: 0.5rem;
    display: none;
}

/* Base feedback styles */
.psb-gstin-feedback {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    transition: all 0.2s ease;
}

/* Verification states */
.psb-gstin-feedback.verifying {
    background: rgba(43, 49, 134, 0.08);
    border: 1px solid rgba(43, 49, 134, 0.2);
    color: #2B3186;
}

.psb-gstin-feedback.success {
    background: rgba(18, 183, 106, 0.08);
    border: 1px solid rgba(18, 183, 106, 0.2);
    color: #12b76a;
}

.psb-gstin-feedback.error {
    background: rgba(249, 112, 102, 0.08);
    border: 1px solid rgba(249, 112, 102, 0.2);
    color: #f97066;
}

.psb-gstin-feedback.warning {
    background: rgba(251, 191, 36, 0.08);
    border: 1px solid rgba(251, 191, 36, 0.2);
    color: #f59e0b;
}

/* Verification icons */
.psb-verification-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(43, 49, 134, 0.2);
    border-top: 2px solid #2B3186;
    border-radius: 50%;
    animation: psb-spin 1s linear infinite;
    flex-shrink: 0;
}

.psb-verification-check {
    width: 16px;
    height: 16px;
    background: #12b76a;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    flex-shrink: 0;
}

.psb-verification-error {
    width: 16px;
    height: 16px;
    background: #f97066;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    flex-shrink: 0;
}

.psb-verification-warning {
    width: 16px;
    height: 16px;
    background: #f59e0b;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    flex-shrink: 0;
}

/* Input state styles */
.psb-input.psb-verifying {
    border-color: #2B3186 !important;
    box-shadow: 0 0 0 2px rgba(43, 49, 134, 0.1) !important;
}

.psb-input.psb-verified {
    border-color: #12b76a !important;
    box-shadow: 0 0 0 2px rgba(18, 183, 106, 0.1) !important;
}

.psb-input.psb-format-valid {
    border-color: #f59e0b !important;
    box-shadow: 0 0 0 2px rgba(251, 191, 36, 0.1) !important;
}

/* Form field states */
.psb-form-field.verifying .psb-input {
    border-color: #2B3186 !important;
}

.psb-form-field.success .psb-input {
    border-color: #12b76a !important;
}

.psb-form-field.warning .psb-input {
    border-color: #f59e0b !important;
}

/* Auto-fill styles */
.psb-input.psb-auto-filled {
    background: rgba(18, 183, 106, 0.02) !important;
    border-color: #12b76a !important;
    position: relative;
}

.psb-form-field.psb-auto-filled-animation {
    animation: psb-auto-fill-glow 1s ease;
}

.psb-auto-fill-info {
    font-size: 12px;
    color: #12b76a;
    margin-top: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-family: 'Inter', sans-serif;
}

/* Verification text */
.psb-verification-text {
    flex: 1;
    line-height: 1.3;
}

.psb-verification-text strong {
    font-weight: 600;
}

/* Animations */
@keyframes psb-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes psb-auto-fill-glow {
    0% { 
        box-shadow: 0 0 0 2px rgba(18, 183, 106, 0);
    }
    50% { 
        box-shadow: 0 0 0 2px rgba(18, 183, 106, 0.3);
    }
    100% { 
        box-shadow: 0 0 0 2px rgba(18, 183, 106, 0);
    }
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .psb-gstin-feedback {
        padding: 0.4rem 0.6rem;
        font-size: 13px;
    }
    
    .psb-verification-spinner,
    .psb-verification-check,
    .psb-verification-error,
    .psb-verification-warning {
        width: 14px;
        height: 14px;
        font-size: 10px;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .psb-gstin-feedback.verifying {
        background: rgba(43, 49, 134, 0.15);
        border-color: #2B3186;
    }
    
    .psb-gstin-feedback.success {
        background: rgba(18, 183, 106, 0.15);
        border-color: #12b76a;
    }
    
    .psb-gstin-feedback.error {
        background: rgba(249, 112, 102, 0.15);
        border-color: #f97066;
    }
    
    .psb-gstin-feedback.warning {
        background: rgba(251, 191, 36, 0.15);
        border-color: #f59e0b;
    }
}

/* Print styles */
@media print {
    .psb-gstin-verification-feedback {
        display: none !important;
    }
}
