/* vela_style.css - TEMA ESCURO PARA A VELA VIRTUAL DE FÁTIMA */
:root {
    /* Cores para o tema escuro de Fátima */
    --bg-page: #0a0a12;           /* Preto azulado muito escuro */
    --container-bg: #1a1a2e;      /* Azul muito escuro para container */
    --container-bg-alt: #22223a;  /* Azul escuro alternativo */
    --highlight: #FFC300;         /* Dourado/Ouro - cor da chama */
    --highlight-light: #FFE580;   /* Dourado claro */
    --highlight-glow: rgba(255, 195, 0, 0.3); /* Brilho dourado */
    
    /* Cores de texto para tema escuro */
    --text-dark: #E2E8F0;         /* Branco acinzentado claro */
    --text-light: #94A3B8;        /* Cinza azulado médio */
    --text-muted: #64748B;        /* Cinza azulado escuro */
    
    /* Cores auxiliares */
    --muted: #334155;             /* Cinza azulado para bordas */
    --muted-dark: #1E293B;        /* Cinza azulado mais escuro */
    --candle-wax: #3a3a4a;        /* Cor da cera no tema escuro */
    --candle-wax-light: #4a4a5a;  /* Cor clara da cera */
    --wick-color: #CBD5E1;        /* Cor do pavio (cinza claro) */
    --success: #10B981;           /* Verde esmeralda para sucesso */
    --error: #EF4444;             /* Vermelho para erros */
    
    /* Layout */
    --max-width: 680px;
    --border-radius: 12px;
}

/* Reset e Estilos Globais */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background-color: var(--bg-page);
    color: var(--text-dark);
    line-height: 1.6;
    min-height: 100vh;
    padding: 20px;
    background-image: 
        url('https://romariadefatima.org/vela_three.jpg');
}

/* Container Principal - Estilo Escuro Elegante */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    background-color: var(--container-bg);
    border-radius: var(--border-radius);
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.5),
        0 5px 15px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    padding: 35px 30px;
    border: 1px solid var(--muted);
    position: relative;
    overflow: hidden;
}

/* Efeito de brilho sutil no container */
.container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: transparent);
    z-index: 1
}

/* Barra de Progresso - Estilo Escuro Moderno */
.progress-bar-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-bottom: 40px;
    padding: 0 15px;
    position: relative;
}

.progress-bar-container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50px;
    right: 50px;
    height: 2px;
    background: var(--muted) 0% 100%);
    transform: translateY(-50%);
    z-index: 0
}

.step {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--muted-dark);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9em;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
    border: 2px solid transparent;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.step.active {
    background-color: var(--highlight);
    color: var(--bg-page);
    transform: scale(1.15);
    border-color: var(--highlight-light);
    box-shadow: 
        0 0 20px var(--highlight-glow),
        0 4px 12px rgba(255, 195, 0, 0.3);
}

.step.completed {
    background-color: var(--success);
    color: white;
}

