body {
    margin: 0;
    font-family: "Inter", sans-serif;
    background: var(--background);
    color: var(--cor-texto);
}

/* CONTAINER PADRÃO */
.container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
}

/* CARDS / BOXES */
.card {
    background: var(--cor-branco);
    padding: 25px;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    margin-bottom: 30px;
 
}

/* TITULOS */
h1, h2, h3 {
    color: var(--cor-primaria);
    margin-top: 12px;
    
}

h1, h2 {
    font-family: "Cormorant Garamond", serif;
    font-style: italic;
    font-weight: 500;
    text-align: center;
}
h1{
    font-size: 3rem;
}
p{
    text-align: center;
}

/* FORMULÁRIOS GENÉRICOS */
form {
    width: 100%;
}

form label {
    display: block;
    margin-bottom: 6px;
    font-weight: bold;
    color: var(--cor-primaria);
}

form input,
form select,
form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 18px;
    border: 1px solid var(--cor-borda);
    border-radius: 30px;
    font-size: 1rem;
    box-sizing: border-box;
    transition: 0.2s;
}

form select,
.input-redondo,
.tabela-edicao-rsvp select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

form input:focus,
form select:focus,
form textarea:focus {
    border-color: var(--cor-primaria);
    outline: none;
}

input[type="date"] {
    width: 100%;
    padding: 16px;
    font-size: 0.95rem;
    border-radius:30px;
    border: 1px solid #e8e2dd;
    background: #fff;
    box-sizing: border-box;
}

input[type="number"] {
    width: 100%;
    padding: 16px;
    font-size: 0.95rem;
    border-radius:30px;
    border: 1px solid #e8e2dd;
    background: #fff;
    box-sizing: border-box;
}

.input-redondo
{
    width: 100%;
    padding: 16px;
    font-size: 0.95rem;
    border-radius:30px;
    border: 1px solid #e8e2dd;
    background: #fff;
    box-sizing: border-box;
}



/* BOTÕES PADRÃO */
button,
.btn {
    display: inline-block;
    padding: 12px 20px;
    background: var(--cor-primaria);
    color: #fff;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-size: 0.95rem;
    transition: 0.2s;
    text-decoration: none;
    
}
.btn-menu {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 120px;   /* define tamanho padrão */
    text-align: center;
}
.menu-botoes {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

button:hover,
.btn:hover {
    background: var(--cor-primaria-hover);
}

/* BOTÃO SECUNDÁRIO */
.btn-secundario {
    background: var(--cor-primaria-clara);
    color: var(--cor-primaria);
    align-items: center;
    width: 120px; 
   text-align: center;
}

/* TABELAS PADRÃO */
table {
    width: 100%;
    border-collapse: collapse;
    background: var(--cor-branco);
    border-radius: 16px;
    overflow: hidden;
}

table th {
    background: var(--cor-primaria);
    color: #fff;
    padding: 14px;
    text-align: left;
    font-weight: normal;
}

table td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--cor-borda);
}

table tr:hover {
    background: var(--cor-primaria-clara);
}

/* ALERTAS */
.alert {
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.alert-sucesso {
    background: #e6f9ed;
    color: #1b7a3a;
}

.alert-erro {
    background: #fdeaea;
    color: #a11;
}

/* PREVIEW DA COR */
.preview-box {
    width: 100%;
    height: 50px;
    border-radius: 12px;
    margin-bottom: 20px;
    border: 1px solid var(--cor-borda);
}

/* INPUT COLOR ajustado */
input[type="color"] {
    height: 50px;
    padding: 5px;
    cursor: pointer;
}
table th:nth-child(2),
table th:nth-child(3),
table td:nth-child(2),
table td:nth-child(3) {
  text-align: center;
}
table th:nth-child(1),
table td:nth-child(1){
  text-align: left;
}

.pix-cell a {
    color: inherit !important;
    text-decoration: none !important;
    pointer-events: none;
    cursor: default;
}

.tabela-wrapper {
    width: 100%;
    overflow-x: auto;
}

.tabela-edicao-rsvp input,
.tabela-edicao-rsvp select {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid var(--cor-borda);
    background: #fff;
    margin-bottom: 0;
    border-radius: 30px;
    padding: 12px;
    font-size: 1rem;
    transition: 0.2s;
}

.tabela-edicao-rsvp input:focus,
.tabela-edicao-rsvp select:focus {
    border-color: var(--cor-primaria);
    outline: none;
}

.tabela-edicao-rsvp td:last-child form {
    margin-bottom: 8px;
}

.tabela-edicao-rsvp td:last-child .btn,
.tabela-edicao-rsvp td:last-child button {
    width: auto;
}

.form-adicionar-rsvp-linha {
    display: grid;
    grid-template-columns: 2.2fr 1.2fr 1.4fr 1fr 1fr auto;
    gap: 10px;
    align-items: center;
}

.form-adicionar-rsvp-linha input,
.form-adicionar-rsvp-linha select {
    margin-bottom: 0;
}

.form-adicionar-rsvp-linha button {
    width: auto;
}

.rsvp-controles-linha {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.rsvp-controles-linha #busca-rsvp {
    margin-bottom: 0;
    flex: 1;
}

#filtro-idade-rsvp input[type="number"] {
    margin-bottom: 0;
}

