body {
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
    background: #FFF8F1;
    color: #4E342E;
}

img {
    object-fit: contain;
}

.menu-title {
    text-align: center;
    margin-top: 20px;
    color: #D84315;
}

.category-swiper {
    padding: 10px;
    margin: 20px 0;
}

.category {
    background: #FFE0B2;
    border-radius: 20px;
    font-weight: bold;
    cursor: pointer;
    text-align: center;
    transition: background 0.3s;
    user-select: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 0;
    font-size: 18px;
}

.category div {
    text-transform: capitalize;
}

.category img {
    margin-bottom: 10px;
}

.category.active {
    background: #D84315;
    color: #fff;
}

.category.active img {
    filter: invert(1);
}

.menu-section {
    padding: 20px;
    max-width: 600px;
    margin: auto;
}

.menu-items {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.menu-item {
    display: flex;
    align-items: center;
    background: #fff;
    padding: 12px;
    border-radius: 12px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: transform 0.2s ease;
}

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

.menu-item img {
    border-radius: 50%;
    margin-right: 12px;
    width: 60px;
    height: 60px;
    aspect-ratio: 1/1;
    object-fit: cover;
    background-color: #fff;
}

.details {
    flex: 1;
    text-align: left;
}

.details h4 {
    margin: 0;
    font-size: 16px;
}

.details p {
    margin: 2px 0 0;
    font-size: 13px;
    color: #888;
}

.price {
    width: 100px;
    text-align: right;
    margin-left: auto;
    font-weight: bold;
    color: #D84315;
}

.modal {
    display: none;
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
}

.modal-content {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    width: 80%;
    max-width: 400px;
    margin: 10% auto;
    text-align: center;
    position: relative;
}

.modal-content img {
    width: 200px;
    max-height: 250px;
    object-fit: contain;
}

.modal-content h3 {
    margin: 10px 0 5px;
    color: #D84315;
}

.modal-content p {
    font-size: 14px;
    color: #666;
}

.modal-content strong {
    display: block;
    margin-top: 10px;
    color: #4E342E;
}

.close {
    position: absolute;
    right: 12px;
    top: 10px;
    font-size: 20px;
    color: #999;
    cursor: pointer;
}

.feedback-container {
    text-align: center;
    margin: 30px 0 50px;
}

.feedback-button {
    background: #D84315;
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    border-radius: 24px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: background 0.3s ease;
}

.feedback-button:hover {
    background: #bf360c;
}

.modal-content input,
.modal-content textarea {
    width: 100%;
    padding: 10px;
    margin-top: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    box-sizing: border-box;
}

.submit-btn {
    background: #D84315;
    color: white;
    border: none;
    margin-top: 16px;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s ease;
}

.submit-btn:hover {
    background: #bf360c;
}

.waiter-call {
    position: fixed;
    bottom: 10px;
    right: 10px;
    background: #D84315;
    color: white;
    padding: 10px 18px;
    border-radius: 40px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: opacity 0.3s, border-radius 0.3s;
    z-index: 1000;
}

.waiter-call.shrunk {
    padding: 10px;
    border-radius: 50%;
    justify-content: center;
}

.waiter-call.shrunk .text {
    display: none;
}

.waiter-call .icon {
    font-size: 20px;
    margin-right: 8px;
}

.waiter-call.shrunk .icon {
    margin-right: 0;
}

.pulse {
    box-shadow: 0 0 0 0 rgba(216, 67, 21, 0.7);
    animation: pulseAnim 2s infinite;
}

@keyframes pulseAnim {
    0% {
        box-shadow: 0 0 0 0 rgba(216, 67, 21, 0.6);
    }

    70% {
        box-shadow: 0 0 0 12px rgba(216, 67, 21, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(216, 67, 21, 0);
    }
}

.waiter-panel {
    max-width: 600px;
    margin: 30px auto;
    padding: 20px;
    background: #fff8f1;
    border-radius: 12px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin: 20px 0;
}

.form-group label {
    font-weight: bold;
    display: block;
    margin-bottom: 8px;
    color: #D84315;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-family: inherit;
    font-size: 14px;
}

.selected-orders {
    margin-top: 30px;
    background: #fff;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.05);
}

.selected-orders h3 {
    margin: 0 0 10px;
    color: #D84315;
}

.selected-orders ul {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
}

.selected-orders li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    font-size: 14px;
}

.cashier-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
}

.table-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 16px;
}

.table-card {
    background: #ffe0b2;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    font-weight: bold;
    color: #4e342e;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.table-card h3 {
    width: 100%;
    height: 100%;
}

.table-card.active {
    background: #d84315;
    color: #fff;
}

.table-card.new-order {
    background: #ff7043;
    animation: pulseAnim 1.8s infinite;
    color: white;
}


.table-card {
    cursor: pointer;
    border: 1px solid #ccc;
    margin: 10px;
    padding: 15px;
    border-radius: 6px;
    display: inline-block;
    width: 120px;
}

.new-order {
    background-color: #ffc;
}

.active {
    background-color: #cfc;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background: white;
    padding: 20px;
    margin: 50px auto;
    max-width: 80%;
    width: 500px;
    border-radius: 10px;
    position: relative;
}

.close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
}

.submit-btn {
    margin: 5px;
    font-size: 18px;
    cursor: pointer;
}

.search-item {
    padding: 5px;
    border-bottom: 1px solid #ddd;
    cursor: pointer;
}

.search-item:hover {
    background: #eee;
}

@keyframes pulseAnim {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 112, 67, 0.7);
    }

    70% {
        box-shadow: 0 0 0 12px rgba(255, 112, 67, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 112, 67, 0);
    }
}

.modal-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.cashier-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
}

.table-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    padding: 20px;
}

.table-card {
    background: #FFE0B2;
    padding: 16px;
    border-radius: 16px;
    width: 120px;
    text-align: center;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s ease;
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.05);
}

.table-card:hover {
    transform: scale(1.05);
}

.table-card.dolu {
    background: #D84315;
    color: white;
}

.table-card.new-order {
    background: #FF7043;
    color: white;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 112, 67, 0.5);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(255, 112, 67, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 112, 67, 0);
    }
}

#addOrderSection {
    margin-top: 20px;
    display: flex;
    gap: 10px;
}

#addOrderSection input {
    flex: 1;
    padding: 8px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-family: inherit;
}

#addOrderSection button {
    background: #d84315;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
}

.order-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 10px 0;
    height: 60vh;
    overflow: auto;
    text-align: left;
}

.print-order-list {
    flex: 1;
    display: flex;
    flex-direction: column;
    margin: 10px 0;
    overflow: auto;
    text-align: left;
}

.order-r {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 10px;
    border-bottom: 1px dashed #000000;
}

.order-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 8px 0;
    padding: 8px 10px;
    background: #fff3e0;
    border-radius: 8px;
}

.search-results {
    margin-top: 10px;
    max-height: 250px;
    overflow-y: auto;
}

.search-item {
    background: #ffe0b2;
    padding: 10px;
    margin-bottom: 6px;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.2s;
}

.search-item:hover {
    background: #ffcc80;
}

.waiter-notification {
    display: none;
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #d82801;
    padding: 10px;
    border-radius: 50%;
    transition: all 0.3s ease;
    cursor: pointer;
    z-index: 9;
}

.waiter-notification:hover {
    background-color: #fff;
}

.active-call .waiter-notification {
    display: block;
}
