/* Certificate Verification Form Styles */

.cert-verifier-container {
    max-width: 600px;
    margin: 2rem auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.cert-verifier-form-wrapper {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.cert-verifier-title {
    margin: 0 0 1rem 0;
    font-size: 1.75rem;
    font-weight: 600;
    color: #1a1a1a;
    text-align: center;
}

.cert-verifier-description {
    margin: 0 0 1.5rem 0;
    font-size: 1rem;
    color: #666;
    text-align: center;
    line-height: 1.5;
}

.cert-verifier-form {
    margin-bottom: 1.5rem;
}

.cert-verifier-input-group {
    margin-bottom: 1rem;
}

.cert-verifier-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
    font-size: 0.95rem;
}

.cert-verifier-input {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border: 2px solid #ddd;
    border-radius: 4px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.cert-verifier-input:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

.cert-verifier-submit {
    width: 100%;
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    background: #0073aa;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.cert-verifier-submit:hover {
    background: #005a87;
}

.cert-verifier-submit:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.cert-verifier-submit.loading {
    position: relative;
    color: transparent;
}

.cert-verifier-submit.loading::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid #fff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spinner 0.6s linear infinite;
}

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

.cert-verifier-results {
    margin-top: 1.5rem;
}

.cert-verifier-message {
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.cert-verifier-message.success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.cert-verifier-message.error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.cert-verifier-details {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 4px;
    border: 1px solid #e9ecef;
}

.cert-verifier-details h3 {
    margin: 0 0 1rem 0;
    font-size: 1.25rem;
    color: #1a1a1a;
}

.cert-detail-row {
    display: flex;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e9ecef;
}

.cert-detail-row:last-child {
    border-bottom: none;
}

.cert-detail-label {
    flex: 0 0 140px;
    font-weight: 600;
    color: #555;
}

.cert-detail-value {
    flex: 1;
    color: #333;
}

.cert-verifier-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background: #28a745;
    color: #fff;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.cert-verifier-badge::before {
    content: "✓";
    margin-right: 0.5rem;
    font-size: 1.125rem;
}

/* Responsive */
@media (max-width: 640px) {
    .cert-verifier-container {
        margin: 1rem;
    }
    
    .cert-verifier-form-wrapper {
        padding: 1.5rem;
    }
    
    .cert-detail-row {
        flex-direction: column;
    }
    
    .cert-detail-label {
        margin-bottom: 0.25rem;
    }
}
