/* RESET DE ESTILOS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: #f4f4f4;
    /* Fundo cinza claro para destacar os cards */
    color: #000000;
    /* Texto principal em Preto */
    min-height: 100vh;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
}

/* CABEÇALHO */
header {
    background-color: #e31e24;
    /* Vermelho da Marca */
    color: #ffffff;
    /* Branco */
    border-radius: 12px 12px 0 0;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

header h1 {
    font-size: 2.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

header p {
    font-size: 1rem;
    opacity: 0.9;
    margin-top: 5px;
}

/* NAVEGAÇÃO (ABAS) */
.tab-nav {
    display: flex;
    background-color: #000000;
    /* Preto */
    padding: 10px;
    gap: 5px;
    flex-wrap: wrap;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.tab-btn {
    background: transparent;
    border: 1px solid #ffffff;
    color: #ffffff;
    padding: 12px 18px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    background-color: #ffcc00;
    /* Amarelo no Hover */
    color: #000000;
    border-color: #ffcc00;
}

.tab-btn.active {
    background-color: #e31e24;
    /* Vermelho Ativo */
    color: #ffffff;
    border-color: #e31e24;
}

/* CONTEÚDO PRINCIPAL */
main {
    background-color: #ffffff;
    /* Branco */
    padding: 30px;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    min-height: 500px;
}

/* TÍTULOS */
h2 {
    color: #e31e24;
    /* Vermelho */
    border-bottom: 3px solid #ffcc00;
    /* Detalhe Amarelo */
    padding-bottom: 10px;
    margin-bottom: 25px;
    font-size: 1.8rem;
    text-transform: uppercase;
}

h3,
h4 {
    color: #000000;
    margin: 20px 0 15px 0;
    font-weight: 700;
}

/* FORMULÁRIOS */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    color: #000;
}

.form-group input:focus {
    border-color: #e31e24;
    outline: none;
}

/* BOTÕES */
button {
    background-color: #000000;
    color: #ffffff;
    border: none;
    padding: 12px 25px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    text-transform: uppercase;
    transition: background 0.3s;
}

button:hover {
    background-color: #333;
}

.btn-primary {
    background-color: #e31e24;
}

.btn-primary:hover {
    background-color: #b3171b;
}

.btn-secondary {
    background-color: #28a745;
    /* Verde para ações positivas */
}

.btn-secondary:hover {
    background-color: #218838;
}

.btn-danger {
    background-color: #dc3545;
}

/* SEÇÕES ESPECIAIS */
.pcmso-integrated-section {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
}

.format-example {
    background-color: #fffde7;
    /* Amarelo bem claro para aviso */
    border-left: 5px solid #ffcc00;
    padding: 15px;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

/* MENSAGENS DO SISTEMA */
.mensagem {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 30px;
    border-radius: 8px;
    color: white;
    font-weight: bold;
    z-index: 9999;
    display: none;
}

.mensagem.mostrar {
    display: block;
    animation: slideIn 0.5s ease;
}

.mensagem.sucesso {
    background-color: #28a745;
}

.mensagem.erro {
    background-color: #e31e24;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
    }

    to {
        transform: translateX(0);
    }
}

/* TABELAS */
.table-container {
    overflow-x: auto;
    margin-top: 20px;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    background-color: #000000;
    color: #ffffff;
    padding: 12px;
    text-align: left;
}

td {
    padding: 12px;
    border-bottom: 1px solid #ddd;
    color: #000;
}

tr:nth-child(even) {
    background-color: #f2f2f2;
}

/* AJUSTES PARA CELULAR */
@media (max-width: 768px) {
    .tab-btn {
        flex: 1 1 45%;
        text-align: center;
    }
}

/* ============================================================
   ESTILOS NOVOS - E-SOCIAL E ESTADOS DE ALERTA
   ============================================================ */

/* A) Animação "Blink" para Sem Procuração */
@keyframes blink-warning-animation {
    0% {
        background-color: transparent;
        box-shadow: none;
    }

    50% {
        background-color: rgba(227, 30, 36, 0.15);
        /* Vermelho marca suave */
        box-shadow: inset 0 0 8px rgba(227, 30, 36, 0.3);
    }

    100% {
        background-color: transparent;
        box-shadow: none;
    }
}

.blink-warning {
    animation: blink-warning-animation 1.5s infinite ease-in-out;
    border: 1px solid #e31e24 !important;
}

/* B) Estados Desabilitados (Eventos não obrigatórios) */
input:disabled,
select:disabled,
textarea:disabled,
.is-disabled {
    opacity: 0.4;
    cursor: not-allowed !important;
    background-color: #f9f9f9;
}

/* C) Linha de Alerta (Realce opcional para linhas de interesse) */
.row-warning {
    background-color: #fff8e1 !important;
    /* Amarelo muito suave */
    border-left: 4px solid #ffcc00;
}

/* Ajuste fino para os selects e inputs da tabela de relatórios */
.status-relatorio,
.obs-relatorio {
    font-size: 0.85rem;
    padding: 4px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.status-relatorio:focus,
.obs-relatorio:focus {
    border-color: #e31e24;
    outline: 1px solid rgba(227, 30, 36, 0.5);
    box-shadow: 0 0 4px rgba(227, 30, 36, 0.2);
}

.home-v1-container {
    max-width: 100%;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* BLOCO A - CABEÇALHO DO DIA */
.home-v1-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 16px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    gap: 20px;
    flex-wrap: wrap;
}

.home-v1-verse {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    min-width: 320px;
}

.bible-card--header {
    max-width: 620px;
    width: 100%;
    padding: 18px;
    margin: 0;
}

.bible-card--header .bible-text {
    font-size: 0.95rem;
    line-height: 1.4;
}

.bible-card--header .bible-reference {
    font-size: 0.85rem;
}

@media (max-width: 900px) {
    .home-v1-verse {
        min-width: 100%;
        justify-content: flex-start;
    }

    .bible-card--header {
        max-width: 100%;
    }
}

.home-v1-greeting h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 8px 0;
}

.home-date {
    font-size: 1.1rem;
    opacity: 0.9;
    margin: 0 0 4px 0;
}

.home-time {
    font-size: 1.3rem;
    font-weight: 600;
    opacity: 0.95;
    margin: 0;
}



/* BLOCO B - FRASE BÍBLICA DIÁRIA */
.home-v1-bible {
    margin-bottom: 30px;
}

.bible-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: flex-start;
    gap: 16px;
    border-left: 4px solid #4f46e5;
}

.bible-icon {
    background: #4f46e5;
    color: white;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.bible-content {
    flex: 1;
}

.bible-text {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #374151;
    margin: 0 0 8px 0;
    font-style: italic;
}

.bible-reference {
    font-size: 0.9rem;
    color: #6b7280;
    margin: 0;
    font-weight: 600;
}

/* BLOCO C - RESUMO OPERACIONAL */
.home-v1-summary {
    margin-bottom: 30px;
}

.section-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 20px 0;
}

.summary-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.summary-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.summary-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    border-color: #4f46e5;
}

