.restaurant_register {
    .col-lg-2 {
        display: flex;
        flex-direction: column;
    }
    
    .btn-group-vertical {
        display: flex;
        flex-direction: column;
        flex-grow: 1;
    }
    
    .btn-group-vertical button {
        flex-grow: 1;
        width: 100%;
        margin-bottom: 5px;
    }
    
    .btn-group-vertical button:last-child {
        margin-bottom: 0;
    }
    
    .product-container {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        justify-content: flex-start;
        padding: 0px 5px;
    }
    
    .product-btn {
        flex: 1 1 calc(25% - 10px);
        max-width: calc(353% - 15px);
        padding: 10px;
        background-color: #28a745;
        color: white;
        border: none;
        border-radius: 5px;
        cursor: pointer;
        text-align: center;
        font-size: 16px;
        height: 80px;
        vertical-align: text-bottom;
        margin-bottom: 6px;
        width: 12.5rem;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        transition: all 0.3s;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        overflow: hidden;
        text-wrap: balance;
    }
    
    .product-btn:hover {
        transform: translateY(-3px);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        background-color: #424242;
    }
    
    .product-btn:active {
        transform: translateY(1px);
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    }
    
    @media (max-width: 992px) {
        .product-btn {
            flex: 1 1 calc(33.33% - 10px);
            max-width: calc(33.33% - 10px);
        }
    }
    
    @media (max-width: 768px) {
        .product-btn {
            flex: 1 1 calc(50% - 10px);
            max-width: calc(50% - 10px);
            height: 80px;
            font-size: 12px;
        }
    
        .category-btn {
            margin-bottom: 5px;
            padding: 8px 10px;
            font-size: 12px;
        }
    }
    
    @media (max-width: 480px) {
        .product-btn {
            flex: 1 1 100%;
            max-width: 100%;
        }
    }
    
    .col-md-1.col-sm-2.pos-categories {
        padding: 2px;
    }
    
    .popup_button {
        width: 30%;
        min-height: 60px;
        font-family: Tahoma;
    }
    
    button.btn.btn-info.btn-lg {
        padding: 10px 1.2rem;
    }
    
    .pos-container {
        border-radius: 5px;
        padding: 5px 5px;
        margin-bottom: 20px;
    }
    
    button.btn.btn-warning.category-btn.flex-fill {
        text-wrap: balance;
    }
    
    .category-btn {
        margin-bottom: 8px;
        border-radius: 4px;
        text-align: left;
        padding: 12px 15px;
        transition: all 0.3s;
        position: relative;
        overflow: hidden;
        border: none;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    .category-btn:hover,
    .category-btn.active {
        background-color: #337ab7;
        color: white;
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }
    
    .category-btn.active:before {
        content: "";
        position: absolute;
        left: 0;
        top: 0;
        height: 100%;
        width: 4px;
        background-color: #ffcc00;
    }
    
    #products {
        display: flex;
        flex-wrap: wrap;
    }
    
    .pos-header {
        margin-bottom: 20px;
        color: #333;
        border-bottom: 2px solid #eee;
        padding-bottom: 10px;
    }
    
    .no-products {
        width: 100%;
        text-align: center;
        padding: 20px;
        color: #999;
        font-style: italic;
    }
    
    .wrapper {
        min-height: auto;
    }
    
    .register .register-items .register-items-holder {
        padding-top: 5px;
    }
    
    .item-suggestions .details {
        padding-left: 0px;
    }
    
    .item-suggestions .suggest-item {
        padding-top: 5px !important;
        padding-bottom: 5px !important;
        padding-left: 10px !important;
    }
    
    .item-suggestions .suggest-item .name {
        margin-top: 5px;
        color: #FFFFFF !important;
    }
    
    .customer-badge.suggestions .suggest-item {
        padding: 7px 0px !important;
    }
    
    .customer-badge.suggestions .details {
        padding-left: 0px !important;
    }
    
    .register .register-right .customer-badge .details {
        padding-left: 0px;
    }
    
    ul.ui-autocomplete {
        max-height: 400px;
        margin-right: 30px !important;
        height: auto;
        overflow: auto;
    }
    
    .table>thead>tr>th {
        line-height: 0.92857143;
    }
    
    .table-condensed>thead>tr>th {
        align-content: space-evenly;
        text-transform: uppercase;
    }
    
    li.item-suggestions.ui-menu-item {
        text-transform: capitalize;
    }
    
    button#cancel_sale_button {
        background: coral;
    }
    
    .register .register-items-form .item-form {
        text-align: center;
        padding: 5px;
    }
    
    .sidebar {
        background-color: #2c3e50;
        height: 100%;
        display: flex;
        flex-direction: column;
    }
    
    .main-content {
        flex-grow: 1;
        padding: 15px;
        background: white;
        margin-bottom: 70px;
    }
    
    .vertical-btn {
        height: 70px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        color: white;
        border: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        background-color: transparent;
        transition: all 0.2s;
        padding: 5px 0;
    }
    
    .btn-group-justified .btn:hover,
    .btn-group-justified .btn.active {
        background-color: #34495e;
    }
    
    .vertical-btn i {
        font-size: 24px;
        margin-bottom: 5px;
    }
    
    .vertical-btn span {
        font-size: 12px;
        text-align: center;
    }
    
    .order-type-container {
        display: flex;
        margin-bottom: 15px;
    }
    
    .order-type-btn {
        flex: 1;
        height: 60px;
        font-size: 14px;
        font-weight: 600;
        border-radius: 4px;
        margin: 0 5px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        border: none;
        transition: all 0.2s;
    }
    
    .order-type-btn:first-child {
        margin-left: 0;
    }
    
    .order-type-btn:last-child {
        margin-right: 0;
    }
    
    .order-type-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }
    
    .order-type-btn i {
        font-size: 18px;
        margin-bottom: 3px;
    }
    
    .customer-search-container {
        display: flex;
        margin-bottom: 15px;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        border-radius: 4px;
        overflow: hidden;
    }
    
    .add-customer-btn {
        width: 60px;
        background-color: #5bc0de;
        color: white;
        border: none;
        display: flex;
        justify-content: center;
        align-items: center;
        font-size: 18px;
    }
    
    .customer-input {
        flex-grow: 1;
        height: 50px;
        border: none;
        padding: 10px 15px;
        font-size: 16px;
    }
    
    .sale-info {
        display: flex;
        height: 50px;
        margin-bottom: 15px;
    }
    
    .sale-label {
        flex-grow: 1;
        background-color: #dff0d8;
        display: flex;
        justify-content: center;
        align-items: center;
        font-size: 18px;
        font-weight: 600;
        color: #3c763d;
    }
    
    .invoice-label {
        width: 180px;
        background-color: #3498db;
        color: white;
        display: flex;
        justify-content: center;
        align-items: center;
        font-size: 18px;
        font-weight: 600;
    }
    
    .btn-menu {
        color: #5bc0de;
    }
    
    .btn-receipt {
        color: #f0ad4e;
    }
    
    .order-btn-delivery {
        background-color: #5cb85c;
        color: white;
    }
    
    .order-btn-dinein {
        background-color: #5bc0de;
        color: white;
    }
    
    .order-btn-takeaway {
        background-color: #f0ad4e;
        color: white;
    }
    
    .header-section {
        margin-bottom: 20px;
        border-bottom: 1px solid #eee;
        padding-bottom: 15px;
    }
    
    .header-section h2 {
        margin-top: 0;
        color: #333;
    }
    
    .payment-sidebar {
        position: fixed;
        right: 0%;
        top: 0;
        width: 30%;
        height: 100%;
        background-color: #fff;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        z-index: 1000;
        overflow-y: auto;
    }
    
    .sidebar-header {
        padding: 15px;
        background-color: #f8f8f8;
        border-bottom: 1px solid #e7e7e7;
    }
    
    .sidebar-header h3 {
        margin: 0;
        display: inline-block;
    }
    
    .sidebar-header .close {
        float: right;
        font-size: 24px;
    }
    
    .sidebar-content {
        padding: 15px;
    }
    
    .payment-summary,
    .payment-methods,
    .payment-actions {
        margin-bottom: 30px;
    }
    
    .summary-line {
        display: flex;
        justify-content: space-between;
        margin-bottom: 10px;
        font-size: 16px;
    }
    
    .summary-line.total {
        font-weight: bold;
        font-size: 18px;
        padding-top: 10px;
        border-top: 1px solid #e7e7e7;
    }
    
    .payment-options {
        width: 100%;
    }
    
    .payment-options .btn {
        text-align: left;
        margin-bottom: 5px;
    }
    
    .payment-actions {
        margin-top: 40px;
    }
    
    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 990;
    }
    
    .sidebar-open .payment-sidebar {
        right: 0;
    }
    
    .sidebar-open .sidebar-overlay {
        display: block;
    }
    
    .footer {
        position: fixed;
        bottom: 0;
        width: 100%;
        background-color: #ffffff;
        border-top: 1px solid #eaeaea;
        padding: 16px 0;
        box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.05);
        z-index: 100;
        height: auto;
        transition: all 0.3s ease;
        left:0;
    }
    
    .container-fluid {
        padding: 0 24px;
    }
    
    .col-xs-4 {
        flex: 0 0 auto;
    }
    
    .cart-info {
        background-color: #f8fafc;
        border-radius: 12px;
        padding: 10px 18px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    }
    
    .cart-total {
        margin-bottom: 4px;
    }
    
    .cart-total .label,
    .cart-quantity .label {
        font-size: 14px;
        color: #64748b;
        font-weight: 500;
        margin-right: 6px;
    }
    
    .cart-total .value {
        font-size: 18px;
        color: #0f172a;
        font-weight: 600;
    }
    
    .cart-quantity .value {
        font-size: 16px;
        color: #334155;
        font-weight: 500;
        background-color: #dbeafe;
        border-radius: 12px;
        padding: 2px 10px;
        display: inline-block;
    }
    
    .btn i {
        font-size: 16px;
    }
    
    @media (max-width: 767px) {
        .payment-sidebar {
            width: 80%;
            right: -80%;
        }
    
        .footer-actions .btn {
            padding: 6px 8px;
            font-size: 12px;
        }
    
        .cart-total .label,
        .cart-quantity .label,
        .cart-total .value,
        .cart-quantity .value {
            font-size: 14px;
        }
    }
    
    @media (max-width: 768px) {
        .row {
            flex-direction: column;
            gap: 16px;
        }
    
        .col-xs-4,
        .col-xs-8 {
            width: 100%;
        }
    
        .col-xs-8 {
            text-align: center;
        }
    
        .cart-info {
            width: fit-content;
            margin: 0 auto;
        }
    
        .footer-actions {
            justify-content: center;
            flex-wrap: wrap;
        }
    }
    
    @media (max-width: 576px) {
        .footer-actions {
            gap: 8px;
        }
    
        .btn {
            padding: 8px 10px;
            font-size: 13px;
        }
    }
    ul.ui-autocomplete {
        max-height: 400px;
        margin-right: 30px !important;
        height: auto;
        overflow: auto;
        z-index: 9999999999999999;
    }
    .customer-badge .details {
        padding-left: 0px !important;
    }
    #table_list .btn {
        margin-top: 10px;
    }
    .total-bill {
        padding-left: 7px;
        padding-top: 13px !important;
        top: 5px;
        font-weight: bold;
        font-size: 22px;
        font-family: 'Montserrat';
    }
    .register-items-holder {
        min-height: 65vh;
    }
}