#tabela-rsvp tr.status-em_aberto td {
    background: #fffde8;
}

#tabela-rsvp tr.status-ira_comparecer td {
    background: #e9f8ee;
}

#tabela-rsvp tr.status-nao_ira_comparecer td {
    background: #fdecec;
}

#tabela-rsvp tr.status-em_aberto:hover td {
    background: #fff8cf;
}

#tabela-rsvp tr.status-ira_comparecer:hover td {
    background: #dff3e6;
}

#tabela-rsvp tr.status-nao_ira_comparecer:hover td {
    background: #f9dede;
}

.rsvp-mobile-label {
    display: none;
}

input[type="checkbox"] {
  transform: scale(2);
  cursor: pointer;
}

input[type="checkbox"]:checked {
  accent-color: var(--cor-primaria);
}

.dashboard-eventos-table td.col-acoes {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.dashboard-eventos-table td.col-acoes .btn {
    width: 110px;
    text-align: center;
    padding: 10px 8px;
}

.dashboard-top-menu {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 10px;
    justify-content: center;
    padding-bottom: 4px;
}

.dashboard-top-menu .btn {
    flex: 0 0 auto;
    white-space: nowrap;
}

/* =========================
   RESPONSIVIDADE MOBILE
========================= */

@media (max-width: 768px) {

    /* Container */
    .container {
        margin: 20px auto;
        padding: 15px;
    }

    /* Cards */
    .card {
        padding: 18px;
        border-radius: 14px;
        text-align: center;
    }

    /* Títulos */
    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.2rem;
    }
    
    h1,h2{ text-align: center;}

    /* Botões */
    button,
    .btn {
        width: 80%;
        text-align: center;
        padding: 14px;
        font-size: 1rem;
        margin-bottom: 10px;
    }

    .btn-menu {
        width: 80%;
    }
    
    .menu-botoes {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

    /* Formulários */
    form input,
    form select,
    form textarea {
        width: 100%;
        padding: 14px;
        font-size: 1rem;
         text-align: center;
    }

    /* Tabelas viram scroll horizontal */


    /* Checkboxes menores no mobile */
    input[type="checkbox"] {
        transform: scale(1.5);
    }
    input[type="date"] {
        width: 90%;
        padding: 14px;
        font-size: 1rem;
  
}

    .form-adicionar-rsvp-linha {
        grid-template-columns: 1fr;
    }

    .form-adicionar-rsvp-linha button {
        width: 80%;
        justify-self: center;
    }

    .rsvp-controles-linha {
        flex-direction: column;
        align-items: stretch;
    }

    .rsvp-controles-linha button {
        width: 100%;
    }

    #tabela-rsvp tr:first-child {
        display: none;
    }

    #tabela-rsvp {
        border-collapse: separate;
        border-spacing: 0 10px;
    }

    #tabela-rsvp tr.linha-rsvp {
        display: grid;
        grid-template-columns: repeat(12, minmax(0, 1fr));
        gap: 8px;
        padding: 10px;
        border-radius: 12px;
        border: 1px solid var(--cor-borda);
    }

    #tabela-rsvp tr.linha-rsvp td {
        border-bottom: none;
        padding: 0;
        background: transparent;
    }

    .rsvp-mobile-label {
        display: block;
        margin: 0 0 4px 0;
        font-size: 11px;
        line-height: 1.2;
        font-weight: 600;
        color: #5c5c5c;
        text-align: center;
    }

    #tabela-rsvp tr.linha-rsvp td.col-nome {
        grid-column: 1 / 13;
    }

    #tabela-rsvp tr.linha-rsvp td.col-status {
        grid-column: 1 / 7;
    }

    #tabela-rsvp tr.linha-rsvp td.col-telefone {
        grid-column: 7 / 13;
    }

    #tabela-rsvp tr.linha-rsvp td.col-mesa {
        grid-column: 1 / 5;
    }

    #tabela-rsvp tr.linha-rsvp td.col-idade {
        grid-column: 5 / 9;
    }

    #tabela-rsvp tr.linha-rsvp td.col-acao {
        grid-column: 9 / 13;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    #tabela-rsvp tr.status-em_aberto {
        background: #fffde8;
    }

    #tabela-rsvp tr.status-ira_comparecer {
        background: #e9f8ee;
    }

    #tabela-rsvp tr.status-nao_ira_comparecer {
        background: #fdecec;
    }

    .dashboard-eventos-table thead th:nth-child(3) {
        display: none;
    }

    .dashboard-eventos-table {
        width: 100%;
        table-layout: fixed;
    }

    .dashboard-eventos-table tbody {
        display: block;
        width: 100%;
    }

    .dashboard-eventos-table tbody tr {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        width: 100%;
        box-sizing: border-box;
        margin: 0 0 10px 0;
        padding: 10px;
        border: 1px solid var(--cor-borda);
        border-radius: 12px;
        background: #fff;
    }

    .dashboard-eventos-table tbody td {
        border-bottom: none;
        padding: 0;
        text-align: left !important;
    }

    .dashboard-eventos-table tbody td.col-acoes {
        grid-column: 1 / 3;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 6px;
        align-items: center;
    }

    .dashboard-eventos-table tbody td.col-acoes .btn {
        width: 86% !important;
        justify-self: center;
        margin-bottom: 0;
        padding: 8px 4px;
        font-size: 0.78rem;
        line-height: 1.1;
        text-align: center;
    }

    .gerenciar-pagamentos-table thead,
    .gerenciar-fornecedores-table thead,
    .financeiro-eventos-table thead,
    .clientes-eventos-table thead,
    .fornecedores-eventos-table thead {
        display: none;
    }

    .gerenciar-pagamentos-table tbody tr {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        margin-bottom: 10px;
        padding: 10px;
        border: 1px solid var(--cor-borda);
        border-radius: 12px;
        background: #fff;
    }

    .gerenciar-pagamentos-table tbody tr.status-previsto {
        background: #fffde8;
    }

    .gerenciar-pagamentos-table tbody tr.status-pago {
        background: #e9f8ee;
    }

    .gerenciar-pagamentos-table tbody tr.status-cancelado {
        background: #fdecec;
    }

    .gerenciar-fornecedores-table tbody tr {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        margin-bottom: 10px;
        padding: 10px;
        border: 1px solid var(--cor-borda);
        border-radius: 12px;
        background: #fff;
    }

    .financeiro-eventos-table tbody tr {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        margin-bottom: 10px;
        padding: 10px;
        border: 1px solid var(--cor-borda);
        border-radius: 12px;
        background: var(--background);
    }

    .clientes-eventos-table tbody tr {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        margin-bottom: 10px;
        padding: 10px;
        border: 1px solid var(--cor-borda);
        border-radius: 12px;
        background: var(--background);
    }

    .fornecedores-eventos-table tbody tr {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        margin-bottom: 10px;
        padding: 10px;
        border: 1px solid var(--cor-borda);
        border-radius: 12px;
        background: var(--background);
    }

    .gerenciar-pagamentos-table tbody td,
    .gerenciar-fornecedores-table tbody td {
        border: 1px solid var(--cor-borda);
        border-radius: 10px;
        padding: 8px;
        text-align: center !important;
        background: #fafafa;
    }

    .financeiro-eventos-table tbody td {
        border: 1px solid var(--cor-borda);
        border-radius: 10px;
        padding: 8px;
        text-align: center !important;
        background: #fafafa;
    }

    .clientes-eventos-table tbody td,
    .fornecedores-eventos-table tbody td {
        border: 1px solid var(--cor-borda);
        border-radius: 10px;
        padding: 8px;
        text-align: center !important;
        background: #fafafa;
    }

    .gerenciar-pagamentos-table tbody td::before,
    .gerenciar-fornecedores-table tbody td::before {
        content: attr(data-label);
        display: block;
        margin-bottom: 4px;
        font-size: 11px;
        font-weight: 600;
        color: #5c5c5c;
        text-align: center;
    }

    .financeiro-eventos-table tbody td::before {
        content: attr(data-label);
        display: block;
        margin-bottom: 4px;
        font-size: 11px;
        font-weight: 600;
        color: #5c5c5c;
        text-align: center;
    }

    .clientes-eventos-table tbody td::before,
    .fornecedores-eventos-table tbody td::before {
        content: attr(data-label);
        display: block;
        margin-bottom: 4px;
        font-size: 11px;
        font-weight: 600;
        color: #5c5c5c;
        text-align: center;
    }

    .financeiro-eventos-table tbody td:nth-child(1) { grid-column: 1 / 2; grid-row: 1; }
    .financeiro-eventos-table tbody td:nth-child(2) { grid-column: 2 / 3; grid-row: 1; }
    .financeiro-eventos-table tbody td:nth-child(3) { grid-column: 1 / 2; grid-row: 2; }
    .financeiro-eventos-table tbody td:nth-child(4) { grid-column: 2 / 3; grid-row: 2; }

    .clientes-eventos-table tbody td:nth-child(1) { grid-column: 1 / 2; grid-row: 1; }
    .clientes-eventos-table tbody td:nth-child(2) { grid-column: 2 / 3; grid-row: 1; }
    .clientes-eventos-table tbody td:nth-child(3) { grid-column: 1 / 2; grid-row: 2; }
    .clientes-eventos-table tbody td:nth-child(4) { grid-column: 2 / 3; grid-row: 2; }

    .fornecedores-eventos-table tbody td:nth-child(1) { grid-column: 1 / 2; grid-row: 1; }
    .fornecedores-eventos-table tbody td:nth-child(2) { grid-column: 2 / 3; grid-row: 1; }
    .fornecedores-eventos-table tbody td:nth-child(3) { grid-column: 1 / 2; grid-row: 2; }
    .fornecedores-eventos-table tbody td:nth-child(4) { grid-column: 2 / 3; grid-row: 2; }
    .fornecedores-eventos-table tbody td:nth-child(5) { grid-column: 1 / 3; grid-row: 3; }

    .gerenciar-pagamentos-table tbody td.col-acoes,
    .gerenciar-fornecedores-table tbody td.col-acoes {
        display: flex;
        align-items: center;
        justify-content: center;
        background: #fff;
    }

    .clientes-eventos-table tbody td.col-acoes,
    .fornecedores-eventos-table tbody td.col-acoes {
        display: flex;
        align-items: center;
        justify-content: center;
        background: #fff;
    }

    .gerenciar-pagamentos-table tbody td:nth-child(1) { grid-column: 1 / 2; grid-row: 1; }
    .gerenciar-pagamentos-table tbody td:nth-child(2) { grid-column: 2 / 3; grid-row: 1; }
    .gerenciar-pagamentos-table tbody td:nth-child(3) { grid-column: 1 / 2; grid-row: 2; }
    .gerenciar-pagamentos-table tbody td:nth-child(4) { grid-column: 2 / 3; grid-row: 2; }
    .gerenciar-pagamentos-table tbody td:nth-child(5) { grid-column: 1 / 2; grid-row: 3; }
    .gerenciar-pagamentos-table tbody td:nth-child(6) { grid-column: 2 / 3; grid-row: 3; }

    .gerenciar-fornecedores-table tbody td:nth-child(1) { grid-column: 1 / 2; grid-row: 1; }
    .gerenciar-fornecedores-table tbody td:nth-child(2) { grid-column: 2 / 3; grid-row: 1; }
    .gerenciar-fornecedores-table tbody td:nth-child(3) { grid-column: 1 / 2; grid-row: 2; }
    .gerenciar-fornecedores-table tbody td:nth-child(4) { grid-column: 2 / 3; grid-row: 2; }
    .gerenciar-fornecedores-table tbody td:nth-child(5) { grid-column: 1 / 3; grid-row: 3; }

    .gerenciar-pagamentos-table tbody td.col-acoes .btn,
    .gerenciar-fornecedores-table tbody td.col-acoes .btn {
        width: auto;
        margin-bottom: 0;
        padding: 7px 12px;
        font-size: 0.82rem;
        line-height: 1.1;
        border-radius: 22px;
    }

    .clientes-eventos-table tbody td.col-acoes .btn,
    .fornecedores-eventos-table tbody td.col-acoes .btn {
        width: auto;
        margin-bottom: 0;
        padding: 7px 12px;
        font-size: 0.82rem;
        line-height: 1.1;
        border-radius: 22px;
    }

    .gerenciar-fornecedores-table .whatsapp-btn,
    .table-evento .whatsapp-btn {
        width: auto !important;
        margin-bottom: 0 !important;
        padding: 7px 12px !important;
        font-size: 0.82rem !important;
        line-height: 1.1 !important;
        border-radius: 22px !important;
    }

    .gerenciar-pagamentos-table tbody td[data-label="Status"] form {
        flex-direction: column;
        align-items: stretch !important;
        gap: 6px !important;
    }

    .gerenciar-pagamentos-table tbody td[data-label="Status"] form select {
        position: static !important;
        top: auto !important;
        min-width: 100% !important;
    }

    .gerenciar-pagamentos-table tbody td[data-label="Status"] form .btn {
        width: auto !important;
        align-self: center;
        padding: 6px 10px;
        font-size: 0.78rem;
        line-height: 1;
        margin-bottom: 0;
    }

}

