/* @font-face {
    font-family: 'MinhaFonte';
    src: url('font/Rewritten_By_Machine.otf') format('truetype');
} */

/* Estilo para alinhar o botão Imprimir à direita */
#search {
    background-size: contain; /* Ajusta a imagem para caber completamente */
    background-position: left center; /* Centraliza a imagem verticalmente e a posiciona à esquerda */
    box-sizing: border-box; /* Inclui o padding no cálculo da largura total */
    border-color: #a19797;
    opacity: 2.0;
}

#googleimage{
    height: 30px;
    padding-right: 10px;
}

.button-container {
    display: flex;
    justify-content: flex-end;
    margin-top: 10px;
}

@media print {
    body::before {
        display: none; /* Remove a imagem de fundo na impressão */
    }
}

/* Estilo para telas desktop */
body {
    font-family: 'MinhaFonte', Arial, sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    position: relative;
    z-index: 0;
}

body::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('img/bg.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.2; /* Define a opacidade da imagem */
    z-index: -1; /* Coloca a imagem atrás do conteúdo do body */
}

.login-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
}

h1 {
    text-align: center;
    margin-bottom: 20px;
}

#username-input,
#password-input {
    width: -webkit-fill-available;
    padding: 15px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

#login-button {
    background-color: #007bff;
    color: white;
    border: none;
    cursor: pointer;
    padding: 15px 20px;
    border-radius: 5px;
    font-size: 16px;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    white-space: nowrap;
    padding: 10px;
    border: 1px solid #ddd;
}

th {
    background-color: #f2f2f2;
}

tr:hover {
    background-color: #f5f5f5;
}

.btn {
    display: inline-block;
    margin-bottom: 10px;
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.btn-danger {
    background-color: #dc3545;
}

/* Estilo para telas desktop */
.nav-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 200px;
    height: 100%;
    background-color: #333;
    overflow: auto;
    padding: 20px;
    box-sizing: border-box;
    transition: transform 0.3s ease;
    transform: translateX(0);
}

.logo img {
    width: 100px;
    height: 70px;
}

.logo {
    color: white;
    text-align: center;
    margin-bottom: 20px;
}

.menu a {
    display: block;
    padding: 10px;
    color: white;
    text-decoration: none;
    border-bottom: 1px solid #555;
}

.menu a:hover {
    background-color: #444;
}

.content {
    margin-left: 220px;
    padding: 20px;
    transition: margin-left 0.3s ease;
}

.content.shifted {
    margin-left: 0;
}

h2 {
    margin-top: 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.search-container {
    display: flex;
    align-items: center;
    text-align: right;
}

.search-container input[type="text"] {
    padding: 5px;
    margin-right: 5px;
    width: auto;
}

.search-container button {
    padding: 5px 10px;
}

/* Estilo para campos do formulário */
input[type="text"],
textarea,
select {
    width: 50%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

input[type="number"] {
    width: 50px;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

select {
    height: 38px;
}

label {
    display: block;
    margin-bottom: 5px;
}

button,
input[type="submit"] {
    background-color: #007bff;
    color: white;
    border: none;
    cursor: pointer;
    padding: 10px 20px;
    border-radius: 5px;
}

footer {
    margin-top: auto;
}

button.menu-button {
    display: none;
    width: fit-content;
}

/* Estilo para telas mobile */
@media screen and (max-width: 768px) {
    .logo {
        text-align: right;
    }
    .nav-container {
        text-align: right;
        width: 100%;
        height: 100%;
        position: fixed;
        left: -200px;
    }

    .nav-container.hidden {
        transform: translateX(-270px);
    }

    .content {
        margin-left: 0;
    }

    table {
        display: block;
        overflow-x: auto;
    }

    button.menu-button {
        display: block;
        position: fixed;
        top: 10px;
        left: 10px;
        color: white;
        border: none;
        padding: 10px 15px;
        border-radius: 5px;
        cursor: pointer;
        z-index: 1000;
    }
}