#add_customer_modal {
    /* Main Customer Panel */
    .customer-panel {
        background-color: #f9fbfd;
        border-radius: 0px;
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
        padding: 0;
        margin-bottom: 20px;
        overflow: hidden;
    }

    /* Customer Card */
    .customer-card {
        padding: 0;
        position: relative;
    }

    /* Customer Header */
    .customer-header {
        display: flex;
        align-items: center;
        padding: 15px 20px;
        background: linear-gradient(135deg, #4b6cb7 0%, #182848 100%);
        color: white;
        position: relative;
    }

    /* Customer Avatar */
    .customer-avatar {
        width: 60px;
        height: 60px;
        border-radius: 50%;
        overflow: hidden;
        margin-right: 15px;
        border: 3px solid rgba(255, 255, 255, 0.3);
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    }

    .customer-avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    /* Customer Info */
    .customer-info {
        flex: 1;
    }

    .customer-name {
        margin: 0 0 8px 0;
        font-size: 18px;
        font-weight: 600;
    }

    .customer-name a {
        color: #fff;
        text-decoration: none;
        transition: color 0.2s;
    }

    .customer-name a:hover {
        color: #e6e6e6;
        text-decoration: underline;
    }

    .customer-balance, .loyalty-status, .loyalty-points, .customer-email {
        font-size: 14px;
        margin-bottom: 4px;
        display: flex;
        align-items: center;
    }

    .customer-balance i, .loyalty-status i, .loyalty-points i, .customer-email i {
        margin-right: 6px;
        font-size: 14px;
    }

    .balance-positive {
        color: #93ffa8;
    }

    .balance-negative {
        color: #ffb3b3;
    }

    .loyalty-pending {
        color: #ffe066;
    }

    .loyalty-ready {
        color: #93ffa8;
    }

    .loyalty-low {
        color: #ffb3b3;
    }

    .loyalty-high {
        color: #93ffa8;
    }

    .customer-email a {
        color: #f0f0f0;
        text-decoration: none;
    }

    .customer-email a:hover {
        text-decoration: underline;
    }

    /* Edit Customer Button */
    .edit-customer-btn {
        position: absolute;
        right: 15px;
        width: 36px;
        height: 36px;
        background-color: rgba(255, 255, 255, 0.2);
        color: white;
        display: flex;
        justify-content: center;
        align-items: center;
        transition: background-color 0.3s;
        text-decoration: none;
    }

    .edit-customer-btn:hover {
        background-color: rgba(255, 255, 255, 0.3);
    }

    /* Customer Form Fields */
    .customer-form-fields {
        padding: 20px;
        background-color: #ffffff;
    }

    .form-row {
        display: flex;
        margin-bottom: 0px;
        gap: 15px;
    }

    .form-group {
        margin-bottom: 15px;
        flex: 1;
    }

    .half-width {
        width: 50%;
    }

    .form-control {
        width: 100%;
        border: 1px solid #ddd;
        border-radius: 4px;
        box-sizing: border-box;
        font-size: 14px;
        transition: border-color 0.3s;
    }

    .form-control:focus {
        border-color: #4b6cb7;
        outline: none;
        box-shadow: 0 0 0 2px rgba(75, 108, 183, 0.25);
    }

    textarea.form-control {
        resize: vertical;
        min-height: 80px;
    }

    /* Customer Actions */
    .customer-actions {
        display: flex;
        background-color: #f5f7fa;
        border-top: 1px solid #e8edf3;
    }

    .action-btn {
        flex: 1;
        padding: 10px 0px;
        text-align: center;
        color: #555;
        text-decoration: none;
        font-size: 14px;
        border-right: 1px solid #e8edf3;
        transition: background-color 0.3s;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .action-btn:last-child {
        border-right: none;
    }

    .action-btn i {
        font-size: 18px;
        margin-bottom: 5px;
    }

    .action-btn:hover {
        background-color: #e8edf3;
    }

    .action-btn.active {
        background-color: #e1e6f0;
        color: #4b6cb7;
    }

    .delivery-btn {
        color: #28a745;
    }

    .delivery-btn.active {
        background-color: #d4edda;
        color: #28a745;
    }

    .email-btn {
        color: #007bff;
    }

    .email-btn.active {
        background-color: #d1e7ff;
        color: #007bff;
    }

    .sms-btn {
        color: #6f42c1;
    }

    .sms-btn.active {
        background-color: #e2d9f3;
        color: #6f42c1;
    }

    .update-btn {
        color: #17a2b8;
    }

    .detach-btn {
        color: #dc3545;
    }

    .hidden {
        display: none !important;
    }

    /* Customer Search */
    .customer-search {
        padding: 20px;
    }

    .search-container {
        position: relative;
    }

    .search-input-wrapper {
        position: relative;
        display: flex;
        align-items: center;
    }

    .search-input {
        width: 100%;
        padding: 15px 20px;
        padding-right: 50px;
        border: 1px solid #ddd;
        font-size: 15px;
        transition: all 0.3s;
    }

    .search-input:focus {
        border-color: #4b6cb7;
        box-shadow: 0 0 0 2px rgba(75, 108, 183, 0.25);
        outline: none;
    }

    .add-customer-button {
        position: absolute;
        right: 10px;
        top: 50%;
        transform: translateY(-50%);
        width: 38px;
        height: 38px;
        background-color: #4b6cb7;
        color: white;
        display: flex;
        justify-content: center;
        align-items: center;
        transition: background-color 0.3s;
    }

    .add-customer-button a {
        color: white;
        text-decoration: none;
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        height: 100%;
    }

    .add-customer-button:hover {
        background-color: #3c5a9a;
    }

    @media screen and (max-width: 768px) {
        .form-row {
            flex-direction: column;
        }
        
        .half-width {
            width: 100%;
        }
        
        .customer-actions {
            flex-wrap: wrap;
        }
        
        .action-btn {
            flex: 1 0 50%;
            border-bottom: 1px solid #e8edf3;
        }
    }
}
.modal-lg {
    width: 900px;
}
.modal-xl {
    width: 100%;
    max-width: 1140px;
}

/* Custom modal-xl for Bootstrap 3 */
@media (min-width: 1200px) {
    .modal-xl {
        width: 1140px; /* You can increase this as needed */
    }
}
.item-suggestions .details {
	padding-left: 0px;
}
.item-suggestions .suggest-item {
    padding-top: 5px !important;
    padding-bottom: 5px !important;
    padding-left: 10px !important;
}
.item-suggestions .suggest-item .name {
    margin-top: 5px;
}

.customer-badge.suggestions .suggest-item {
    padding: 7px 0px !important
}

.customer-badge.suggestions .details {
	padding-left: 0px !important;
}
.register .register-right .customer-badge .details {
	padding-left: 0px;
}


.item-suggestions .suggest-item .name {
    color: #000000 !important;
}

ul.ui-autocomplete {
	max-height: 400px;
    margin-right: 30px !important;
    height: auto;
    overflow: auto;
}
.table>thead>tr>th {
	line-height: 0.92857143;
}

.table-condensed > thead > tr > th {
	align-content: space-evenly;
	text-transform: uppercase;
}
li.item-suggestions.ui-menu-item {
    text-transform: capitalize;
}
.foodpanda {
    background: url(../img/foodpanda.jpg) no-repeat #d70f64 !important;
    background-size: 35% 100% !important;
    width: 142px;
}
.foodpanda-orders {
    text-align: center;
    float: right;
}

.staff-selector {
    .close-btn {
        background: none;
        border: none;
        font-size: 24px;
        color: #6e7681;
        cursor: pointer;
        padding: 4px;
        transition: color 0.2s;
    }
    
    .close-btn:hover {
        color: #24292e;
    }
    
    .staff-selector {
        margin-bottom: 20px;
    }
    
    .staff-label {
        display: block;
        font-size: 15px;
        font-weight: 500;
        margin-bottom: 8px;
        color: #24292e;
    }
    
    .staff-dropdown {
        position: relative;
        width: 100%;
    }
    
    .staff-toggle {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        padding: 12px 16px;
        background-color: #fff;
        border: 1px solid #d1d5db;
        border-radius: 6px;
        font-size: 15px;
        cursor: pointer;
        transition: all 0.2s;
        box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    }
    
    .staff-toggle:hover, .staff-toggle:focus {
        border-color: #0969da;
        box-shadow: 0 0 0 3px rgba(9, 105, 218, 0.1);
    }
    
    .staff-toggle.active {
        border-color: #0969da;
    }
    
    .staff-toggle-arrow {
        transition: transform 0.2s;
    }
    
    .staff-toggle.active .staff-toggle-arrow {
        transform: rotate(180deg);
    }
    
    .select-sales-persons {
        position: absolute;
        top: calc(100% + 4px);
        left: 0;
        right: 0;
        max-height: 250px;
        overflow-y: auto;
        background-color: #fff;
        border-radius: 6px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
        z-index: 10;
        display: none;
    }
    
    .select-sales-persons.show {
        display: block;
        animation: fadeIn 0.2s ease-out;
    }
    
    .select-sales-persons a {
        display: block;
        padding: 12px 16px;
        cursor: pointer;
        transition: background-color 0.2s;
        text-decoration: none;
        color: #24292e;
    }
    
    .select-sales-persons a:hover {
        background-color: #f0f3f7;
        text-decoration: none;
    }
    
    .select-sales-persons a.selected {
        background-color: #e8f2ff;
        color: #0969da;
        font-weight: 500;
    }
    
    .no-selection {
        color: #6e7681;
        font-style: italic;
    }
    
    /* Animation */
    @keyframes fadeIn {
        from { opacity: 0; transform: translateY(-10px); }
        to { opacity: 1; transform: translateY(0); }
    }
}

/* Modern Modal Styles */
.modern-modal {
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border: none;
    overflow: hidden;
}

.modern-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px 25px;
    border-bottom: none;
    position: relative;
}

