/* Base de Conhecimento WPontual - Estilos Principais */

/* Variáveis e Reset */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --light-color: #ecf0f1;
    --dark-color: #2c3e50;
    --text-color: #333;
    --border-color: #ddd;
    --success-color: #27ae60;
    --warning-color: #f39c12;
    --font-main: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

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

body {
    font-family: var(--font-main);
    line-height: 1.6;
    color: var(--text-color);
    background-color: #f9f9f9;
}

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

a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-color);
}

ul {
    list-style: none;
}

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

/* Botões */
.btn {
    display: inline-block;
    padding: 8px 16px;
    background-color: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    font-weight: 500;
}

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

.btn-primary {
    background-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #1a252f;
}

.btn-secondary {
    background-color: var(--secondary-color);
}

.btn-accent {
    background-color: var(--accent-color);
}

.btn-accent:hover {
    background-color: #c0392b;
}

/* Header */
header {
    background-color: var(--primary-color);
    color: white;
    padding: 20px 0;
    box-shadow: var(--shadow);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo h1 {
    font-size: 28px;
    margin-bottom: 5px;
}

.logo p {
    font-size: 14px;
    opacity: 0.8;
}

.search-container {
    flex-grow: 1;
    max-width: 500px;
    margin-left: 30px;
}

.search-box {
    display: flex;
    position: relative;
}

.search-box input {
    width: 100%;
    padding: 10px 15px;
    border: none;
    border-radius: 4px 0 0 4px;
    font-size: 16px;
}

.search-box button {
    background-color: var(--secondary-color);
    color: white;
    border: none;
    padding: 0 15px;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: var(--transition);
}

.search-box button:hover {
    background-color: #2980b9;
}

/* Navegação */
nav {
    background-color: #34495e;
    box-shadow: var(--shadow);
}

#menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 10px;
}

#main-menu {
    display: flex;
    position: relative;
}

#main-menu > li {
    position: relative;
}
#main-menu > li > a {
    display: flex;
    color: white;
    padding: 15px 20px;
    align-items: center;
    gap: 6px;
    font-weight: 500;
    transition: var(--transition);
    white-space: nowrap;
}



#main-menu > li > a:hover,
#main-menu > li > a.active {
    background-color: var(--secondary-color);
}

#main-menu > li > a > i {
    margin-right: 8px;
}

.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    min-width: 200px;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 100;
}

#main-menu > li:hover .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.submenu li a {
    display: block;
    padding: 10px 20px;
    color: var(--text-color);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.submenu li a:hover {
    background-color: #f5f5f5;
    color: var(--secondary-color);
}

/* Conteúdo Principal */
main {
    padding: 30px 0;
}

main .container {
    display: flex;
    flex-wrap: wrap;
}

.content {
    flex: 1;
    min-width: 0;
    margin-right: 30px;
}

.sidebar {
    width: 300px;
}

section {
    margin-bottom: 40px;
    background-color: white;
    border-radius: 8px;
    box-shadow: var(--shadow);
    padding: 25px;
}

section h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 28px;
}

section h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 22px;
    border-bottom: 2px solid var(--light-color);
    padding-bottom: 10px;
}

/* Seção de Boas-vindas */
.welcome p {
    font-size: 18px;
    line-height: 1.7;
}

/* Cards de Acesso Rápido */
.cards {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px;
}

.card {
    flex: 1;
    min-width: 200px;
    margin: 10px;
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: var(--transition);
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.card i {
    font-size: 36px;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.card h4 {
    margin-bottom: 10px;
    color: var(--primary-color);
}

.card p {
    margin-bottom: 15px;
    color: #666;
}

/* Passos Iniciais */
.steps {
    counter-reset: step-counter;
}

.step {
    display: flex;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.step:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--secondary-color);
    color: white;
    border-radius: 50%;
    font-weight: bold;
    margin-right: 20px;
    flex-shrink: 0;
}

.step-content h4 {
    margin-bottom: 10px;
    color: var(--primary-color);
}

.step-content p {
    margin-bottom: 10px;
    color: #666;
}

/* FAQ Preview */
.faq-items {
    margin-bottom: 20px;
}

.faq-item {
    margin-bottom: 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background-color: #f8f9fa;
    cursor: pointer;
    transition: var(--transition);
}

.faq-question:hover {
    background-color: #f1f1f1;
}

.faq-question h4 {
    margin: 0;
    font-size: 16px;
    color: var(--primary-color);
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 20px;
    max-height: 500px;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

/* Sidebar */
.widget {
    background-color: white;
    border-radius: 8px;
    box-shadow: var(--shadow);
    padding: 20px;
    margin-bottom: 30px;
}

.widget h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 18px;
    border-bottom: 2px solid var(--light-color);
    padding-bottom: 10px;
}

.widget p {
    margin-bottom: 15px;
}

.news-list li, .download-list li {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.news-list li:last-child, .download-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.date {
    display: block;
    font-size: 12px;
    color: #777;
    margin-bottom: 5px;
}

.download-list i {
    margin-right: 8px;
    color: var(--secondary-color);
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: white;
    padding: 40px 0 20px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.footer-logo {
    flex: 1;
    min-width: 200px;
    margin-right: 30px;
    margin-bottom: 20px;
}

.footer-logo h2 {
    font-size: 24px;
    margin-bottom: 10px;
}

.footer-links, .footer-contact {
    flex: 1;
    min-width: 200px;
    margin-bottom: 20px;
}

.footer-links h3, .footer-contact h3 {
    font-size: 18px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-links ul li {
    margin-bottom: 8px;
}

.footer-links ul li a {
    color: rgba(255, 255, 255, 0.8);
}

.footer-links ul li a:hover {
    color: white;
}

.footer-contact p {
    margin-bottom: 8px;
}

.footer-contact i {
    margin-right: 10px;
    color: var(--secondary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsividade */
@media (max-width: 992px) {
    .content {
        margin-right: 0;
        margin-bottom: 30px;
    }
    
    .sidebar {
        width: 100%;
    }
    
    .footer-logo, .footer-links, .footer-contact {
        flex: 0 0 100%;
        margin-right: 0;
    }
}

@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .logo {
        margin-bottom: 15px;
        text-align: center;
    }
    
    .search-container {
        margin-left: 0;
        max-width: 100%;
    }
    
    #menu-toggle {
        display: block;
    }
    
    #main-menu {
        display: none;
        flex-direction: column;
    }
    
    #main-menu.active {
        display: flex;
    }
    
    #main-menu > li {
        position: static;
    }
    
    .submenu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    
    #main-menu > li:hover .submenu {
        max-height: 500px;
    }
    
    .card {
        flex: 0 0 calc(50% - 20px);
    }
}

