header{
    height: 45px;
}
/* Garante que o H1 do header fique alinhado com o botão de voltar */
header .header-cima {
    display: flex;
    align-items: center;
    position: relative;
    justify-content: center; 
    padding-right: 40px; 
    height: 70px;
}

header h1 {
    color: #fff;
    font-size: 1.5rem;
}

/* Container principal que segura os formulários */
#container-login {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 40px 15px 0 15px; 
    min-height: 80vh;
}

/* Estilo do Card do Formulário */
.form-login, .form-confirmacao {
    width: 100%;
    max-width: 450px; 
    text-align: center;
    background-color: rgba(0, 0, 0, 0.059);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-sizing: border-box;
    margin: 25px 0 0 0;
}

/* Títulos dos formulários */
.form-login h2, .form-confirmacao h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    color: #000000; 
    margin-bottom: 10px;
}

/* Subtítulos */
.form-login .subtitulo, .form-confirmacao .subtitulo {
    font-family: 'Roboto', sans-serif;
    color: #252525; 
    margin-bottom: 30px;
    line-height: 1.5;
}

/* Campos de input */
.campo-form {
    text-align: left;
    margin-bottom: 5px;
}

.campo-form label {
    display: block;
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    color: #444444; 
    margin-bottom: 8px;
    padding-top: 15px;
}

.campo-form input {
    width: 100%;
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Roboto', sans-serif;
    box-sizing: border-box;
    background-color: rgba(0, 0, 0, 0.3); 
    color: #383838; 
}

.campo-form input::placeholder {
    color: #00000080; 
}

/* Botões */
.btn-avancar, .btn-confirmar {
    width: 100%;
    padding: 15px;
   background-color: rgb(92, 12, 142); 
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 10px;
    transition: background-color 0.2s;
}

.btn-avancar:hover, .btn-confirmar:hover {
    background-color: rgb(92, 12, 142);
}

/* Texto de segurança */
.texto-seguranca {
    font-family: 'Roboto', sans-serif;
    font-size: 0.8rem;
    color: #343434; 
    margin-top: 30px;
    line-height: 1.5;
    margin-bottom: 0;
    padding-bottom: 0;
}

/* Formulário de confirmação começa escondido */
.form-confirmacao {
    display: none; 
}

.form-confirmacao input {
    text-align: center;
    font-size: 1.5rem;
    letter-spacing: 0.5em;
}

.link-reenviar {
    display: inline-block;
    margin-top: 20px;
    font-family: 'Roboto', sans-serif;
    color: #632c72; 
    font-size: 0.9rem;
    text-decoration: none;
}
.link-reenviar:hover {
    text-decoration: underline;
}

/* Tela de Boas-Vindas (Após o login) */
.boas-vindas {
    text-align: center;
    color: #000000;
    background-color: rgba(0, 0, 0, 0.2);
    padding: 40px;
    margin: 25px 0 0 0;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.boas-vindas h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.8rem;
}
.boas-vindas p {
    color: #2b2b2b;
    font-size: 1.1rem;
}
.btn-sair-conteiner {
    display: flex;           /* <--- ADICIONE ESTA LINHA */
    justify-content: center; /* <--- ADICIONE ESTA LINHA (para centrar horizontalmente) */
    align-items: center;     /* (Sua linha original, para centrar verticalmente) */
}
#btn-sair {
    background-color: #8A2BE2;
    color: white;
    padding: 4px 25px;
    border: none;
    border-radius: 25px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    margin-top: 2px;
    transition: background-color 0.2s;
    
}
#btn-sair:hover {
    background-color: #9932CC;
}

#menu {
    position: fixed;
    bottom: 0;
    left: 0;
    height: 65px;
    width: 100%;
    z-index: 2000;
    display: flex;
    justify-content: space-around;
    align-items: center;
    background-color: rgba(64, 4, 102, 0.738);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.3);
}

.menu-inicio {
    flex: 1;
    text-align: center;
}

