﻿/* =========================================================
   BASE
========================================================= */

html {
    font-size: 14px;
    min-height: 100%;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    margin: 0;
    min-height: 100vh;
    padding-top: 70px;
    /* espaço reservado para footer fixo */
    padding-bottom: 90px;
    color: #163A5F;
    background-image: url('/images/dna-bg.jpg?v=2');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}


/* =========================================================
   LAYOUT
========================================================= */

.page-shell {
    min-height: calc(100vh - 70px);
}

.main-shell {
    width: 100%;
}

.main-wrapper {
    width: 100%;
    max-width: 1360px;
    margin: 0 auto;
    padding: 24px 32px 32px 32px;
    background: transparent;
}

main {
    width: 100%;
}


/* =========================================================
   NAVBAR
========================================================= */

.custom-navbar {
    background: rgba(31,78,121,0.94);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255,255,255,0.15);
    box-shadow: 0 2px 12px rgba(0,0,0,0.10);
}

    .custom-navbar .navbar-brand {
        color: #FFFFFF !important;
        font-weight: 700;
    }

    .custom-navbar .nav-link {
        color: rgba(255,255,255,0.90) !important;
        font-weight: 500;
        padding: 8px 14px;
        border-radius: 8px;
        transition: all .2s;
    }

        /* efeito botão */

        .custom-navbar .nav-link:hover {
            background: rgba(255,255,255,0.15);
            color: #FFFFFF !important;
        }

.navbar-toggler {
    border-color: rgba(255,255,255,0.55);
    padding: 0.35rem 0.55rem;
}

    .navbar-toggler:focus {
        box-shadow: 0 0 0 0.2rem rgba(255,255,255,0.18);
    }

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255,255,255,0.95%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    background-size: 100% 100%;
}


/* =========================================================
   TIPOGRAFIA
========================================================= */

h1, h2, h3, h4, h5, h6 {
    color: #163A5F;
    font-weight: 700;
}

p, span, div, li, label {
    color: #163A5F;
}

a {
    color: #2F6FA8;
}

    a:hover {
        color: #1F4E79;
    }


/* =========================================================
   HERO / HOME
========================================================= */

.hero-text {
    color: #163A5F;
    padding-top: 12px;
    text-shadow: 0 1px 2px rgba(255,255,255,0.35);
}

    .hero-text h1 {
        font-weight: 700;
        color: #163A5F;
    }

    .hero-text p {
        color: #2A547C;
    }


/* =========================================================
   INPUTS
========================================================= */

.form-control,
.form-select {
    background-color: #FFFFFF;
    border: 1px solid #BFD4E6;
    color: #163A5F;
}

    .form-control::placeholder {
        color: #7A94AD;
    }

    .form-control:focus,
    .form-select:focus {
        background-color: #FFFFFF;
        border-color: #6FA9D8;
        box-shadow: 0 0 0 0.1rem #FFFFFF, 0 0 0 0.25rem rgba(111,169,216,0.35);
    }


/* =========================================================
   CONTAINERS / PANELS
========================================================= */

.form-panel,
.login-panel,
.content-panel,
.page-panel,
.section-block {
    background: #FFFFFF;
    border: 1px solid #C6DAEC;
    border-radius: 14px;
    padding: 24px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.05);
    margin-bottom: 24px;
}


/* =========================================================
   CONTAINER HEADER
   (título dentro do container)
========================================================= */

.section-header {
    background: #FFFFFF;
    border-bottom: 1px solid #E6EEF6;
    padding: 16px 20px;
    font-size: 18px;
    font-weight: 700;
    color: #163A5F;
}


/* =========================================================
   CONTAINER BODY
========================================================= */

.section-body {
    background: #FFFFFF;
    padding: 20px;
}


/* =========================================================
   TABELAS / GRIDS
========================================================= */

.table {
    --bs-table-bg: #FFFFFF;
    --bs-table-striped-bg: #F4F9FD;
    --bs-table-hover-bg: #EAF3FB;
    color: #163A5F;
    border-collapse: separate;
    border-spacing: 0;
    margin-bottom: 0;
}

    .table thead th {
        background-color: #F0F7FD;
        color: #163A5F;
        border-bottom: 1px solid #C7D9E8;
    }

    .table td,
    .table th {
        vertical-align: middle;
    }


/* =========================================================
   GRID PANEL
   (container da tabela)
========================================================= */

.table-panel,
.grid-panel {
    background: #FFFFFF; /* CORRIGIDO — antes azul */

    border: 1px solid #C6DAEC;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(0,0,0,0.04);
    padding: 12px;
}


/* tabela continua clara */

.table-responsive {
    background: #FFFFFF;
    border-radius: 12px;
    overflow: hidden;
}


/* cantos do header da tabela */

.table thead th:first-child {
    border-top-left-radius: 12px;
}

.table thead th:last-child {
    border-top-right-radius: 12px;
}


/* cantos inferiores da última linha */

.table tbody tr:last-child td:first-child {
    border-bottom-left-radius: 12px;
}

.table tbody tr:last-child td:last-child {
    border-bottom-right-radius: 12px;
}


/* =========================================================
   CARDS
========================================================= */

.card,
.panel-box,
.content-card {
    background: #FFFFFF;
    border: 1px solid #C6DAEC;
    border-radius: 14px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.04);
}


/* =========================================================
   BOTÕES
========================================================= */

.btn-primary {
    background-color: #2F6FA8;
    border-color: #285E8D;
}

    .btn-primary:hover {
        background-color: #1F4E79;
        border-color: #1A4267;
    }

.btn-secondary,
.btn-light {
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}


/* =========================================================
   FOOTER
========================================================= */

.custom-footer {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    min-height: 60px;
    display: flex;
    align-items: center;
    z-index: 1050;
    background: rgba(31,78,121,0.94);
    border-top: 1px solid rgba(255,255,255,0.15);
    backdrop-filter: blur(8px);
}

    .custom-footer .container {
        padding-top: 12px;
        padding-bottom: 12px;
        color: #F7FBFF;
    }


/* =========================================================
   RESPONSIVO
========================================================= */

@media (max-width: 992px) {

    .main-wrapper {
        padding: 20px 24px;
    }
}

@media (max-width: 576px) {

    .main-wrapper {
        padding: 16px;
    }

    .custom-navbar .nav-link {
        padding: 8px 10px;
    }

    .section-block,
    .form-panel,
    .login-panel,
    .content-panel,
    .page-panel {
        padding: 18px;
    }

    .section-header {
        padding: 14px 16px;
    }

    .section-body {
        padding: 16px;
    }
}
