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

:root {
    --cor-primaria: #FF4500;
    --cor-secundaria: #FF8C00;
    --cor-branco: #ffffff;
    --cor-texto: #333;
}

html {
    overflow-y: scroll;
}

body, html {
    width: 100%;
    height: 100%;
}

/* NAVBAR */
.navbar-public {
    display: flex;
    justify-content: space-between;
    padding: 15px 40px;
    background: #f5f5f5;
}

.logo {
    font-weight: bold;
    color: #ff4d00;
}

/* HERO */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    min-height: 90vh;
    padding: 60px;
    background: linear-gradient(90deg, var(--cor-primaria), var(--cor-secundaria));
    color: #fff;
}

.hero-text {
    display: flex;
    flex-direction: column;
    max-width: 500px;
}

.hero-text h1 {
    font-size: 42px;
    margin: 20px 0;
}

.hero-text p {
    line-height: 1.6;
    margin-bottom: 20px;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image img {
    max-width: 100%;
}

/* RESPONSIVO */
@media (max-width: 768px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 40px 20px;
    }

    .hero-text {
        align-items: center;
    }

    .hero-image {
        margin-top: 30px;
    }

    .hero-image img {
        width: 250px;
    }
}

/* ===== PAINEL ===== */

.painel-container {
    display: flex;
    height: 100vh;
    background: #f5f6f8;
}

/* SIDEBAR */
.sidebar {
    width: 220px;
    background: #e9ebee;
    padding: 20px;
}

.sidebar h3 {
    color: var(--cor-primaria);
    margin-bottom: 20px;
}

.sidebar ul {
    list-style: none;
}

.sidebar li {
    margin: 15px 0;
}

/* MAIN */
.main {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

/* TOPBAR */
.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 25px;
    background: #fff;
    border-bottom: 1px solid #ddd;
}

.dropdown {
    cursor: pointer;
    font-weight: bold;
}

/* CONTEÚDO */
.conteudo {
    padding: 25px;
}

