/* style.css */

/* General Styles */
body {
    margin: 0;
    font-family: "Barlow", sans-serif;
    font-weight: 600;
    font-style: normal;
    background-color: rgba(0, 0, 0, 0.5);
}

.container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.pos-window {
    display: flex;
    flex-direction: row;
    width: 85%;
    max-width: 1600px;
    height: 90%;
    max-height: 900px;
    background-image: linear-gradient(to bottom right, #47002ccc, #000000cc, #003147cc);
    border: 1px solid #0d0010;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    position: relative;
}

.sidebar {
    width: 20%;
    padding: 20px;
    overflow-y: auto;
    position: relative;
}

.order-summary {
    width: 25%;
    padding: 20px;
    position: relative;
}

.main-content {
    width: 55%;
    display: flex;
    flex-direction: column;
    position: relative;
}

@media (max-width: 1200px) {
    .pos-window {
        width: 90%;
        height: 90%;
    }
}

@media (max-width: 768px) {
    .pos-window {
        flex-direction: column;
        width: 95%;
        height: 95%;
    }
    .sidebar, .order-summary, .main-content {
        width: 100%;
        height: auto;
    }

    .payment-methods-container {
        flex-direction: column;
    }

    .payment-methods button {
        width: 100%;
        margin-bottom: 10px;
    }

    .payment-methods button:last-child {
        margin-bottom: 0;
    }

    .close-button {
        position: static;
        margin-top: 10px;
    }
}

/* User Info */
.user-info {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.user-info img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-right: 15px;
}

.user-info h2 {
    margin: 0;
    font-size: 18px;
    color: #ff009d;
    text-transform: uppercase;
}

.user-info p {
    margin: 0;
    color: #c20078;
    text-transform: uppercase;
}

/* Navigation Menu */
#category-nav {
    display: block;
}

nav h3 {
    font-size: 16px;
    margin-bottom: 15px;
    color: #ff009d;
    text-transform: uppercase;
}

nav ul {
    list-style: none;
    padding: 0;
}

nav ul li {
    padding: 10px;
    cursor: pointer;
    border-radius: 5px;
    color: #ff009d;
    text-transform: uppercase;
}

nav ul li.active,
nav ul li:hover {
    background-image: linear-gradient(to bottom right, #47002ccc, #000000cc);
    color: #fff;
    border: 0.1px solid #ff009d55;
}

/* Footer in Sidebar */
.sidebar .footer {
    position: absolute;
    bottom: 20px;
    width: calc(100% - 40px);
    padding: 10px 0;
    text-align: left;
}

.sidebar .footer a {
    color: #ff009d;
    text-decoration: none;
    text-transform: uppercase;
}

.sidebar .footer a:hover {
    text-decoration: underline;
}

/* Search Bar */
.search-bar {
    display: flex;
    padding: 20px;
    position: sticky;
    top: 0;
    z-index: 1;
}

.search-bar input {
    flex-grow: 1;
    padding: 10px;
    border-radius: 25px 0 0 25px;
    border: 1px solid #ff009d55;
    outline: none;
    color: #ff009d;
    background-color: #00000000;
    text-transform: uppercase;
}

.search-bar input::placeholder {
    color: #ff009d;
}

.search-bar button {
    padding: 10px 20px;
    border: 1px solid #ff009d55;
    background-color: #a700672f;
    color: #fff;
    border-radius: 0 25px 25px 0;
    cursor: pointer;
    transition: background-color 0.3s;
    text-transform: uppercase;
}

.search-bar button:hover {
    background-color: #ff009d;
}

/* Menu Items */
.menu-items {
    display: flex;
    flex-wrap: wrap;
    color: #fff;
    justify-content: flex-start;
    overflow-y: auto;
    padding: 20px;
    padding-bottom: 70px;
}

.menu-item {
    width: 30%;
    background-image: linear-gradient(to bottom right, #47002ccc, #000000cc, #003147cc);
    border: 1px solid #ff009d55;
    margin: 1.5%;
    padding: 15px;
    border-radius: 5px;
    box-sizing: border-box;
    text-align: center;
    transition: transform 0.2s;
}

.menu-item:hover {
    transform: scale(1.05);
}

.menu-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    margin-bottom: 10px;
}

.menu-item h3 {
    margin: 0 0 10px 0;
    color: #ffffff;
    text-transform: uppercase;
}

.menu-item-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.menu-item .price {
    font-size: 16px;
    font-weight: bold;
    color: #ff009d;
    text-transform: uppercase;
}

.menu-item .add-to-cart {
    background-color: #a700672f;
    color: #fff;
    border: 1px solid #ff009d55;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    text-transform: uppercase;
}

.menu-item .add-to-cart i {
    margin-right: 5px;
}

.menu-item .add-to-cart:hover {
    background-color: #ff009d;
}

/* Custom Scrollbar */
.menu-items::-webkit-scrollbar,
#cart-items::-webkit-scrollbar {
    width: 8px;
}