.modern-header .modal-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.modern-header .modal-title i {
    margin-right: 10px;
    font-size: 20px;
}

.modern-header .close {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: white;
    opacity: 1;
}

.modern-header .close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.modern-header .close i {
    font-size: 14px;
}

/* Customer Modal Styles */
#add_customer_modal {
    .customer-panel {
        background: #fff;
        margin: 0;
        padding: 0;
    }

    .customer-card {
        border-radius: 0;
        overflow: hidden;
        box-shadow: none;
        margin: 0;
    }

    .customer-header {
        background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
        color: white;
        padding: 25px;
        display: flex;
        align-items: center;
        position: relative;
    }

    .customer-avatar {
        width: 80px;
        height: 80px;
        border-radius: 50%;
        overflow: hidden;
        margin-right: 20px;
        position: relative;
        border: 4px solid rgba(255, 255, 255, 0.3);
        background: rgba(255, 255, 255, 0.1);
    }

    .customer-avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .status-indicator {
        position: absolute;
        bottom: 5px;
        right: 5px;
        width: 18px;
        height: 18px;
        background: #28a745;
        border-radius: 50%;
        border: 3px solid white;
    }

    .customer-info {
        flex: 1;
    }

    .customer-name {
        font-size: 22px;
        font-weight: 600;
        margin: 0 0 10px 0;
        color: white;
    }

    .customer-name a {
        color: white;
        text-decoration: none;
        transition: color 0.3s ease;
    }

    .customer-name a:hover {
        color: #e8f4f8;
    }

    .customer-balance,
    .loyalty-status,
    .loyalty-points,
    .customer-email {
        display: flex;
        align-items: center;
        margin-bottom: 8px;
        font-size: 14px;
        color: rgba(255, 255, 255, 0.9);
    }

    .customer-balance i,
    .loyalty-status i,
    .loyalty-points i,
    .customer-email i {
        margin-right: 8px;
        font-size: 16px;
        width: 20px;
        text-align: center;
    }

    .balance-positive {
        color: #7fd99f;
    }

    .balance-negative {
        color: #ff8a8a;
    }

    .loyalty-pending {
        color: #ffd93d;
    }

    .loyalty-ready {
        color: #7fd99f;
    }

    .loyalty-low {
        color: #ff8a8a;
    }

    .loyalty-high {
        color: #7fd99f;
    }

    .customer-email a {
        color: #87ceeb;
        text-decoration: none;
    }

    .customer-email a:hover {
        color: #b8e1f7;
    }

    .edit-customer-btn {
        position: absolute;
        right: 25px;
        top: 25px;
        width: 45px;
        height: 45px;
        background: rgba(255, 255, 255, 0.2);
        color: white;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
        text-decoration: none;
        font-size: 18px;
    }

    .edit-customer-btn:hover {
        background: rgba(255, 255, 255, 0.3);
        transform: scale(1.05);
        color: white;
    }

    .customer-form-fields {
        padding: 30px;
        background: #fff;
    }

    .form-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
        margin-bottom: 20px;
    }

    .form-group {
        display: flex;
        flex-direction: column;
    }

    .form-group.full-width {
        grid-column: span 2;
    }

    .form-group label {
        font-weight: 600;
        color: #2c3e50;
        margin-bottom: 8px;
        font-size: 14px;
    }

    .modern-input {
        border: 2px solid #e1e8ed;
        border-radius: 8px;
        padding: 12px 16px;
        font-size: 14px;
        transition: all 0.3s ease;
        background: #fff;
        color: #2c3e50;
    }

    .modern-input:focus {
        border-color: #667eea;
        box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
        outline: none;
    }

    .modern-input::placeholder {
        color: #a0aec0;
    }

    .customer-actions {
        display: flex;
        background: #f8f9fa;
        border-top: 1px solid #e9ecef;
        padding: 0;
    }

    .action-btn {
        flex: 1;
        padding: 15px 10px;
        border: none;
        background: transparent;
        color: #495057;
        font-size: 14px;
        font-weight: 500;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
        text-decoration: none;
        border-right: 1px solid #e9ecef;
        min-height: 70px;
    }

    .action-btn:last-child {
        border-right: none;
    }

    .action-btn i {
        font-size: 20px;
        margin-bottom: 6px;
    }

    .action-btn span {
        font-size: 12px;
        text-align: center;
    }

    .action-btn:hover {
        background: #e9ecef;
        color: #2c3e50;
        text-decoration: none;
    }

    .action-btn.active {
        background: #e3f2fd;
        color: #1976d2;
    }

    .delivery-btn {
        color: #28a745;
    }

    .delivery-btn.active {
        background: #d4edda;
        color: #155724;
    }

    .email-btn {
        color: #007bff;
    }

    .email-btn.active {
        background: #d1ecf1;
        color: #0c5460;
    }

    .sms-btn {
        color: #6f42c1;
    }

    .sms-btn.active {
        background: #e2d9f3;
        color: #3d1a78;
    }

    .update-btn {
        color: #17a2b8;
    }

    .detach-btn {
        color: #dc3545;
    }

    .detach-btn:hover {
        background: #f8d7da;
        color: #721c24;
    }

    .customer-search {
        padding: 30px;
        background: #fff;
    }

    .search-container {
        position: relative;
    }

    .search-input-wrapper {
        position: relative;
        display: flex;
        align-items: center;
        gap: 15px;
    }

    .search-icon {
        position: absolute;
        left: 16px;
        top: 50%;
        transform: translateY(-50%);
        color: #a0aec0;
        font-size: 16px;
        z-index: 2;
    }

    .search-input {
        flex: 1;
        padding: 16px 20px 16px 50px;
        border: 2px solid #e1e8ed;
        border-radius: 12px;
        font-size: 16px;
        transition: all 0.3s ease;
        background: #fff;
        color: #2c3e50;
    }

    .search-input:focus {
        border-color: #667eea;
        box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
        outline: none;
    }

    .add-customer-button .btn {
        padding: 16px 24px;
        border-radius: 12px;
        font-weight: 600;
        display: flex;
        align-items: center;
        gap: 8px;
        transition: all 0.3s ease;
        box-shadow: 0 4px 12px rgba(0, 123, 255, 0.15);
    }

    .add-customer-button .btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 16px rgba(0, 123, 255, 0.2);
    }

    .add-customer-button .btn i {
        font-size: 18px;
    }

    @media (max-width: 768px) {
        .form-grid {
            grid-template-columns: 1fr;
        }
        
        .customer-actions {
            flex-wrap: wrap;
        }
        
        .action-btn {
            flex: 1 0 50%;
            min-width: 50%;
        }

        .search-input-wrapper {
            flex-direction: column;
            gap: 10px;
        }
    }
}

