.es-enquete-box {
    background: #eef2f5;
    padding: 25px;
    border-radius: 8px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #333;
    margin: 20px 0;
}
.es-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

.es-header h3 {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    font-size: 17px;
    font-weight: 600;
    color: #2c3e50;
    flex: 1;
    min-width: 250px;
}

/* Container que abriga as datas e o botão alinhados à direita */
.es-meta-group {
    display: flex;
    flex-direction: column;
    align-items: flex-end; /* Empurra os itens filhos para a direita */
    gap: 6px;
}

/* Bloco das datas (ficará acima do botão) */
.es-meta {
    font-size: 12px;
    color: #64748b;
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
}

/* Seu CSS com os !important para o botão ficar à direita das datas */
.es-btn-visualizar-resultado {
    background-color: #cbd5e1 !important;
    color: #334155 !important;
    border: none !important;
    padding: 4px 14px !important;
    border-radius: 50px !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    cursor: pointer;
    transition: background-color 0.2s ease;
    display: inline-flex;
    align-items: center;
    line-height: 1.2;
}

.es-btn-visualizar-resultado:hover {
    background-color: #94a3b8 !important;
    color: #1e293b !important;
}

.es-expired {
    background: #d9534f;
    color: #fff;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 10px;
}
.es-label-pergunta {
    font-weight: 600;
    margin-bottom: 10px;
}
.es-faces-container {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.es-face-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    text-align: center;
}
.es-face-label input[type="radio"] {
    display: none;
}
.es-face-icon {
    padding: 8px;
    border-radius: 50%;
    transition: all 0.2s;
    background: #fff;
    border: 2px solid #ccc;
}

.es-face-pessima .es-face-icon { color: #c0392b; }
.es-face-ruim .es-face-icon { color: #e67e22; }
.es-face-regular .es-face-icon { color: #f39c12; }
.es-face-boa .es-face-icon { color: #27ae60; }
.es-face-excelente .es-face-icon { color: #2ecc71; }

.es-face-label input[type="radio"]:checked + .es-face-icon {
    background: #004a80;
    color: #fff;
    border-color: #004a80;
}
.es-face-text {
    font-size: 12px;
    margin-top: 5px;
    color: #555;
}
.es-fields-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 15px;
}
.es-field-row {
    display: flex;
    gap: 10px;
}
.es-input-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
}
.es-full-width {
    width: 100%;
}
.es-field-row input, .es-field-row textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    outline: none;
    box-sizing: border-box;
    background: #fff;
}
.es-field-row input:focus, .es-field-row textarea:focus {
    border-color: #0073aa;
    box-shadow: 0 0 0 1px #0073aa;
}
.es-field-row textarea {
    height: 70px;
    resize: vertical;
}

.es-counter {
    font-size: 11px;
    color: #888888;
    margin-top: 3px;
    text-align: right;
}

.es-btn-submit {
    background: #0073aa;
    color: #fff;
    border: none;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
}
.es-btn-submit:hover {
    background: #005177;
}

.es-ja-votou-aviso {
    background: #e2f0d9;
    color: #385723;
    padding: 12px 15px;
    border-radius: 6px;
    font-weight: bold;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #c9e0b2;
}

/* Janela Modal Centralizada */
.es-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.es-modal-overlay.es-modal-ativo {
    display: flex;
    opacity: 1;
}
.es-modal-box {
    background: #eef2f5; /* Fundo cinza claro solicitado */
    width: 450px;
    max-width: 90%;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}
.es-modal-overlay.es-modal-ativo .es-modal-box {
    transform: translateY(0);
}
.es-modal-header {
    background: #ffffff;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e2e8f0;
}
.es-modal-header h4 {
    margin: 0;
    font-size: 16px;
    color: #2c3e50;
    font-family: 'Poppins', sans-serif;
}
.es-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    line-height: 1;
}
.es-modal-close:hover {
    color: #000;
}
.es-modal-body {
    padding: 20px;
    max-height: 70vh;
    overflow-y: auto;
}

/* Gráficos e Animação Fluida Deslizante */
.es-resultados-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.es-total-votos-info {
    font-size: 13px;
    color: #555;
    margin-bottom: 5px;
}
.es-resultado-item {
    background: #fff;
    padding: 10px 14px;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.es-res-label {
    font-weight: 600;
    font-size: 13px;
    display: block;
    margin-bottom: 5px;
    color: #444;
}
.es-bar-container {
    background: #e0e0e0;
    border-radius: 20px;
    height: 22px;
    width: 100%;
    position: relative;
    overflow: hidden;
}
.es-bar-fill {
    background: #004a80;
    height: 100%;
    width: 0%; /* Começa zerado para dar o efeito deslizante */
    border-radius: 20px;
    transition: width 1s cubic-bezier(0.1, 1, 0.1, 1); /* Animação suave e fluida */
    display: flex;
    align-items: center;
    padding-left: 8px;
    white-space: nowrap;
}
.es-bar-text {
    color: #fff;
    font-size: 11px;
    font-weight: bold;
}