/*
Theme Name: SIGGED v2026.1
Theme URI: https://sigged.com.br/
Author: SIGGED Softworks
Description: Tema base SIGGED v2026.1 preparado a partir do site institucional.
Version: 2026.1
Text Domain: sigged
*/
/* style.css - SIGGED Softworks - Versão Final com Editor no FAQ */

:root {
    --primary-blue: #0E1C36;   
    --primary-green: #00A859;  
    --light-gray: #f4f4f4;
    --white: #ffffff;
    --text-color: #333;
    /* Cores de Ação */
    --btn-edit: #f39c12;   
    --btn-delete: #d9534f; 
    --btn-gray: #bdc3c7;   
    --btn-gray-hover: #95a5a6;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body { 
    font-family: 'Roboto', sans-serif; 
    color: var(--text-color); 
    line-height: 1.6;
    overflow-x: hidden; 
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main { flex: 1; }
.container { max-width: 1400px; margin: 0 auto; padding: 0 20px; }
a { text-decoration: none; }
img { max-width: 100%; height: auto; }

/* HEADER */
header { display: flex; justify-content: space-between; align-items: center; padding: 15px 40px; background: var(--white); box-shadow: 0 2px 10px rgba(0,0,0,0.1); position: sticky; top: 0; z-index: 1000; }
.logo-img-header { height: 50px; width: auto; }
.header-buttons { display: flex; gap: 10px; flex-wrap: wrap; }
.mobile-menu-icon { display: none; font-size: 30px; cursor: pointer; color: var(--primary-blue); padding: 5px; }
.mobile-nav { display: none; position: absolute; top: 100%; left: 0; width: 100%; background: white; box-shadow: 0 8px 16px rgba(0,0,0,0.1); flex-direction: column; z-index: 999; border-top: 1px solid #eee; }
@media (min-width: 769px) { .mobile-nav { display: none !important; } }
.mobile-nav a { padding: 20px; text-align: center; border-bottom: 1px solid #f5f5f5; color: var(--primary-blue); font-weight: bold; }
.mobile-nav a:hover { background: #f0f0f0; }

/* BOTÕES */
.btn { padding: 12px 28px; border-radius: 5px; font-weight: bold; cursor: pointer; border: none; font-size: 15px; transition: 0.3s; display: inline-block; text-align: center; white-space: nowrap; }
.btn-blue { background: var(--primary-blue); color: var(--white); }
.btn-blue:hover { background-color: #0a1528; transform: translateY(-2px); }
.btn-outline { border: 2px solid var(--primary-blue); color: var(--primary-blue); background: transparent; }
.btn-outline:hover { background: var(--primary-blue); color: var(--white); }

/* SEÇÕES */
.hero { display: flex; align-items: center; min-height: 100vh; padding: 80px 20px; position: relative; background-image: url('assets/hero-bg.png'); background-size: cover; background-position: center; background-repeat: no-repeat; background-attachment: fixed; }
.hero::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(14, 28, 54, 0.40); z-index: 1; }
.hero-content, .hero-image { position: relative; z-index: 2; }
.hero-content { flex: 1; padding-right: 50px; }
.hero-content h1 { font-size: 3.2rem; color: var(--white); margin-bottom: 25px; line-height: 1.1; font-weight: 700; }
.hero-content p { font-size: 1.2rem; margin-bottom: 35px; color: #e0e0e0; }
.hero-image { flex: 1; display: flex; justify-content: center; align-items: center; }
.hero-img-main { max-width: 380px; height: auto; }
.section-pad { padding: 80px 20px; }
.bg-light { background: var(--light-gray); }
h2 { color: var(--primary-blue); font-size: 2.2rem; margin-bottom: 20px; }
.inovacao-img { max-width: 100%; height: auto; }
.service-img { height: 180px; width: 100%; object-fit: contain; border-radius: 5px 5px 0 0; }

/* SERVIÇOS */
.services-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 30px; margin-top: 40px; }
.card { background: white; border-radius: 10px; box-shadow: 0 4px 10px rgba(0,0,0,0.08); text-align: center; overflow: hidden; transition: transform 0.3s; display: flex; flex-direction: column; flex: 0 1 calc(25% - 30px); min-width: 250px; }
.card h3 { margin: 15px 0 10px; color: var(--primary-blue); }
.card p { padding: 0 20px 25px; color: #666; font-size: 0.95rem; }

/* FAQ & CONTATO */
details { margin-bottom: 15px; border: 1px solid #eee; background: white; border-radius: 5px; padding: 15px; cursor: pointer; transition: 0.3s; }
details[open] { border-left: 4px solid var(--primary-green); }
summary { font-weight: bold; color: var(--primary-blue); font-size: 1.1rem; list-style: none; display: flex; justify-content: space-between; align-items: center; }
summary::after { content: "+"; color: var(--primary-green); font-size: 1.5rem; font-weight: bold; }
details[open] summary::after { content: "–"; } 
details p { margin-top: 15px; color: #555; padding-top: 15px; border-top: 1px solid #eee; }
.contact-container { display: flex; gap: 50px; align-items: flex-start; }
.contact-row { display: flex; align-items: flex-start; margin-bottom: 10px; }
.contact-row:last-child { margin-bottom: 0; }
.contact-icon-box { min-width: 30px; margin-right: 15px; font-size: 1.4rem; text-align: center; }
.contact-text-box strong { display: block; color: #555; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 3px; }
.contact-form input, .contact-form textarea { width: 100%; padding: 12px; margin-bottom: 15px; border: 1px solid #ccc; border-radius: 4px; font-family: inherit; font-size: 1rem; }
.contact-form button { width: 100%; padding: 15px; font-size: 1.1rem; }

/* PAINEL E EDITOR (CONFIGURAÇÃO) */
.editor-container { border: 1px solid #ccc; border-radius: 4px; background: white; overflow: hidden; margin-top: 5px; }
.editor-toolbar { background: #e9ecef; border-bottom: 1px solid #ccc; padding: 5px 10px; display: flex; gap: 5px; }
.editor-btn { background: white; border: 1px solid #ccc; border-radius: 3px; cursor: pointer; padding: 4px 8px; font-weight: bold; font-size: 14px; min-width: 30px; }
.editor-btn:hover { background: #dcdcdc; }
.editor-content { min-height: 120px; padding: 10px; outline: none; overflow-y: auto; font-family: 'Roboto', sans-serif; font-size: 0.9rem; line-height: 1.5; }
.editor-content ul { padding-left: 20px; margin: 10px 0; list-style-type: disc; list-style-position: inside; }
.editor-content ol { padding-left: 20px; margin: 10px 0; list-style-type: decimal; list-style-position: inside; }
.editor-content li { margin-bottom: 5px; }
.editor-content p { margin-bottom: 10px; }

.action-group { display: flex; gap: 5px; align-items: center; }
.btn-sm { padding: 6px 10px; font-size: 0.8rem; border-radius: 4px; cursor: pointer; border: none; color: white; transition: 0.2s; display: flex; align-items: center; justify-content: center; }
.btn-save { background: var(--primary-green); } .btn-save:hover { filter: brightness(0.9); }
.btn-edit { background: var(--btn-edit); } .btn-edit:hover { filter: brightness(0.9); }
.btn-report { background: #555; } .btn-report:hover { background: #333; }
.btn-del { background: var(--btn-delete); } .btn-del:hover { filter: brightness(0.9); }
.btn-gray { background-color: var(--btn-gray); color: #fff; } .btn-gray:hover { background-color: var(--btn-gray-hover); }
.btn-backup-list { background-color: #34495e; color: white; margin-right: 10px; }
.btn-reset { background-color: #95a5a6; color: white; border: none; padding: 5px 15px; border-radius: 4px; font-size: 0.8rem; cursor: pointer; transition: 0.3s; text-transform: uppercase; font-weight: bold; }
.btn-reset:hover { background-color: #7f8c8d; }

/* CONFIG LAYOUT */
.config-layout { display: flex; gap: 20px; align-items: flex-start; }
.config-sidebar { flex: 1; background: white; border-radius: 8px; box-shadow: 0 4px 10px rgba(0,0,0,0.05); overflow: hidden; }
.config-btn-menu { display: block; width: 100%; padding: 15px 20px; text-align: left; background: white; border: none; border-bottom: 1px solid #eee; cursor: pointer; font-size: 0.95rem; color: #555; transition: 0.3s; font-weight: 500; }
.config-btn-menu:hover { background-color: #f9f9f9; color: var(--primary-blue); }
.config-btn-menu.active { background-color: #eef2f7; color: var(--primary-blue); font-weight: bold; border-left: 5px solid var(--primary-green); }
.config-content { flex: 3; background: white; padding: 30px; border-radius: 8px; box-shadow: 0 4px 10px rgba(0,0,0,0.05); min-height: 500px; }
.config-section { display: none; animation: fadeIn 0.4s ease-in-out; }
.config-section.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }

/* BARRA DE TÍTULO AZUL */
.config-section-title { 
    background-color: var(--primary-blue);
    color: white !important;
    padding: 15px 20px;
    border-radius: 6px;
    margin-bottom: 25px; 
    font-size: 1.1rem; 
    font-weight: bold; 
    text-transform: uppercase; 
    letter-spacing: 0.5px; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    border: none;
}

.config-columns { display: grid; grid-template-columns: 2fr 1fr; gap: 30px; }
.config-group { margin-bottom: 15px; }
.config-group label { font-weight: bold; display: block; margin-bottom: 6px; color: #444; font-size: 0.9rem; }
.config-group input[type="text"], .config-group input[type="email"], .config-group textarea { width: 100%; padding: 10px; border: 1px solid #ccc; border-radius: 4px; font-family: 'Roboto', sans-serif; font-size: 0.9rem; transition: 0.3s; }
.config-group input:focus, .config-group textarea:focus { border-color: var(--primary-blue); outline: none; }
.config-group input[type="color"] { width: 100%; height: 40px; border: 1px solid #ccc; border-radius: 4px; padding: 2px; cursor: pointer; }
.img-upload-card { background: #f8f9fa; border: 1px solid #ddd; border-radius: 8px; padding: 15px; text-align: center; margin-bottom: 20px; }
.img-upload-card label { display: block; font-weight: bold; color: var(--primary-blue); margin-bottom: 10px; font-size: 0.9rem; }
.thumb-preview { width: 100%; height: 120px; background-color: #fff; border: 1px dashed #ccc; border-radius: 4px; display: flex; align-items: center; justify-content: center; overflow: hidden; margin-bottom: 10px; }
.thumb-preview img { width: 100%; height: 100%; object-fit: contain; }
.btn-upload-trigger { background-color: var(--primary-blue); color: white; border: none; padding: 8px 12px; border-radius: 4px; font-size: 0.8rem; cursor: pointer; width: 100%; transition: 0.3s; }
.btn-upload-trigger:hover { background-color: #2c3e50; }
.service-config-list { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.service-config-item { background: #fff; border: 1px solid #eee; border-radius: 8px; padding: 15px; box-shadow: 0 2px 5px rgba(0,0,0,0.05); position: relative; }
.service-config-item h4 { margin-top: 0; color: var(--primary-blue); border-bottom: 1px solid #eee; padding-bottom: 5px; margin-bottom: 10px; font-size: 0.9rem; }
.btn-del-service { background-color: #e74c3c; color: white; border: none; border-radius: 4px; padding: 5px 10px; font-size: 0.8rem; position: absolute; top: 10px; right: 10px; cursor: pointer; }
.header-btn-config-item { display: flex; align-items: center; gap: 10px; padding: 10px; border: 1px solid #eee; border-radius: 6px; margin-bottom: 10px; background: #f9f9f9; }
.header-btn-config-item input[type="text"] { flex: 1; }
.header-btn-config-item input[type="checkbox"] { width: 20px; height: 20px; cursor: pointer; }

/* CROPPER */
.cropper-modal-content { width: 90%; max-width: 900px; height: 85vh; display: flex; flex-direction: column; background: #000; border-radius: 0; padding: 0; overflow: hidden; }
.cropper-area { flex: 1; background: #111; overflow: hidden; position: relative; display: flex; align-items: center; justify-content: center; }
.cropper-controls { padding: 15px; display: flex; justify-content: flex-end; gap: 10px; background: #222; border-top: 1px solid #444; }

/* EXPORTAÇÃO */
.export-container { display: flex; flex-direction: column; gap: 20px; }
.export-section { background: #f8f9fa; padding: 15px; border-radius: 8px; border: 1px solid #eee; }
.export-title { font-size: 1rem; color: var(--primary-blue); font-weight: bold; margin-bottom: 10px; border-bottom: 2px solid #ddd; padding-bottom: 5px; display: flex; justify-content: space-between; align-items: center; }
.filter-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 10px; }
.filter-input { width: 100%; padding: 8px; border: 1px solid #ccc; border-radius: 4px; font-size: 0.85rem; }
.table-preview { max-height: 200px; overflow-y: auto; background: white; border: 1px solid #ddd; font-size: 0.8rem; }
.table-preview table { width: 100%; border-collapse: collapse; }
.table-preview th, .table-preview td { padding: 8px; text-align: left; border-bottom: 1px solid #eee; }
.table-preview th { background-color: #eee; position: sticky; top: 0; }

/* MODAIS */
.modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.8); justify-content: center; align-items: center; z-index: 2000; padding: 20px; }
.modal-content { background: white; padding: 40px; border-radius: 10px; max-width: 600px; width: 100%; position: relative; max-height: 90vh; overflow-y: auto; box-shadow: 0 10px 25px rgba(0,0,0,0.2); }
.custom-alert-content { text-align: center; max-width: 400px !important; border-top: 6px solid var(--primary-blue); padding: 30px; }
.alert-icon { font-size: 3rem; margin-bottom: 15px; display: block; }
.alert-title { font-size: 1.4rem; color: var(--primary-blue); margin-bottom: 10px; font-weight: bold; }
.alert-message { color: #555; font-size: 1rem; margin-bottom: 25px; line-height: 1.5; }
.alert-actions { display: flex; justify-content: center; gap: 15px; }
.btn-alert { min-width: 100px; padding: 10px 20px; }
.alert-success { border-top-color: var(--primary-green); } .alert-success .alert-icon { color: var(--primary-green); }
.alert-error { border-top-color: #d9534f; } .alert-error .alert-icon { color: #d9534f; }
.alert-warning { border-top-color: #f39c12; } .alert-warning .alert-icon { color: #f39c12; }
.login-modal-content { max-width: 450px; text-align: center; }
.login-input { width: 100%; padding: 15px; margin-bottom: 15px; border: 1px solid #ccc; border-radius: 5px; font-size: 1rem; background-color: #f9f9f9; }
.btn-full { width: 100%; margin-bottom: 15px; }
.login-secondary-actions { display: flex; gap: 10px; justify-content: space-between; }
.login-secondary-actions .btn { flex: 1; font-size: 0.9rem; padding: 10px; }
.close { position: absolute; top: 15px; right: 20px; cursor: pointer; font-size: 30px; color: #aaa; transition: 0.2s; }
.close:hover { color: var(--primary-blue); }

/* DASHBOARD */
.dashboard-top-section { display: flex; gap: 20px; margin-bottom: 30px; align-items: stretch; }
.dashboard-header-info { flex: 2; background-color: var(--light-gray); padding: 15px 20px; border-radius: 8px; border-left: 5px solid var(--primary-green); display: flex; flex-direction: column; justify-content: center; }
.dashboard-right-column { flex: 3; display: flex; flex-direction: column; justify-content: space-between; gap: 15px; }
.admin-options { display: none; gap: 15px; justify-content: flex-end; }
.btn-admin-top { background-color: var(--primary-blue); color: white; padding: 8px 20px; border-radius: 5px; font-size: 0.85rem; font-weight: bold; text-transform: uppercase; border: 1px solid var(--primary-blue); transition: 0.3s; text-align: center; flex: 1; }
.btn-admin-top:hover { background-color: white; color: var(--primary-blue); }
.dashboard-utilities { display: flex; gap: 15px; height: 100%; }
.util-card { flex: 1; background: white; border: 1px solid #ddd; border-radius: 8px; padding: 10px; text-align: center; display: flex; align-items: center; justify-content: center; gap: 10px; transition: 0.3s; cursor: pointer; color: var(--primary-blue); font-weight: bold; font-size: 0.9rem; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
.util-card:hover { transform: translateY(-2px); border-color: var(--primary-green); color: var(--primary-green); box-shadow: 0 5px 10px rgba(0,0,0,0.1); }
.util-icon { font-size: 1.2rem; }
.apps-grid { display: grid; grid-template-columns: repeat(6, minmax(150px, 1fr)); gap: 20px; align-items: stretch; }
.app-card { background: white; border-radius: 8px; padding: 20px 10px; text-align: center; box-shadow: 0 4px 10px rgba(0,0,0,0.05); transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease; border: 1px solid #eee; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--primary-blue); min-height: 160px; height: 160px; box-sizing: border-box; }
.app-card:hover { transform: translateY(-5px); box-shadow: 0 8px 20px rgba(0,0,0,0.1); border-color: var(--primary-green); }
.app-icon-placeholder { width: 60px; height: 60px; background-color: #eef2f7; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-bottom: 15px; font-size: 24px; color: var(--primary-blue); transition: 0.3s; }
.app-card:hover .app-icon-placeholder { background-color: var(--primary-green); color: white; }
.app-card span { font-weight: bold; font-size: 0.9rem; line-height: 1.2; }
.apps-grid.drag-active .app-card,
.apps-grid.drag-active .app-card:hover {
    transition: none !important;
    transform: none !important;
}
.apps-grid.drag-active .app-card:not(.dragging) {
    pointer-events: none;
}
.app-card.dragging {
    opacity: 0.42;
    border: 2px dashed var(--primary-green) !important;
    box-shadow: none !important;
    cursor: grabbing;
}
.app-card.dragging .app-icon-placeholder {
    background-color: #eef2f7 !important;
    color: var(--primary-blue) !important;
}
.users-table { width: 100%; border-collapse: separate; border-spacing: 0; background: white; border-radius: 8px; box-shadow: 0 4px 10px rgba(0,0,0,0.05); font-size: 0.9rem; overflow: hidden; margin-top: 20px; }
.users-table th { background-color: var(--primary-blue); color: white; padding: 15px; text-transform: uppercase; font-size: 0.85rem; font-weight: bold; }
.users-table td { padding: 15px; border-bottom: 1px solid #eee; }

/* TEXTO RICO */
#txtHeroDesc ul, #txtInovaDesc ul, #leituraTexto ul, #txtHeroDesc ol, #txtInovaDesc ol, #leituraTexto ol { padding-left: 20px !important; margin-top: 10px !important; margin-bottom: 10px !important; list-style-position: inside !important; }
#txtHeroDesc li, #txtInovaDesc li, #leituraTexto li { margin-bottom: 5px !important; list-style-type: disc !important; display: list-item !important; }
#txtHeroDesc strong, #txtInovaDesc strong, #leituraTexto strong, #txtHeroDesc b, #txtInovaDesc b, #leituraTexto b { font-weight: 700 !important; }

/* CARROSSEL E GERENCIAL */
.carousel-container { position: relative; width: 100%; overflow: hidden; padding: 20px 0; }
.carousel-track { display: flex; gap: 30px; transition: transform 0.5s ease-in-out; }
.carousel-slide { flex: 0 0 calc(25% - 22.5px); min-width: 250px; box-sizing: border-box; display: flex; } 
.carousel-track.centered { justify-content: center; transform: none !important; }
.carousel-nav { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }
.nav-btn { background: var(--primary-blue); color: white; border: none; width: 40px; height: 40px; border-radius: 50%; cursor: pointer; font-size: 1.2rem; display: flex; align-items: center; justify-content: center; }
.nav-btn:hover { background: var(--primary-green); }
.news-card { background: white; border-radius: 8px; overflow: hidden; border: 1px solid #eee; display: flex; flex-direction: column; height: 100%; width: 100%; }
.news-thumb-container { width: 100%; height: 160px; overflow: hidden; }
.news-thumb { width: 100%; height: 100%; object-fit: cover; }
.news-content { padding: 15px; flex: 1; display: flex; flex-direction: column; }
.news-title { font-size: 1rem; color: var(--primary-blue); font-weight: bold; margin-bottom: 10px; line-height: 1.4; }
.news-excerpt { font-size: 0.85rem; color: #666; margin-bottom: 20px; display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.news-tag { background: var(--primary-green); color: white; padding: 2px 8px; border-radius: 4px; font-size: 0.7rem; margin-right: 10px; }
.news-link { color: var(--primary-blue); font-weight: bold; font-size: 0.9rem; margin-top: auto; }

/* GERENCIAL (MODERN) */
.pub-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; background: #fff; padding: 15px; border-radius: 8px; border: 1px solid #eee; }
.pub-filter { padding: 8px; border: 1px solid #ccc; border-radius: 4px; width: 300px; }
.badge-ativo { background-color: var(--primary-green); color: white; padding: 4px 8px; border-radius: 4px; font-size: 0.75rem; }
.badge-inativo { background-color: #95a5a6; color: white; padding: 4px 8px; border-radius: 4px; font-size: 0.75rem; }
.gerencial-nav { display: flex; gap: 10px; margin-bottom: 20px; border-bottom: 1px solid #ccc; padding-bottom: 10px; }
.nav-tab-btn { background: none; border: none; font-size: 1.1rem; padding: 10px 20px; cursor: pointer; color: #666; font-weight: bold; border-bottom: 3px solid transparent; transition: 0.3s; }
.nav-tab-btn:hover { color: var(--primary-blue); }
.nav-tab-btn.active { color: var(--primary-blue); border-bottom-color: var(--primary-blue); }
.gerencial-section { display: none; }
.gerencial-section.active { display: block; animation: fadeIn 0.4s; }

/* MODAL MODERN (APENAS PARA GERENCIAL E DASHBOARD) */
.modal-header-modern { margin-bottom: 25px; padding-bottom: 15px; border-bottom: 2px solid #f0f2f5; }
.modal-header-modern h2 { margin: 0; color: var(--primary-blue); font-size: 1.6rem; }
.form-grid-modern { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-full-width { grid-column: span 2; }
.form-group-modern label { display: block; margin-bottom: 8px; font-weight: 600; color: var(--primary-blue); font-size: 0.9rem; }
.form-control-modern { width: 100%; padding: 12px 15px; border: 1px solid #dde2e5; border-radius: 6px; font-family: 'Roboto', sans-serif; font-size: 0.95rem; color: #333; transition: all 0.3s ease; background-color: #fff; }
.form-control-modern:focus { outline: none; border-color: var(--primary-blue); box-shadow: 0 0 0 3px rgba(14, 28, 54, 0.1); }
select.form-control-modern { appearance: none; background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230E1C36' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e"); background-repeat: no-repeat; background-position: right 15px center; background-size: 16px; padding-right: 40px; }
.image-upload-modern { border: 2px dashed #dde2e5; border-radius: 8px; padding: 20px; text-align: center; background: #fcfcfc; transition: 0.3s; }
.image-upload-modern:hover { border-color: var(--primary-blue); background: #fff; }
.preview-container-modern { height: 180px; background-color: #f0f2f5; border-radius: 6px; overflow: hidden; margin-bottom: 15px; display: flex; align-items: center; justify-content: center; border: 1px solid #eee; }
.preview-container-modern img { max-height: 100%; max-width: 100%; object-fit: contain; }
.btn-upload-modern { background: white; color: var(--primary-blue); border: 1px solid var(--primary-blue); padding: 10px 20px; border-radius: 5px; font-weight: bold; cursor: pointer; transition: 0.3s; display: inline-flex; align-items: center; gap: 8px; }
.btn-upload-modern:hover { background: var(--primary-blue); color: white; }
.editor-container.modern { border-color: #dde2e5; border-radius: 6px; }
.editor-toolbar.modern { background-color: #f8f9fa; border-bottom-color: #dde2e5; }
.checkbox-modern { display: flex; align-items: center; gap: 10px; padding: 15px; background: #f8f9fa; border-radius: 6px; cursor: pointer; border: 1px solid #dde2e5; }
.checkbox-modern input { width: 18px; height: 18px; accent-color: var(--primary-green); }

/* UTILITÁRIOS DARK MODE & AJUDA */
body.dark-mode { background-color: #121212 !important; color: #e0e0e0; --text-color: #e0e0e0; }
body.dark-mode header, body.dark-mode .dashboard-utilities .util-card, body.dark-mode .app-card, body.dark-mode .modal-content, body.dark-mode .pub-toolbar, body.dark-mode .users-table, body.dark-mode .form-control-modern, body.dark-mode .image-upload-modern, body.dark-mode details, body.dark-mode .service-config-item, body.dark-mode .header-btn-config-item, body.dark-mode .config-list-item { background-color: #1e1e1e !important; border-color: #333 !important; color: #e0e0e0; }
body.dark-mode .dashboard-header-info { background-color: #1e1e1e; border-left-color: var(--primary-green); color: #ccc; }
body.dark-mode h2, body.dark-mode h3, body.dark-mode strong, body.dark-mode .modal-header-modern h2, body.dark-mode .form-group-modern label, body.dark-mode .config-group label, body.dark-mode h4, body.dark-mode span { color: #fff !important; }
body.dark-mode .app-icon-placeholder { background-color: #333; color: var(--primary-green); }
body.dark-mode .btn-upload-modern, body.dark-mode .btn-outline { background-color: transparent; color: white; border-color: #555; }
body.dark-mode .btn-upload-modern:hover { border-color: var(--primary-green); color: var(--primary-green); }
body.dark-mode input, body.dark-mode select, body.dark-mode textarea { background-color: #2c2c2c !important; color: white !important; border-color: #444 !important; }
.help-accordion details { border: 1px solid #eee; border-radius: 6px; margin-bottom: 10px; background: #fff; transition: 0.3s; }
.help-accordion summary { padding: 15px; cursor: pointer; font-weight: bold; color: var(--primary-blue); list-style: none; display: flex; justify-content: space-between; align-items: center; }
.help-accordion summary::after { content: '+'; font-size: 1.2rem; color: var(--primary-green); }
.help-accordion details[open] summary::after { content: '-'; }
.help-accordion details[open] { border-left: 4px solid var(--primary-green); box-shadow: 0 4px 10px rgba(0,0,0,0.05); }
.help-content-text { padding: 15px; border-top: 1px solid #eee; color: #555; font-size: 0.95rem; line-height: 1.6; }
body.dark-mode .help-content-text { color: #ccc; border-color: #444; } body.dark-mode .help-accordion summary { color: #fff; }
.switch { position: relative; display: inline-block; width: 50px; height: 24px; } .switch input { opacity: 0; width: 0; height: 0; } .slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #ccc; transition: .4s; border-radius: 24px; } .slider:before { position: absolute; content: ""; height: 16px; width: 16px; left: 4px; bottom: 4px; background-color: white; transition: .4s; border-radius: 50%; } input:checked + .slider { background-color: var(--primary-green); } input:checked + .slider:before { transform: translateX(26px); }

/* ==========================================================================
   NOVOS ESTILOS: CONFIGURAÇÃO DE CHAMADO E AJUDA
   ========================================================================== */

/* Lista de Configuração (Tipos de Chamado e FAQ) */
.config-list-container {
    border: 1px solid #dde2e5;
    border-radius: 6px;
    background: #fff;
    overflow: hidden;
    margin-top: 10px;
}

.config-list-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    border-bottom: 1px solid #eee;
    background: #fff;
    transition: 0.2s;
}

.config-list-item:last-child {
    border-bottom: none;
}

.config-list-item:hover {
    background-color: #f9f9f9;
}

.config-list-item input[type="text"] {
    flex: 1;
    border: 1px solid #ccc; /* Visual mais limpo na lista */
    margin: 0;
}

/* FAQ Item Específico (Com Editor) */
.faq-config-item {
    flex-direction: column;
    align-items: stretch;
    gap: 5px;
}

.faq-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    color: var(--primary-blue);
    margin-bottom: 5px;
}

/* Ajuste de editor dentro do FAQ para ocupar largura correta */
.faq-config-item .editor-container {
    margin-top: 5px;
}

/* RESPONSIVIDADE (MOBILE AJUSTADO) */
@media (max-width: 1200px) { .apps-grid { grid-template-columns: repeat(4, 1fr); } .services-grid .card { flex: 0 1 calc(33.33% - 30px); } .carousel-slide { flex: 0 0 calc(33.33% - 20px); } }
@media (max-width: 992px) { .dashboard-top-section { flex-direction: column; } .services-grid .card { flex: 0 1 calc(50% - 30px); } .config-layout { flex-direction: column; } .config-sidebar { width: 100%; display: flex; overflow-x: auto; } .config-btn-menu { flex: 1; text-align: center; } .config-columns { grid-template-columns: 1fr; } .service-config-list { grid-template-columns: 1fr; } .carousel-slide { flex: 0 0 calc(50% - 15px); } }
@media (max-width: 768px) {
    .carousel-slide { flex: 0 0 100%; } .pub-toolbar { flex-direction: column; } .pub-filter { width: 100%; } .header-buttons { display: none; } .mobile-menu-icon { display: block; }
    .hero { min-height: auto; padding-top: 60px; flex-direction: column; align-items: center; text-align: left; }
    .hero-image { order: -1; margin-bottom: 20px; width: 100%; display: flex; justify-content: center; }
    .hero-img-main { max-width: 240px; height: auto; }
    .hero-content { padding-right: 0; margin-bottom: 30px; width: 100%; }
    .section-pad { padding: 40px 20px; } .inovacao-container { flex-direction: column; } .inovacao-img { margin-bottom: 30px; max-width: 120px; }
    .services-grid .card { flex: 0 1 100%; max-width: 320px; margin: 0 auto; }
    .card .service-img { height: 100px !important; }
    h1 { font-size: 1.6rem !important; } h2 { font-size: 1.4rem !important; } 
    .card h3 { font-size: 1.1rem !important; } .card p { font-size: 0.85rem !important; padding: 0 15px 20px !important; }
    details { margin-bottom: 8px !important; padding: 10px !important; } 
    .contact-container { flex-direction: column !important; gap: 20px !important; } .contact-container > div { width: 100% !important; margin-bottom: 10px !important; }
    .contact-form input, .contact-form textarea { width: 100% !important; box-sizing: border-box; }
    .cta-section { padding: 15px 15px !important; } .cta-section h2 { font-size: 1rem !important; } .cta-section p { font-size: 0.75rem !important; } .cta-section .btn { font-size: 0.8rem !important; }
    .apps-grid { grid-template-columns: repeat(2, 1fr); }
    .form-grid-modern { grid-template-columns: 1fr; gap: 15px; } .form-full-width { grid-column: span 1; }
}
