/* Paleta de Cores */
:root {
    --primary-color: #EA1D2C; /* Vermelho iFood */
    --secondary-color: #555;
    --background-color: #F8F8F8;
    --card-background: #FFFFFF;
    --border-color: #E0E0E0;
}

/* Estilos Globais */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--background-color);
    margin: 0;
    padding: 0;
    color: var(--secondary-color);
}

.container {
    max-width: 900px;
    margin: 20px auto;
    background-color: var(--card-background);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Seções e Títulos */
.section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: #FDFDFD;
}

h1 {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 1rem;
}

h1 span {
    color: var(--secondary-color);
}

h2, h3 {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
    margin-top: 0;
}

/* Formulários e Botões */
form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

input[type="text"], input[type="number"], select, button {
    padding: 12px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    font-size: 1rem;
    transition: all 0.3s ease;
}

input[type="text"]:focus, input[type="number"]:focus, select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 5px rgba(234, 29, 44, 0.5);
    outline: none;
}

button {
    background-color: var(--primary-color);
    color: white;
    font-weight: bold;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
}

button:hover {
    background-color: #C01B27;
}

/* Mensagens de Status */
.message {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
/*
    margin-top: 1rem;
*/
    padding: 1rem;
    border-radius: 6px;
    font-weight: bold;
}

.success {
    background-color: #d4edda;
    color: #155724;
    border-color: #c3e6cb;
}

.error {
    background-color: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
}

/* Estilos para o Dashboard, Listas e Itens de Menu */
#dashboard-sections {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

#restaurantes-list, #menu-list, #track-result {
    margin-top: 15px;
    text-align: left;
}

#restaurantes-list h3, #menu-list h3, #track-result h3 {
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.5rem;
    margin-top: 0;
}

#restaurantes-list div, #track-result p {
    padding: 10px;
    border-bottom: 1px solid var(--border-color);
}

#restaurantes-list div:last-child {
    border-bottom: none;
}

.menu-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.menu-item:last-child {
    border-bottom: none;
}

.menu-item span {
    font-size: 1rem;
}

.menu-item img {
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

/* Responsividade Básica */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
        margin: 10px;
    }
    h1 {
        font-size: 2rem;
    }
    input[type="text"],
    input[type="password"] {
        font-size: 16px !important;
    }
}


