/* Estilo geral do corpo */
body {
    background-color: #f5f5f5;
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

.container {
    display: flex;
    justify-content: space-between;
    padding: 20px;
}

.column {
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 10px;
    margin: 10px;
    flex: 1;
    min-width: 250px;
    max-width: 300px;
    padding: 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.column h2 {
    text-align: center;
    margin: 0; /* Remova a margem */
    padding: 15px;
    color: white;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    background: linear-gradient(to right, #ff7e5f, #feb47b);
    font-size: 1.2em; /* Ajuste o tamanho do texto */
}

#novos-pedidos h2 {
    background: linear-gradient(to right, #ff7e5f, #feb47b);
}

#em-preparo h2 {
    background: linear-gradient(to right, #ff7e5f, #feb47b);
}

#retirada-motoboy h2 {
    background: linear-gradient(to right, #ff7e5f, #feb47b);
}

#em-entrega h2 {
    background: linear-gradient(to right, #ff7e5f, #feb47b);
}

#finalizado h2 {
    background: linear-gradient(to right, #ff7e5f, #feb47b);
}

.column h2 .count {
    background-color: #666666; /* Background color changed to darker gray */
    color: #fff; /* Text color remains white */
    font-size: 0.6em;
    margin-left: 10px;
    padding: 2px 6px;
    border-radius: 50%;
    display: inline-block;
}

.card-container {
    padding: 0 10px; /* Adiciona espaçamento nas laterais dos cards dentro das colunas */
}

.card {
    position: relative; /* Ensure the card's position is relative for the pseudo-element to be positioned correctly */
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin: 10px 10px; /* Ajuste o valor de margin para adicionar espaçamento nas laterais */
    padding: 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden; /* Ensure the pseudo-element is contained within the card */
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5%; /* Adjust height for the desired margin */
    background: linear-gradient(to right, #ff9900, #ffcc00); /* Gradient color */
    border-top-left-radius: 5px; /* Match card border radius */
    border-top-right-radius: 5px; /* Match card border radius */
}

.card:hover {
    transform: translateY(-5px);
}

.card-header {
    display: flex;
    align-items: center; /* Ensure vertical alignment */
}

.card .bairro {
    font-weight: bold; /* Ensure the text is bold */
    font-size: 1.1em;
    color: #333;
    max-width: 150px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card .pedido-id {
    background: linear-gradient(to right, #ff7e5f, #feb47b); /* Gradient color to match header */
    color: #ffffff; /* Change text color to white */
    font-weight: bold;
    padding: 5px 10px; /* Padding to increase size */
    border-radius: 10px; /* More rounded borders */
    font-size: 0.9em; /* Increase font size */
    display: inline-block; /* Ensure it displays correctly with padding and border-radius */
    text-align: center; /* Center the text */
    margin-right: 15px; /* Increase spacing between ID and name */
    margin-left: 0px; /* Optional: Add left margin if needed */
    margin-top: 10px;
    margin-bottom: 10px;
}

.card .cliente {
    margin-top: 0; /* Remove top margin */
    font-size: 0.9em;
    color: #333; /* Change text color to dark */
    font-weight: 400;
    padding-left: 0; /* Remove left padding */
}

/* Estilos para as classes de vendedor aplicadas ao card */
.card.app {
    background-color: rgba(204, 122, 0, 0.05);
}

.card.site {
    background-color: rgba(0, 0, 128, 0.05);
}

.card.default {
    background-color: rgba(76, 175, 80, 0.05);
}

/* Contêiner para vendedor e retirada */
.vendedor-container {
    display: flex;
    align-items: center;
    margin-top: 5px;
}

.card .vendedor {
    padding: 3px 8px;
    border-radius: 12px;
    display: inline-block;
    font-size: 0.8em;
    font-weight: 500;
}

/* Estilo para a label "Retirada" */
.retirada {
    background-color: #000;
    color: #fff;
    padding: 3px 8px;
    border-radius: 12px;
    display: inline-block;
    font-size: 0.8em;
    font-weight: 500;
    margin-left: 10px;
}

.card .footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.card .horario {
    font-size: 0.85em;
    color: #666;
    margin-right: auto;
}

/* Ícones no card */
.card .icons {
    display: flex;
    align-items: center;
    gap: 10px;
}

.card .icons i {
    cursor: pointer;
    font-size: 1.2em;
}

.card .icons .cancel {
    color: #f44336;
}

.card .icons .print {
    color: #000;
}

#popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

#popup {
    position: fixed;
    top: 0;
    right: 0;
    width: 40%;
    height: 100%;
    padding: 20px;
    background-color: #ffffff;
    box-shadow: -2px 0px 10px rgba(0, 0, 0, 0.2);
    border-radius: 0;
    z-index: 1001;
    overflow-y: auto;
}

/* Estilo do conteúdo do popup */
.popup-content {
    padding: 0;
}

.popup-content h2 {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.popup-content select {
    width: auto;
    padding: 5px;
    font-size: 14px;
}

.popup-content h3 {
    margin-top: 20px;
    font-size: 1.2em;
    color: #333;
}

.popup-content p, .popup-content ul, .popup-content table {
    margin: 5px 0;
    color: #555;
}

.popup-content ul {
    padding-left: 20px;
}

.popup-content ul li {
    margin-bottom: 10px;
    font-size: 1em;
    color: #555;
}

/* Botão de fechamento do popup */
.close-button {
    cursor: pointer;
    color: #aaa;
    float: right;
    font-size: 1.5em;
    font-weight: bold;
}

.close-button:hover {
    color: #000;
}

/* Estilo do botão Chamar Uber */
.chamar-uber {
    background-color: #ff6600;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 1em;
    cursor: pointer;
    border-radius: 5px;
    margin-top: 20px;
}

/* Estilo para exibir o card piscando */
@keyframes flash {
    0% { background-color: #ffffff; }
    50% { background-color: #dff0d8; }
    100% { background-color: #ffffff; }
}

.flash {
    animation: flash 1s infinite;
}

/* Estilo para esconder o card */
.hide {
    display: none;
}

/* Estilo do ícone de refresh */
.refresh-icon {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: #4caf50;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}