/**
 * Public Styles
 */

/* Verification Form Container */
.mpav-verification-form-container {
    max-width: 600px;
    margin: 40px auto;
    padding: 0 20px;
}

.mpav-verification-form {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.08);
}

/* Form Header */
.mpav-form-header {
    text-align: center;
    margin-bottom: 32px;
}

.mpav-form-header h3 {
    margin: 0 0 12px;
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
}

.mpav-form-header p {
    margin: 0;
    font-size: 14px;
    color: #666;
}

/* Form Group */
.mpav-form-group {
    margin-bottom: 24px;
}

.mpav-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
    color: #333;
}

.mpav-input-wrapper {
    position: relative;
    display: flex;
    gap: 8px;
    align-items: stretch;
}

.mpav-code-input {
    flex: 1;
    padding: 14px 16px;
    font-size: 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-family: 'Courier New', monospace;
}

.mpav-code-input:focus {
    outline: none;
    border-color: #2271b1;
    box-shadow: 0 0 0 3px rgba(34, 113, 177, 0.1);
}

.mpav-scan-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 16px;
    background: #f0f0f1;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.mpav-scan-btn:hover {
    background: #e0e0e0;
    border-color: #ccc;
}

.mpav-scan-btn.active {
    background: #2271b1;
    border-color: #2271b1;
    color: #fff;
}

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

/* QR Reader */
.mpav-qr-reader {
    margin: 20px 0;
    border: 2px dashed #e0e0e0;
    border-radius: 8px;
    padding: 16px;
    background: #f9f9f9;
}

#mpav-qr-scanner {
    max-width: 100%;
    border-radius: 4px;
    overflow: hidden;
}

/* Form Actions */
.mpav-form-actions {
    margin-top: 24px;
}

.mpav-verify-btn {
    width: 100%;
    padding: 16px 24px;
    background: #2271b1;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mpav-verify-btn:hover {
    background: #135e96;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.mpav-verify-btn:active {
    transform: translateY(0);
}

.mpav-verify-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

/* Result */
.mpav-result {
    margin-top: 24px;
    padding: 20px;
    border-radius: 8px;
    animation: slideIn 0.3s ease;
}

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

.mpav-result.success {
    background: #d1f4dd;
    border: 2px solid #00a32a;
    color: #00652a;
}

.mpav-result.error {
    background: #f7d8d9;
    border: 2px solid #d63638;
    color: #8a1a1d;
}

.mpav-result-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.mpav-result-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

.mpav-result-message {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

.mpav-product-info {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(0,0,0,0.1);
}

.mpav-product-details {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.mpav-product-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid rgba(0,0,0,0.1);
}

.mpav-product-text h4 {
    margin: 0 0 4px;
    font-size: 18px;
    color: #1a1a1a;
}

.mpav-product-text p {
    margin: 4px 0;
    font-size: 14px;
    opacity: 0.8;
}

/* Loading State */
.mpav-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 0.8s linear infinite;
    margin-right: 8px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 600px) {
    .mpav-verification-form {
        padding: 24px;
    }
    
    .mpav-form-header h3 {
        font-size: 20px;
    }
    
    .mpav-input-wrapper {
        flex-direction: column;
    }
    
    .mpav-scan-btn {
        justify-content: center;
    }
    
    .mpav-product-details {
        flex-direction: column;
    }
}
