body {
    font-family: "Arial", sans-serif;
    background-color: #333;
    color: white;
    text-align: center;
    margin: 0;
}

/* Login Page Styles */
.login-container {
    width: 300px;
    padding: 20px;
    margin: 100px auto;
    background: #444;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.login-container h2 {
    margin-bottom: 20px;
}

.login-container input {
    width: calc(100% - 20px);
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #555;
    background: #555;
    color: white;
    border-radius: 4px;
}

.login-container .btn {
    width: 100%;
    padding: 10px;
    border: none;
    background: #007bff;
    color: white;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

.login-container .btn:hover {
    background: #0056b3;
}

.error {
    color: #ff4d4d;
    margin-top: 10px;
}


h1 {
    font-size: 36px;
    color: #f8f9fa;
    margin: 20px;
}

.container {
    max-width: 900px;
    margin: auto;
    padding: 20px;
}

.category-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    padding: 20px;
    margin: auto;
}

.category {
    position: relative;
    width: 130px;
    height: 200px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 10px;
}

.category img {
    width: 100%;
    height: 130px;
    object-fit: cover;
    filter: brightness(70%);
}

.category-button {
    width: 100%;
    background-color: #0066cc00;
    color: white;
    font-size: 22px;
    padding: 8px;
    text-align: center;
    font-weight: bold;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.category:hover img {
    filter: brightness(100%);
}

.category:hover .category-button {
    background-color: #0055aa00;
}

.category.expanded {
    min-height: 150px;
}

.dropdown-wrapper {
    width: 100%;
    position: relative;
}

.dropdown-btn {
    width: 100%;
    height: auto;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    display: none;
    z-index: 10;
}

.menu-items {
    display: none;
    text-align: right;
    margin-top: 20px;
}

.item {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #282828;
    padding: 12px;
    border-radius: 8px;
    box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.1);
    margin: 10px auto;
    color: black;
    justify-content: space-between;
    flex-direction: row-reverse;
    max-width: 1000px;
}

.item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 5px;
    margin-left: 10px;
}

.item-info {
    text-align: right;
    flex-grow: 1;
}

.item-info strong {
    font-size: 18px;
    color: #ffffff;
}

.item-info p {
    font-size: 14px;
    color: #ffffff;
    margin: 5px 0;
}

.edit-btn,
.delete-btn,
.add-btn {
    background-color: #161616;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s ease-in-out;
    font-size: 11px;
    display: inline-block;
    margin: 5px;
}

.edit-btn:hover,
.delete-btn:hover,
.add-btn:hover {
    background-color: #424242;
}

@media (max-width: 768px) {
    .category-list {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        margin: auto;
        justify-content: center;
    }

    .category {
        width: 100%;
        height: auto;
        min-height: 300px;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
    }

    .category img {
        width: 100%;
        height: auto;
        max-height: 100%;
        object-fit: cover;
    }


    .menu-items {
        width: 100%;
        text-align: center;
    }

    .item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 15px;
        font-size: 20px;
    }

    .item img {
        width: 110px;
        height: 110px;
    }

    button {
        font-size: 20px;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .category-list {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .category {
        width: 100%;
        height: 270px;
    }

    .category img {
        height: 200px;
    }

    .menu-items {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .item img {
        width: 130px;
        height: 130px;
    }

    button {
        font-size: 20px;
    }
}

@media (min-width: 1024px) {
    .category-list {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .category {
        width: 130px;
        height: 200px;
    }

    .menu-items {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
    }

    .item img {
        width: 140px;
        height: 140px;
    }

    button {
        font-size: 22px;
    }
}