html, body {
    height: 100%; /* Define a altura total da tela */
    margin: 0; /* Remove margens para garantir que o fundo cubra toda a tela */
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(-45deg, #b60909, rgb(51, 43, 43), black);
    background-size: 400% 400%; /* Ajusta o tamanho do fundo para cobrir a tela */
    animation: animate 15s ease infinite;
}

header {
    color: white;
    padding: 15px;
    text-align: center;
}

main {
    max-width: 900px;
    margin: 20px auto;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

h1, h2 {
    margin: 0;
}

h2 {
    margin-bottom: 20px;
    font-size: 1.5em;
}

.form-section, .search-section, .order-list-section {
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    margin-top: 5px;
}

input[type="text"], input[type="date"], input[type="time"], select, textarea {
    width: 100%;
    padding: 8px;
    border-radius: 4px;
    border: 1px solid #ccc;
    box-sizing: border-box;
}

textarea {
    height: 100px;
    resize: vertical;
}

.radio-group {
    display: flex;
    align-items: center;
}

.radio-group input {
    margin-right: 10px;
    margin-top: 6px;
}

.radio-group label {
    margin-right: 20px;
}

button {
    padding: 10px 15px;
    background-color: #000000;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 1rem;
}

button:hover {
    background-color: #b60909;
}

.hidden {
    display: none;
}

#orderList {
    padding: 10px;
    background-color: #f9f9f9;
    border-radius: 4px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}

.order-list-section div {
    margin-bottom: 15px;
}

.tabs {
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: auto;
}

.tablink {
    background-color: #000000;
    border: none;
    color: white;
    padding: 10px 15px;
    cursor: pointer;
    margin-right: 10px;
    font-size: medium;
    margin-top: auto;
}

.tablink:hover {
    background-color: #b60909;
}

.tablink:last-child {
    margin-right: 0;
}

.tabcontent {
    display: none;
    padding: 20px;
}

.show {
    display: block;
}

.order-item {
    margin-bottom: 20px;
    border-bottom: 1px solid #ccc;
    padding-bottom: 10px;
}

@keyframes animate {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

#logo {
    max-width: 230px; /* Ajusta a logo para caber na área do cabeçalho */
    height: auto; /* Mantém a proporção da imagem */
}

header {
    display: flex;
    justify-content: center; /* Centraliza a logo horizontalmente */
}

.order-list-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Ajusta automaticamente as colunas */
    gap: 20px;
    width: 100%;
    max-width: 900px; /* Impede que os cards fiquem muito largos */
    margin: 20px auto;
    padding: 10px;
}


/* Responsividade */
@media (max-width: 600px) {
    .order-list-section {
        grid-template-columns: 1fr; /* Uma coluna em telas menores */
    }
}

.order-item {
    background-color: #f9f9f9; /* Fundo do card */
    border: 1px solid #ccc; /* Borda do card */
    border-radius: 8px; /* Cantos arredondados */
    padding: 15px; /* Espaço interno */
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1); /* Sombra do card */
    display: flex; /* Permite alinhar os itens */
    flex-direction: column; /* Alinha os itens na coluna */
}

.order-item input[type="checkbox"] {
    margin-bottom: -20px; /* Espaço abaixo do checkbox */
    align-self: start; /* Alinha o checkbox à esquerda */
    transform: scale(1.5); /* Aumenta o tamanho do checkbox */
    margin-left: 80px;
}

.order-details {
    flex-grow: 1; /* Faz as informações ocuparem o espaço restante */
}

.order-details p {
    margin: 5px 0; /* Margem entre os parágrafos */
}
