/* Main verification form styles */
.certificate-verification-form {
    max-width: fit-content;
    min-width: 600px;
    margin: 0 auto;
    padding: 30px;
    background: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.certificate-verification-form h2 {
    margin-top: 0;
    color: #2c3e50;
    text-align: center;
}

.certificate-verification-form .form-group {
    margin-bottom: 20px;
}

.certificate-verification-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #34495e;
}

.certificate-verification-form input[type="text"],
.certificate-verification-form input[type="date"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.certificate-verification-form input[type="text"]:focus,
.certificate-verification-form input[type="date"]:focus {
    border-color: #3498db;
    outline: none;
}

.certificate-verification-form button {
    display: block;
    width: 100%;
    padding: 12px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
}

.certificate-verification-form button:hover {
    background: #2980b9;
}

/* Verification result styles */
.verification-result {
    max-width: 1300px;
    margin: 30px auto;
    padding: 30px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.verification-result.valid {
    border-left: 5px solid #2ecc71;
}

.verification-result.invalid {
    border-left: 5px solid #e74c3c;
}

.verification-result.expired {
    border-left: 5px solid #f39c12;
}

.verification-result h3 {
    margin-top: 0;
    color: #2c3e50;
}

.verification-result .result-icon {
    font-size: 60px;
    margin-bottom: 20px;
}

.verification-result.valid .result-icon {
    color: #2ecc71;
}

.verification-result.invalid .result-icon,
.verification-result.expired .result-icon {
    color: #e74c3c;
}

.verification-result .certificate-details {
    text-align: left;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.verification-result .detail-row {
    display: flex;
    margin-bottom: 10px;
}

.verification-result .detail-label {
    font-weight: 600;
    width: 200px;
    color: #7f8c8d;
}

.verification-result .detail-value {
    flex: 1;
}

.verification-detail-image {
    max-width: 220px;
    height: auto;
    border: 1px solid #ddd;
    border-radius: 6px;
}

/* Certificate template styles */
.certificate-template {
    max-width: 800px;
    margin: 30px auto;
    padding: 40px;
    background: #fff;
    border: 15px solid #f1c40f;
    position: relative;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100" opacity="0.05"><path d="M30,10 L70,10 L90,30 L90,70 L70,90 L30,90 L10,70 L10,30 Z" fill="none" stroke="black" stroke-width="2"/></svg>');
    background-size: 100px 100px;
}

.certificate-header {
    text-align: center;
    margin-bottom: 30px;
}

.certificate-header h1 {
    margin: 0;
    color: #2c3e50;
    font-size: 36px;
    text-transform: uppercase;
}

.certificate-header .institution {
    font-size: 18px;
    color: #7f8c8d;
    margin-top: 10px;
}

.certificate-body {
    text-align: center;
    margin: 40px 0;
}

.certificate-body .award-text {
    font-size: 24px;
    margin-bottom: 30px;
}

.certificate-body .recipient-name {
    font-size: 32px;
    font-weight: bold;
    color: #e74c3c;
    margin: 20px 0;
    padding: 10px 0;
    border-top: 2px solid #eee;
    border-bottom: 2px solid #eee;
}

.certificate-body .course-name {
    font-size: 20px;
    font-style: italic;
}

.certificate-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 50px;
}

.certificate-footer .signature {
    text-align: center;
    width: 200px;
}

.certificate-footer .signature-line {
    border-top: 1px solid #000;
    margin-top: 60px;
    width: 100%;
}

.certificate-footer .signature-name {
    margin-top: 5px;
    font-weight: bold;
}

.certificate-id {
    position: absolute;
    bottom: 20px;
    right: 40px;
    font-size: 12px;
    color: #95a5a6;
}

.certificate-custom-fields {
    margin-top: 20px;
    border-top: 1px solid #eee;
    padding-top: 15px;
}

.custom-field-item {
    margin-bottom: 12px;
}

.custom-field-label {
    font-weight: 600;
    margin-right: 8px;
}

.custom-field-image {
    max-width: 240px;
    height: auto;
    border: 1px solid #ddd;
    border-radius: 6px;
    display: block;
    margin-top: 6px;
}

/* Responsive styles */
@media (max-width: 768px) {
    .certificate-verification-form,
    .verification-result,
    .certificate-template {
        padding: 20px;
        margin: 20px auto;
    }

    .certificate-footer {
        flex-direction: column;
        align-items: center;
    }

    .certificate-footer .signature {
        margin-bottom: 30px;
    }
}


.certificate-details-main{
    display: flex;
    justify-content: space-between;
}

/* Screen reader only (share bar label) */
.acceve-sr-only {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

/* Certificate share bar */
.acceve-certificate-share {
    max-width: 720px;
    margin: 2rem auto 0;
    position: relative;
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

.acceve-certificate-share__inner {
    position: relative;
    padding: 1.35rem 1.5rem 1.25rem;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.98) 100%);
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow:
        0 1px 2px rgba(15, 23, 42, 0.04),
        0 12px 40px -12px rgba(15, 23, 42, 0.15);
}

.acceve-certificate-share__inner::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    padding: 1px;
    background: linear-gradient(125deg, #38bdf8, #818cf8, #c084fc);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0.45;
}

.acceve-certificate-share__header {
    text-align: center;
    margin-bottom: 1.1rem;
    position: relative;
    z-index: 1;
}

.acceve-certificate-share__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(145deg, #0ea5e9, #6366f1);
    color: #fff;
    margin-bottom: 0.5rem;
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.35);
}

.acceve-certificate-share__title {
    margin: 0 0 0.25rem;
    font-size: 1.15rem;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.02em;
}

.acceve-certificate-share__subtitle {
    margin: 0;
    font-size: 0.875rem;
    color: #64748b;
    line-height: 1.45;
}

.acceve-certificate-share__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.55rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.acceve-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    color: #fff;
    transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.15s ease;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12);
}

