/* =========================================
   FONTEI ENERGY / FONTEI GESTÃO
   CSS padronizado no visual corporativo
   Paleta:
   dourado  : #C6A74D
   azul     : #1C2541
   azul 2   : #243B55
   fundo    : #f5f6fa
   branco   : #ffffff
   texto    : #333333
========================================= */

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

html,
body {
    min-height: 100%;
    font-family: "Segoe UI", Roboto, Arial, sans-serif;
    background-color: #f5f6fa;
    color: #333;
}

body {
    display: flex;
    flex-direction: column;
    line-height: 1.5;
}

a {
    text-decoration: none !important;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

/* ---------- Estrutura base ---------- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 30px auto;
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.conteudo {
    width: 100%;
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 15px 90px;
}

.form-container {
    background-color: #ffffff;
    padding: 30px;
    margin: 20px auto;
    border-radius: 12px;
    max-width: 1000px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

/* ---------- Títulos ---------- */
h1,
h2,
h3,
h4 {
    color: #C6A74D;
    margin-bottom: 14px;
    font-weight: 700;
}

h1,
h2 {
    text-align: center;
}

p {
    color: #555;
}

/* ---------- Cabeçalho / Menu ---------- */
nav.menu,
.menu {
    background: #1C2541;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border-bottom: 3px solid #C6A74D;
}

nav.menu a,
.menu a {
    color: #fff;
    font-weight: 600;
    padding: 10px 14px;
    border-radius: 8px;
    transition: all 0.2s ease;
    background: transparent;
    margin: 0;
}

nav.menu a:hover,
.menu a:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #C6A74D;
}

nav.menu ul {
    list-style: none;
    display: flex;
    gap: 8px;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
    background: transparent;
}

.slogan {
  color: #888;
  font-size: 13px;
  margin-bottom: 25px;
}

nav.menu ul li {
    position: relative;
}

nav.menu > ul > li > a {
    display: block;
    padding: 10px 14px;
    border-radius: 8px;
    color: #fff;
    font-weight: 600;
}

nav.menu > ul > li:hover > a {
    background: rgba(255, 255, 255, 0.08);
    color: #C6A74D;
}

nav.menu .submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #243B55;
    border-radius: 0 0 10px 10px;
    min-width: 220px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.18);
    z-index: 999;
    overflow: hidden;
    padding-top: 0;
    margin-top: 0;
}

nav.menu li:hover > .submenu {
    display: block;
}

nav.menu .submenu li a {
    display: block;
    padding: 12px 16px;
    color: #fff;
    white-space: nowrap;
}

nav.menu .submenu li a:hover {
    background: #2f4d6e;
    color: #C6A74D;
}

/* ---------- Botões ---------- */
button,
.btn,
a,
input[type="submit"] {
    transition: all 0.2s ease;
}

button,
.btn,
form input[type="submit"],
.form-container button,
.form-container input[type="submit"],
.btn-editar,
.botao-full {
    background: #1C2541;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 11px 18px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 6;
}

button:hover,
.btn:hover,
form input[type="submit"]:hover,
.form-container button:hover,
.form-container input[type="submit"]:hover,
.btn-editar:hover,
.botao-full:hover {
    background: #C6A74D;
    color: #1C2541;
}

