body,
html {
    padding: 0;
    margin: 0;
}

body {
    background-color: #f5f2f9;
    color: #2b475f;
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
}

/* Estilos para página cap6 */
header {
    background-color: #6C4594;
    color: white;
    padding: 2rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

header h1 {
    margin: 0;
    font-weight: normal;
}

.logo {
    max-height: 50px;
    width: auto;
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.welcome {
    text-align: center;
    margin-bottom: 3rem;
}

.welcome h2 {
    color: #6C4594;
    margin-bottom: 1rem;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.feature-card h3 {
    color: #6C4594;
    margin-bottom: 1rem;
}

.btn {
    display: inline-block;
    background-color: #6C4594;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    text-decoration: none;
    margin-top: 1rem;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #563771;
    color: white;
}

.api-docs {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.api-docs h3 {
    color: #6C4594;
    margin-bottom: 1rem;
}

.api-docs ul {
    list-style: none;
    padding: 0;
}

.api-docs li {
    margin: 0.5rem 0;
}

footer {
    background-color: #2b475f;
    color: white;
    text-align: center;
    padding: 1rem;
    margin-top: 2rem;
}

div.hero {
    background-color: #4C89C8;
    box-sizing: border-box;
    padding: 5rem;
}

a {
    color: #6C4594;
    text-decoration: none;
}

/* Personalização do ícone do Piccolo Admin */
/* Oculta o ícone SVG padrão (chave inglesa) */
#nav h1 a svg.fa-screwdriver-wrench {
    display: none !important;
}

/* Adiciona uma imagem personalizada antes do texto */
#nav h1 a::before {
    content: '';
    display: inline-block;
    width: 24px;
    height: 24px;
    margin-right: 8px;
    background-image: url('/static/logo.png');
    /* Substitua pelo caminho da sua imagem */
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    vertical-align: middle;
}

div.hero h1 {
    color: white;
    font-weight: normal;
    text-align: center;
}

section {
    padding-bottom: 2rem;
}

div.content {
    background-color: white;
    border-radius: 0.5rem;
    box-sizing: border-box;
    margin: 1rem auto;
    max-width: 50rem;
    padding: 2rem;
    transform: translateY(-4rem);
    box-shadow: 0px 1px 1px 1px rgb(0, 0, 0, 0.05);
}

div.content h2,
div.content h3 {
    font-weight: normal;
}

div.content code {
    padding: 2px 4px;
    background-color: #f0f7fd;
    border-radius: 0.2rem;
}

p.code {
    background-color: #233d58;
    color: white;
    font-family: monospace;
    padding: 1rem;
    margin: 0;
    display: block;
    border-radius: 0.2rem;
}

p.code span {
    display: block;
    padding: 0.5rem;
}

/* ===== PERSONALIZAÇÃO DO PICCOLO ADMIN ===== */
/* Seletores mais específicos para sobrescrever estilos padrão do Piccolo Admin */

/* Faixa/header principal do admin */
body div.hero,
body section div.hero,
div.hero,
.hero {
    background-color: #6C4594 !important;
    background: #6C4594 !important;
    background-image: none !important;
}

/* Elementos de navegação e cabeçalho */
nav,
.navbar,
.topbar,
header,
.admin-header,
.nav-header {
    background-color: #6C4594 !important;
    background: #6C4594 !important;
}

/* Botões principais */
.btn-primary,
.button-primary,
.primary-button,
button[type="submit"],
.admin-button,
input[type="submit"] {
    background-color: #6C4594 !important;
    border-color: #6C4594 !important;
    color: white !important;
}

/* Hover dos botões */
.btn-primary:hover,
.button-primary:hover,
button[type="submit"]:hover,
input[type="submit"]:hover {
    background-color: #563771 !important;
    border-color: #563771 !important;
}

/* Links ativos */
a.active,
.nav-link.active,
.active {
    background-color: #6C4594 !important;
    color: white !important;
}

/* Sobrescreve qualquer cor azul padrão */
*[style*="background-color: rgb(56, 137, 206)"],
*[style*="background-color: #3889CE"],
*[style*="background: #3889CE"] {
    background-color: #6C4594 !important;
    background: #6C4594 !important;
}

/* Elementos específicos do Piccolo que podem ter IDs ou classes especiais */
#admin-header,
#main-nav,
.admin-nav,
.main-header {
    background-color: #6C4594 !important;
    background: #6C4594 !important;
}