.menu-inicio a {
    display: flex;
    flex-direction: column; 
    align-items: center; 
    justify-content: center; 
    padding: 8px 0; 
    color: #e0e0e0;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

/* Estilo para o ícone SVG */
.menu-inicio a svg {
    width: 24px;
    height: 24px;
    margin-bottom: 4px;
}

/* Estilo para o texto */
.menu-inicio a span {
    font-size: 12px;
    font-weight: 500;
}

.menu-inicio a:hover, .menu-inicio a:active {
    background-color: rgba(255, 255, 255, 0.049);
    color: #ffffff;
}
/*  estilo para Mensagem de Erro  */
.mensagem-erro {
    padding-top: 10px;
    color: #ff4d4d; 
    font-weight: bold;
    font-size: 0.9rem;
    margin-top: -10px; 
    margin-bottom: 15px; 
    text-align: center;
}
/* ================================== */
/* --- ESTILOS DO HISTÓRICO DE PEDIDOS --- */
/* ================================== */

.historico-container {
    /* Ocupa o espaço do container de login */
    width: 100%;
    max-width: 450px; 
    box-sizing: border-box;
    padding: 20px 15px; /* Menos padding que o form de login */
}

.historico-header {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 24px;
    padding: 0 10px; /* Alinha com os cards */
}

.historico-header h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    color: #000000;
    margin: 0;
}

/* Botão Sair - estilo sutil */
.btn-sair-historico {
    background-color: #f0f0f0; /* Fundo cinza claro */
    color: #333; /* Texto escuro */
    border: 1px solid #ddd;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-family: 'Roboto', sans-serif;
    cursor: pointer;
    transition: background-color 0.2s;
}
.btn-sair-historico:hover {
    background-color: #e0e0e0;
}


#lista-de-pedidos {
    display: flex;
    flex-direction: column;
    gap: 16px; /* Espaço entre os cards de pedido */
}

/* Mensagem de "Buscando..." ou "Vazio" */
.historico-status {
    text-align: center;
    color: #555; /* Cor de texto do seu form */
    font-size: 1rem;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.059); /* Fundo do seu form de login */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
}
.historico-status.erro {
    color: #d9534f;
    font-weight: 600;
}

/* O CARD DE CADA PEDIDO */
.pedido-card {
    background-color: #fff; /* Fundo branco para destacar */
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    overflow: hidden;
    border: 1px solid #eee;
}

.pedido-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 16px;
    background-color: #f9f9f9;
    border-bottom: 1px solid #eee;
}

.pedido-card-header div {
    display: flex;
    flex-direction: column;
}

.pedido-data {
    font-weight: 700;
    color: #333;
    font-size: 1.1rem;
    font-family: 'Poppins', sans-serif;
}

/* O "chip" de status */
.pedido-status {
    font-size: 0.8rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 12px;
    margin-top: 6px;
    align-self: flex-start;
    text-transform: capitalize;
}
/* Status: Recebido (Baseado no seu roxo) */
.status-recebido {
    background-color: #e8dff5;
    color: rgb(92, 12, 142);
}
/* Status: Concluído */
.status-concluído {
    background-color: #d4edda;
    color: #155724;
}
/* Status: Saiu para Entrega */
.status-saiu-para-entrega {
    background-color: #cce5ff;
    color: #004085;
}

.pedido-valor {
    font-weight: 700;
    color: #333;
    font-size: 1.1rem;
    font-family: 'Poppins', sans-serif;
}

.pedido-card-body {
    display: flex;
    flex-direction: column;
}

/* Botão "Ver Itens" */
.btn-ver-itens {
    background: none;
    border: none;
    color: rgb(92, 12, 142); /* Cor roxa principal */
    font-weight: 700;
    padding: 12px 16px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    font-size: 1rem;
    font-family: 'Roboto', sans-serif;
}

.btn-ver-itens svg {
    transition: transform 0.2s ease;
    stroke: rgb(92, 12, 142);
}
/* Gira a seta quando aberto */
.btn-ver-itens.aberto svg {
    transform: rotate(180deg);
}

/* O container que guarda os itens (escondido) */
.itens-container {
    display: none; /* Começa fechado */
    padding: 0 16px 16px 16px;
    border-top: 1px solid #f0f0f0;
    margin: 0 16px;
}

.item-status {
    font-size: 0.9rem;
    color: #777;
    padding-top: 10px;
}
.item-status.erro {
    color: #d9534f;
}

/* Cada item (ex: 2x Combo 1) */
.item-do-pedido {
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
    color: #444;
    padding: 8px 0;
    border-bottom: 1px solid #f9f9f9;
}
.item-do-pedido:last-child {
    border-bottom: none;
}

.item-obs {
    font-size: 0.85rem;
    color: #888;
}