/* Table Modal Styles */
#add_table_modal {
    .modern-tabs {
        border-bottom: 2px solid #e9ecef;
        background: #f8f9fa;
        padding: 0 20px;
        margin: 0;
    }

    .modern-tabs > li {
        margin-bottom: -2px;
    }

    .modern-tabs > li > a {
        border: none;
        border-radius: 0;
        padding: 15px 25px;
        font-weight: 600;
        color: #6c757d;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .modern-tabs > li > a:hover {
        background: transparent;
        color: #495057;
        border-bottom: 2px solid #667eea;
    }

    .modern-tabs > li.active > a {
        color: #667eea;
        background: transparent;
        border-bottom: 2px solid #667eea;
    }

    .modern-tab-content {
        padding: 30px;
        background: #fff;
    }

    .tables-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 20px;
        margin-top: 20px;
    }

    .table-card {
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        transition: all 0.3s ease;
        background: #fff;
    }

    .table-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    }

    .table-card.table-available {
        border: 2px solid #28a745;
    }

    .table-card.table-occupied {
        border: 2px solid #dc3545;
    }

    .modern-table-btn {
        width: 100%;
        border: none;
        background: transparent;
        padding: 20px;
        text-align: left;
        transition: all 0.3s ease;
        cursor: pointer;
        display: flex;
        align-items: center;
        gap: 15px;
    }

    .modern-table-btn:hover {
        background: rgba(0, 0, 0, 0.05);
    }

    .table-icon {
        width: 60px;
        height: 60px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 24px;
        flex-shrink: 0;
    }

    .table-available .table-icon {
        background: linear-gradient(135deg, #28a745, #20c997);
        color: white;
    }

    .table-occupied .table-icon {
        background: linear-gradient(135deg, #dc3545, #fd7e14);
        color: white;
    }

    .table-info {
        flex: 1;
    }

    .table-name {
        font-size: 18px;
        font-weight: 600;
        margin-bottom: 8px;
        color: #2c3e50;
    }

    .table-status {
        display: flex;
        align-items: center;
        gap: 6px;
        font-size: 14px;
        font-weight: 500;
        margin-bottom: 4px;
    }

    .table-status.available {
        color: #28a745;
    }

    .table-status.occupied {
        color: #dc3545;
    }

    .table-total {
        font-size: 13px;
        color: #6c757d;
        font-weight: 500;
    }

    @media (max-width: 768px) {
        .tables-grid {
            grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
            gap: 15px;
        }

        .modern-table-btn {
            padding: 15px;
        }

        .table-icon {
            width: 50px;
            height: 50px;
            font-size: 20px;
        }

        .table-name {
            font-size: 16px;
        }
    }
}

/* Loading and Animation Styles */
.fade-in {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.scale-in {
    animation: scaleIn 0.3s ease-in-out;
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Responsive Design */
@media (max-width: 576px) {
    .modern-modal {
        margin: 10px;
    }
    
    .modern-header {
        padding: 15px 20px;
    }
    
    .modern-header .modal-title {
        font-size: 16px;
    }
}

/* Performance and UX Enhancement Styles */

/* Loading States */
.loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top: 2px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 1;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Button Processing States */
.addtocart.processing {
    transform: scale(0.95);
    transition: all 0.2s ease;
}

.addtocart .fa-spinner {
    animation: spin 1s linear infinite;
}

/* Success Animation */
.success-animation {
    animation: successPulse 0.6s ease-in-out;
}

@keyframes successPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); box-shadow: 0 0 20px rgba(40, 167, 69, 0.4); }
    100% { transform: scale(1); }
}