/* CARDS */
.cards-admin {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.card-box {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* RESPONSIVO CARDS */
@media (max-width: 768px) {
    .cards-admin {
        grid-template-columns: 1fr;
    }
}

/* ===== TABELA ===== */

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

.tabela th {
    background: #f5f5f5;
    text-align: left;
    padding: 10px;
}

.tabela td {
    padding: 10px;
    border-bottom: 1px solid #eee;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tabela tr {
    border-bottom: 1px solid #eee;
}

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

/* ===== BOTÕES ===== */

button:not(.btn-icon) {
    background: var(--cor-primaria);
    color: #fff;
    border: none;
    padding: 6px 12px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.2s;
}

button:not(.btn-icon):hover {
    background: var(--cor-secundaria);
}

/* INPUT */
form input[type="text"] {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    width: 250px;
    outline: none;
}

form input[type="text"]:focus {
    border-color: var(--cor-primaria);
}

form button {
    margin-left: 10px;
}

/* ===== ÍCONES ===== */

.btn-icon {
    background: none !important;
    border: none !important;
    padding: 5px;
    cursor: pointer;
    font-size: 18px;
    color: var(--cor-primaria);
}

.btn-icon i {
    pointer-events: none;
}

.btn-icon:hover {
    transform: scale(1.2);
}

/* ===== MODAL ===== */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    display: none;
    z-index: 9999;
}

.modal-overlay.ativo {
    display: block;
}

.modal-lateral {
    position: absolute;
    top: 0;
    right: 0;
    width: 400px;
    height: 100%;
    background: #fff;
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
    padding: 20px;
}

.fechar {
    font-size: 24px;
    cursor: pointer;
    float: right;
}

/* CARD USUÁRIO */
.user-card {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.user-header {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.user-avatar {
    width: 50px;
    height: 50px;
    background: var(--cor-primaria);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.user-section {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.linha-unica {
    margin-bottom: 10px;
}

/* ===== AJUSTE VISUAL DO PAINEL ===== */

.conteudo {
    padding: 30px;
}

/* CARD CENTRAL (igual seu print) */
.conteudo > h2,
.conteudo > table {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* separa título da tabela */
.conteudo h2 {
    margin-bottom: 15px;
}

/* tabela dentro do card */
.tabela {
    margin-top: 10px;
}

/* cabeçalho mais visível */
.tabela th {
    background: #f0f2f5;
    font-weight: 600;
}

/* linhas mais suaves */
.tabela td {
    border-bottom: 1px solid #f0f0f0;
}

/* hover mais visível */
.tabela tbody tr:hover {
    background: #f7f7f7;
}

/* ===== SIDEBAR ===== */

.sidebar a {
    text-decoration: none;
    color: #333;
    display: block;
    padding: 8px;
    border-radius: 6px;
}

/* item ativo (Dashboard) */
.sidebar a.active {
    background: var(--cor-primaria);
    color: #fff;
}

/* hover */
.sidebar a:hover {
    background: #ddd;
}

/* ===== TOPBAR ===== */

.topbar {
    background: #fff;
    border-bottom: 1px solid #eee;
}


/* ===== ADAPTAÇÃO PARA SEU HTML ATUAL ===== */

/* FUNDO GERAL */
body {
    background: #f4f6f9;
    overflow: hidden;
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
}

/* CONTAINER PRINCIPAL */
.painel-container {
    display: flex;
    height: 100vh;
}

/* SIDEBAR */
.sidebar {
    width: 220px;
    background: #e9edf2;
    padding: 20px 15px;
}

.sidebar h3 {
    color: #FF4500;
    margin-bottom: 20px;
}

/* LINKS */
.sidebar a {
    display: block;
    padding: 10px;
    margin-bottom: 8px;
    color: #333;
    text-decoration: none;
    border-radius: 8px;
    transition: 0.2s;
}

/* HOVER */
.sidebar a:hover {
    background: #FF8C00;
    color: white;
}

/* ATIVO */
.sidebar a.active {
    background: #FF4500;
    color: white;
}

/* MAIN */
.main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* TOPBAR */
.topbar {
    height: 60px;
    background: #ffffff;
    border-bottom: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
}

/* CONTEÚDO */
.conteudo {
    padding: 20px;
    height: calc(100vh - 60px);
    overflow: auto;
}

/* CARD (CAIXA BRANCA) */
.conteudo > div,
.conteudo > section,
.conteudo > .box {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* TÍTULO */
.conteudo h2 {
    margin-bottom: 10px;
}

/* TEXTO */
.conteudo p {
    color: #666;
}

/* INPUT BUSCA */
.input-busca {
    padding: 8px 12px;
    width: 250px;
    margin: 15px 0;
    border: 1px solid #ddd;
    border-radius: 8px;
}

/* ===== ADAPTAÇÃO PARA painel.php ===== */

/* FUNDO */
body {
    background: #f4f6f9;
}

/* ÁREA PRINCIPAL */
.conteudo {
    padding: 20px;
}

/* CAIXA BRANCA (IGUAL AO PRINT) */
.conteudo > * {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    margin-bottom: 20px;
}

/* SIDEBAR LINKS */
.sidebar a {
    display: block;
    padding: 10px;
    margin-bottom: 8px;
    border-radius: 8px;
    color: #333;
    text-decoration: none;
}

/* HOVER */
.sidebar a:hover {
    background: #FF8C00;
    color: #fff;
}

/* ATIVO */
.sidebar a.active {
    background: #FF4500;
    color: #fff;
}

/* TOPBAR */
.topbar {
    background: #fff;
    border-bottom: 1px solid #ddd;
}

/* ================= */
/* SUA PARTE (EU) — NÃO MEXI */

.btn-outline {
    border: 1px solid #ff5a00;
    padding: 8px 15px;
    border-radius: 6px;
    color: #ff5a00;
    text-decoration: none;
}

.btn-outline:hover {
    background-color:#FF8800;
    color: #ffffff;
}

.btn-outlineB {
    border: 1px solid #ffffff;
    padding: 8px 15px;
    border-radius: 6px;
    color: #ffffff;
    text-decoration: none;
    text-align: center;
}

.btn-outlineB:hover {
    background-color:#FF6200;
}