/* Estilos globais do corpo da página */
body {
    font-family: sans-serif;
    margin: 0;
    background-color: #f4f5f9;
    background-image: url('/img/logo.png');
    background-repeat: no-repeat;
    background-position: center top;
    background-size: cover;
    background-attachment: fixed;
}

/* Estilos da tela de login */
.login-body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.login-container {
    background-color: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    width: 300px;
    padding-bottom: 60px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}


.login-container h2 {
    margin-bottom: 10px;
}

.login-container input {
    width: 80%;
    padding: 10px;
    margin: 0 auto 15px auto;
    border: 1px solid #ccc;
    border-radius: 4px;
    display: block;
}

.login-container button {
    width: 80%;
    padding: 10px;
    background-color: #2b3a4f;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin: 0 auto;
    display: block;
}



/* Mude esta parte para .login-footer */
.login-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    position: absolute;
    bottom: 5px;
    /* Ajuste este valor para ficar mais colado */
    left: 0;
    padding: 0 40px;
    box-sizing: border-box;
}


/* Estilo para o link "Mudar Senha" */
.link-mudar-senha {
    color: #007bff;
    text-align: left;
    /* REMOVA as linhas de posicionamento absoluto */
    /* bottom: 10px; */
    /* right: 5px; */
}

.link-mudar-senha:hover {
    text-decoration: underline;
    /* Sublinha o link ao passar o mouse */
}


/* Estilos de rodapé na tela de login */
.desenvolvedor {
    font-size: 10px;
    color: #666;
    text-align: right;
    /* REMOVA as linhas de posicionamento absoluto */
    /* position: absolute; */
    /* bottom: 0px; */
    /* right: 5px; */
}


/* Estilos de cabeçalho padrão */
.header {
    background-color: #2b3a4f;
    color: white;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    position: relative;
}

.title {
    margin: 0;
    font-size: 20px;
}

.user-info {
    margin-left: auto;
    font-weight: bold;
    color: white;
}

/* Estilos do Menu Suspenso (Dropdown) */
.menu-container {
    position: relative;
    display: flex;
    align-items: center;
    height: 100%;
}

.menu-icon {
    cursor: pointer;
    font-size: 24px;
    color: white;
    padding: 0 20px;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #3b4c61;
    min-width: 200px;
    box-shadow: 0 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 10;
    border-radius: 0 0 5px 5px;
}

.dropdown-content a {
    color: white;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    transition: background-color 0.2s;
}

.dropdown-content a:hover {
    background-color: #2b3a4f;
}

.dropdown-content.show {
    display: block;
}

.menu-link {
    display: flex;
    align-items: center;
}

.menu-icon-img {
    width: 20px;
    height: 20px;
    margin-right: 10px;
}

.disabled-link {
    cursor: not-allowed;
    opacity: 0.5;
    pointer-events: none;
}

/* Estilos do conteúdo principal e grid */
.main-content {
    margin-top: 0;
    padding-top: 0px;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
}

.grid-item {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 20px;
    text-align: center;
    text-decoration: none;
    color: #333;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.2s;
}

.grid-item:hover {
    transform: translateY(-5px);
}

.grid-item img {
    width: 50px;
    height: 50px;
    margin-bottom: 10px;
}

/* Estilos de tabelas (gerais) */
.table-container {
    width: 90%;
    margin: 20px auto;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow-x: auto;
}

.table-container h2 {
    text-align: center;
    margin-bottom: 10px;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    text-align: left;
}

table thead tr {
    background-color: #2b3a4f !important;
    color: white !important;
}

table th {
    padding: 12px;
    border: 1px solid #ddd;
    white-space: normal !important;
    vertical-align: middle;
    min-width: 100px;
}

/* Estilos de tabelas (gerais) */
table td {
    padding: 12px;
    border: 1px solid #ddd;
    /* Adicione estas 3 linhas */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

table tbody tr:nth-child(even) {
    background-color: #f2f2f2;
}

table tbody tr:hover {
    background-color: #e9e9e9;
}

/* Estilos de tabelas de dados (DataTables) */
table.dataTable thead th,
table.dataTable thead td {
    background-color: #2b3a4f !important;
    color: white !important;
    white-space: normal !important;
    vertical-align: middle;
    padding: 12px;
    border: 1px solid #ddd;
    min-width: 100px;
}

/* Garante que o texto de todas as células não quebre */
table.dataTable tbody td {
    white-space: nowrap !important;
    overflow: hidden;
    text-overflow: ellipsis;
}


/* Estilos de botões */
.button-group-container {
    margin-bottom: 10px;
}

.button-group {
    display: flex;
    gap: 10px;
}

.button {
    display: inline-block;
    padding: 10px 15px;
    background-color: #34495e;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    white-space: nowrap;
    cursor: pointer;
}

.button:hover {
    background-color: #2c3e50;
}

/* Estilos de mensagens de erro */
.error-message {
    color: red;
    font-weight: bold;
    margin-top: 10px;
}

/* Estilos do Modal (genéricos) */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
}

