/*
 * Certificate Styles
 * Styles for certificate generation and verification
 */

/* Certificate Verification Page */
.ehsan-certificate-verification {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.ehsan-certificate-verification h1 {
    color: #2c3e50;
    margin-bottom: 2rem;
    text-align: center;
    font-size: 2rem;
    font-weight: 600;
}

.ehsan-verify-form {
    background: #f9f9f9;
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.ehsan-verify-form .form-group {
    margin-bottom: 1.5rem;
}

.ehsan-verify-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #2c3e50;
}

.ehsan-verify-form input[type="text"] {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.ehsan-verify-form input[type="text"]:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

.ehsan-verify-form button[type="submit"] {
    background: #3498db;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.ehsan-verify-form button[type="submit"]:hover {
    background: #2980b9;
}

.ehsan-verify-form button[type="submit"].loading {
    position: relative;
    padding-left: 2.5rem;
}

.ehsan-verify-form button[type="submit"].loading:after {
    content: '';
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1rem;
    height: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: ehsan-spin 0.8s linear infinite;
}

/* Verification Result */
.verification-result {
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 4px;
    display: none;
}

.verification-result.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.verification-result.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.verification-result h3 {
    margin-top: 0;
    color: inherit;
}

/* Certificate Details */
.certificate-verified {
    padding: 1.5rem;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.certificate-details {
    margin: 1.5rem 0;
}

.certificate-details p {
    margin: 0.75rem 0;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #eee;
}

.certificate-details p:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

/* Certificate Actions */
.certificate-actions {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
    text-align: center;
}

/* Button Styles */
.ehsan-button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    text-align: center;
}

.ehsan-button:hover {
    background: #2980b9;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.ehsan-button:active {
    transform: translateY(0);
    box-shadow: none;
}

.ehsan-button-primary {
    background: #28a745;
}

.ehsan-button-primary:hover {
    background: #218838;
}

/* Loading Animation */
@keyframes ehsan-spin {
    0% { transform: translateY(-50%) rotate(0deg); }
    100% { transform: translateY(-50%) rotate(360deg); }
}

/* Responsive Styles */
@media (max-width: 768px) {
    .ehsan-certificate-verification {
        padding: 1rem;
        margin: 1rem;
    }
    
    .ehsan-verify-form {
        padding: 1.5rem;
    }
    
    .certificate-verified {
        padding: 1rem;
    }
}

/* Print Styles */
@media print {
    .ehsan-certificate-verification {
        max-width: 100%;
        padding: 0;
        box-shadow: none;
        border: none;
    }
    
    .ehsan-verify-form,
    .verification-result.error,
    .certificate-actions {
        display: none !important;
    }
    
    .verification-result.success {
        display: block !important;
        background: none;
        border: none;
        padding: 0;
    }
    
    .certificate-verified {
        box-shadow: none;
        padding: 0;
    }
}
