/* ------------------- General ------------------- */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0 15px;
    background-color: #f4f4f6;
    color: #333;
}

h1, h2, h3 {
    color: #222;
    margin-bottom: 10px;
}

/* ------------------- Navbar ------------------- */
nav {
    background-color: #ff6f61;
    padding: 12px 20px;
    border-radius: 5px;
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}

nav a {
    color: white;
    text-decoration: none;
    margin-right: 15px;
    font-weight: 600;
    font-size: 16px;
}

nav a:hover {
    text-decoration: underline;
}

/* ------------------- Forms ------------------- */
form {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 25px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

form input[type="text"],
form input[type="number"],
form input[type="email"],
form input[type="password"],
form textarea,
form select {
    width: 100%;
    padding: 10px 12px;
    margin-bottom: 12px;
    border-radius: 6px;
    border: 1px solid #ccc;
    box-sizing: border-box;
    font-size: 14px;
}

form button {
    background-color: #ff6f61;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.2s ease;
}

form button:hover {
    background-color: #e65b50;
}

/* ------------------- Plate Feed ------------------- */
.plate-card {
    background-color: white;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.plate-card img {
    max-width: 100%;
    border-radius: 8px;
    margin-bottom: 12px;
}

.plate-card h3 {
    margin: 0 0 6px 0;
}

.plate-card p {
    margin: 0 0 6px 0;
}

/* ------------------- Restaurant List ------------------- */
#restaurant_list div {
    background-color: #fff;
    padding: 10px 12px;
    border-radius: 6px;
    margin-bottom: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

#restaurant_list button {
    background-color: #007bff;
    color: white;
    padding: 6px 12px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s ease;
}

#restaurant_list button:hover {
    background-color: #0056b3;
}

/* ------------------- Map ------------------- */
#restaurant_map {
    width: 100%;
    height: 400px;
    border-radius: 10px;
    margin-bottom: 20px;
}

/* ------------------- Flash Messages ------------------- */
.flash {
    background-color: #fff3cd;
    border: 1px solid #ffeeba;
    padding: 12px 18px;
    border-radius: 6px;
    margin-bottom: 15px;
    color: #856404;
}

/* ------------------- Responsive ------------------- */
@media (max-width: 768px) {
    body {
        padding: 0 10px;
    }

    nav {
        flex-direction: column;
        align-items: flex-start;
    }

    form button, #restaurant_list button {
        width: 100%;
        margin-top: 8px;
    }

    #restaurant_list div {
        flex-direction: column;
        align-items: flex-start;
    }
}
