/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Layout Principal */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f7f7f7;
    color: #333;
    line-height: 1.6;
    padding: 40px;
    font-size: 16px;
}

.footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 20px 0;
    width: 100%;
    box-sizing: border-box;
}

.footer .a-link {
    text-decoration: underline;
    color: white;
}

.footer .a-link:hover {
    color: #ddd; /* Cor mais clara ao passar o mouse */
}

@media screen and (min-width: 526px) {
    .navbar .img-logo {
        display: none;
    }
}

@media screen and (max-width: 525px) {
    .navbar h1 {
        display: none;
    }
    .navbar  {
        display: flex;
        justify-content: space-between;
    }
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #333;
    padding: 10px 20px; /* Ajuste para espaçamento interno */
    z-index: 1000; /* Certifica-se de que a barra de navegação fique no topo */
    display: flex;
    justify-content: space-between; /* Espaça o conteúdo entre as extremidades */
    align-items: center; /* Centraliza verticalmente */
}

/* Adiciona margem ao formulário para evitar sobreposição */
#section-form {
    margin-top: 70px; /* Ajuste de acordo com a altura do navbar */
}

/* Estilo do título */
.navbar h1 {
    color: white;
    font-size: 2em;
    font-weight: 600;
    margin: 0;
}

/* Estilo do botão */
.navbar .navbar-button {
    text-decoration: none; /* Remove o sublinhado */
    color: white;
    background-color: #28a745; /* Cor do botão */
    padding: 10px;
    border-radius: 5px;
    font-size: 1em;
    font-weight: 600;
    transition: background 0.3s ease, transform 0.2s ease;
}

.navbar .navbar-button:hover {
    background-color: #218838; /* Cor ao passar o mouse */
    transform: scale(1.05); /* Efeito de crescimento */
}

/* Formulário */
form {
    border: 1px solid #ddd;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 37px 67px 0px rgba(0, 0, 0, 0.076);
    max-width: 600px;
    margin: 5em auto 30px;
    transition: all 0.3s ease-in-out;
    background: rgba(255, 255, 255, 0.3); /* Cor de fundo transparente */
    backdrop-filter: blur(15px); /* Efeito de desfoque */
}

form label {
    font-weight: 600;
    display: block;
    margin-bottom: 8px;
    font-size: 1em;
    color: #333;
}

form input, form button {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1em;
    background-color: #f7f7f7;
    color: #333;
    transition: border 0.3s ease;
}

form input:focus {
    border-color: #333;
    outline: none;
}

form button {
    background: #333;
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: 600;
    transition: background 0.3s ease, transform 0.2s ease;
}

form button:hover {
    background: #28a745;
    transform: scale(1.05);
}

/* Tabela */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
    font-size: 1em;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

table thead {
    background: #333;
    color: #fff;
    text-align: left;
}

table th, table td {
    padding: 14px;
    text-align: left;
}

table tbody tr:nth-child(odd) {
    background: #f9f9f9;
}

table tbody tr:hover {
    background: #28a745;
    color: #fff;
    transition: background 0.3s ease;
}

table button {
    background: #ffc107;
    border: none;
    color: #333;
    padding: 6px 12px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s ease, transform 0.2s ease;
}

table button:hover {
    background: #e0a800;
    transform: scale(1.05);
}

.quantity-header {
    cursor: pointer;
}

.table-container {
    position: absolute;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 3em;
}

#inventory-table {
    width: 100%;
    border-collapse: collapse;
    overflow-x: auto;
    display: block;
}

#inventory-table th, 
#inventory-table td {
    text-align: center; /* Centraliza o texto horizontalmente */
    padding: 8px;
    border: 1px solid #ddd;
}

#inventory-table caption {
    text-align: center;
    font-weight: bold;
    margin-bottom: 10px;
}

#inventory-table {
    overflow-x: auto;
    display: block;
}

.sort-quantity-asc, #sort-quantity-desc {
    position: relative;
    background-color: #333;
    padding: 10px;
    color: #fff;
    cursor: pointer;
}

.sort-total-asc, #sort-total-desc {
    position: relative;
    background-color: #333;
    padding: 10px;
    color: #fff;
    cursor: pointer;
}

.div-buttons {
    display: flex;
    justify-content: space-between;
    flex-direction: row;
}

/* Layout dos Chips */
.client-list h2 {
    text-align: center;
    font-size: 2em;
}

#client-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
    justify-content: center;
}

#client-buttons .chip {
    background: #333;
    color: #fff;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 1em;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
    display: inline-block;
}

#client-buttons .chip:hover {
    background: #218838;
    transform: scale(1.05);
}

#client-buttons .chip:active {
    background: #1c7d2f;
}


.delete-button {
    background-color: #e60000;
    color: #fff;
}

.delete-button:hover {
    background-color: #c50000;
}

/* Layout dos Botões de Controle */
#controls {
    text-align: center;
    margin-top: 5em;
}

#controls button {
    background: #28a745; /* Cor de fundo padrão */
    color: #fff;
    border: none;
    padding: 12px 25px;
    border-radius: 5px;
    font-size: 1.1em;
    margin: 10px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}

/* Estilo do botão quando desabilitado */
#controls button:disabled {
    background: #000; /* Cor cinza para indicar desabilitado */
    color: #ddd; /* Cor do texto mais clara */
    cursor: not-allowed; /* Cursor indicando que o botão não pode ser clicado */
}

/* Efeito de hover quando o botão está habilitado */
#controls button:hover:not(:disabled) {
    background: #c50000;
    transform: scale(1.05);
}

/* Efeito de hover para os botões 'Imprimir Relatório do Produto' e 'Imprimir Relatório Geral' */
#controls #print-client-report:hover:not(:disabled),
#controls #print-all-report:hover:not(:disabled) {
    background: #007bff; /* Cor de fundo personalizada para o hover */
    transform: scale(1.05); /* Mantém o efeito de aumento */
}

/* Efeito de hover quando o botão de excluir está habilitado */
#controls .delete-button:hover {
    background-color: #c50000;
}

/* Adicionando os botões de Excluir */
#delete-client,
#delete-all,
#print-client-report {
    margin: 0;
}

/* Responsividade */
@media (max-width: 768px) {
    body {
        padding: 15px;
    }

    form, table {
        width: 100%;
    }

    table th, table td {
        font-size: 0.9em;
        padding: 12px;
    }

    h1 {
        font-size: 1.8em;
    }
}