@media (max-width: 576px) {
    .card {
        flex: 0 0 100%;
    }
    
    .step {
        flex-direction: column;
    }
    
    .step-number {
        margin-bottom: 10px;
    }
}

/* Estilos para páginas de conteúdo */
.article {
    background-color: white;
    border-radius: 8px;
    box-shadow: var(--shadow);
    padding: 30px;
    margin-bottom: 30px;
}

.article h1 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 32px;
}

.article h2 {
    color: var(--primary-color);
    margin: 30px 0 15px;
    font-size: 24px;
}

.article h3 {
    color: var(--primary-color);
    margin: 25px 0 15px;
    font-size: 20px;
}

.article p {
    margin-bottom: 20px;
    line-height: 1.7;
}

.article ul, .article ol {
    margin-bottom: 20px;
    padding-left: 20px;
}

.article ul li, .article ol li {
    margin-bottom: 10px;
}

.article img {
    max-width: 100%;
    height: auto;
    margin: 20px 0;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.article-meta {
    margin-bottom: 20px;
    color: #777;
    font-size: 14px;
}

.article-meta span {
    margin-right: 15px;
}

.article-meta i {
    margin-right: 5px;
    color: var(--secondary-color);
}

.breadcrumbs {
    margin-bottom: 20px;
    font-size: 14px;
    color: #777;
}

.breadcrumbs a {
    color: var(--secondary-color);
}

.breadcrumbs span {
    margin: 0 5px;
}

/* Estilos para FAQ */
.faq-container .faq-item {
    margin-bottom: 20px;
}

.faq-container .faq-answer {
    background-color: #f9f9f9;
}

.faq-container .faq-item.active .faq-answer {
    padding: 20px;
}

/* Estilos para tabelas */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

table th, table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

table th {
    background-color: #f8f9fa;
    font-weight: bold;
    color: var(--primary-color);
}

table tr:hover {
    background-color: #f5f5f5;
}

/* Estilos para código */
pre, code {
    font-family: Consolas, Monaco, 'Andale Mono', monospace;
    background-color: #f5f5f5;
    border-radius: 4px;
    padding: 2px 5px;
    font-size: 14px;
}

pre {
    padding: 15px;
    overflow-x: auto;
    margin-bottom: 20px;
    line-height: 1.4;
}

pre code {
    background-color: transparent;
    padding: 0;
}

/* Estilos para alertas */
.alert {
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: 4px;
    border-left: 4px solid;
}

.alert-info {
    background-color: #e3f2fd;
    border-color: var(--secondary-color);
    color: #0c5460;
}

.alert-warning {
    background-color: #fff3cd;
    border-color: var(--warning-color);
    color: #856404;
}

.alert-success {
    background-color: #d4edda;
    border-color: var(--success-color);
    color: #155724;
}

.alert-danger {
    background-color: #f8d7da;
    border-color: var(--accent-color);
    color: #721c24;
}

/* Estilos para paginação */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.pagination a, .pagination span {
    display: inline-block;
    padding: 8px 16px;
    margin: 0 5px;
    border-radius: 4px;
    background-color: white;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.pagination a:hover {
    background-color: var(--secondary-color);
    color: white;
}

.pagination .active {
    background-color: var(--secondary-color);
    color: white;
}

/* Estilos para formulários */
form {
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="date"],
textarea,
select {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 16px;
    transition: var(--transition);
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

textarea {
    min-height: 120px;
    resize: vertical;
}

/* Animações */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

/* Utilitários */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }
.p-0 { padding: 0; }
.hidden { display: none; }

.search-result-card {
    border: 1px solid #ddd;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    background: #fff;
}

.search-result-card h3 {
    margin-top: 0;
}

.search-result-card .btn {
    display: inline-block;
    margin-top: 8px;
}

.search-module {
    display: inline-block;
    font-size: 12px;
    color: #555;
    margin-top: 6px;
}