/* Estilos do Modal (genéricos) */
.modal-content {
    background-color: #e6f1f5;
    margin: 10% auto;
    padding: 20px;
    border: 1px solid #888;
    width: fit-content;
    /* REMOVA OU COMENTE esta linha */
    max-width: 90%;
    min-width: 100px;
    border-radius: 8px;
    position: relative;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

.close-button {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close-button:hover,
.close-button:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* Estilos de formulários e campos (genéricos) */
.search-container {
    width: 100%;
    margin-bottom: 10px;
}

#campo-pesquisa {
    width: 100%;
    max-width: 800px;
    padding: 12px 20px;
    margin: 8px 0;
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 25px;
    font-size: 16px;
    outline: none;
    transition: all 0.3s ease-in-out;
    -webkit-transition: all 0.3s ease-in-out;
    -moz-transition: all 0.3s ease-in-out;
}

#campo-pesquisa:focus {
    border-color: #007bff;
    box-shadow: 0 0 8px rgba(0, 123, 255, 0.2);
}

.modal-inputs {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.modal-inputs div {
    width: 48%;
}

.modal-inputs label,
.modal-inputs textarea,
.modal-inputs select {
    display: block;
    width: 100%;
    margin-bottom: 10px;
}

.modal-inputs textarea {
    height: 100px;
    resize: none;
}

.modal-tecnico-group {
    display: flex;
    gap: 10px;
    align-items: flex-end;
}

.modal-tecnico-group select {
    flex-grow: 1;
}

/* Estilos de campos de entrada e seleção */
#select-tecnico,
#input-data-tecnico,
#dataDevolucao,
#dataRevalidacao,
#statusRevalidacao,
#statusDevolucao {
    width: 250px;
    height: 40px;
    font-size: 16px;
    padding: 5px;
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.modal-data-status-group {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    width: 48%;
}

.modal-data-status-group input,
.modal-data-status-group select {
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 10px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 8px;
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 4px;
}


#modal-baixar-url .table-container {
    width: 100%;
    margin: 0;
    padding: 0;
}

/* Estilos para a tabela */
.tabela-seriais {
    width: 100%;
    border-collapse: collapse;
    table-layout: auto;
}

/* Remova todas as larguras fixas das colunas. */
/* O navegador irá calcular a largura com base no conteúdo. */
.tabela-seriais .col-checkbox,
.tabela-seriais .col-id,
.tabela-seriais .col-serial,
.tabela-seriais .col-status,
.tabela-seriais .col-data,
.tabela-seriais .col-tecnico {
    width: auto;
    min-width: unset;
}


/* Estilos de cores para as linhas da tabela */
.serial-em-estoque {
    background-color: #28a745 !important;
    color: #fff !important;
}

.serial-no-cliente {
    background-color: #083035 !important;
    color: #fff !important;
}

.serial-nao-encontrado {
    background-color: #dc3545 !important;
    color: #fff !important;
    font-weight: bold;
}

.serial-unifique {
    background-color: #1d07e3 !important;
    color: #fff !important;
}

.serial-com-tecnico {
    background-color: #f39e0c !important;
    color: #fff !important;
}

.serial-removido {
    background-color: #f82bbe !important;
    color: #fff !important;
}

.linha-atraso-31-60 {
    background-color: #ffcccc !important;
}

.linha-atraso-26-30 {
    background-color: #fbfb7e !important;
}

.linha-atraso-60-plus {
    background-color: #ff6666 !important;
}

.linha-ok {
    background-color: #d0fdd0 !important;
}

/* Estilo para campos de edição nas tabelas de Usuarios */
td input,
td select {
    width: 100%;
    box-sizing: border-box;
    /* Garante que o padding e a borda não aumentem o tamanho do campo */
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.linha-encontrada {
    background-color: #5ae87b !important;
    /* verde claro */
}

.linha-nao-encontrada {
    background-color: #e95b67 !important;
    /* vermelho claro */
}