.card-icon {
    width: 56px;
    height: 56px;
    background: #f3f4f6;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4f46e5;
    flex-shrink: 0;
}

.card-content h3 {
    font-size: 2rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 4px 0;
}

.card-content p {
    font-size: 0.9rem;
    color: #6b7280;
    margin: 0;
}

/* COLUNAS */
.home-v1-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

/* BLOCO D - LEMBRETES RÁPIDOS */
.home-v1-reminders {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.btn-add {
    background: #10b981;
    color: white;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn-add:hover {
    background: #059669;
}

.reminders-list {
    max-height: 300px;
    overflow-y: auto;
}

.reminder-item {
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 8px;
    border: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.reminder-item.completed {
    opacity: 0.6;
}

.reminder-content {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.reminder-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.reminder-text {
    font-size: 0.9rem;
    color: #374151;
    flex: 1;
}

.reminder-text.line-through {
    text-decoration: line-through;
}

.reminder-actions {
    display: flex;
    gap: 4px;
}

.btn-icon-small {
    background: transparent;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn-icon-small:hover {
    background: #f3f4f6;
}

.btn-icon-small.text-red:hover {
    background: #fef2f2;
    color: #dc2626;
}

/* BLOCO E - QUADRO DE AVISO GERAL */
.home-v1-notices {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-top: 20px;
}

.notices-list {
    max-height: 250px;
    overflow-y: auto;
}

.notice-item {
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 12px;
}

.notice-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.notice-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.notice-actions {
    display: flex;
    gap: 4px;
}

.notice-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 4px 0;
}

.notice-message {
    font-size: 0.9rem;
    color: #6b7280;
    margin: 0;
    line-height: 1.5;
}

/* BLOCO F - FOCO DO DIA */
.home-v1-focus {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
}

.btn-clear {
    background: #ef4444;
    color: white;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn-clear:hover {
    background: #dc2626;
}

.focus-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.focus-content textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.9rem;
    font-family: inherit;
    resize: vertical;
    min-height: 80px;
}

.focus-content textarea:focus {
    outline: none;
    border-color: #4f46e5;
}

.btn-save {
    background: #4f46e5;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
    align-self: flex-start;
}

.btn-save:hover {
    background: #4338ca;
}

/* BLOCO G - ATALHOS RÁPIDOS */
.home-v1-shortcuts {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.shortcuts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.shortcut-btn {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    padding: 16px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    color: #374151;
}

.shortcut-btn:hover {
    background: #4f46e5;
    border-color: #4f46e5;
    color: white;
    transform: translateY(-2px);
}

/* MODAIS */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-overlay.hidden {
    display: none;
}

.modal-content {
    background: white;
    border-radius: 12px;
    padding: 24px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.modal-header h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
}

.modal-close {
    background: transparent;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s ease;
}

.modal-close:hover {
    background: #f3f4f6;
}

.modal-body {
    margin-bottom: 20px;
}

.modal-input,
.modal-select,
.modal-textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.9rem;
    margin-bottom: 12px;
    font-family: inherit;
}

.modal-input:focus,
.modal-select:focus,
.modal-textarea:focus {
    outline: none;
    border-color: #4f46e5;
}

.modal-textarea {
    resize: vertical;
    min-height: 80px;
}

.modal-footer {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.btn-primary {
    background: #4f46e5;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn-primary:hover {
    background: #4338ca;
}

.btn-secondary {
    background: #f3f4f6;
    color: #374151;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn-secondary:hover {
    background: #e5e7eb;
}

/* RESPONSIVO HOME V1 */
@media (max-width: 768px) {
    .home-v1-container {
        padding: 16px;
    }

    .home-v1-header {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }

    .home-v1-greeting h1 {
        font-size: 2rem;
    }

    .home-v1-columns {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .summary-cards {
        grid-template-columns: 1fr;
    }

    .shortcuts-grid {
        grid-template-columns: 1fr;
    }

    .bible-card {
        flex-direction: column;
        text-align: center;
    }
}

/* Fundo do conteúdo central (todas as páginas) */
#content {
    background: #eef2f7;
    min-height: 100vh;
}

/* Remove chevron do @tailwindcss/forms apenas no select de status */
select.status-no-chevron {
    background-image: none !important;
    padding-right: 10px !important;
    /* garante respiro no texto */
}