/* =============================================
   Certificate Image Viewer Page (cx)
   ============================================= */

.certificate-image-wrapper {
    position: relative;
    background: #ffffff;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    padding: 0;
    line-height: 0;
    container-type: inline-size;
}

.certificate-image {
    width: 100%;
    height: auto;
    display: block;
    opacity: 0;
    transition: opacity 0.5s ease-in;
}

.certificate-image.loaded {
    opacity: 1;
}

.cert-overlay-element {
    position: absolute;
    white-space: nowrap;
    line-height: 1;
    transform-origin: center center;
}

.cert-name {
    font-weight: 700;
    color: #2C3E50;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    white-space: nowrap;
    overflow: visible;
}

.cert-id {
    font-weight: 500;
    color: #2C3E50;
    opacity: 0.8;
    display: flex;
    align-items: flex-end;
}

.qr-code {
    padding: 0;
    height: auto;
    max-width: 15%;
}

.page-container {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.sidebar-wrapper {
    margin-top: 10px;
}

.sidebar-section {
    background-color: #ffffff;
    border-radius: 16px;
    border: 1px solid #e0e0e0;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.section-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.org-logo-small {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(145deg, #007bff, #00c6ff);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
}

.action-buttons .btn {
    font-weight: 600;
    padding: 0.75rem;
}

.share-icons {
    display: flex;
    gap: 0.75rem;
}

.share-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: transform 0.2s;
}

.share-icon:hover {
    transform: translateY(-3px);
}

.si-linkedin {
    background-color: #0077b5;
}

.si-facebook {
    background-color: #1877f2;
}

.si-whatsapp {
    background-color: #25d366;
}

.si-twitter {
    background-color: #1da1f2;
}

.brand-footer {
    text-align: center;
    margin-top: 1.5rem;
}

.brand-footer a {
    text-decoration: none;
    color: #6c757d;
    font-weight: 500;
}

.cert-loader-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #f8f9fa;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    transition: opacity 0.5s ease-out;
}

.cert-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #e0e0e0;
    border-top: 5px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}