﻿.dialogCertificado-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(13, 15, 30, 0.6);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 16px;
    overflow-y: auto;
}

.dialogCertificado-box {
    background-color: white;
    padding: 16px;
    border-radius: 12px;
    width: 100%;
    max-width: 95vw;
    max-height: 95vh;
    overflow-y: auto;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.certificado-imagem-gerada {
    max-width: 100%;
    height: auto;
    border: 1px solid #ccc;
    border-radius: 8px;
}

.dialogCertificado-buttons {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    margin-left: auto;
    gap: 10px;
}

/* Estilo padrão (para telas maiores) */
.dialogCertificado-btn-confirm,
.dialogCertificado-btn-cancel {
    background-color: #0ea3ce; /* ou vermelho no cancel */
    color: white;
    padding: 10px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    width: 200px; /* largura fixa */
    font-weight: bold;
}

.dialogCertificado-btn-cancel {
    background-color: #eb2211;
}

/* Responsivo para telas pequenas */
@media (max-width: 600px) {

    .dialogCertificado-buttons {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }

    .dialogCertificado-btn-confirm,
    .dialogCertificado-btn-cancel {
        width: 100%;
    }
}