.menu-items::-webkit-scrollbar-track,
#cart-items::-webkit-scrollbar-track {
    background: #000000cc;
}

.menu-items::-webkit-scrollbar-thumb,
#cart-items::-webkit-scrollbar-thumb {
    background: #00b4ff;
    border-radius: 4px;
}

/* Order Summary */
.order-summary-header {
    margin-bottom: 10px;
    color: #00b4ff;
    text-transform: uppercase;
}

.order-summary h2 {
    margin-top: 0;
    color: #00b4ff;
    text-transform: uppercase;
}

#cart-items {
    max-height: 350px;
    overflow-y: auto;
    color: #00b4ff;
    background-color: rgba(0, 0, 0, 0.2);
    padding: 10px;
    border-radius: 5px;
}

.cart-item {
    border-bottom: 1px solid #0073a8cc;
    padding: 10px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.cart-item p {
    margin: 0;
    text-transform: uppercase;
}

.cart-item .controls {
    display: flex;
    align-items: center;
}

.cart-item .controls button {
    background-color: #001823cc;
    border: 1px solid #0073a8cc;
    color: #fff;
    padding: 8px 10px;
    margin-left: 5px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.cart-item .controls button:hover {
    background-color: #00b4ff;
}

.cart-item .controls span {
    margin: 0 20px;
    font-size: 16px;
}

/* Payment Methods */
.payment-methods {
    margin-top: 10px;
    color: #00b4ff;
}

.payment-methods h3 {
    margin-bottom: 10px;
    text-transform: uppercase;
}

.payment-methods-container {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.payment-methods button {
    width: 48%;
    padding: 10px;
    background-color: #001823cc;
    border: 1px solid #0073a8cc;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
    color: #fff;
    text-transform: uppercase;
}

.payment-methods button.selected {
    background-image: linear-gradient(to bottom right, #0092d6cc, #000000cc);
}

.payment-methods button:hover {
    background-image: linear-gradient(to bottom right, #0092d6cc, #000000cc);
}

/* Bill Calculation */
.bill {
    margin-top: 10px;
    color: #00b4ff;
}

.bill-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.bill-item.total {
    font-weight: bold;
    font-size: 16px;
}

/* Place Order Button */
#place-order {
    width: 100%;
    padding: 15px;
    background-color: #001823cc;
    color: #fff;
    border: 1px solid #0073a8cc;
    border-radius: 10px;
    margin-top: 10px;
    cursor: pointer;
    transition: background-color 0.3s;
    text-transform: uppercase;
}

#place-order:disabled {
    background-color: #000000cc;
    cursor: not-allowed;
}

#place-order:hover:not(:disabled) {
    background-image: linear-gradient(to bottom right, #0092d6cc, #000000cc);
}

/* Global Close Button */
.close-button-global {
    width: 30px;
    height: 30px;
    background-color: #ffd700;
    color: #000;
    border: none;
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s;
    border-radius: 5px;
    z-index: 1000;
}

.close-button-global:hover {
    background-color: #ffc107;
}

.close-button-global i {
    font-size: 20px;
    pointer-events: none;
}

/* Main Footer */
.main-footer {
    height: 50px;
}
