body {
    background-color: #f4f6f9;
}

/* ---- Calendário ---- */
.dia-celula {
    min-height: 90px;
    background: #fff;
    border: 1px solid #e6e9ef;
    border-radius: 6px;
    padding: 4px;
    font-size: 0.8rem;
}

.dia-fora {
    background: #f8f9fb;
    color: #b8bfc9;
}

.dia-hoje {
    border: 2px solid #0d6efd;
}

.dia-numero {
    font-weight: 600;
    margin-bottom: 2px;
}

.missa-item {
    cursor: pointer;
    background: #eef4ff;
    border-radius: 4px;
    padding: 2px 4px;
    margin-bottom: 2px;
}

.missa-item:hover {
    background: #dbe8ff;
}

/* ---- Visão do altar ---- */
.altar-wrapper {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

.altar-imagem {
    width: 100%;
    display: block;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,.15);
}

.assento {
    position: absolute;
    transform: translate(-50%, -50%);
    width: 64px;
    height: 64px;
}

.assento-foto {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px #0d6efd, 0 2px 8px rgba(0,0,0,.35);
    cursor: pointer;
    background: #dee2e6;
}

.assento-vazio {
    box-shadow: 0 0 0 2px #adb5bd, 0 2px 8px rgba(0,0,0,.25);
    opacity: 0.6;
}

.assento-tooltip {
    position: absolute;
    bottom: 72px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(20, 20, 20, 0.9);
    color: #fff;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 0.8rem;
    white-space: nowrap;
    display: none;
    z-index: 5;
}

.assento:hover .assento-tooltip {
    display: block;
}

.assento-editar {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 28px;
    height: 28px;
    padding: 0;
    border-radius: 50%;
    z-index: 6;
    box-shadow: 0 1px 4px rgba(0,0,0,.3);
}

.flatpickr-calendar {
    z-index: 1060;
}

/* ---- Editor visual de assentos (admin) ---- */
.altar-editor-wrapper {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    cursor: crosshair;
}

.assento-editor {
    position: absolute;
    transform: translate(-12px, -12px);
    cursor: move;
    text-align: center;
}

.assento-editor-bolha {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #0d6efd;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    box-shadow: 0 0 0 2px #fff, 0 2px 6px rgba(0,0,0,.4);
}

.assento-editor-rotulo {
    display: block;
    background: rgba(0,0,0,.75);
    color: #fff;
    font-size: 0.65rem;
    border-radius: 4px;
    padding: 1px 4px;
    margin-top: 2px;
    white-space: nowrap;
}

.assento-editor-excluir {
    position: absolute;
    top: -8px;
    right: -8px;
    color: #dc3545;
    background: #fff;
    border-radius: 50%;
    font-size: 0.75rem;
    line-height: 1;
    cursor: pointer;
}