/* Table Selection States */
.table-btn.selected,
.modern-table-btn.selected {
    transform: scale(1.02);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.3);
    z-index: 2;
}

.table-card.selected {
    border-color: #667eea !important;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
}

/* Form Field States */
.modern-input.saving {
    border-color: #ffc107;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 193, 7, 0.1) 30%, rgba(255, 193, 7, 0.1) 70%, transparent 70%);
    background-size: 30px 30px;
    animation: progress 1s linear infinite;
}

.modern-input.saved {
    border-color: #28a745;
    background-color: rgba(40, 167, 69, 0.05);
    transition: all 0.3s ease;
}

.modern-input.error {
    border-color: #dc3545;
    background-color: rgba(220, 53, 69, 0.05);
    animation: shake 0.5s ease-in-out;
}

@keyframes progress {
    0% { background-position: 0 0; }
    100% { background-position: 30px 0; }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Checkbox Save State */
.form-group.saved,
label.saved {
    color: #28a745;
    transition: color 0.3s ease;
}

.form-group.saved::after,
label.saved::after {
    content: '✓';
    color: #28a745;
    font-weight: bold;
    margin-left: 8px;
    animation: fadeInOut 1s ease-in-out;
}

@keyframes fadeInOut {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}

/* Category Button Loading */
.category-btn.loading {
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.2) 30%, rgba(255, 255, 255, 0.2) 70%, transparent 70%);
    background-size: 30px 30px;
    animation: progress 1s linear infinite;
}