a.btn-sair {
    margin-left: auto;
    background: linear-gradient(90deg, #b38e00, #d4af37);
    color: #fff;
    padding: 10px 16px;
    border-radius: 8px;
    font-weight: 700;
    margin-top: 6px;
}

a.btn-sair:hover {
    background: linear-gradient(90deg, #d4af37, #b38e00);
    color: #fff;
}

.btn-editar i {
    margin-right: 6px;
}

.botao-full {
    width: 100%;
    justify-content: space-between;
}

/* ---------- Formulários ---------- */
form {
    display: flex;
    flex-direction: column;
}

label {
    display: block;
    font-weight: 600;
    color: #1C2541;
    margin-bottom: 6px;
    margin-top: 14px;
    font-size: 14px;
}

.form-container label {
    color: #1C2541;
}

input[type="text"],
input[type="email"],
input[type="number"],
input[type="password"],
input[type="date"],
select,
textarea,
.form-container input[type="text"],
.form-container input[type="number"],
.form-container input[type="email"],
.form-container input[type="date"],
.form-container select,
.form-container textarea,
.login-container input[type="text"],
.login-container input[type="password"] {
    width: 100%;
    padding: 11px 12px;
    margin: 6px 0 16px 0;
    border: 1px solid #d7dce5;
    border-radius: 8px;
    font-size: 14px;
    color: #333;
    background: #fff;
    transition: 0.2s;
}

input:focus,
select:focus,
textarea:focus,
.form-container input:focus,
.form-container select:focus,
.form-container textarea:focus,
.login-container input:focus {
    outline: none;
    border-color: #1C2541;
    box-shadow: 0 0 0 3px rgba(28, 37, 65, 0.12);
}

select {
    appearance: none;
    background-image:
        linear-gradient(45deg, transparent 50%, #1C2541 50%),
        linear-gradient(135deg, #1C2541 50%, transparent 50%);
    background-position:
        calc(100% - 18px) calc(1em + 2px),
        calc(100% - 13px) calc(1em + 2px);
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
}

/* ---------- Mensagens ---------- */
.erro,
.ok,
.alert,
.field-error {
    border-radius: 8px;
    padding: 10px 14px;
    margin: 10px 0 15px;
    font-size: 14px;
}

.ok {
    background: #eaf7ea;
    color: #1a5d1a;
    border: 1px solid rgba(26, 93, 26, 0.18);
}

.erro {
    background: #fde8e8;
    color: #a30000;
    border: 1px solid rgba(163, 0, 0, 0.12);
}

.alert {
    background: #fff6e0;
    color: #9a7d0a;
    border: 1px solid #f5cba7;
}

.field-error {
    color: #c0392b;
    background: transparent;
    padding: 0;
    margin-top: 4px;
}

/* ---------- Listas ---------- */
.lista {
    margin-top: 20px;
}

ul.lista-estilizada {
    list-style: none;
    padding: 0;
    margin: 0;
    border: 1px solid #e2e6ee;
    border-radius: 10px;
    overflow: hidden;
    max-width: 700px;
    background: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

ul.lista-estilizada li {
    padding: 15px 18px;
    border-bottom: 1px solid #eef1f5;
    transition: background 0.2s ease;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

ul.lista-estilizada li:hover {
    background-color: #f9fafc;
}

ul.lista-estilizada li:last-child {
    border-bottom: none;
}

ul.lista-estilizada li::before {
    content: "•";
    color: #C6A74D;
    font-weight: bold;
    font-size: 20px;
}

/* ---------- Tabelas ---------- */
table {
    width: 100%;
    border-collapse: collapse;
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 30px;
}

table thead,
table th {
    background-color: #1C2541;
    color: #fff;
}

table thead th,
table th {
    padding: 14px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
}

table tbody tr {
    border-bottom: 1px solid #edf0f4;
    transition: background 0.2s ease;
}

table tbody tr:hover {
    background-color: #f8f9fc;
}

table tbody td,
table td {
    padding: 12px 16px;
    font-size: 14px;
    color: #2c3e50;
}

table tbody tr:last-child {
    border-bottom: none;
}

/* ---------- Área de upload ---------- */
.upload-area {
    background: #fff;
    border: 2px dashed #C6A74D;
    border-radius: 18px;
    padding: 50px 30px;
    text-align: center;
    max-width: 480px;
    width: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.07);
    margin: 0 auto;
}

.upload-area.dragover {
    background-color: #fffaf0;
    border-color: #1C2541;
    transform: scale(1.01);
    box-shadow: 0 10px 30px rgba(28, 37, 65, 0.12);
}

.upload-area i {
    font-size: 64px;
    color: #C6A74D;
    margin-bottom: 18px;
}

.upload-area h2 {
    font-size: 22px;
    color: #1C2541;
    margin-bottom: 10px;
}

.upload-area p {
    color: #666;
    font-size: 14px;
    margin-bottom: 22px;
}

.upload-area label {
    display: inline-block;
    background: #1C2541;
    color: #fff;
    padding: 12px 22px;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    margin-top: 0;
}

.upload-area label:hover {
    background: #C6A74D;
    color: #1C2541;
}

.upload-area input[type="file"] {
    display: none;
}

.file-name {
    margin-top: 15px;
    font-size: 14px;
    color: #1C2541;
    font-weight: 500;
}

/* ---------- Linha utilitária ---------- */
linha {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
    background-color: #f8f9fc;
    border: 1px solid #e6ebf2;
    border-radius: 8px;
}

.texto-esquerda {
    font-size: 15px;
    color: #1C2541;
    font-weight: 600;
}

.link-direita {
    font-weight: 700;
    color: #C6A74D;
}

/* ---------- Campos com erro ---------- */
.campo-data.erro-data {
    border: 2px solid #c0392b !important;
    background-color: #fff1f1;
}

/* ---------- Login ---------- */
.login-container {
    background: #fff;
    margin: 60px auto;
    padding: 40px 36px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    text-align: center;
    width: 100%;
    max-width: 420px;
    border-top: 4px solid #C6A74D;
}

.login-container h2 {
    color: #1C2541;
    margin-bottom: 22px;
}

.login-container label {
    text-align: left;
}

.login-container button {
    width: 100%;
    padding: 12px;
    background-color: #1C2541;
    border: none;
    color: white;
    font-weight: 700;
    font-size: 15px;
    border-radius: 8px;
    cursor: pointer;
}

.login-container button:hover {
    background-color: #C6A74D;
    color: #1C2541;
}

.cadastro-link {
    margin-top: 15px;
}

.cadastro-link a {
    color: #1C2541;
    font-weight: 600;
}

.cadastro-link a:hover {
    color: #C6A74D;
}

/* ---------- Informações / blocos ---------- */
.info-usuario-logado {
    background: rgba(28, 37, 65, 0.05);
    border-left: 4px solid #1C2541;
    padding: 12px 15px;
    margin-bottom: 20px;
    border-radius: 8px;
}

.info-usuario-logado p {
    margin: 3px 0;
    color: #1C2541;
    font-size: 14px;
}

/* ---------- Checkbox ---------- */
.checkbox-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 8px;
}

.checkbox-container label {
    background: rgba(28, 37, 65, 0.06);
    border: 1px solid #d9dee7;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 0;
    margin-bottom: 0;
    color: #1C2541;
}

.checkbox-container input[type="checkbox"] {
    margin-right: 6px;
}

.checkbox-container label:hover {
    background: rgba(28, 37, 65, 0.12);
    transform: scale(1.02);
}

label input[type="checkbox"] {
    transform: scale(1.1);
    margin-right: 8px;
    accent-color: #1C2541;
}

/* ---------- Popup ---------- */
.popup-area,
#popup-area {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    backdrop-filter: blur(3px);
}

.popup-box {
    background: #fff;
    width: 450px;
    max-width: 95%;
    padding: 26px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
    animation: popupFade 0.25s ease-out;
}

.popup-box select,
.popup-box input {
    width: 100%;
    padding: 10px;
    margin-top: 6px;
    border: 1px solid #ccc;
    border-radius: 8px;
}

@keyframes popupFade {
    from {
        opacity: 0;
        transform: scale(0.92);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ---------- Tabela container ---------- */
.tabela-container {
    overflow-x: auto;
    background: #fff;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    margin-top: 20px;
}

#tabelaContas {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

#tabelaContas thead th {
    background: #1C2541;
    color: #fff;
    padding: 12px;
    text-align: left;
    cursor: pointer;
    user-select: none;
}

#tabelaContas tbody td {
    padding: 12px;
    border-bottom: 1px solid #eee;
}

#tabelaContas thead th:hover {
    background: #2a3b61;
}

.linha-clique:hover {
    background: #f6f6f8;
}

/* ---------- Labels obrigatórios ---------- */
label::after {
    content: "";
}

input[required] + label::after,
select[required] + label::after,
textarea[required] + label::after {
    content: "";
}

/* ---------- Rodapé fixo padrão sistema ---------- */
.rodape-sistema {
    background: linear-gradient(90deg, #1C2541, #243B55);
    color: #f0f0f0;
    padding: 12px 25px;
    text-align: center;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.rodape-conteudo {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.rodape-sistema span {
    font-size: 13px;
    color: #e0e0e0;
}

/* ---------- Responsividade ---------- */
@media (max-width: 900px) {
    .container,
    .conteudo,
    .form-container {
        width: calc(100% - 20px);
        max-width: none;
    }
}

@media (max-width: 768px) {
    nav.menu,
    .menu {
        flex-direction: column;
        align-items: flex-start;
    }

    nav.menu ul {
        flex-direction: column;
        width: 100%;
    }

    nav.menu .submenu {
        position: static;
        width: 100%;
        margin-top: 6px;
        box-shadow: none;
    }

    .container {
        margin: 20px auto;
        padding: 20px;
    }

    .conteudo {
        margin: 20px auto;
        padding: 0 10px 90px;
    }

    .form-container {
        padding: 20px;
    }

    table thead th,
    table td {
        font-size: 13px;
        padding: 10px;
    }

    linha {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .rodape-conteudo {
        flex-direction: column;
    }

    .btn-sair {
        margin-left: 0;
    }
}

* {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: "Segoe UI", Arial, sans-serif;
        }

        html {
            scroll-behavior: smooth;
        }

        body {
            background: #f5f6fa;
            color: #333;
            line-height: 1.6;
        }

        a {
            text-decoration: none;
            color: inherit;
        }

        .container {
            width: 100%;
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
        }

        .topbar {
            background: #fff;
            border-bottom: 3px solid #C6A74D;
            box-shadow: 0 2px 8px rgba(0,0,0,0.08);
            position: sticky;
            top: 0;
            z-index: 1000;
        }

        .topbar .container {
            display: flex;
            align-items: center;
            justify-content: flex-end;
            /**justify-content: space-between;*/
            padding: 14px 20px;
            gap: 20px;
        }

        .logo {
            font-size: 24px;
            font-weight: 700;
            color: #1C2541;
        }

        .logo span {
            color: #C6A74D;
        }

        .btn {
            display: inline-block;
            background: #1C2541;
            color: #fff;
            padding: 12px 18px;
            border-radius: 8px;
            font-weight: 600;
            transition: 0.2s;
        }

        .btn:hover {
            background: #C6A74D;
            color: #1C2541;
        }

        .btn-outline {
            background: transparent;
            border: 1px solid #C6A74D;
            color: #C6A74D;
        }

        .btn-outline:hover {
            background: #C6A74D;
            color: #1C2541;
        }

        .hero {
            background: linear-gradient(135deg, #1C2541 0%, #243B55 100%);
            color: #636262;
            padding: 80px 0;
        }

        .hero-grid {
            display: grid;
            grid-template-columns: 1.2fr 0.8fr;
            gap: 35px;
            align-items: center;
        }

        .badge {
            display: inline-block;
            background: rgba(198,167,77,0.16);
            color: #f1d37f;
            padding: 7px 12px;
            border-radius: 999px;
            font-size: 12px;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.6px;
            margin-bottom: 14px;
        }

        .hero h1 {
            font-size: 44px;
            line-height: 1.15;
            margin-bottom: 16px;
        }

        .hero p {
            font-size: 17px;
            color: #a2a2a3;
            max-width: 700px;
            margin-bottom: 24px;
        }

        .hero-buttons {
            display: flex;
            gap: 12px;
            flex-wrap: wrap;
        }

        .hero-card {
            background: rgba(255,255,255,0.08);
            border: 1px solid rgba(255,255,255,0.10);
            border-radius: 16px;
            padding: 26px;
            backdrop-filter: blur(8px);
        }

        .hero-card h3 {
            margin-bottom: 14px;
            font-size: 22px;
        }

        .hero-card ul {
            list-style: none;
            display: grid;
            gap: 12px;
        }

        .hero-card li {
            background: rgba(255,255,255,0.08);
            border-radius: 10px;
            padding: 12px 14px;
        }

        section {
            padding: 70px 0;
        }

        .section-title {
            text-align: center;
            color: #1C2541;
            font-size: 32px;
            margin-bottom: 12px;
        }

        .section-subtitle {
            text-align: center;
            max-width: 820px;
            margin: 0 auto 35px;
            color: #666;
            font-size: 15px;
        }

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

        .card {
            background: #fff;
            border-radius: 14px;
            box-shadow: 0 4px 12px rgba(0,0,0,0.06);
            padding: 26px;
            border-top: 4px solid #C6A74D;
        }

        .card h3 {
            color: #1C2541;
            margin-bottom: 10px;
            font-size: 20px;
        }

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

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

        .step {
            background: #fff;
            border-radius: 14px;
            padding: 24px;
            box-shadow: 0 4px 12px rgba(0,0,0,0.06);
            text-align: center;
        }

        .step-number {
            width: 50px;
            height: 50px;
            border-radius: 50%;
            background: #1C2541;
            color: #fff;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 14px;
            font-weight: 700;
            font-size: 18px;
        }

        .step h4 {
            color: #1C2541;
            margin-bottom: 8px;
        }

        .highlight {
            background: #fff;
        }

        .highlight-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 24px;
            align-items: stretch;
        }

        .highlight-box {
            background: linear-gradient(135deg, #1C2541 0%, #243B55 100%);
            color: #fff;
            border-radius: 16px;
            padding: 30px;
            box-shadow: 0 8px 20px rgba(28,37,65,0.18);
        }

        .highlight-box h3 {
            font-size: 28px;
            margin-bottom: 12px;
        }

        .highlight-box p {
            color: #d9e1ee;
            margin-bottom: 20px;
        }

        .highlight-list {
            display: grid;
            gap: 12px;
        }

        .highlight-list div {
            background: rgba(255,255,255,0.08);
            border-radius: 10px;
            padding: 12px 14px;
        }

        .contact-box {
            background: #fff;
            border-radius: 16px;
            padding: 30px;
            box-shadow: 0 4px 12px rgba(0,0,0,0.06);
        }

        .contact-box h3 {
            color: #1C2541;
            margin-bottom: 16px;
            font-size: 26px;
        }

        .contact-list {
            display: grid;
            gap: 12px;
            margin-top: 18px;
        }

        .contact-item {
            background: #f8f9fc;
            border: 1px solid #e8ecf3;
            border-radius: 10px;
            padding: 14px;
        }

        .contact-item strong {
            display: block;
            color: #1C2541;
            margin-bottom: 4px;
        }

        .cta {
            background: linear-gradient(90deg, #1C2541, #243B55);
            color: #fff;
            border-radius: 16px;
            padding: 34px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 24px;
        }

        .cta h2 {
            font-size: 30px;
            margin-bottom: 8px;
        }

        .cta p {
            color: #dbe2ef;
            max-width: 700px;
        }

        footer {
            background: #fff;
            border-top: 3px solid #C6A74D;
            padding: 18px 0;
            margin-top: 40px;
        }

        footer .container {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 20px;
            flex-wrap: wrap;
        }

        footer p {
            color: #666;
            font-size: 14px;
        }

        @media (max-width: 980px) {
            .hero-grid,
            .highlight-grid,
            .grid-3,
            .steps {
                grid-template-columns: 1fr;
            }

            .cta {
                flex-direction: column;
                align-items: flex-start;
            }
        }

        @media (max-width: 768px) {
            .topbar .container {
                flex-direction: column;
                align-items: flex-start;
            }

            .menu {
                gap: 12px;
            }

            .hero {
                padding: 60px 0;
            }

            .hero h1 {
                font-size: 34px;
            }

            .section-title {
                font-size: 28px;
            }
        }