/* Estilos Globais */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
    line-height: 1.6;
}

.container {
    width: 90%;
    margin: auto;
    overflow: hidden;
    padding: 0 20px;
}

/* Header */
header {
    background-color: #000;
    color: #fff;
    padding-top: 20px;
    min-height: 70px;
    border-bottom: 3px solid rgb(170, 30, 87);
}

header a {
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 16px;
}

header ul {
    margin: 0;
    padding: 0;
}

header li {
    float: left;
    display: inline;
    padding: 0 20px 0 20px;
}

header #branding {
    float: left;
}

header #branding h1 {
    margin: 0;
}

header nav {
    float: right;
    margin-top: 10px;
}

header .highlight, header .current a {
    color: rgb(191, 86, 129);
    font-weight: bold;
}

header a:hover {
    color: #ccc;
    font-weight: bold;
}

/* Paleta de Cores */
.color-1 { background-color: rgb(170, 30, 87); }
.color-2 { background-color: rgb(191, 86, 129); }
.color-3 { background-color: rgb(213, 143, 171); }
.color-4 { background-color: rgb(234, 199, 213); }
.color-5 { background-color: rgb(255, 255, 255); }

/* Logo Estilizado */
#logo-text {
    font-family: 'Times New Roman', serif;
    font-size: 2.2em;
    color: rgb(170, 30, 87);
    margin: 0;
    display: inline-block;
}

#logo-text span {
    font-family: Arial, sans-serif;
    font-weight: normal;
    color: #fff;
}

/* Hero Section */
#hero {
    background-image: url('../img/gavel_scales.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    color: #fff;
    text-align: center;
    padding-top: 100px;
    padding-bottom: 100px;
    position: relative;
}

#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

#hero > .container {
    position: relative;
    z-index: 2;
}

#hero h2 {
    font-size: 3em;
    margin-bottom: 20px;
}

#hero p {
    font-size: 1.2em;
}

/* Serviços Section */
#servicos {
    padding: 30px 0;
}

#servicos h2 {
    text-align: center;
    margin-bottom: 30px;
}

#servicos .servico {
    text-align: center;
    padding: 20px;
    border: 1px solid #ddd;
    margin: 20px;
    border-radius: 5px;
}

/* Botão */
.btn {
    background: rgb(170, 30, 87);
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    cursor: pointer;
}

.btn:hover {
    background: rgb(191, 86, 129);
}

/* Footer */
footer {
    background-color: #000;
    color: #fff;
    text-align: center;
    padding: 20px;
    margin-top: 50px;
}

/* Estilos para o formulário de cadastro de clientes */
#cadastro-cliente-form {
    width: 80%;
    margin: 20px auto;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #f9f9f9;
}

#cadastro-cliente-form h2 {
    margin-bottom: 20px;
    text-align: center;
}

#cadastro-cliente-form section {
    margin-bottom: 20px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 20px;
}

#cadastro-cliente-form section:last-child {
    border-bottom: none;
}

#cadastro-cliente-form label {
    display: block;
    margin-bottom: 5px;
}

#cadastro-cliente-form input,
#cadastro-cliente-form select,
#cadastro-cliente-form textarea {
    width: 100%;
    padding: 8px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

#cadastro-cliente-form button {
    background-color: rgb(170, 30, 87);
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

#cadastro-cliente-form button:hover {
    background-color: rgb(191, 86, 129);
}

#representante-info {
    margin-top: 10px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #f9f9f9;
    display: none;
}

/* Estilos para a seção de documentos faltantes */
#documentos-faltantes-section {
    margin-top: 15px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #f9f9f9;
}

#documentos-faltantes-section h3 {
    margin-top: 0;
    margin-bottom: 15px;
}

#documentos-faltantes-section .documentos-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

#documentos-faltantes-section label {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    font-size: 0.9rem;
    cursor: pointer;
}

#documentos-faltantes-section input[type="checkbox"] {
    margin-right: 10px;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

#outros-doc-container {
    margin-top: 10px;
    display: none;
}

#outros-doc-container input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* Estilos para as listas de clientes */
.lista-clientes {
    flex: 1;
    min-width: 300px;
    max-width: 400px;
    border: 1px solid #ddd;
    padding: 10px;
    background-color: #f9f9f9;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.1);
    border-radius: 5px;
    max-height: 300px;
    overflow-y: auto;
}

.lista-clientes h3 {
    margin-bottom: 10px;
}

.lista-clientes ul {
    list-style: none;
    padding: 0;
}

.lista-clientes li {
    padding: 5px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.lista-clientes li:last-child {
    border-bottom: none;
}

.excluir-cliente-button {
    background-color: #f44336;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
}

.excluir-cliente-button:hover {
    background-color: #d32f2f;
}

/* Estilos para os nomes de clientes e responsáveis */
.nome-cliente {
    color: #000000;
    text-decoration: none;
    font-size: 0.85rem;
}

.nome-cliente:hover {
    text-decoration: underline;
}

.responsavel-cliente {
    color: red !important;
    font-size: 0.75rem;
}

/* Estilo para tabela de administradores */
#lista-administradores {
    font-size: 0.9em;
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

#lista-administradores th,
#lista-administradores td {
    padding: 6px;
    border-bottom: 1px solid #ccc;
    text-align: left;
}

#lista-administradores button {
    font-size: 0.8em;
    padding: 4px 8px;
    background-color: #f44336;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

#lista-administradores button:hover {
    background-color: #d32f2f;
}

/* Estilos para as listas de status */
#listas-status {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 10px;
    justify-content: space-between;
}

#arquivados-lista {
    flex: 0 0 312px;
    min-width: 312px;
}

#atendimento_diario-lista, 
#aguardando_documento-lista, 
#pendentes-lista, 
#protocolados-lista {
    flex: 1 1 312px;
    min-width: 312px;
}

/* Media Queries */
@media (max-width: 768px) {
    header .container,
    #hero .container,
    #servicos .container,
    footer .container {
        width: 90%;
    }

    header #branding,
    header nav {
        float: none;
        text-align: center;
    }

    header nav li {
        float: none;
        display: block;
    }

    #documentos-faltantes-section .documentos-grid {
        grid-template-columns: 1fr;
    }

    .lista-clientes {
        min-width: 200px;
        max-width: 100%;
    }
}

/* Botão Arquivados no topo direito */
.btn-top-right {
    position: absolute;
    top: 20px;
    right: 30px;
    background-color: rgb(170, 30, 87);
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    border: none;
    z-index: 10;
}

.btn-top-right:hover {
    background-color: rgb(191, 86, 129);
}