/* Conteúdo das Etapas */
.step-content {
    display: none;
    animation: fadeInUp 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.step-content.active {
    display: block;
}

@keyframes fadeInUp {
    from { 
        opacity: 0; 
        transform: translateY(20px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

/* Títulos - Estilo para Tema Escuro */
h1, h2, h3 {
    color: var(--text-dark);
    text-align: center;
    margin-bottom: 24px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

h1 {
    font-size: 2.4em;
    color: var(--highlight);
    margin-bottom: 16px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, var(--highlight) 0%, var(--highlight-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h2 {
    font-size: 1.8em;
    color: var(--text-dark);
    margin-bottom: 28px;
    position: relative;
    padding-bottom: 12px;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: transparent);
    border-radius: 2px
}

/* Textos de Inspiração */
.text-inspiracao {
    font-style: italic;
    color: var(--text-light);
    text-align: center;
    font-size: 1.15em;
    line-height: 1.7;
    margin: 24px 0;
    padding: 0 15px;
    font-weight: 300;
}

.text-highlight {
    color: var(--highlight);
    font-weight: 500;
}

/* Visualização da Vela - Estilo Escuro */
.candle-visualization {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 45px auto;
    position: relative;
    height: 220px;
    cursor: pointer;
}

.candle-base {
    width: 44px;
    height: 140px;
    background: linear-gradient(to right, 
        var(--candle-wax) 0%, 
        var(--candle-wax-light) 30%, 
        var(--candle-wax) 70%, 
        var(--muted) 100%);
    border-radius: 10px 10px 6px 6px;
    position: relative;
    box-shadow: 
        inset 0 -8px 16px rgba(0, 0, 0, 0.4),
        0 8px 24px rgba(0, 0, 0, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.3);
}

.candle-wick {
    width: 4px;
    height: 18px;
    background: linear-gradient(to bottom, 
        var(--wick-color) 0%, 
        #2D3748 100%);
    position: absolute;
    top: -18px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px 2px 0 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Chama - Estado Inicial (Desligada) */
.candle-flame {
    width: 24px;
    height: 48px;
    background: radial-gradient(ellipse at center, 
        var(--highlight) 0%, 
        var(--highlight-light) 40%, 
        transparent 80%);
    border-radius: 50% 50% 20% 20%;
    position: absolute;
    top: -66px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    display: none;
    filter: blur(1px);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Estado Aceso (Controlado pela classe .lit) */
.candle-visualization.lit .candle-flame {
    display: block;
    opacity: 1;
    animation: 
        flameFloat 3s ease-in-out infinite,
        flamePulse 2s ease-in-out infinite alternate,
        flameFlicker 0.4s infinite;
    box-shadow: 
        0 0 30px var(--highlight),
        0 0 60px rgba(255, 195, 0, 0.5),
        0 0 90px rgba(255, 195, 0, 0.2);
    filter: blur(0.5px);
}

/* Animações da Chama Melhoradas */
@keyframes flameFloat {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-4px); }
}

@keyframes flamePulse {
    from { 
        transform: translateX(-50%) scale(0.95); 
        opacity: 0.9; 
    }
    to { 
        transform: translateX(-50%) scale(1.05); 
        opacity: 1; 
    }
}

@keyframes flameFlicker {
    0%, 100% { 
        transform: translateX(-50%) skewX(0deg) scaleY(1); 
    }
    25% { 
        transform: translateX(-50%) skewX(3deg) scaleY(1.1); 
    }
    50% { 
        transform: translateX(-50%) skewX(-2deg) scaleY(0.95); 
    }
    75% { 
        transform: translateX(-50%) skewX(1deg) scaleY(1.05); 
    }
}

/* Área de Clique do Pavio */
.wick-click-area {
    position: absolute;
    width: 70px;
    height: 70px;
    top: -45px;
    left: 50%;
    transform: translateX(-50%);
    cursor: pointer;
    z-index: 100;
    border-radius: 50%;
    transition: transform 0.2s;
}

.wick-click-area:hover {
    transform: translateX(-50%) scale(1.1);
}

/* Campos de Formulário - Estilo Escuro */
.form-group {
    margin-bottom: 28px;
}

label {
    display: block;
    margin-bottom: 10px;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.95em;
    letter-spacing: 0.01em;
}

.required::after {
    content: "*";
    color: var(--highlight);
    font-weight: bold
}

.input-dedicacao,
.input-mensagem,
select {
    width: 100%;
    padding: 16px;
    border: 2px solid var(--muted);
    border-radius: 10px;
    background-color: rgba(30, 30, 46, 0.7);
    color: var(--text-dark);
    font-size: 1em;
    font-family: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}

.input-dedicacao:focus,
.input-mensagem:focus,
select:focus {
    outline: none;
    border-color: var(--highlight);
    background-color: rgba(40, 40, 60, 0.8);
    box-shadow: 
        0 0 0 3px var(--highlight-glow),
        0 4px 12px rgba(0, 0, 0, 0.4);
}

.input-dedicacao::placeholder,
.input-mensagem::placeholder {
    color: var(--text-muted);
}

.input-mensagem {
    min-height: 140px;
    resize: vertical;
    line-height: 1.5;
}

/* Estilos para Grupos */
#group-selection-area {
    margin-top: 24px;
    padding: 24px;
    background-color: var(--container-bg-alt);
    border-radius: 10px;
    border: 1px solid var(--muted);
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.3);
}

.group-list {
    max-height: 220px;
    overflow-y: auto;
    margin: 18px 0;
    border: 1px solid var(--muted);
    border-radius: 8px;
    background: rgba(30, 30, 46, 0.8);
    scrollbar-width: thin;
    scrollbar-color: var(--highlight) var(--muted-dark);
}

.group-list::-webkit-scrollbar {
    width: 8px;
}

.group-list::-webkit-scrollbar-track {
    background: var(--muted-dark);
    border-radius: 4px;
}

.group-list::-webkit-scrollbar-thumb {
    background: var(--highlight);
    border-radius: 4px;
}

.group-item {
    padding: 14px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.group-item:last-child {
    border-bottom: none;
}

.group-item:hover {
    background-color: rgba(255, 195, 0, 0.08);
    transform: translateX(4px);
}

.group-item.selected {
    background-color: rgba(255, 195, 0, 0.12);
    border-left: 4px solid var(--highlight);
    padding-left: 14px;
}

.group-id {
    font-size: 0.85em;
    color: var(--text-muted);
    font-family: 'Monaco', 'Consolas', monospace;
}

/* Botões - Estilo Escuro Elegante */
.navigation-btns {
    display: flex;
    justify-content: center;
    gap: 18px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--muted);
}

.botao-acao {
    background: linear-gradient(135deg, 
        var(--highlight) 0%, 
        #E6B65B 100%);
    color: var(--bg-page);
    border: none;
    padding: 16px 32px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 160px;
    box-shadow: 
        0 4px 15px rgba(255, 195, 0, 0.25),
        0 1px 3px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.botao-acao::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: transparent) 255 0.2);
    transition: left 0.6s
}

.botao-acao:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 
        0 8px 25px rgba(255, 195, 0, 0.35),
        0 3px 8px rgba(0, 0, 0, 0.4);
}

.botao-acao:hover:not(:disabled)::before {
    left: 100%;
}

.botao-acao:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.btn-voltar {
    background: transparent;
    color: var(--text-light);
    border: 2px solid var(--muted);
    padding: 16px 32px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s;
    min-width: 160px;
}

.btn-voltar:hover {
    border-color: var(--highlight);
    color: var(--highlight);
    background-color: rgba(255, 195, 0, 0.05);
}

/* Checkbox e Radio - Estilo Escuro */
.checkbox-group,
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 24px 0;
}

.checkbox-group label,
.radio-group label {
    margin-bottom: 0;
    font-weight: normal;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 10px;
    border-radius: 8px;
    transition: background-color 0.2s;
}

.checkbox-group label:hover,
.radio-group label:hover {
    background-color: rgba(255, 255, 255, 0.03);
}

input[type="checkbox"],
input[type="radio"] {
    width: 20px;
    height: 20px;
    accent-color: var(--highlight);
}

/* Estatísticas */
.estatisticas {
    text-align: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--muted);
    color: var(--text-light);
    font-size: 0.95em;
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.estatisticas strong {
    color: var(--highlight);
    font-size: 1.4em;
    font-weight: 700;
}

/* Status Messages */
#save-status {
    text-align: center;
    margin: 24px 0;
    padding: 16px;
    border-radius: 10px;
    font-weight: 500;
    background-color: rgba(255, 195, 0, 0.08);
    border: 1px solid rgba(255, 195, 0, 0.2);
    animation: pulseSoft 2s infinite;
}

@keyframes pulseSoft {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

/* Responsividade */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .container {
        padding: 25px 20px;
        margin: 5px;
    }
    
    h1 {
        font-size: 2em;
    }
    
    h2 {
        font-size: 1.6em;
    }
    
    .navigation-btns {
        flex-direction: column;
        gap: 12px;
    }
    
    .botao-acao,
    .btn-voltar {
        width: 100%;
        min-width: unset;
        padding: 14px 24px;
    }
    
    .candle-base {
        width: 38px;
        height: 120px;
    }
    
    .progress-bar-container {
        gap: 8px;
    }
    
    .step {
        width: 32px;
        height: 32px;
        font-size: 0.85em;
    }
    
    .progress-bar-container::before {
        left: 40px;
        right: 40px;
    }
    
    .estatisticas {
        flex-direction: column;
        gap: 12px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.8em;
    }
    
    h2 {
        font-size: 1.4em;
    }
    
    .text-inspiracao {
        font-size: 1.05em;
        padding: 0 10px;
    }
    
    .candle-base {
        width: 32px;
        height: 100px;
    }
    
    .candle-flame {
        width: 20px;
        height: 40px;
        top: -56px;
    }
}

/* Utilitários */
.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}

