/* CV Tutor LMS Certificate Validator Styles */

:root {
    --cv-green-color: #2E7D32;
}

.cv-certificate-validator {
    max-width: 600px;
    margin: 2rem auto;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.cv-validator-title {
    text-align: center;
    color: #000000;
    margin-bottom: 1rem;
    font-size: 2rem;
    font-weight: bold;
}

.cv-validator-description {
    text-align: center;
    color: #000000;
    margin-bottom: 2rem;
    font-size: 1rem;
    line-height: 1.5;
}

.cv-validator-form {
    margin-bottom: 2rem;
}

.cv-form-group {
    margin-bottom: 1.5rem;
}

.cv-form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: #000000;
    font-weight: 500;
    font-size: 1rem;
}

.cv-form-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
    background: #ffffff;
}

.cv-form-input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.cv-form-input::placeholder {
    color: #95a5a6;
}

.cv-button-group {
    display: flex;
    gap: 1rem;
    justify-content: space-between;
}

.cv-reset-btn {
    flex: 1;
    padding: 14px 24px;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cv-reset-btn:hover {
    background: #c82333;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.3);
}

.cv-reset-btn:active {
    transform: translateY(0);
}

.cv-submit-btn {
    flex: 1;
    padding: 14px 24px;
    background: #fd7e14;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cv-submit-btn:hover:not(:disabled) {
    background: #e8690b;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(253, 126, 20, 0.3);
}

.cv-submit-btn:active:not(:disabled) {
    transform: translateY(0);
}

.cv-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.cv-loading-spinner {
    color: #ffffff;
    font-size: 0.9rem;
}

/* Result Styles */
.cv-result {
    margin-top: 2rem;
    padding: 1.5rem;
    border-radius: 8px;
    animation: fadeInUp 0.5s ease-out;
}

.cv-success-result {
    background: #ffffff;
    border: 3px solid var(--cv-green-color);
    border-radius: 12px;
    color: var(--cv-green-color);
    padding: 2rem;
    text-align: center;
}

.cv-error-result {
    
    color: #721c24;
}

.cv-success-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    display: block;
}

.cv-success-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}



.cv-error-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 1rem;
    display: block;
}

.cv-error-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.cv-error-result .cv-success-title {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(248, 215, 218, 0.1);
}

.cv-success-title {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--cv-green-color);
}

.cv-certificate-details {
    background: #E8F5E9;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(139, 195, 74, 0.1);
}

.cv-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(46, 125, 50, 0.2);
}

.cv-detail-row:last-child {
    border-bottom: none;
}

.cv-detail-label {
    font-weight: 600;
    color: black;
    font-size: 0.95rem;
}

.cv-detail-value {
    font-weight: 500;
    color: black;
    text-align: right;
    font-size: 0.95rem;
}

.cv-validation-note {
    background: #E8F5E9;
    padding: 1rem;
    color: black;
    border-radius: 6px;
    border-left: 4px solid var(--cv-green-color);
    text-align: left;
}

.cv-validation-note p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
}

.cv-validation-note .cv-note-label {
    font-weight: bold;
    color: var(--cv-green-color);
}

/* Loading Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .cv-result{
        padding: 0.5rem;
    }

    .cv-certificate-validator {
        margin: 1rem;
        padding: 1.5rem;
    }
    
    .cv-validator-title {
        font-size: 1.8rem;
    }
    
    .cv-button-group {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .cv-reset-btn,
    .cv-submit-btn {
        width: 100%;
    }
    
    .cv-success-result {
        padding: 1.5rem;
    }
    
    .cv-success-icon {
        width: 50px;
        height: 50px;
    }
    
    .cv-detail-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .cv-detail-value {
        text-align: left;
    }
}

@media (max-width: 480px) {

    .cv-result{
        padding: 0rem;
    }


    .cv-certificate-validator {
        margin: 0.5rem;
        padding: 1rem;
    }
    
    .cv-validator-title {
        font-size: 1.6rem;
    }
    
    .cv-validator-description {
        font-size: 0.9rem;
    }
    
    .cv-form-input {
        padding: 10px 14px;
    }
    
    .cv-reset-btn,
    .cv-submit-btn {
        padding: 12px 20px;
    }
    
    .cv-success-result {
        padding: 1rem;
    }
    
    .cv-success-title {
        font-size: 1.2rem;
    }
    
    .cv-certificate-details {
        padding: 1rem;
    }
    
    .cv-validation-note {
        padding: 0.75rem;
    }
}

/* Accessibility */
.cv-form-input:focus-visible {
    outline: 2px solid #3498db;
    outline-offset: 2px;
}

.cv-submit-btn:focus-visible,
.cv-reset-btn:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .cv-certificate-validator {
        border: 2px solid #000000;
    }
    
    .cv-form-input {
        border: 2px solid #000000;
    }
    
    .cv-submit-btn,
    .cv-reset-btn {
        border: 2px solid #000000;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .cv-result {
        animation: none;
    }
    
    .cv-submit-btn:hover:not(:disabled),
    .cv-reset-btn:hover {
        transform: none;
    }
    
    .cv-form-input,
    .cv-submit-btn,
    .cv-reset-btn {
        transition: none;
    }
}