.tutorial-container {
    max-width: 1100px;
    margin: 40px auto;
    padding: 20px;
}

.tutorial-header {
    text-align: center;
    margin-bottom: 40px;
}

.tutorial-header h2 {
    font-size: 28px;
    margin-bottom: 10px;
    color: var(--cor-primaria);
}

.tutorial-header p {
    color: #666;
    font-size: 16px;
}

.tutorial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.tutorial-card {
    background: #fff;
    padding: 25px;
    border-radius: 14px;
    border: 1px solid #e8e8e8;
    box-shadow: 0 5px 15px rgba(0,0,0,0.04);
    transition: all 0.3s ease;
    position: relative;
}

.tutorial-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    border-color: var(--cor-primaria);
}

.tutorial-card h4 {
    margin-top: 10px;
    margin-bottom: 10px;
    color: #333;
}

.tutorial-card p {
    color: #555;
    font-size: 14px;
}

.tutorial-card ul {
    margin-top: 10px;
    padding-left: 18px;
    font-size: 14px;
    color: #555;
}

.card-number {
    width: 35px;
    height: 35px;
    background: var(--cor-primaria);
    color: #fff;
    font-weight: bold;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.tutorial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

@media (max-width: 1024px) {
    .tutorial-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .tutorial-grid {
        grid-template-columns: 1fr;
    }
}

/* HERO */
.tutorial-hero {
    text-align: center;
    margin-bottom: 60px;
}

.tutorial-hero h2 {
    font-size: 32px;
    color: var(--cor-primaria);
    margin-bottom: 10px;
}

.tutorial-hero p {
    color: #666;
    font-size: 16px;
}

/* SECTIONS */
.tutorial-section {
    margin-bottom: 60px;
}

.tutorial-section h3 {
    font-size: 20px;
    margin-bottom: 25px;
    color: #333;
}

/* VIDEO */
.video-wrapper {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}

.video-wrapper iframe {
    width: 100%;
    height: 400px;
}

/* CSV BOX */
.csv-box {
    background: linear-gradient(
        135deg,
        var(--cor-primaria-clara),
        #ffffff
    );
    padding: 30px;
    border-radius: 16px;
    border: 1px solid var(--cor-borda);
}

.csv-box p {
    margin-bottom: 15px;
    color: #444;
}
