/* General Styles */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
}

header {
    background-color: #FF5722;
    color: white;
    text-align: center;
    padding: 4px;
    font-size: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

main {
    display: grid;
    grid-template-rows: auto 1fr; /* Fixed row for headings and flexible content area */
    gap: 20px;
    padding: 20px;
}

.order-groups {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Flexible column layout */
    gap: 20px;
    align-items: start;
}

.order-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.status-heading {
    font-size: 18px;
    text-align: center;
    padding: 10px;
    border-radius: 5px;
    color: white;
}

.pending {
    background-color: #ff0000;
}

.processing {
    background-color: #17a2b8;
}

.assigned {
    background-color: #6f42c1;
}

.in-progress {
    background-color: #3c863e;
}

.completed {
    background-color: #28a745;
}

.order-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center; /* Center-align items */
}

.order-card {
    display: flex;
    flex-direction: column; /* Stack items vertically */
    align-items: center; /* Center-align content */
    justify-content: center; /* Vertically center content */
    padding: 20px;
    border-radius: 10px; /* Rounded corners for better visuals */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* More prominent shadow */
    background-color: #007bff; /* Default background color (blue) */
    text-align: center;
    font-size: 16px; /* Adjust font size for better readability */
    cursor: pointer;
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
    width: 200px; /* Adjusted width for more space */
    color: white; /* Text color for contrast */
    font-weight: bold;
}

.order-card img {
    width: 100px; /* Fixed size for uniformity */
    height: 100px; /* Maintain square aspect ratio */
    object-fit: cover; /* Ensure the image fits within the bounds */
    border-radius: 50%; /* Circular image for a clean look */
    margin-bottom: 10px; /* Space between image and text */
    border: 2px solid white; /* Add a border to make the image pop */
}

.order-card:hover {
    transform: translateY(-5px); /* Lift effect on hover */
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3); /* Darker shadow on hover */
    background-color: #0056b3; /* Darker blue on hover */
}

.order-card strong {
    display: block; /* Ensure each detail is displayed on its own line */
    margin: 5px 0; /* Add spacing between details */
    font-size: 24px; /* Slightly smaller for sub-text */
    font-weight: normal; /* Reduce boldness for sub-text */
}

.order-card span {
    font-size: 20px; /* Smaller font for restaurant ID and items */
    color: #f0f0f0; /* Slightly lighter text for differentiation */
}


/* Colors for Boxes Based on Status */
#pending-orders .order-card {
    background-color: #fc1010; /* Yellow for Pending */
}

#processing-orders .order-card {
    background-color: #03a9f4; /* Light Blue for Processing */
}

#assigned-orders .order-card {
    background-color: #9c27b0; /* Purple for Assigned */
}

#in-progress-orders .order-card {
    background-color: #4caf50; /* Blue for In Progress */
}

#completed-orders .order-card {
    background-color: #4caf50; /* Green for Completed */
}

.order-card:hover {
    transform: scale(1.05);
    filter: brightness(1.1); /* Slightly brighten on hover */
}

footer {
    text-align: center;
    background-color: #FF5722;
    color: white;
    padding: 4px;
    position: fixed;
    width: 100%;
    bottom: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    main {
        padding: 10px;
    }

    .order-card {
        width: 100%; /* Allow cards to span full width on small screens */
    }

    .status-heading {
        font-size: 16px; /* Adjust heading size for smaller screens */
    }
}
