/* style.css */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    display: flex;
    background-color: #f4f6f9;
    color: #333;
    height: 100vh;
    overflow: hidden;
}

/* Layout Principal */
#sidebar {
    width: 280px;
    background-color: #ffffff;
    border-right: 1px solid #e0e0e0;
    display: flex;
    flex-direction: column;
    height: 100%;
}

#sidebar h3 {
    padding: 20px;
    background-color: #0056b3;
    color: white;
    font-size: 1.1rem;
}

#lista-marcas {
    list-style: none;
    overflow-y: auto;
    flex: 1;
}

#lista-marcas li {
    padding: 12px 20px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background 0.2s;
    font-size: 0.95rem;
    display: flex;
    justify-content: space-between;
}

#lista-marcas li:hover, #lista-marcas li.ativa {
    background-color: #e9ecef;
    color: #0056b3;
    font-weight: bold;
}

#lista-marcas li span {
    background: #ced4da;
    color: #495057;
    font-size: 0.8rem;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: normal;
}

#conteudo {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Topo de Busca */
#topo-busca {
    background-color: #ffffff;
    padding: 15px 30px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    gap: 15px;
    align-items: center;
}

#campo-busca {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #cccccc;
    border-radius: 4px;
    font-size: 1rem;
}

#btn-limpar {
    padding: 10px 20px;
    background-color: #6c757d;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

/* Área de Dados */
#area-tabela {
    flex: 1;
    overflow-y: auto;
    padding: 30px;
}

.tabela-produtos {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.tabela-produtos th, .tabela-produtos td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #eeeeee;
}

.tabela-produtos th {
    background-color: #f8f9fa;
    color: #495057;
    font-weight: 600;
}

.tabela-produtos tbody tr {
    cursor: pointer;
    transition: background 0.15s;
}

.tabela-produtos tbody tr:hover {
    background-color: #f1f3f5;
}

.link-codigo {
    color: #0056b3;
    font-weight: bold;
    text-decoration: underline;
}

/* Paginação */
#paginacao {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background: #ffffff;
    border-top: 1px solid #e0e0e0;
}

.btn-pag {
    padding: 6px 12px;
    border: 1px solid #0056b3;
    background: white;
    color: #0056b3;
    cursor: pointer;
    border-radius: 4px;
}

.btn-pag:disabled {
    border-color: #cccccc;
    color: #cccccc;
    cursor: not-allowed;
}

/* Modal Nativo */
.modal {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background-color: white;
    padding: 25px;
    border-radius: 6px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.close-button {
    font-size: 1.5rem;
    cursor: pointer;
    background: none;
    border: none;
    color: #aaa;
}

.close-button:hover { color: #333; }

#modal-aplicacao {
    font-size: 1rem;
    line-height: 1.5;
    white-space: pre-wrap; /* Preserva quebras de linha da tag <obs> */
    color: #495057;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 4px;
    max-height: 300px;
    overflow-y: auto;
}

/* style.css (Adicionar no final do arquivo) */

/* Container do Logo da sua Empresa */
.logo-empresa-container {
    padding: 20px;
    background-color: #ffffff;
    text-align: center;
    border-bottom: 1px solid #e0e0e0;
}

.logo-empresa {
    max-width: 100%;
    max-height: 60px; /* Ajuste a altura máxima conforme o desenho do seu logo */
    object-fit: contain;
}

/* Container do Logo da Marca Filtrada */
#container-logo-marca {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    padding: 5px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    min-width: 80px;
    height: 45px;
}

.logo-marca {
    max-width: 80px;
    max-height: 35px;
    object-fit: contain;
}
