* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #f3f4f6;
    color: #1f2937;
}

/* =========================
   LOGIN
   ========================= */

.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-box {
    width: 100%;
    max-width: 400px;
    background: #ffffff;
    padding: 36px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.10);
}

.login-box h1 {
    margin: 0 0 8px;
    text-align: center;
    color: #b5121b;
    font-size: 30px;
}

.subtitle {
    margin: 0 0 30px;
    text-align: center;
    color: #6b7280;
}

label {
    display: block;
    margin-bottom: 7px;
    font-weight: 600;
}

input {
    width: 100%;
    padding: 13px 14px;
    margin-bottom: 18px;
    border: 1px solid #d1d5db;
    border-radius: 7px;
    font-size: 15px;
    outline: none;
}

input:focus {
    border-color: #b5121b;
    box-shadow: 0 0 0 3px rgba(181, 18, 27, 0.12);
}

button {
    width: 100%;
    padding: 13px;
    border: none;
    border-radius: 7px;
    background: #b5121b;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

button:hover {
    background: #941019;
}

#mensagem {
    margin-top: 16px;
    text-align: center;
    min-height: 20px;
}


/* =========================
   DASHBOARD
   ========================= */

.topbar {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 18px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.topbar h1 {
    margin: 0;
    color: #b5121b;
    font-size: 26px;
}

.topbar p {
    margin: 4px 0 0;
    color: #6b7280;
    font-size: 14px;
}

.btn-sair {
    width: auto;
    min-width: 100px;
    padding: 10px 22px;
    background: #b5121b;
}

.btn-sair:hover {
    background: #941019;
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 35px 30px 50px;
}

.boas-vindas {
    margin-bottom: 28px;
}

.boas-vindas h2 {
    margin: 0 0 6px;
    font-size: 25px;
}

.boas-vindas p {
    margin: 0;
    color: #6b7280;
}


/* CARDS */

.cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.card {
    background: #ffffff;
    border-radius: 12px;
    padding: 24px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.card-titulo {
    color: #6b7280;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
}

.card-numero {
    color: #b5121b;
    font-size: 34px;
    font-weight: 700;
}


/* RESUMO */

.resumo {
    margin-top: 25px;
}

.resumo-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 25px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.resumo-card h3 {
    margin: 0 0 10px;
}

.resumo-card strong {
    display: block;
    color: #b5121b;
    font-size: 36px;
    margin-bottom: 5px;
}

.resumo-card p {
    margin: 0;
    color: #6b7280;
}


/* ACESSO RÁPIDO */

.atalhos {
    margin-top: 35px;
}

.atalhos h2 {
    margin-bottom: 18px;
}

.atalhos-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.atalhos-grid button {
    min-height: 90px;
    font-size: 18px;
}


/* =========================
   RESPONSIVO
   ========================= */

@media (max-width: 900px) {

    .cards {
        grid-template-columns: repeat(2, 1fr);
    }

}

@media (max-width: 600px) {

    .topbar {
        padding: 18px 20px;
    }

    .topbar h1 {
        font-size: 22px;
    }

    .btn-sair {
        min-width: 80px;
        padding: 9px 15px;
    }

    main {
        padding: 25px 18px 40px;
    }

    .cards {
        grid-template-columns: 1fr;
    }

    .atalhos-grid {
        grid-template-columns: 1fr;
    }

}
/* =========================
   TELA DE PLANOS
   ========================= */

.tabela-container {
    background: #ffffff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
    margin-top: 25px;
}

.tabela-topo {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.tabela-topo h3 {
    margin: 0;
    color: #1f2937;
    font-size: 20px;
}

.tabela-topo button {
    width: auto;
    padding: 10px 18px;
    font-size: 14px;
}

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

.tabela-scroll table {
    width: 100%;
    border-collapse: collapse;
}

.tabela-scroll th {
    text-align: left;
    padding: 13px 12px;
    background: #f9fafb;
    color: #374151;
    font-size: 14px;
    font-weight: 700;
    border-bottom: 1px solid #e5e7eb;
}

.tabela-scroll td {
    padding: 14px 12px;
    border-bottom: 1px solid #e5e7eb;
    color: #374151;
    font-size: 14px;
}

.tabela-scroll tbody tr:hover {
    background: #fafafa;
}

.status-ativo {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 20px;
    background: #dcfce7;
    color: #166534;
    font-size: 12px;
    font-weight: 700;
}

/* ============================================================
   AÇÕES DOS CLIENTES
   ============================================================ */

.btn-financeiro-cliente,
.btn-excluir-cliente {
    display: block;
    width: 100%;
    margin-top: 5px;
    padding: 7px 12px;
    border: none;
    border-radius: 7px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.btn-financeiro-cliente {
    background: #c8101e;
    color: #fff;
}

.btn-financeiro-cliente:hover {
    background: #a80d18;
}

.btn-excluir-cliente {
    background: #6b7280;
    color: #fff;
}

.btn-excluir-cliente:hover {
    background: #4b5563;
}

