/* Global Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif;
    color: #333;
}

/* Sidebar Styles */
.sidebar {
    width: 250px;
    background-color: var(--secondary-color, #2c3e50);
    color: #ecf0f1;
    padding: 20px;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
}

.sidebar h2 {
    font-size: 18px;
    color: #ecf0f1;
    margin-bottom: 20px;
}

.sidebar ul {
    list-style: none;
    padding: 20px 0;
}

.sidebar ul li {
    margin-bottom: 15px;
}

.sidebar ul li a {
    color: #ecf0f1;
    text-decoration: none;
    font-size: 16px;
    display: block;
    padding: 10px;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.sidebar ul li a:hover {
    background-color: #3498db;
    color: #ffffff;
}

.main-content {
    margin-left: 250px;
    width: calc(100% - 250px);
    padding: 20px;
    background-color: #f7f8fc;
}

/* Content Box Styling */
.content {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* Menu Items Styling */
.menu-items {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
}

.menu-item-card {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 250px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.menu-item-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.menu-item-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 10px;
}

.menu-item-card h3 {
    margin-bottom: 10px;
    color: #333;
    font-size: 18px;
}

.menu-item-card p {
    font-size: 16px;
    color: #666;
}

.menu-item-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.edit-btn,
.out-of-stock-btn {
    padding: 8px 12px;
    font-size: 14px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.edit-btn {
    background-color: #3498db;
    color: #fff;
}

.out-of-stock-btn {
    background-color: #e74c3c;
    color: #fff;
}

.edit-btn:hover {
    background-color: #2980b9;
}

.out-of-stock-btn:hover {
    background-color: #c0392b;
}

/* Modal styling */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    overflow: auto;
}

.modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 20px;
    border-radius: 8px;
    width: 90%;
    max-width: 400px;
    position: relative;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 24px;
    color: #333;
    cursor: pointer;
}

.modal-content h2 {
    margin-bottom: 20px;
    font-size: 22px;
    color: #333;
}

.modal-content label {
    font-size: 14px;
    font-weight: bold;
    color: #333;
}

.modal-content input[type="text"],
.modal-content input[type="number"],
.modal-content input[type="file"] {
    width: 100%;
    padding: 10px;
    margin-top: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.submit-edit-btn {
    background-color: #3498db;
    color: #fff;
    padding: 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
    width: 100%;
}

.submit-edit-btn:hover {
    background-color: #2980b9;
}

/* Footer Styles */
.footer {
    text-align: center;
    padding: 10px;
    color: #7f8c8d;
    font-size: 12px;
    margin-top: 20px;
}

.menu-item-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 10px;
}
