/* Modern Professional Certificate Validator Styles */
.ehub-certificate-validator {
    max-width: 900px;
    margin: 40px auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Inter", "Helvetica Neue", sans-serif;
    line-height: 1.6;
}

.validator-container {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 16px;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(255, 255, 255, 0.05);
    padding: 40px;
    border: 1px solid rgba(226, 232, 240, 0.8);
    /* backdrop-filter: blur(10px); */
}

.validator-container h2 {
    color: #24475e;
    font-size: 32px;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 12px;
    text-align: center;
    letter-spacing: -0.025em;
}

.validator-container > p {
    color: #64748b;
    text-align: center;
    margin-bottom: 32px;
    font-size: 16px;
    font-weight: 400;
}

.validator-form {
    display: flex;
    gap: 12px;
    margin-bottom: 32px;
    align-items: stretch;
}

.validator-form input {
    flex: 1;
    padding: 14px 18px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 400;
    background-color: #ffffff;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    color: #24475e;
}

.validator-form input::placeholder {
    color: #94a3b8;
}

.validator-form input:focus {
    border-color: #24475e;
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    background-color: #ffffff;
    color: #24475e;
}

.validate-button {
    background: linear-gradient(135deg, #24475e 0%, #ee9e1d 100%);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.25);
    letter-spacing: 0.025em;
}

.validate-button:hover {
    background: linear-gradient(135deg, #24475e 0%, #ee9e1d 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.35);
}

.validate-button:active {
    transform: translateY(0);
}

.validate-button:disabled {
    background: linear-gradient(135deg, #24475e 0%, #ee9e1d 100%);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.validation-error {
    background: linear-gradient(135deg, #fef2f2 0%, #fdf2f8 100%);
    color: #dc2626;
    padding: 18px 20px;
    border-radius: 12px;
    border-left: 4px solid #ef4444;
    margin-bottom: 24px;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.1);
}

/* Certificate Results Styling */
.certificate-details {
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.08);
    background-color: #ffffff;
}

.certificate-header {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 24px 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e2e8f0;
}

.certificate-header h3 {
    margin: 0;
    color: #24475e;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.025em;
}

.certificate-status {
    padding: 8px 16px;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.025em;
    text-transform: uppercase;
}

.certificate-status.valid {
    background: #16a34a;
    color: white;
    border: 1px solid #16a34a;
    box-shadow: 0 2px 4px rgba(34, 197, 94, 0.1);
}

.certificate-content {
    padding: 28px;
}

.student-info {
    display: flex;
    align-items: center;
    margin-bottom: 28px;
    gap: 24px;
}

.student-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #e2e8f0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
}

.student-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.student-details h4 {
    margin: 0 0 8px 0;
    font-size: 28px;
    font-weight: 700;
    color: #24475e;
    letter-spacing: -0.025em;
}

.certificate-id {
    color: #64748b;
    margin: 0;
    font-size: 15px;
    font-weight: 500;
}

.certificate-info {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 20px 24px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.info-row {
    display: flex;
    margin-bottom: 12px;
    align-items: flex-start;
}

.info-row:last-child {
    margin-bottom: 0;
}

.info-row .label {
    font-weight: 600;
    color: #475569;
    width: 140px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    flex-shrink: 0;
}

.info-row .value {
    color: #24475e;
    font-weight: 500;
    font-size: 15px;
}

.certificate-footer {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    padding: 20px 28px;
    border-top: 1px solid #bbf7d0;
}

.verification-stamp {
    display: flex;
    align-items: center;
    color: #166534;
    font-size: 15px;
    font-weight: 600;
}

.verification-icon {
    display: inline-block;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    border-radius: 50%;
    margin-right: 12px;
    position: relative;
    box-shadow: 0 2px 4px rgba(34, 197, 94, 0.2);
}

.verification-icon:before {
    content: "";
    position: absolute;
    top: 7px;
    left: 6px;
    width: 12px;
    height: 6px;
    border-left: 2px solid white;
    border-bottom: 2px solid white;
    transform: rotate(-45deg);
}

/* Enhanced Responsive Design */
@media (max-width: 768px) {
    .ehub-certificate-validator {
        margin: 20px auto;
        padding: 0 16px;
    }
    
    .validator-container {
        padding: 24px 20px;
        border-radius: 12px;
    }
    
    .validator-container h2 {
        font-size: 28px;
    }
    
    .validator-form {
        flex-direction: column;
        gap: 16px;
    }
    
    .validate-button {
        padding: 16px 24px;
    }
    
    .student-info {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .student-photo {
        margin: 0 auto;
        width: 100px;
        height: 100px;
    }
    
    .certificate-header {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    .certificate-content {
        padding: 20px;
    }
    
    .info-row {
        flex-direction: column;
        gap: 4px;
    }
    
    .info-row .label {
        width: auto;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .validator-container {
        padding: 20px 16px;
    }
    
    .validator-container h2 {
        font-size: 24px;
    }
    
    .certificate-header {
        padding: 20px;
    }
    
    .certificate-content {
        padding: 16px;
    }
    
    .certificate-footer {
        padding: 16px 20px;
    }
}

/* Loading and Animation States */
.validate-button.loading {
    position: relative;
    color: transparent;
}

.validate-button.loading:after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border-radius: 50%;
    border: 2px solid transparent;
    border-top-color: #ffffff;
    animation: spin 1s ease infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Smooth transitions for all interactive elements */
* {
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