/* Enhanced Button Transitions */
.action-btn,
.modern-table-btn,
.addtocart,
.category-btn {
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.action-btn:hover,
.modern-table-btn:hover,
.addtocart:hover,
.category-btn:hover {
    transform: translateY(-2px);
}

.action-btn:active,
.modern-table-btn:active,
.addtocart:active,
.category-btn:active {
    transform: translateY(0);
}

/* Modal Animation Enhancement */
.modal.fade .modal-dialog {
    transform: scale(0.8) translateY(-50px);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal.fade.in .modal-dialog {
    transform: scale(1) translateY(0);
}

/* Performance Optimizations */
.customer-panel,
.tables-grid,
.modern-tab-content {
    will-change: transform;
    backface-visibility: hidden;
}

/* Responsive Performance */
@media (max-width: 768px) {
    .loading::after {
        width: 16px;
        height: 16px;
        margin: -8px 0 0 -8px;
    }
    
    .modern-input.saving {
        background-size: 20px 20px;
    }
    
    .action-btn:hover,
    .modern-table-btn:hover,
    .addtocart:hover,
    .category-btn:hover {
        transform: none; /* Disable hover effects on mobile for better performance */
    }
}

/* Focus Management */
.modern-input:focus,
.search-input:focus {
    transform: scale(1.02);
    transition: all 0.3s ease;
}

/* Error Feedback Enhancement */
.error-message {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
    padding: 12px 16px;
    border-radius: 8px;
    margin: 10px 0;
    font-size: 14px;
    animation: slideInFromTop 0.3s ease-out;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

.success-message {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    padding: 12px 16px;
    border-radius: 8px;
    margin: 10px 0;
    font-size: 14px;
    animation: slideInFromTop 0.3s ease-out;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

@keyframes slideInFromTop {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Accessibility Improvements */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .modern-input,
    .search-input {
        border-width: 3px;
    }
    
    .action-btn,
    .modern-table-btn {
        border: 2px solid currentColor;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .modern-input.saving {
        background: linear-gradient(45deg, transparent 30%, rgba(255, 193, 7, 0.2) 30%, rgba(255, 193, 7, 0.2) 70%, transparent 70%);
    }
    
    .modern-input.saved {
        background-color: rgba(40, 167, 69, 0.1);
    }
    
    .modern-input.error {
        background-color: rgba(220, 53, 69, 0.1);
    }
}