.flex {
    display: flex;
}

.justify-center {
    justify-content: center;
}

.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.mt-4 { margin-top: 16px; }
.mb-4 { margin-bottom: 16px; }
.mt-6 { margin-top: 24px; }
.mb-6 { margin-bottom: 24px; }
.mt-8 { margin-top: 32px; }
.mb-8 { margin-bottom: 32px; }

/* Loading Animation */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid var(--text-muted);
    border-top-color: var(--highlight);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 10px;
    vertical-align: middle;
}
/* ============================================
   ESTILOS PARA SISTEMA DE CONTADOR DE VELAS
   ============================================ */

/* Modal de confirmação de vela */
.modal-vela {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 999999;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.modal-vela-conteudo {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 195, 0, 0.3);
    animation: modalAparece 0.3s ease;
}

@keyframes modalAparece {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.modal-vela-header {
    background: rgba(0, 0, 0, 0.3);
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-vela-body {
    padding: 25px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

.modal-vela-footer {
    padding: 20px 25px;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-modal-vela {
    padding: 12px 25px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    font-size: 15px;
    transition: all 0.3s;
    min-width: 120px;
}

.btn-modal-confirmar {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
}

.btn-modal-cancelar {
    background: #6c757d;
    color: white;
}

.btn-modal-vela:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.btn-modal-confirmar:hover {
    background: linear-gradient(135deg, #218838, #1e9e8a);
}

.btn-modal-cancelar:hover {
    background: #5a6268;
}

.modal-vela-fechar {
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s;
}

.modal-vela-fechar:hover {
    background: rgba(255, 255, 255, 0.1);
}

body.modal-vela-aberto {
    overflow: hidden !important;
}

/* Feedback de vela acesa */
.feedback-vela-acesa {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: rgba(20, 20, 30, 0.95);
    color: white;
    padding: 15px 25px;
    border-radius: 15px;
    border-left: 5px solid #FFC300;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    z-index: 99999;
    animation: feedbackEntrada 0.4s ease;
    backdrop-filter: blur(10px);
    max-width: 300px;
}

@keyframes feedbackEntrada {
    from { 
        transform: translateX(100%); 
        opacity: 0; 
    }
    to { 
        transform: translateX(0); 
        opacity: 1; 
    }
}

@keyframes feedbackSaida {
    from { opacity: 1; }
    to { opacity: 0; }
}

/* Responsividade */
@media (max-width: 768px) {
    .modal-vela-conteudo {
        width: 95%;
        margin: 10px;
    }
    
    .modal-vela-footer {
        flex-direction: column;
    }
    
    .btn-modal-vela {
        width: 100%;
        min-width: unset;
    }
    
    .feedback-vela-acesa {
        bottom: 20px;
        right: 20px;
        left: 20px;
        max-width: none;
    }
}
/* ============================================
   ESTILOS PARA FASE 5 CORRIGIDA
   ============================================ */

/* Grid da comunidade */
.community-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin: 40px 0;
}

/* Vela da comunidade */
.community-candle {
    background: rgba(40, 40, 60, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px 15px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: default;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.community-candle.available {
    cursor: pointer;
    border: 2px dashed rgba(255, 195, 0, 0.4);
    background: rgba(30, 30, 45, 0.8);
}

.community-candle.available:hover {
    background: rgba(255, 195, 0, 0.1);
    border-color: #FFC300;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(255, 195, 0, 0.2);
}

.community-candle.lit {
    background: rgba(25, 25, 40, 0.9);
    border: 1px solid rgba(255, 195, 0, 0.2);
    opacity: 0.8;
}

.community-candle.selected {
    background: rgba(255, 195, 0, 0.15);
    border: 2px solid #FFC300;
    box-shadow: 0 15px 35px rgba(255, 195, 0, 0.3);
}

/* Ícone da vela */
.candle-icon {
    font-size: 2em;
    margin-bottom: 10px;
    display: block;
}

/* Informações do peregrino */
.pilgrim-info {
    color: rgba(255, 255, 255, 0.9);
}

.pilgrim-name {
    font-weight: bold;
    font-size: 1.1em;
    margin-bottom: 5px;
}

.pilgrim-location {
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 5px;
}

.candle-time {
    font-size: 0.8em;
    color: #FFC300;
    font-style: italic;
}

/* Responsividade */
@media (max-width: 768px) {
    .community-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .community-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

/* Área de seleção da vela */
#candle-selection-area {
    background: rgba(30, 30, 45, 0.9);
    border-radius: 15px;
    padding: 25px;
    border: 2px solid #FFC300;
    text-align: center;
    margin: 30px 0;
    animation: fadeInUp 0.5s ease;
}

@keyframes fadeInUp {
    from { 
        opacity: 0; 
        transform: translateY(20px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

/* Botão de confirmação especial */
#btn-confirmar-vela {
    background: linear-gradient(135deg, #8B0000, #B22222);
    color: white;
    padding: 18px 40px;
    font-size: 1.2em;
    font-weight: bold;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 8px 25px rgba(139, 0, 0, 0.4);
    margin-top: 20px;
}

#btn-confirmar-vela:hover {
    background: linear-gradient(135deg, #B22222, #8B0000);
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(139, 0, 0, 0.5);
}

#btn-confirmar-vela:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}
/* ESTILOS PARA FASE 5 CORRIGIDOS */
.candle-community-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 20px !important;
    margin: 40px 0 !important;
}

.community-candle {
    display: flex !important;
    align-items: center !important;
    padding: 18px 15px !important;
    background: rgba(30, 30, 45, 0.8) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 12px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
}

.community-candle.available:hover {
    background: rgba(40, 40, 60, 0.9) !important;
    border-color: rgba(255, 195, 0, 0.4) !important;
    transform: translateY(-2px) !important;
}

.community-candle.selected {
    background: rgba(255, 195, 0, 0.18) !important;
    border: 2px solid #FFC300 !important;
    box-shadow: 0 10px 20px rgba(255, 195, 0, 0.2) !important;
}

.community-candle.lit {
    cursor: default !important;
    opacity: 0.9 !important;
}

.pilgrim-info {
    margin-left: 15px !important;
    flex-grow: 1 !important;
}

.pilgrim-name {
    color: #FFFFFF !important;
    font-weight: bold !important;
    font-size: 1.1em !important;
    margin-bottom: 5px !important;
}

.pilgrim-location, .candle-time {
    color: rgba(255, 255, 255, 0.7) !important;
    font-size: 0.9em !important;
}

/* Responsividade */
@media (max-width: 768px) {
    .candle-community-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
    }
}

@media (max-width: 480px) {
    .candle-community-grid {
        grid-template-columns: 1fr !important;
    }
}