a.acceve-share-btn:hover,
button.acceve-share-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.06);
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.18);
    color: #fff;
}

a.acceve-share-btn:focus-visible,
button.acceve-share-btn:focus-visible {
    outline: 2px solid #6366f1;
    outline-offset: 2px;
}

.acceve-share-btn--facebook { background: linear-gradient(145deg, #1877f2, #0c63d4); }
.acceve-share-btn--x { background: linear-gradient(145deg, #0f172a, #334155); }
.acceve-share-btn--linkedin { background: linear-gradient(145deg, #0a66c2, #004182); }
.acceve-share-btn--whatsapp { background: linear-gradient(145deg, #25d366, #128c7e); }
.acceve-share-btn--telegram { background: linear-gradient(145deg, #229ed9, #0088cc); }
.acceve-share-btn--email { background: linear-gradient(145deg, #64748b, #475569); }
.acceve-share-btn--native {
    display: none;
    background: linear-gradient(145deg, #0d9488, #0f766e);
}
.acceve-share-btn--native.is-visible {
    display: inline-flex;
}
.acceve-share-btn--copy {
    background: linear-gradient(145deg, #4f46e5, #4338ca);
}

.acceve-certificate-share__urlrow {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: stretch;
    position: relative;
    z-index: 1;
}

.acceve-certificate-share__input {
    flex: 1 1 180px;
    min-width: 0;
    padding: 0.65rem 0.85rem;
    font-size: 0.8125rem;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #f8fafc;
    color: #334155;
}

.acceve-certificate-share__copypill {
    flex: 0 0 auto;
    padding: 0.65rem 1.1rem;
    font-size: 0.8125rem;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    background: linear-gradient(145deg, #1e293b, #0f172a);
    color: #f8fafc;
    transition: transform 0.15s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.2);
}

.acceve-certificate-share__copypill:hover {
    transform: translateY(-1px);
    color: #fff;
}

.acceve-certificate-share__toast {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 8px);
    transform: translateX(-50%);
    padding: 0.45rem 0.9rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #fff;
    background: #0f172a;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.25);
    white-space: nowrap;
    z-index: 5;
}

.acceve-certificate-share__toast[hidden] {
    display: none;
}

@media (max-width: 600px) {
    .acceve-certificate-share {
        margin-top: 1.5rem;
    }
    .acceve-certificate-share__inner {
        padding: 1.1rem 1rem;
    }
    .acceve-share-btn {
        width: 44px;
        height: 44px;
    }
}