@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary-gradient: linear-gradient(135deg, #0458ab 0%, #04247c 100%);
    --secondary-gradient: linear-gradient(135deg, #0458ab 0%, #003d7a 100%);
    --success-gradient: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    --warning-gradient: linear-gradient(135deg, #d2cf08 0%, #ece93c 100%);
    --dark-bg: #e8f1f8;
    --card-bg: #f5f9fc;
    --sidebar-bg: #ffffff;
    --hover-bg: rgba(4, 88, 171, 0.08);
    --text-primary: #051537;
    --text-secondary: #64748b;
    --border-color: #cbd5e1;
    --success-color: #06b6d4;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--dark-bg);
    color: var(--text-primary);
    overflow-x: hidden;
    overflow-y: hidden;
}





/* login */

/* Center Container */
.login-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

/* Login Box */
.login-box {
    background: var(--card-bg);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(2, 34, 149, 0.1);
    padding: 40px;
    width: 100%;
    max-width: 400px;
    border: 1px solid var(--border-color);
}

.login-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 35px rgba(4, 88, 171, 0.4),
        inset 0 0 15px rgba(255, 255, 255, 0.04);
}


.login-header {
    text-align: center;
    margin-bottom: 50px;
}

/* Input Fields */
.form-control {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    color: #000000;
    padding: 13px 15px;
    font-size: 15px;
    border-radius: 12px;
    width: 100%;
    margin-bottom: 20px;
    outline: none;
    transition: all 0.3s ease;



}

.form-control::placeholder {
    color: #b3b3b3;
}

.form-control:focus {
    border-color: var(--text-primary);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 10px rgba(0, 124, 212, 0.4);
}

/* Login Button */
.btn-login {
    width: 100%;
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 14px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(4, 88, 171, 0.3);
    margin-top: 15px;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(4, 88, 171, 0.4);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes glowPulse {

    0%,
    100% {
        filter: drop-shadow(0 0 8px rgba(0, 188, 212, 0.4));
    }

    50% {
        filter: drop-shadow(0 0 18px rgba(0, 188, 212, 0.7));
    }
}

.change-password-box {
    background: var(--card-bg);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(2, 34, 149, 0.1);
    padding: 40px;
    width: 100%;
    max-width: 400px;
    border: 1px solid var(--border-color);
}

.change-password-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 35px rgba(4, 88, 171, 0.4),
        inset 0 0 15px rgba(255, 255, 255, 0.04);
}

.change-header {
    text-align: center;
    margin-bottom: 30px;
}

.change-title {
    color: var(--text-primary);
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 8px;
}

.change-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    margin: 0;
}

.error-message {
    background: rgba(244, 67, 54, 0.2);
    color: #f44336;
    padding: 12px;
    margin-bottom: 20px;
    border-radius: 8px;
    font-size: 13px;
    border: 1px solid rgba(244, 67, 54, 0.3);
}

.form-group label {
    color: var(--text-primary);
    font-size: 13px;
    margin-bottom: 8px;
    display: block;
    font-weight: 500;
}

.change-password-footer {
    display: flex;

}

.btn-new-login {
    width: 100%;
    background: var(--primary-gradient);
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid var(--border-color);
    padding: 14px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(4, 88, 171, 0.3);
    margin: 8px;
}

.btn-back {
    width: 100%;
    background: transparent;
    color: rgba(0, 0, 0, 0.7);
    border: 1px solid var(--border-color);
    padding: 14px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(4, 88, 171, 0.3);
    margin: 8px;
}

/* Animations (reuse from login) */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes glowPulse {

    0%,
    100% {
        filter: drop-shadow(0 0 8px rgba(0, 188, 212, 0.4));
    }

    50% {
        filter: drop-shadow(0 0 18px rgba(0, 188, 212, 0.7));
    }
}


/* Alert Styles */
.alert {
    padding: 12px 15px;
    margin-bottom: 20px;
    border-radius: 8px;
    font-size: 14px;
}

.alert-danger {
    background-color: #fee2e2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.alert-success {
    background-color: #d1fae5;
    color: #059669;
    border: 1px solid #a7f3d0;
}

.alert ul {
    list-style-type: none;
}

/* Validation Error Styles */
.invalid-feedback {
    display: block;
    color: #dc2626;
    font-size: 12px;
    margin-top: 5px;
}

.is-invalid {
    border-color: #dc2626 !important;
}

.form-control.is-invalid {
    border-color: #dc2626 !important;
}

/* Remember Me Checkbox */
.form-group label {
    cursor: pointer;
    user-select: none;
}

.mt-3 {
    margin-top: 1rem;
}



/* Sidebar */
.sidebar {
    background: var(--sidebar-bg);
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    width: 280px;
    padding: 25px 0;
    box-shadow: 4px 0 20px rgba(5, 21, 55, 0.08);
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-right: 1px solid var(--border-color);
    overflow-y: auto;
    overflow-x: hidden;
}

.sidebar.collapsed {
    width: 80px;
}

.sidebar::-webkit-scrollbar {
    width: 3px;
}

.sidebar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    /* Subtle track */
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb {
    background: var(--primary-gradient);
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #034a8f 0%, #031a5e 100%);
}

.sidebar-brand {
    padding: 0 25px;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-logo {
    width: 45px;
    height: 45px;
    background: var(--primary-gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 800;
    box-shadow: 0 4px 15px rgba(4, 88, 171, 0.3);
    color: white;
}

.brand-text {
    font-size: 22px;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: opacity 0.3s;
}

.sidebar.collapsed .brand-text,
.sidebar.collapsed .menu-text,
.sidebar.collapsed .newsletter-box {
    opacity: 0;
    display: none;
}

.sidebar-menu {
    list-style: none;
    padding: 0 15px;
    margin: 0;
}

.sidebar-menu li {
    margin-bottom: 8px;
}

.sidebar-menu a {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.sidebar-menu a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: var(--primary-gradient);
    transform: scaleY(0);
    transition: transform 0.3s;
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
    background: var(--hover-bg);
    color: var(--text-primary);
    transform: translateX(5px);
}

.sidebar-menu a.active::before {
    transform: scaleY(1);
}

.sidebar-menu a i {
    font-size: 20px;
    min-width: 20px;
}

.menu-text {
    font-weight: 500;
    font-size: 15px;
}

.submenu-icon {
    width: 15px;
    height: 15px;
    min-width: 15px;
    margin-right: 0;
}

.has-submenu>a::after {
    content: none;
}

.submenu-arrow {
    margin-left: auto;
    transition: transform 0.3s;
    width: 15px;
    height: 15px;
}

.has-submenu.active .submenu-arrow {
    transform: rotate(180deg);
}

.submenu {
    list-style: none;
    padding: 0;
    margin: 0 0 0 40px;
    display: none;
    background: transparent;
}

.has-submenu.active .submenu {
    display: block;
}

.sidebar.collapsed .submenu {
    margin: 0;
    display: none;
}

.sidebar.collapsed .has-submenu.active .submenu {
    display: block;
    margin: 0;
    padding-left: 15px;
    /* Slight indent even in collapsed if shown */
}

.sidebar.collapsed .menu-icon,
.sidebar.collapsed .submenu-icon {
    margin-right: 0;
}

.newsletter-box {
    margin: 15px;
    padding: 25px;
    background: var(--primary-gradient);
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(4, 88, 171, 0.25);
    color: white;
}

.newsletter-box h5 {
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 12px;
}

.newsletter-box p {
    font-size: 12px;
    opacity: 0.95;
    line-height: 1.6;
    margin-bottom: 15px;
}

.newsletter-btn {
    background: rgba(255, 255, 255, 0.95);
    color: #04247c;
    border: none;
    padding: 12px;
    border-radius: 10px;
    font-weight: 600;
    width: 100%;
    transition: all 0.3s;
    font-size: 14px;
}

.newsletter-btn:hover {
    background: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}


/* Toggle Sidebar Button */
.sidebar-toggle {
    position: absolute;
    right: -10px;
    top: 30px;
    width: 30px;
    height: 30px;
    background: var(--primary-gradient);
    border: none;
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(4, 88, 171, 0.3);
    z-index: 1001;
}

/* Main Content */
.main-content {
    margin-left: 280px;
    padding: 15px;
    transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 500px;
}

.main-content.expanded {
    margin-left: 70px;
}

/* Top Bar */
.top-bar {
    background: var(--card-bg);
    padding: 10px 30px;
    border-radius: 20px;
    margin-bottom: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.search-box {
    position: relative;
    flex: 1;
    max-width: 450px;
    min-width: 250px;
}

.search-box input {
    width: 100%;
    padding: 14px 20px 14px 50px;
    border: 2px solid var(--border-color);
    border-radius: 14px;
    background: var(--card-bg);
    color: var(--text-primary);
    font-size: 14px;
    transition: all 0.3s;
}

.search-box input:focus {
    outline: none;
    border-color: #0458ab;
    box-shadow: 0 0 0 3px rgba(4, 88, 171, 0.15);
}

.search-box img {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-size: 18px;
}

.top-bar-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.action-btn {
    width: 45px;
    height: 45px;
    background: var(--primary-gradient);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.action-btn:hover {
    border-color: #0458ab;
    color: #0458ab;
    transform: translateY(-2px);
}

.action-btn .badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--danger-color);
    width: 18px;
    height: 18px;
    border-radius: 50%;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

/* Mobile Menu Button - Show only on mobile */
.mobile-menu-btn {
    display: none;
    cursor: pointer;
    width: 35px;
    height: 35px;
    background: var(--primary-gradient);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all 0.3s;
    position: relative;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 15px;
    background: var(--dark-bg);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
}

.user-info:hover {
    background: var(--hover-bg);
}

.user-avatar {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    box-shadow: 0 4px 10px rgba(4, 88, 171, 0.3);
    color: white;
}

.user-details {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
}

.user-role {
    font-size: 12px;
    color: var(--text-secondary);
}

/* User Menu Container */
.user-menu-container {
    position: relative;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.user-info:hover {
    background: rgba(255, 255, 255, 0.1);
}

.user-menu-arrow {
    transition: transform 0.3s ease;
    filter: brightness(0) invert(1);
}

.user-info:hover .user-menu-arrow {
    transform: rotate(180deg);
}

/* User Dropdown Menu */
.user-menu-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 280px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.user-menu-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-menu-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
}

.user-avatar-large {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 18px;
    color: white;
    flex-shrink: 0;
}

.user-menu-name {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-color);
}

.user-menu-email {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

.user-menu-divider {
    height: 1px;
    background: var(--border-color);
    margin: 8px 0;
}

.user-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    font-size: 14px;
}

.user-menu-item:hover {
    background: var(--hover-bg);
    color: var(--primary-color);
}

.user-menu-item.user-menu-logout {
    color: #dc2626;
}

.user-menu-item.user-menu-logout:hover {
    background: #fee2e2;
}

.user-menu-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.user-menu-item.user-menu-logout .user-menu-icon {
    filter: brightness(0) saturate(100%) invert(27%) sepia(51%) saturate(2878%) hue-rotate(346deg) brightness(104%) contrast(97%);
}

#logoutForm {
    margin: 0;
}





/* Category Tabs - New Design */
.category-section {
    background: var(--card-bg);
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    height: 100px;
}

.category-tabs {
    display: flex;
    gap: 65px;
    overflow-x: auto;
}

.category-tabs::-webkit-scrollbar {
    height: 4px;
}

.category-btn {
    border: 2px solid var(--border-color);
    background: white;
    padding: 10px 10px;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    width: 100px;
    position: relative;
    height: 77px;
}

.category-btn.active {
    border-color: #0458ab;
    background: #fff;
    box-shadow: 0 4px 15px rgba(4, 88, 171, 0.2);
}

.category-btn span {
    font-weight: 500;
    font-size: 13px;
    color: var(--text-secondary);
    transition: all 0.3s;
}

.category-btn.active span {
    color: #0458ab;
    font-weight: 600;
}

.category-btn img {
    width: 40px;
    height: 40px;
    transition: all 0.3s;
    background: none;
}

.category-btn.active img {
    background: none;
}



/* Items Section */
.items-section {
    background: var(--card-bg);
    padding: 20px 15px;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    height: calc(100vh - 250px);
    overflow-y: hidden;
    margin-top: 5px;
}

.items-scroll-container::-webkit-scrollbar {
    width: 6px;
}

.items-scroll-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.items-scroll-container::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.items-scroll-container::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 5px;
    border-bottom: 2px solid var(--border-color);
}

.view-toggle {
    display: flex;
    gap: 10px;
}

.view-btn {
    width: 40px;
    height: 40px;
    border: 2px solid var(--border-color);
    background: transparent;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    color: var(--text-secondary);
}

.view-btn.active {
    background: var(--primary-gradient);
    border-color: transparent;
    color: white;
}

/* Item Grid Container with Scrolling */
#itemsGrid {
    position: relative;
}

.items-all {
    position: relative;
    padding: 0;
}

.items-scroll-container {
    display: flex;
    flex-wrap: wrap;
    max-height: 450px;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(4, 88, 171, 0.3) transparent;
    gap: 0px;
}

.items-scroll-container::-webkit-scrollbar {
    width: 6px;
}

.items-scroll-container::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 3px;
}

.items-scroll-container::-webkit-scrollbar-thumb {
    background: rgba(4, 88, 171, 0.3);
    border-radius: 3px;
}

.items-scroll-container::-webkit-scrollbar-thumb:hover {
    background: rgba(4, 88, 171, 0.5);
}

/* Ensure columns don't break scroll */
@media (min-width: 1200px) {
    .col-lg-4 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
}

@media (max-width: 1199px) and (min-width: 768px) {
    .col-md-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (max-width: 767px) {
    .col-sm-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .items-scroll-container {
        max-height: 70vh;
    }
}

/* Item Card - Enhanced for Scrolling Context */
.item-card {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 20px;
    padding: 10px;
    margin-bottom: 10px;
    margin-top: 10px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    flex: 0 0 auto;
    width: 90%;
}

.item-card:hover {
    border-color: #0458ab;
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(4, 88, 171, 0.2);
    z-index: 10;
}

.item-image-wrapper {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 15px;
}

.item-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: transform 0.4s;
}

.item-card:hover .item-image {
    transform: scale(1.1);
}

.item-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--success-gradient);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.item-content {
    position: relative;
    z-index: 1;
}

.item-name {
    font-weight: 700;
    font-size: 17px;
    margin-bottom: 8px;
    color: var(--text-primary);
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.item-description {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 15px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.item-price {
    font-size: 22px;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.add-btn {
    width: 35px;
    height: 35px;
    background: var(--primary-gradient);
    border: none;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 6px 15px rgba(4, 88, 171, 0.3);
}

.add-btn:hover {
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 8px 20px rgba(4, 88, 171, 0.5);
}

.add-btn img {
    color: white;
    font-size: 20px;
}

.bill-section {
    background: var(--card-bg);
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.bill-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 20px 20px 15px;
    border-bottom: 2px solid var(--border-color);
    flex-shrink: 0;
}

.bill-title {
    font-size: 20px;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0;
}

.clear-all-btn {
    background: transparent;
    border: 2px solid var(--danger-color);
    color: var(--danger-color);
    padding: 8px 16px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.clear-all-btn:hover {
    background: var(--danger-color);
    color: white;
    transform: translateY(-1px);
}

.bill-items {
    flex: 1;
    overflow-y: auto;
    padding: 0 20px 15px;
    margin-bottom: 10px;
    scrollbar-width: thin;
    scrollbar-color: rgba(4, 88, 171, 0.3) transparent;
}

.bill-items::-webkit-scrollbar {
    width: 4px;
}

.bill-items::-webkit-scrollbar-track {
    background: transparent;
}

.bill-items::-webkit-scrollbar-thumb {
    background: rgba(4, 88, 171, 0.3);
    border-radius: 2px;
}

.bill-items::-webkit-scrollbar-thumb:hover {
    background: rgba(4, 88, 171, 0.5);
}

.bill-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    padding: 15px;
    margin-bottom: 12px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    background: white;
    animation: slideIn 0.3s ease;
    position: relative;
    transition: all 0.3s;
}

.bill-item:hover {
    border-color: #0458ab;
    box-shadow: 0 4px 12px rgba(4, 88, 171, 0.1);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.bill-item-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.bill-item-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.bill-item-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    flex: 1;
    text-align: left;
}

.bill-item-quantity {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
    min-width: 40px;
}

.bill-item-price {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    text-align: right;
    min-width: 80px;
}

.bill-item-discount {
    font-size: 13px;
    font-weight: 700;
    color: var(--danger-color);
    text-align: right;
    min-width: 60px;
}

.bill-item-delete {
    width: 30px;
    height: 30px;
    background: var(--danger-color);
    border: none;
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    flex-shrink: 0;
}

.bill-item-delete:hover {
    background: #dc2626;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.bill-item-delete img {
    width: 16px;
    height: 16px;
    filter: brightness(0) invert(1);
}

/* Empty Cart */
.empty-cart {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.empty-cart .menu-icon {
    width: 50px;
    height: 50px;
    opacity: 0.3;
    margin-bottom: 20px;
}

.empty-cart p {
    font-size: 16px;
    font-weight: 500;
    margin: 0;
}

/* Bill Summary */
.bill-summary {
    padding: 0 20px 15px;
    border-top: 2px solid var(--border-color);
    flex-shrink: 0;
}

.bill-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 14px;
}

.bill-row span:first-child {
    color: var(--text-secondary);
}

.bill-row span:last-child {
    font-weight: 600;
    color: var(--text-primary);
}

.bill-total {
    font-size: 18px !important;
    padding-top: 12px;
    margin-top: 8px;
    border-top: 2px solid var(--border-color);
}

.bill-total span:first-child {
    font-weight: 700 !important;
    color: var(--text-primary) !important;
}

.bill-total span:last-child {
    background: var(--success-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800 !important;
}

/* Bill Footer */
.bill-footer {
    padding: 15px 20px;
    gap: 10px;
    border-top: 2px solid var(--border-color);
}

.place-order-btn {
    background: var(--primary-gradient);
    color: #fff;
    box-shadow: 0 4px 12px rgba(4, 88, 171, 0.3);
    padding: 15px;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 50px;
}

/* Order Placement Modal Styles */
#orderPlacementModal .modal-content {
    border-radius: 20px;
    border: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

#orderPlacementModal .modal-dialog {
    max-width: 1340px;
    max-height: 1000px;
}

#orderPlacementModal .modal-header {
    background: var(--primary-gradient);
    color: white;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    padding: 20px 25px;
    border-bottom: none;
}

#orderPlacementModal .modal-title {
    font-weight: 700;
    font-size: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

#orderPlacementModal .modal-header .btn-close {
    filter: brightness(0) invert(1);
    opacity: 1;
}

#orderPlacementModal .modal-body {
    padding: 25px;
    max-height: calc(100vh - 200px);
    overflow-y: auto;
}

/* Main Row Adjustments */
#orderPlacementModal .row {
    margin-bottom: 30px;
}

#orderPlacementModal .col-md-6:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

/* Order Section */
.order-section {
    margin-bottom: 0;
    /* Adjusted for column layout */
    padding-bottom: 0;
}

.order-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.section-title {
    font-size: 23px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-title i {
    color: #0458ab;
    font-size: 18px;
}

/* Order Type Grid */
.order-type-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 15px;
    margin-top: 5px;
}

.order-type-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 5px;
    border: 2px solid var(--border-color);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s;
    background: var(--card-bg);
}

.order-type-card:hover {
    border-color: #0458ab;
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(4, 88, 171, 0.15);
}

.order-type-card.active {
    border-color: #0458ab;
    color: rgb(0, 0, 0);
    box-shadow: 0 8px 20px rgba(4, 88, 171, 0.3);
}

.order-type-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgb(255, 255, 255);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #0458ab;
}

.order-type-name {
    font-weight: 600;
    font-size: 14px;
}

/* Order Type Details Section */
.order-type-details {
    margin-top: 20px;
    padding: 13px;
    height: auto !important;
    overflow: visible !important;
    background: var(--card-bg);
    border-radius: 16px;
    border: 2px solid var(--border-color);
    animation: slideDown 0.3s ease;
}

.selection-section .form-label {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 14px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.selection-section .form-label i {
    color: #0458ab;
    font-size: 16px;
}

/* Table Grid */
.table-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 10px;
    margin-top: 15px;
}

.table-card {
    padding: 2px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
    background: white;
}

.table-card:hover:not(.occupied) {
    border-color: #0458ab;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(4, 88, 171, 0.15);
}

.table-card.active {
    border-color: #0458ab;
    background: var(--primary-gradient);
    color: white;
}

.table-card.occupied {
    background: #f5f5f5;
    cursor: not-allowed;
    opacity: 0.6;
}

.table-number {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 8px;
}

.table-status {
    font-size: 10px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 6px;
    display: inline-block;
    margin-bottom: 6px;
}

.table-status.available {
    background: #d4edda;
    color: #155724;
}

.table-card.occupied .table-status {
    background: #f8d7da;
    color: #721c24;
}

.table-card.active .table-status {
    background: rgba(255, 255, 255, 0.3);
    color: white;
}

.table-capacity {
    font-size: 11px;
    color: #666;
    font-weight: 500;
}

.table-card.active .table-capacity {
    color: rgba(255, 255, 255, 0.9);
}

/* Room Grid */
.room-search-wrapper {
    position: relative;
    margin-bottom: 15px;
}

.room-search-input {
    padding: 12px 15px 12px 40px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 14px;
    width: 100%;
    transition: all 0.3s;
}

.room-search-input:focus {
    border-color: #0458ab;
    box-shadow: 0 0 0 3px rgba(4, 88, 171, 0.1);
    outline: none;
}

.search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 16px;
}

.room-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 10px;
    margin-top: 15px;
    max-height: 300px;
    overflow-y: auto;
    padding-right: 5px;
}

.room-grid::-webkit-scrollbar {
    width: 6px;
}

.room-grid::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 10px;
}

.room-card {
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
    background: white;
}

.room-card:hover:not(.occupied) {
    border-color: #0458ab;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(4, 88, 171, 0.15);
}

.room-card.active {
    border-color: #0458ab;
    background: var(--primary-gradient);
    color: white;
}

.room-card.occupied {
    background: #f5f5f5;
    cursor: not-allowed;
    opacity: 0.6;
}

.room-number {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 6px;
}

.room-type {
    font-size: 11px;
    font-weight: 600;
    color: #0458ab;
    margin-bottom: 6px;
}

.room-card.active .room-type {
    color: rgba(255, 255, 255, 0.9);
}

.room-status {
    font-size: 10px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 6px;
    display: inline-block;
}

.room-status.available {
    background: #d4edda;
    color: #155724;
}

.room-card.occupied .room-status {
    background: #f8d7da;
    color: #721c24;
}

.room-card.active .room-status {
    background: rgba(255, 255, 255, 0.3);
    color: white;
}


/* Form Controls in Selection Section */
.selection-section .form-control {
    padding: 10px 12px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 14px;
    transition: all 0.3s;
}

.selection-section .form-control:focus {
    border-color: #0458ab;
    box-shadow: 0 0 0 3px rgba(4, 88, 171, 0.1);
    outline: none;
}

.selection-section select.form-control {
    cursor: pointer;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .table-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .room-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .table-card,
    .room-card {
        padding: 12px;
    }

    .table-number,
    .room-number {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .table-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .room-grid {
        grid-template-columns: 1fr;
    }
}

/* Customer Search Section */
.customer-search-section {
    margin-bottom: 15px;
}

.search-input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 8px;
}

.customer-search-input {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 14px;
    transition: all 0.3s;
}

.customer-search-input:focus {
    border-color: #0458ab;
    box-shadow: 0 0 0 3px rgba(4, 88, 171, 0.1);
    outline: none;
}

.btn-search-customer {
    padding: 12px 25px;
    background: var(--primary-gradient);
    color: white;
    border: none;
    height: 37px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-search-customer:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(4, 88, 171, 0.3);
}

/* Customer Results */
.customer-results {
    margin-top: 15px;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.customer-found {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border: 2px solid #4caf50;
    border-radius: 16px;
    padding: 20px;
}

.customer-found-header {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: #2e7d32;
    font-size: 16px;
    margin-bottom: 15px;
}

.customer-found-header i {
    font-size: 24px;
}

.customer-found-details {
    background: white;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 15px;
}

.customer-detail-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #e0e0e0;
}

.customer-detail-row:last-child {
    border-bottom: none;
}

.customer-detail-label {
    font-weight: 600;
    color: #666;
    font-size: 13px;
}

.customer-detail-value {
    font-weight: 600;
    color: #333;
    font-size: 13px;
}

.btn-use-customer {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #4caf50 0%, #2e7d32 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-use-customer:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(76, 175, 80, 0.4);
}

/* New Customer Section */
.new-customer-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 15px;
    padding: 15px;
    background: var(--card-bg);
    border-radius: 12px;
    border: 2px dashed var(--border-color);
}

.new-customer-toggle span {
    font-weight: 600;
    color: var(--text-secondary);
}

.btn-new-customer {
    padding: 10px 20px;
    background: var(--secondary-gradient);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-new-customer:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
}

/* New Customer Form */
.new-customer-form {
    margin-top: 20px;
    padding: 20px;
    background: var(--card-bg);
    border-radius: 16px;
    border: 2px solid var(--border-color);
    animation: slideDown 0.3s ease;
}

.form-divider {
    text-align: center;
    margin-bottom: 20px;
    position: relative;
}

.form-divider::before,
.form-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40%;
    height: 2px;
    background: var(--border-color);
}

.form-divider::before {
    left: 0;
}

.form-divider::after {
    right: 0;
}

.form-divider span {
    background: var(--card-bg);
    padding: 0 15px;
    font-weight: 700;
    color: #0458ab;
    font-size: 14px;
}

.new-customer-form .form-label {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 13px;
    margin-bottom: 6px;
}

.new-customer-form .form-control {
    padding: 10px 12px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 14px;
    transition: all 0.3s;
}

.new-customer-form .form-control:focus {
    border-color: #0458ab;
    box-shadow: 0 0 0 3px rgba(4, 88, 171, 0.1);
    outline: none;
}

.btn-save-customer {
    width: 100%;
    padding: 14px;
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
}

.btn-save-customer:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(4, 88, 171, 0.4);
}

/* Order Notes */
.order-notes {
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 14px;
    resize: none;
    transition: all 0.3s;
}

.order-notes:focus {
    border-color: #0458ab;
    box-shadow: 0 0 0 3px rgba(4, 88, 171, 0.1);
    outline: none;
}

/* Order Summary Section */
.order-summary-section {
    background: linear-gradient(135deg, #f5f9fc 0%, #e8f1f8 100%);
    padding: 20px;
    border-radius: 16px;
    border: 2px solid var(--border-color);
}

.summary-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.summary-row:last-child {
    border-bottom: none;
}

.summary-row span:first-child {
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 14px;
}

.summary-value {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 14px;
}

.summary-row.total-amount {
    padding-top: 15px;
    margin-top: 10px;
    border-top: 2px solid var(--border-color);
}

.summary-row.total-amount span {
    font-size: 18px;
}

.summary-row.total-amount .summary-value {
    background: var(--success-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 20px;
}

/* Modal Footer */
#orderPlacementModal .modal-footer {
    padding: 6px 25px;
    border-top: 2px solid var(--border-color);
    gap: 12px;
}

#orderPlacementModal .modal-footer .btn {
    padding: 10px 25px;
    border-radius: 12px;
    font-weight: 500;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

#orderPlacementModal .modal-footer .btn-secondary {
    background: var(--card-bg);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

#orderPlacementModal .modal-footer .btn-secondary:hover {
    background: var(--dark-bg);
}

#orderPlacementModal .modal-footer .btn-primary {
    background: var(--primary-gradient);
    border: none;
    box-shadow: 0 4px 15px rgba(4, 88, 171, 0.3);
}

#orderPlacementModal .modal-footer .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(4, 88, 171, 0.4);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .order-type-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .search-input-group {
        flex-direction: column;
    }

    .btn-search-customer {
        width: 100%;
        justify-content: center;
    }

    .new-customer-toggle {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .btn-new-customer {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .order-type-grid {
        grid-template-columns: 1fr;
    }

    #orderPlacementModal .modal-body {
        padding: 15px;
    }

    .order-section {
        margin-bottom: 20px;
        padding-bottom: 15px;
    }
}







/* Responsive Design */
@media (min-width: 1200px) {
    .bill-section {
        height: calc(100vh - 200px);
    }

    .bill-items {
        max-height: calc(100vh - 400px);
    }

    .bill-footer {
        flex-direction: row;
    }


}

@media (max-width: 1199px) {
    .bill-section {
        height: auto;
    }
}

/* --- Mobile sidebar + overlay --- */
@media (max-width: 768px) {
    .sidebar {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        height: 100vh !important;
        width: 270px !important;
        transform: translateX(-100%) !important;
        transition: transform 0.25s ease !important;
        z-index: 1001 !important;
    }

    .sidebar.mobile-open {
        transform: translateX(0) !important;
    }

    .mobile-overlay {
        position: fixed !important;
        inset: 0 !important;
        background: rgba(0, 0, 0, 0.5) !important;
        opacity: 0 !important;
        pointer-events: none !important;
        transition: opacity 0.2s ease !important;
        z-index: 1000 !important;
    }

    .mobile-overlay.active {
        opacity: 1 !important;
        pointer-events: auto !important;
    }

    body.mobile-lock {
        overflow: hidden !important;
        touch-action: none !important;
    }

    .top-bar {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        padding: 8px !important;
    }

    .search-box,
    .top-bar-actions {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        width: 50% !important;
        margin: 5px 0 !important;
    }

    .search-box {
        flex: 1 !important;
        border-radius: 6px !important;
        padding: 6px 10px !important;
    }

    .search-box input {
        width: 100% !important;
        outline: none !important;
        font-size: 14px !important;
        border: 2px solid var(--border-color);
        background: var(--card-bg);
        color: var(--text-primary);
        transition: all 0.3s;
    }

    .top-bar-actions {
        flex-wrap: nowrap !important;
        justify-content: flex-end !important;
        gap: 10px !important;
    }

    .top-bar {
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
    }

    .mobile-menu-btn {
        width: 40px;
        height: 40px;
        display: block !important;
    }

    .user-info {
        display: flex !important;
        align-items: center !important;
    }

    .user-name,
    .user-role {
        display: none !important;
    }
}

/* Extra Large Devices - Enhanced for Fixed Bill Section Height with Internal Scrolling */
@media (min-width: 1200px) {
    .main-content {
        padding: 20px;
    }

    .top-bar {
        padding: 15px 40px;
    }

    .category-section {
        padding: 15px 35px;
    }

    .items-section,
    .bill-section {
        padding: 15px 15px;
    }

    .bill-section {
        height: calc(100vh - 150px);
        overflow: hidden;
        display: flex;
        flex-direction: column;
    }

    .bill-item-content {
        flex: 1;
        padding-right: 8px;
        scrollbar-width: thin;
        scrollbar-color: rgba(4, 88, 171, 0.3) transparent;
    }

    .bill-summary {
        flex-shrink: 0;
        margin-top: auto;
        padding: 16px 0;
        background: var(--card-bg);
        border-top: 1px solid var(--border-color);
    }



    .category-tabs {
        display: flex;
        gap: 45px;
        overflow-x: auto;
        padding-bottom: 5px;
        height: 100px;
    }
}

/* Large Devices (lg: 992px to 1199px) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .main-content {
        padding: 18px;
    }

    .top-bar {
        padding: 12px 35px;
    }

    .category-section {
        padding: 12px 30px;
    }

    .items-section {
        padding: 32px;
    }

    .category-tabs {
        gap: 30px;
    }

    .category-btn {
        width: 110px;
        height: 75px;
    }

    .item-price {
        font-size: 18px;
    }

    .add-btn {
        width: 40px;
        height: 40px;
    }

    .add-btn img {
        width: 8px;
        height: 8px;
    }

    .bill-section {
        height: calc(100vh - 150px);
        overflow: hidden;
        display: flex;
        flex-direction: column;
    }

    .bill-item {
        padding: 10px;
        width: 270px;
        overflow-x: hidden;
        margin: 10px 3px;
        align-items: center;
    }

    .bill-item-name,
    .bill-item-price {
        font-size: 14px;
        font-weight: 500;
    }

    .bill-footer {
        flex-direction: row;
        gap: 15px;
        margin: 15px;
    }
}

/* Large tablets and up (lg breakpoint: 992px) */
@media (max-width: 991.98px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.mobile-open {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0 !important;
    }

    .sidebar.collapsed {
        width: 280px;
        transform: translateX(-100%);
    }

    .main-content.expanded {
        margin-left: 0 !important;
    }

    .sidebar-toggle {
        display: none;
    }

    .top-bar {
        padding: 10px 15px;
        gap: 10px;
    }

    .search-box {
        min-width: 0;
        flex: 1;
        max-width: none;
        order: 3;
        width: 100%;
        margin-top: 10px;
    }

    .top-bar-actions {
        order: 2;
        gap: 10px;
    }

    .mobile-menu-btn {
        order: 1;
        width: 45px;
        height: 45px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .user-info {
        padding: 5px 10px;
        gap: 5px;
    }

    .user-details {
        display: none;
    }

    .category-section {
        padding: 10px 15px;
    }

    .category-tabs {
        gap: 20px;
    }

    .items-scroll-container {
        display: flex;
        flex-wrap: wrap;
        max-height: 350px;
        overflow-y: auto;
        overflow-x: hidden;
        scrollbar-width: thin;
        scrollbar-color: rgba(4, 88, 171, 0.3) transparent;
        gap: 0px;
    }

    .items-section {
        padding: 20px 15px;
        max-height: none;
    }

    .bill-section {
        padding: 20px 15px;
        position: relative;
        max-height: none;
    }

    .newsletter-box {
        margin: 10px;
        padding: 20px;
    }

    .newsletter-box h5 {
        font-size: 16px;
    }

    .newsletter-box p {
        font-size: 11px;
    }

    .newsletter-btn {
        padding: 10px;
        font-size: 13px;
    }
}

/* Medium Devices (md: 768px to 991px) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .main-content {
        padding: 16px;
    }

    .top-bar {
        padding: 12px 20px;
    }

    .category-tabs {
        gap: 30px;
    }

    .category-btn {
        width: 100px;
        padding: 8px 8px;
    }

    .category-btn img {
        width: 35px;
        height: 35px;
    }

    .category-btn span {
        font-size: 12px;
    }
}

/* Small tablets and large phones (md breakpoint: 768px) */
@media (max-width: 767.98px) {
    .category-tabs {
        gap: 10px;
    }

    .category-btn {
        padding: 10px 8px;
        min-width: 80px;
        width: auto;
    }

    .category-btn span {
        font-size: 12px;
        white-space: nowrap;
    }

    .category-btn img {
        width: 35px;
        height: 35px;
    }

    .section-header {
        padding-bottom: 15px;
        margin-bottom: 20px;
    }

    .bill-header {
        gap: 10px;
        padding-bottom: 15px;
    }

    .bill-item {
        gap: 10px;
        padding: 10px 0;
    }

    .main-content {
        padding: 12px;
    }

    .top-bar {
        padding: 10px 15px;
    }

    .items-section,
    .bill-section {
        padding: 15px 12px;
    }

    .item-card {
        margin-bottom: 15px;
    }

    .item-name {
        font-size: 16px;
    }

    .item-price {
        font-size: 18px;
    }

    .add-btn {
        width: 40px;
        height: 40px;
    }

    .bill-footer {
        flex-direction: column;
        gap: 10px;
    }

    .place-order-btn,
    .hold-order-btn {
        width: 100%;
    }

    .newsletter-box {
        margin: 8px;
        padding: 15px;
    }

    .newsletter-box h5 {
        font-size: 14px;
    }

    .newsletter-box p {
        font-size: 10px;
    }

    .newsletter-btn {
        padding: 8px;
        font-size: 12px;
    }
}

/* Extra small devices (phones, less than 576px) */
@media (max-width: 575.98px) {
    .main-content {
        padding: 10px;
    }

    .top-bar {
        padding: 8px 12px;
        border-radius: 16px;
    }

    .search-box input {
        padding: 12px 15px 12px 40px;
        font-size: 13px;
    }

    .search-box img {
        left: 15px;
        width: 16px;
        height: 16px;
    }

    .action-btn {
        width: 40px;
        height: 40px;
    }

    .user-avatar {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }

    .category-section {
        padding: 8px 10px;
        border-radius: 16px;
        height: 85px;
    }

    .category-tabs {
        gap: 8px;
        height: 75px;
    }

    .category-btn {
        padding: 8px 6px;
        min-width: 70px;
        width: auto;
        height: 70px;
    }

    .category-btn img {
        width: 30px;
        height: 30px;
    }

    .category-btn span {
        font-size: 11px;
    }

    .items-section,
    .bill-section {
        padding: 12px 10px;
        border-radius: 16px;
    }

    .section-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .view-toggle {
        align-self: flex-end;
    }

    .item-card {
        padding: 8px;
        border-radius: 16px;
    }

    .item-image {
        height: 150px;
    }

    .item-name {
        font-size: 15px;
    }

    .item-description {
        font-size: 12px;
    }

    .item-price {
        font-size: 16px;
    }

    .add-btn {
        width: 35px;
        height: 35px;
    }

    .add-btn img {
        width: 12px;
        height: 12px;
    }

    .bill-header {
        padding: 15px 15px 10px;
    }

    .bill-title {
        font-size: 18px;
    }

    .clear-all-btn {
        padding: 6px 12px;
        font-size: 11px;
    }

    .bill-items {
        padding: 0 15px 10px;
    }

    .bill-item {
        padding: 12px 0;
        margin-bottom: 10px;
    }

    .bill-item-name {
        font-size: 14px;
    }

    .bill-item-price,
    .bill-item-quantity {
        font-size: 14px;
    }

    .bill-item-delete {
        width: 28px;
        height: 28px;
    }

    .bill-summary {
        padding: 0 15px 10px;
    }

    .bill-row {
        font-size: 13px;
    }

    .bill-total {
        font-size: 16px !important;
    }

    .bill-footer {
        padding: 12px 15px;
    }

    .place-order-btn,
    .hold-order-btn {
        padding: 12px;
        font-size: 14px;
        height: 45px;
    }

    .newsletter-box {
        margin: 5px;
        padding: 12px;
    }

    .newsletter-box h5 {
        font-size: 13px;
    }

    .newsletter-box p {
        font-size: 9px;
    }

    .newsletter-btn {
        padding: 6px;
        font-size: 11px;
    }
}

/* Very small devices (phones, less than 400px) */
@media (max-width: 399.98px) {
    .category-tabs {
        gap: 5px;
    }

    .category-btn {
        min-width: 60px;
        padding: 6px 4px;
        height: 55px;
    }

    .category-btn img {
        width: 25px;
        height: 25px;
    }

    .category-btn span {
        font-size: 10px;
    }

    .top-bar-actions {
        gap: 5px;
    }

    .action-btn {
        width: 35px;
        height: 35px;
    }

    .user-avatar {
        width: 35px;
        height: 35px;
    }

    .item-image {
        height: 120px;
    }

    .item-name {
        font-size: 14px;
    }

    .item-description {
        font-size: 11px;
    }

    .item-price {
        font-size: 14px;
    }

    .add-btn {
        width: 30px;
        height: 30px;
    }

    .add-btn img {
        width: 10px;
        height: 10px;
    }
}

/* Virtual Keyboard Container */
/* Virtual Keyboard Container - Improved Responsiveness */
.virtual-keyboard-container {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    display: none;
    animation: slideUpKeyboard 0.3s ease-out;
    background: linear-gradient(to bottom, #f8f9fa 0%, #ffffff 100%);
    border-top: 2px solid #e0e0e0;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
    padding: 15px 10px;
    max-height: 60vh;
    overflow-y: auto;
}

.virtual-keyboard-container.active {
    display: block;
}

@keyframes slideUpKeyboard {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

/* Keyboard Panel */
.keyboard-panel {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* Keyboard Body - Improved Flexbox Layout */
.keyboard-body {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
}

/* Main Keys Section */
.main-keys {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 300px;
    max-width: 800px;
}

/* Numpad Section */
.numpad {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 200px;
    max-width: 250px;
    padding: 8px;
    background: #f5f5f5;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
}

/* Key Rows */
.key-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    width: 100%;
}

.key-row-bottom {
    margin-top: 5px;
}

/* Virtual Keys Base Styles - Improved for Responsiveness */
.vkey {
    position: relative;
    min-width: 40px;
    height: 45px;
    padding: 8px;
    background: linear-gradient(145deg, #ffffff 0%, #f5f5f7 100%);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    color: #1d1d1f;
    font-size: 16px;
    font-weight: 600;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    cursor: pointer;
    transition: all 0.18s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04), 0 3px 6px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    flex: 1;
    max-width: 60px;
}

.vkey:hover {
    background: linear-gradient(145deg, #ffffff 0%, #ececee 100%);
    border-color: rgba(0, 0, 0, 0.12);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.06), 0 6px 12px rgba(0, 0, 0, 0.04);
}

.vkey:active {
    transform: translateY(0) scale(0.97);
    background: linear-gradient(145deg, #ececee 0%, #e0e0e2 100%);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08), inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Key Text */
.vkey span {
    font-size: 16px;
    font-weight: 600;
    line-height: 1;
    color: #1d1d1f;
}

.vkey small {
    font-size: 8px;
    font-weight: 500;
    color: #86868b;
    margin-top: 2px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Number Keys */
.vkey.num {
    background: linear-gradient(145deg, #f9fafb 0%, #f0f1f3 100%);
}

.vkey.num span {
    color: #3c3c43;
    font-size: 18px;
    font-weight: 700;
}

.vkey.num:hover {
    background: linear-gradient(145deg, #f5f6f8 0%, #e8e9eb 100%);
}

.vkey.num:active {
    background: linear-gradient(145deg, #e8e9eb 0%, #dcdde0 100%);
}

/* Numpad Number Keys - Special Styling */
.numpad .vkey.num {
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    border-color: rgba(0, 0, 0, 0.1);
    font-size: 18px;
    font-weight: 700;
    min-width: 45px;
    height: 45px;
}

.numpad .vkey.num span {
    font-size: 18px;
}

/* Letter Keys */
.vkey.letter {
    background: linear-gradient(145deg, #ffffff 0%, #f7f7f9 100%);
}

/* Modifier Keys */
.vkey.modifier {
    min-width: 60px;
    background: linear-gradient(145deg, #e8f0fb 0%, #dbe7f7 100%);
    border-color: rgba(59, 130, 246, 0.12);
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.vkey.modifier span {
    font-size: 18px;
    color: #2563eb;
}

.vkey.modifier small {
    color: #60a5fa;
}

.vkey.modifier:hover {
    background: linear-gradient(145deg, #d6e6fa 0%, #c9dcf5 100%);
}

.vkey.modifier.active {
    background: linear-gradient(145deg, #3b82f6 0%, #2563eb 100%);
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.3), 0 4px 12px rgba(59, 130, 246, 0.25);
}

.vkey.modifier.active span,
.vkey.modifier.active small {
    color: #ffffff;
}

/* Special Keys */
.vkey.special {
    background: linear-gradient(145deg, #fee2e2 0%, #fecaca 100%);
    border-color: rgba(239, 68, 68, 0.15);
}

.vkey.special span {
    color: #dc2626;
    font-size: 18px;
}

.vkey.special small {
    color: #f87171;
}

.vkey.special:hover {
    background: linear-gradient(145deg, #fecaca 0%, #fca5a5 100%);
    box-shadow: 0 4px 8px rgba(239, 68, 68, 0.12), 0 6px 12px rgba(239, 68, 68, 0.08);
}

.vkey.special:active {
    background: linear-gradient(145deg, #fca5a5 0%, #f87171 100%);
}

/* Numpad Special Keys (Operators) */
.numpad .vkey.special {
    background: linear-gradient(145deg, #fff7ed 0%, #fed7aa 100%);
    border-color: rgba(249, 115, 22, 0.15);
    min-width: 45px;
}

.numpad .vkey.special span {
    color: #ea580c;
    font-size: 18px;
    font-weight: 700;
}

.numpad .vkey.special:hover {
    background: linear-gradient(145deg, #fed7aa 0%, #fdba74 100%);
}

/* Backspace Key */
.backspace-key {
    min-width: 70px;
}

.backspace-key span {
    font-size: 18px;
}

/* Clear Key */
.clear-key {
    min-width: 60px;
}

.clear-key span {
    font-size: 16px;
    font-weight: 600;
    color: #dc2626;
}

/* Enter Key */
.enter-key {
    min-width: 60px;
}

.enter-key span {
    font-size: 16px;
    font-weight: 600;
    color: #2563eb;
}

/* Spacebar Key */
.space-key {
    min-width: 200px;
    height: 45px;
}

.space-key span {
    font-size: 16px;
    font-weight: 600;
    color: #1d1d1f;
}

.done-key {
    min-width: 80px;
    height: 45px;
}

/* Hide Keyboard on Input Focus */
input:focus~.virtual-keyboard-container {
    display: none;
}

/* Show Keyboard on Button Click */
.show-keyboard .virtual-keyboard-container {
    display: block;
}

/* Responsive Breakpoints */

/* Tablets and smaller desktops */
@media (max-width: 1024px) {
    .keyboard-body {
        gap: 10px;
    }

    .main-keys {
        min-width: 250px;
    }

    .numpad {
        min-width: 180px;
        max-width: 200px;
    }

    .vkey {
        min-width: 35px;
        height: 40px;
        padding: 6px;
        font-size: 14px;
        max-width: 50px;
    }

    .vkey span {
        font-size: 14px;
    }

    .vkey small {
        font-size: 7px;
    }

    .space-key {
        min-width: 150px;
        height: 40px;
    }

    .done-key {
        min-width: 70px;
        height: 40px;
    }
}

/* Tablets */
@media (max-width: 768px) {
    .virtual-keyboard-container {
        padding: 10px 8px;
        max-height: 50vh;
    }

    .keyboard-body {
        flex-direction: column;
        gap: 8px;
    }

    .main-keys,
    .numpad {
        min-width: 100%;
        max-width: 100%;
    }

    .numpad {
        order: -1;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .numpad .key-row {
        flex: 1;
        justify-content: space-around;
    }

    .vkey {
        min-width: 30px;
        height: 35px;
        padding: 4px;
        font-size: 13px;
        max-width: 45px;
    }

    .vkey span {
        font-size: 13px;
    }

    .vkey small {
        font-size: 6px;
    }

    .space-key {
        min-width: 120px;
        height: 35px;
    }

    .done-key {
        min-width: 60px;
        height: 35px;
    }

    .key-row {
        gap: 4px;
    }
}

/* Mobile phones */
@media (max-width: 480px) {
    .virtual-keyboard-container {
        padding: 8px 5px;
        max-height: 45vh;
    }

    .keyboard-panel {
        padding: 0;
    }

    .vkey {
        min-width: 25px;
        height: 30px;
        padding: 3px;
        font-size: 12px;
        max-width: 40px;
        border-radius: 6px;
    }

    .vkey span {
        font-size: 12px;
    }

    .vkey small {
        display: none;
        /* Hide secondary labels on very small screens */
    }

    .space-key {
        min-width: 100px;
        height: 30px;
    }

    .done-key {
        min-width: 50px;
        height: 30px;
    }

    .key-row {
        gap: 3px;
    }

    /* Hide numpad on very small screens to save space */
    .numpad {
        display: none;
    }

    /* Add number row to main keyboard when numpad is hidden */
    .mobile-number-row {
        display: flex !important;
    }
}

/* Extra small mobile devices */
@media (max-width: 360px) {
    .virtual-keyboard-container {
        padding: 5px 3px;
        max-height: 40vh;
    }

    .vkey {
        min-width: 22px;
        height: 28px;
        padding: 2px;
        font-size: 11px;
        max-width: 35px;
    }

    .vkey span {
        font-size: 11px;
    }

    .space-key {
        min-width: 80px;
        height: 28px;
    }

    .done-key {
        min-width: 45px;
        height: 28px;
    }

    .key-row {
        gap: 2px;
    }
}

/* Landscape orientation on mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .virtual-keyboard-container {
        max-height: 70vh;
        padding: 5px;
    }

    .vkey {
        height: 25px;
        min-width: 20px;
    }

    .space-key,
    .done-key {
        height: 25px;
    }
}

/* High DPI screens */
@media (-webkit-min-device-pixel-ratio: 2),
(min-resolution: 192dpi) {
    .vkey {
        border-width: 0.5px;
    }
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    .virtual-keyboard-container {
        animation: none;
    }

    .vkey {
        transition: none;
    }
}

/* Hide Keyboard on Input Focus */
input:focus~.virtual-keyboard-container {
    display: none;
}

/* Show Keyboard on Button Click */
.show-keyboard .virtual-keyboard-container {
    display: block;
}

/* Super-compact mobile keyboard — fits fully on small screens */
@media (max-width: 800px) {

    .virtual-keyboard-container,
    .keyboard-panel {
        max-height: 40vh !important;
        overflow: auto !important;
        padding: 6px 4px !important;
    }

    .keyboard-body {
        flex-wrap: wrap !important;
        gap: 4px !important;
        justify-content: center;
    }

    /* Hide the numpad */
    .numpad {
        display: none !important;
    }

    /* Show number row (if using the .mobile-only number row) */
    .mobile-only {
        display: flex !important;
    }

    .key-row {
        gap: 3px !important;
        flex-wrap: wrap;
    }

    /* Tiny key size */
    .vkey {
        min-width: 26px !important;
        height: 28px !important;
        padding: 3px !important;
        border-radius: 6px !important;
    }

    .vkey span {
        font-size: 13px !important;
    }

    .vkey small {
        font-size: 7px !important;
    }

    /* Compact spacebar and bottom keys */
    .space-key {
        min-width: 70px !important;
        height: 28px !important;
    }

    .backspace-key,
    .clear-key,
    .enter-key,
    .done-key {
        min-width: 38px !important;
        height: 28px !important;
    }

    /* Remove deep shadows to make it flatter */
    .vkey {
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1) !important;
    }

    /* Make keyboard content scroll if still too tall */
    .keyboard-panel::-webkit-scrollbar {
        height: 5px;
    }

    .keyboard-panel::-webkit-scrollbar-thumb {
        background: rgba(0, 0, 0, 0.2);
        border-radius: 4px;
    }
}

/* For ultra-narrow devices (≤400px width) */
@media (max-width: 400px) {
    .vkey {
        min-width: 22px !important;
        height: 25px !important;
        padding: 2px !important;
    }

    .vkey span {
        font-size: 12px !important;
    }

    .space-key {
        min-width: 60px !important;
        height: 25px !important;
    }

    .backspace-key,
    .done-key {
        min-width: 34px !important;
        height: 25px !important;
    }

    .keyboard-panel {
        max-height: 35vh !important;
    }
}

/* Redesigned Calculator Styles */
.calculator-container {
    display: none;
    position: fixed;
    top: 70px;
    right: 20px;
    width: 280px;
    height: auto;
    z-index: 2000;
}

.calculator-panel {
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.calc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.calc-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.calculator-display {
    width: 100%;
    height: 55px;
    font-size: 22px;
    font-weight: 500;
    text-align: right;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    margin-bottom: 18px;
    background: #fff;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.calculator-display:focus {
    border-color: #007bff;
    outline: none;
}

.calc-key-row {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.calc-key-row:last-child {
    margin-bottom: 0;
}

.calc-key {
    flex: 1;
    height: 52px;
    border: 1px solid #dee2e6;
    border-radius: 12px;
    background: #fff;
    font-size: 20px;
    font-weight: 500;
    color: #495057;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.calc-key::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s;
}

.calc-key:hover::before {
    left: 100%;
}

.calc-key:hover {
    background: #f8f9fa;
    border-color: #adb5bd;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.calc-key:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.calc-key.operator {
    background: linear-gradient(145deg, #007bff, #0056b3);
    color: white;
    border-color: #007bff;
    font-weight: 600;
}

.calc-key.operator:hover {
    background: linear-gradient(145deg, #0056b3, #004085);
    border-color: #0056b3;
}

.calc-key.equals {
    background: linear-gradient(145deg, #28a745, #1e7e34);
    color: white;
    border-color: #28a745;
    font-weight: 600;
    height: 52px;
}

.calc-key.equals:hover {
    background: linear-gradient(145deg, #1e7e34, #155724);
    border-color: #1e7e34;
}

.calc-key.clear {
    background: linear-gradient(145deg, #dc3545, #c82333);
    color: white;
    border-color: #dc3545;
    font-weight: 600;
}

.calc-key.clear:hover {
    background: linear-gradient(145deg, #c82333, #bd2130);
    border-color: #c82333;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .calculator-container {
        top: 60px;
        right: 10px;
        left: 10px;
        width: auto;
    }

    .calculator-panel {
        padding: 16px;
        border-radius: 12px;
    }

    .calc-title {
        font-size: 16px;
    }

    .calculator-display {
        font-size: 20px;
        height: 48px;
        padding: 10px 14px;
    }

    .calc-key-row {
        gap: 8px;
        margin-bottom: 8px;
    }

    .calc-key {
        height: 46px;
        font-size: 18px;
        border-radius: 10px;
    }

    .equals {
        height: 46px;
    }
}

@media (max-width: 480px) {
    .calculator-container {
        top: 50px;
        right: 5px;
        left: 5px;
    }

    .calculator-panel {
        padding: 12px;
    }

    .calculator-display {
        font-size: 18px;
        height: 44px;
    }

    .calc-key {
        height: 42px;
        font-size: 16px;
    }

    .calc-key-row {
        gap: 6px;
    }
}

/* Item Modal Styles */
.modal-content {
    border-radius: 25px;
    border: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    overflow-y: hidden;
}

.modal-header {
    background: var(--primary-gradient);
    color: white;
    padding: 15px 20px;
    border-bottom: none;
}

.modal-title {
    font-weight: 700;
    font-size: 18px;
    margin: 0;
}

.modal-header .btn-close {
    filter: brightness(0) invert(1);
    opacity: 0.8;
    transition: opacity 0.3s;
}

.modal-header .btn-close:hover {
    opacity: 1;
}

.modal-body {
    padding: 20px;
}

.modal-layout {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    width: 100%;
}

.modal-left {
    width: 300px;
}

.modal-item-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 12px;
    border: 2px solid var(--border-color);
    margin-bottom: 12px;
}

.modal-item-name {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    line-height: 1.2;
}

.modal-item-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 12px;
}

.modal-price-section {
    margin-bottom: 0;
}

.modal-item-price {
    font-size: 24px;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modal-right {
    display: flex;
    flex-direction: row;
    gap: 15px;
}

.modal-separator {
    width: 250px;
    display: flex;
    flex-direction: column;
    gap: 15px;

}

.modal-item-details {
    display: flex;
    flex-direction: column;
    gap: 15px;

}

.modal-label {
    font-weight: 600;
    font-size: 13px;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.modal-quantity-section,
.modal-discount-section {
    display: flex;
    flex-direction: column;
}

.modal-quantity-control {
    display: flex;
    align-items: center;
    background: var(--card-bg);
    padding: 8px;
    border-radius: 8px;
    border: 2px solid var(--border-color);
    gap: 50px;
}

.modal-qty-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: var(--primary-gradient);
    color: white;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
    font-weight: 700;
}

.modal-qty-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(4, 88, 171, 0.3);
}

.modal-qty-input {
    width: 50px;
    height: 32px;
    text-align: center;
    font-size: 16px;
    font-weight: 700;
    border: none;
    background: transparent;
    color: var(--text-primary);
    margin: 0 8px;
}

.modal-qty-input:focus {
    outline: none;
}

.modal-discount-input {
    padding: 8px 12px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    background: var(--card-bg);
    transition: all 0.3s;
}

.modal-discount-input:focus {
    outline: none;
    border-color: #0458ab;
    box-shadow: 0 0 0 3px rgba(4, 88, 171, 0.1);
}

.modal-price-summary {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 16px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 14px;
    color: var(--text-secondary);
}

.summary-row:last-child {
    border-bottom: none;
    font-weight: 700;
    font-size: 16px;
    color: var(--text-primary);
}

.summary-row span:first-child {
    font-weight: 500;
}

.summary-row span:last-child {
    font-weight: 600;
}

.discount-row {
    color: var(--danger-color);
}

.discount-amount {
    color: var(--danger-color) !important;
}

.total-row {
    border-top: 2px solid var(--border-color);
    padding-top: 12px !important;
    margin-top: 8px;
}

.total-amount {
    background: linear-gradient(135deg, #4caf50 0%, #81c784 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 18px !important;
}

.modal-footer {
    padding: 15px 20px;
    border-top: 1px solid var(--border-color);
    gap: 10px;
}

.modal-footer .btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s;
    border: none;
}

.modal-footer .btn-secondary {
    background: var(--card-bg);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.modal-footer .btn-secondary:hover {
    background: #e2e8f0;
    border-color: var(--text-primary);
}

.modal-footer .btn-primary {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 4px 12px rgba(4, 88, 171, 0.3);
}

.modal-footer .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(4, 88, 171, 0.4);
}

/* Responsive Design */
@media (max-width: 768px) {
    .modal-dialog {
        margin: 10px;
        max-width: calc(100% - 20px);
    }

    .modal-layout {
        flex-direction: column;
        gap: 15px;
    }

    .modal-right {
        flex: none;
        width: 100%;
    }

    .modal-item-image {
        height: 180px;
    }

    .modal-item-name {
        font-size: 18px;
    }

    .modal-item-price {
        font-size: 22px;
    }

    .modal-qty-input {
        width: 40px;
        font-size: 14px;
    }

    .modal-qty-btn {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }

    .summary-row {
        font-size: 13px;
        padding: 6px 0;
    }

    .total-row {
        font-size: 15px;
    }

    .total-amount {
        font-size: 16px !important;
    }

    .modal-footer {
        flex-direction: row;
    }

    .modal-footer .btn {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .modal-body {
        padding: 15px;
    }

    .modal-price-summary {
        padding: 12px;
    }
}

.bill-item-discount {
    font-size: 11px;
    color: var(--danger-color);
    font-weight: 600;
    margin-top: 3px;
}

.bill-item-notes {
    font-size: 11px;
    color: var(--text-secondary);
    font-style: italic;
    margin-top: 3px;
}

.remove-item-btn {
    background: var(--danger-color);
    border: none;
    cursor: pointer;
    font-size: 16px;
    transition: color 0.3s;
    width: 25px;
    height: 25px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

/* Number Pad Styles */
.number-pad-container {
    display: none;
    position: fixed;
    top: 50%;
    left: calc(50% + 400px);
    transform: translateY(-50%);
    z-index: 2000;
    animation: slideInRight 0.3s ease;
}

.number-pad-container.active {
    display: block;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateY(-50%) translateX(100px);
    }

    to {
        opacity: 1;
        transform: translateY(-50%) translateX(0);
    }
}

.number-pad-panel {
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    border: 2px solid var(--border-color);
    width: 280px;
}

.number-pad-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border-color);
}

.number-pad-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.number-pad-display {
    margin-bottom: 15px;
    position: relative;
}

.number-pad-input {
    width: 100%;
    height: 60px;
    font-size: 28px;
    font-weight: 700;
    text-align: right;
    padding: 10px 15px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    background: var(--card-bg);
    color: var(--text-primary);
    pointer-events: none;
}

.number-pad-input:focus {
    outline: none;
    border-color: #0458ab;
}

.number-pad-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.number-pad-row {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.number-pad-key {
    flex: 1;
    height: 55px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    background: white;
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.number-pad-key:hover {
    background: var(--card-bg);
    border-color: #0458ab;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(4, 88, 171, 0.15);
}

.number-pad-key:active {
    transform: translateY(0);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.number-pad-key.clear-key {
    background: linear-gradient(145deg, #fef2f2, #fee2e2);
    color: var(--danger-color);
    font-weight: 700;
}

.number-pad-key.clear-key:hover {
    background: linear-gradient(145deg, #fee2e2, #fecaca);
}

.number-pad-key.backspace-key {
    background: linear-gradient(145deg, #fff7ed, #fed7aa);
    color: #ea580c;
}

.number-pad-key.backspace-key:hover {
    background: linear-gradient(145deg, #fed7aa, #fdba74);
}

.number-pad-key.backspace-key i {
    font-size: 20px;
}

.number-pad-key.done-key {
    background: var(--primary-gradient);
    color: white;
    font-size: 18px;
    font-weight: 700;
    border: none;
}

.number-pad-key.done-key:hover {
    background: linear-gradient(145deg, #04247c, #0458ab);
    box-shadow: 0 6px 15px rgba(4, 88, 171, 0.3);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .number-pad-container {
        left: 50%;
        right: auto;
        top: 50%;
        transform: translate(-50%, -50%);
    }

    .number-pad-container.active {
        animation: scaleIn 0.3s ease;
    }

    @keyframes scaleIn {
        from {
            opacity: 0;
            transform: translate(-50%, -50%) scale(0.9);
        }

        to {
            opacity: 1;
            transform: translate(-50%, -50%) scale(1);
        }
    }

    .number-pad-panel {
        width: 260px;
        padding: 15px;
    }

    .number-pad-input {
        height: 55px;
        font-size: 24px;
    }

    .number-pad-key {
        height: 50px;
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .number-pad-panel {
        width: 240px;
        padding: 12px;
    }

    .number-pad-input {
        height: 50px;
        font-size: 22px;
        padding: 8px 12px;
    }

    .number-pad-body {
        gap: 8px;
    }

    .number-pad-row {
        gap: 8px;
    }

    .number-pad-key {
        height: 45px;
        font-size: 18px;
    }

    .number-pad-key.backspace-key i {
        font-size: 18px;
    }

    .number-pad-key.done-key {
        font-size: 16px;
    }
}

/* Hold Orders Container */
.hold-orders-container {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: var(--card-bg);
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transition: right 0.3s ease;
    overflow-y: auto;
}

.hold-orders-container.active {
    right: 0;
}

.hold-orders-panel {
    padding: 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.hold-orders-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 20px;
}

.hold-orders-header h4 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.close-hold-orders {
    background: var(--danger-color);
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.close-hold-orders:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(255, 82, 82, 0.4);
}

.hold-orders-list {
    flex: 1;
    overflow-y: auto;
}

.empty-hold-orders {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.empty-hold-orders .menu-icon {
    width: 80px;
    height: 80px;
    opacity: 0.3;
    margin-bottom: 20px;
    filter: brightness(0) invert(0.5);
}

.empty-hold-orders p {
    font-size: 14px;
    line-height: 1.6;
}

.hold-order-card {
    background: var(--dark-bg);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
    border: 2px solid var(--border-color);
    cursor: pointer;
    transition: all 0.3s;
    animation: slideInRight 0.3s ease;
}

.hold-order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.hold-order-number {
    font-weight: 700;
    font-size: 16px;
    color: var(--primary-color);
}

.hold-order-time {
    font-size: 12px;
    color: var(--text-secondary);
}

.hold-order-items {
    margin-bottom: 12px;
}

.hold-order-item {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    font-size: 13px;
}

.hold-order-item-name {
    color: var(--text-primary);
    flex: 1;
}

.hold-order-item-qty {
    color: var(--text-secondary);
    margin: 0 10px;
}

.hold-order-item-price {
    color: var(--text-primary);
    font-weight: 600;
}

.hold-order-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
    border-top: 1px solid var(--border-color);
}

.hold-order-total {
    font-weight: 700;
    font-size: 16px;
    color: var(--success-color);
}

.hold-order-actions {
    display: flex;
    gap: 8px;
}

.restore-order-btn {
    background: var(--success-gradient);
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.restore-order-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.delete-hold-order-btn {
    background: var(--danger-color);
    border: none;
    padding: 8px 12px;
    border-radius: 8px;
    color: #fff;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s;
}

.delete-hold-order-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hold-orders-container {
        width: 50%;
        right: -100%;
    }
}

/* Bill Overlay and Mobile Styles */
.bill-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.bill-overlay.active {
    display: block;
    opacity: 1;
}

/* Bill Close Button */
.bill-close-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #ef4444;
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    transition: all 0.3s;
}

.bill-close-btn:hover {
    background: #dc2626;
    transform: scale(1.1);
}

.bill-close-btn img {
    width: 16px;
    height: 16px;
    filter: brightness(0) invert(1);
}

/* Mobile/Tablet - Bill Sidebar */
@media (max-width: 991px) {
    .bill-section {
        position: fixed !important;
        top: 0 !important;
        right: -100% !important;
        bottom: 0 !important;
        width: 480px !important;
        max-width: 85vw !important;
        height: 100vh !important;
        z-index: 999 !important;
        border-radius: 0 !important;
        margin: 0 !important;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
        box-shadow: -4px 0 24px rgba(0, 0, 0, 0.2) !important;
    }

    .bill-section.active {
        right: 0 !important;
    }

    .bill-close-btn {
        display: flex !important;
    }

    .bill-header {
        padding: 20px !important;
        margin-bottom: 15px !important;
    }

    .bill-items {
        flex: 1 !important;
        overflow-y: auto !important;
        max-height: calc(100vh - 320px) !important;
    }

    .bill-footer {
        flex-direction: row !important;
        gap: 30px !important;
        margin: 10px 25px !important;
    }
}

@media (max-width: 991px) and (orientation: landscape) {
    .bill-section {
        width: 380px !important;
        max-width: 75vw !important;
    }
}

@media (min-width: 992px) {
    .bill-toggle-btn {
        display: none !important;
    }

    .bill-overlay {
        display: none !important;
    }
}

/* Notifications Container */
.notifications-container {
    position: fixed;
    top: 0;
    right: -420px;
    width: 420px;
    height: 100vh;
    background: var(--card-bg);
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transition: right 0.3s ease;
}

.notifications-container.active {
    right: 0;
}

.notifications-panel {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.notifications-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 2px solid var(--border-color);
    background: var(--dark-bg);
}

.notifications-header h4 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.notifications-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mark-all-read-btn {
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.mark-all-read-btn:hover {
    background: var(--primary-gradient);
    color: #fff;
    border-color: transparent;
}

.close-notifications {
    background: var(--danger-color);
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.close-notifications:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(255, 82, 82, 0.4);
}

.notifications-list {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
}

.notification-item {
    background: var(--dark-bg);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    border-left: 4px solid transparent;
    cursor: pointer;
    transition: all 0.3s;
    animation: slideInRight 0.3s ease;
    position: relative;
}

.notification-item.unread {
    border-left-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.1), rgba(124, 58, 237, 0.05));
}

.notification-item:hover {
    transform: translateX(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.notification-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.notification-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    margin-right: 12px;
}

.notification-icon.success {
    background: linear-gradient(135deg, #10b981, #059669);
}

.notification-icon.warning {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.notification-icon.info {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.notification-icon.error {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.notification-content {
    flex: 1;
}

.notification-title {
    font-weight: 700;
    font-size: 14px;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.notification-message {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 8px;
}

.notification-time {
    font-size: 11px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 4px;
}

.notification-unread-dot {
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
    position: absolute;
    top: 16px;
    right: 16px;
}

.notification-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
}

.notification-action-btn {
    flex: 1;
    padding: 8px 12px;
    border-radius: 8px;
    border: none;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.notification-action-btn.primary {
    background: var(--primary-gradient);
    color: #fff;
}

.notification-action-btn.secondary {
    background: var(--dark-bg);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.notification-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.empty-notifications {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-secondary);
}

.empty-notifications img {
    width: 100px;
    height: 100px;
    opacity: 0.3;
    margin-bottom: 20px;
    filter: brightness(0) invert(0.5);
}

.empty-notifications p {
    font-size: 14px;
    line-height: 1.6;
}

/* Badge styling */
.badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--danger-color);
    color: #fff;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .notifications-container {
        width: 50%;
        right: -100%;
    }
}

/* Print Styles */
@media print {

    .sidebar,
    .top-bar,
    .category-section,
    .view-toggle,
    .add-btn,
    .clear-all-btn,
    .bill-item-delete,
    .bill-footer {
        display: none !important;
    }

    .main-content {
        margin-left: 0 !important;
        padding: 0 !important;
    }

    .items-section,
    .bill-section {
        box-shadow: none !important;
        border: 1px solid #000 !important;
    }

    body {
        background: white !important;
        color: black !important;
    }

    .item-card {
        break-inside: avoid;
        border: 1px solid #000 !important;
    }
}

/* High DPI Screens */
@media (-webkit-min-device-pixel-ratio: 2),
(min-resolution: 192dpi) {

    .brand-logo,
    .action-btn,
    .add-btn,
    .category-btn img,
    .item-image {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}


/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Custom scrollbar for webkit browsers */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--dark-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-gradient);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #034a8f 0%, #031a5e 100%);
}





/* User Management Styles - Enhanced for POS Theme */
.users-page-container {
    max-width: 1200px;
    margin: 20px auto;
    background: var(--card-bg);
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.users-page-header {
    background: var(--primary-gradient);
    color: white;
    padding: 15px;
    text-align: center;
}

.users-page-header h1 {
    margin: 0;
    font-size: 32px;
    font-weight: 700;
}

.users-page-header p {
    margin: 8px 0 0;
    opacity: 0.9;
    font-size: 16px;
}

.users-page-content {
    padding: 30px;
}

.users-search-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 15px;
}

.search-box {
    position: relative;
    flex: 1;
    max-width: 400px;
}

.search-box input {
    width: 100%;
    padding: 14px 20px 14px 50px;
    border: 2px solid var(--border-color);
    border-radius: 14px;
    background: var(--card-bg);
    color: var(--text-primary);
    font-size: 15px;
    transition: all 0.3s;
}

.search-box input:focus {
    outline: none;
    border-color: var(--text-primary);
    box-shadow: 0 0 0 3px rgba(4, 88, 171, 0.1);
}

.search-box input::placeholder {
    color: var(--text-secondary);
}

.search-box img {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-size: 18px;
}

.users-btn-primary {
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 14px 24px;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 15px;
    box-shadow: 0 4px 12px rgba(4, 88, 171, 0.3);
    transition: all 0.3s;
}

.users-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(4, 88, 171, 0.4);
}

.users-table-section {
    overflow-x: auto;
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
}

.table-wrapper {
    overflow-x: auto;
}

.users-data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

.users-data-table th,
.users-data-table td {
    padding: 10px 20px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.users-data-table th {
    background: var(--dark-bg);
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.users-data-table tr:hover {
    background: rgba(4, 88, 171, 0.02);
}

.users-data-table th:last-child {
    text-align: center;
    /* Center header text */
}

.users-data-table td:last-child {
    text-align: center;
    justify-content: center;
    /* Center flex children (buttons) */
    gap: 8px;
    /* Optional: Space between buttons */
}

.users-btn-small {
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    margin-right: 8px;
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s;
}

.users-btn-edit {
    background: rgba(0, 4, 7, 0.2);
    color: #000000;

}

.users-btn-edit:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(253, 253, 251, 0.3);
}

.users-btn-delete {
    background: var(--danger-color);
    color: white;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

.users-btn-delete:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

.users-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.users-badge-role-4 {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
}

/* Super Admin */

.users-badge-role-1 {
    background: var(--warning-gradient);
    color: var(--text-primary);
}

/* Admin */

.users-badge-role-2 {
    background: linear-gradient(135deg, #17a2b8, #138496);
    color: white;
}

/* Supervisor */

.users-badge-role-3 {
    background: linear-gradient(135deg, #6c757d, #5a6268);
    color: white;
}

/* Operator */

.users-badge-role-5 {
    background: linear-gradient(135deg, #28a745, #1e7e34);
    color: white;
}

/* Manager */

.table-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: var(--dark-bg);
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 14px;
}

.pagination {
    display: flex;
    align-items: center;
    gap: 10px;
}

.page-btn {
    width: 40px;
    height: 40px;
    border: 1px solid var(--border-color);
    background: white;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all 0.3s;
    text-decoration: none;
}

.page-btn:hover {
    background: var(--primary-gradient);
    color: white;
    border-color: var(--primary-gradient);
}

.page-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-num {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-weight: 500;
    min-width: 40px;
    text-align: center;
    text-decoration: none;
    color: var(--text-primary);
}

.page-num.active {
    background: var(--primary-gradient);
    color: white;
    border-color: var(--primary-gradient);
}

.users-modal {
    display: none;
    position: fixed;
    z-index: 1050;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.users-modal-content {
    background: var(--card-bg);
    margin: 5% auto;
    padding: 0;
    border: none;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.users-modal-header {
    padding: 20px;
    background: var(--primary-gradient);
    color: white;
    border-bottom: none;
    border-radius: 20px 20px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.users-modal-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
}

.users-modal-close {
    color: rgba(255, 255, 255, 0.8);
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.users-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.users-form-group {
    padding: 0 25px;
    margin-bottom: 20px;
}

.users-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
}

.users-form-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 15px;
    background: white;
    transition: all 0.3s;
    color: var(--text-primary);
}

.users-form-input:focus {
    outline: none;
    border-color: var(--primary-gradient);
    box-shadow: 0 0 0 3px rgba(4, 88, 171, 0.1);
}

.users-form-input::placeholder {
    color: var(--text-secondary);
}

.users-modal form>div:last-child {
    padding: 20px 25px;
    border-top: 1px solid var(--border-color);
    background: var(--dark-bg);
    border-radius: 0 0 20px 20px;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.users-btn-secondary {
    background: transparent;
    color: var(--text-secondary);
    border: 2px solid var(--border-color);
    padding: 12px 24px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
}

.users-btn-secondary:hover {
    background: var(--hover-bg);
    border-color: var(--text-primary);
    color: var(--text-primary);
}

.users-btn-primary {
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(4, 88, 171, 0.3);
    transition: all 0.3s;
}

.users-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(4, 88, 171, 0.4);
}

/* Responsive */
@media (max-width: 768px) {
    .users-page-content {
        padding: 20px 15px;
    }

    .users-search-section {
        flex-direction: column;
        align-items: stretch;
    }

    .search-box input {
        max-width: none;
    }

    .users-data-table th,
    .users-data-table td {
        padding: 12px 10px;
        font-size: 14px;
    }

    .table-footer {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .users-modal-content {
        margin: 10px;
        width: calc(100% - 20px);
    }

    .users-form-group {
        padding: 0 20px;
    }

    .users-modal form>div:last-child {
        flex-direction: column;
    }

    .users-btn-primary,
    .users-btn-secondary {
        width: 100%;
    }
}




/* User Roles Management Styles*/
.roles-page-container {
    max-width: 1200px;
    margin: 20px auto;
    background: var(--card-bg);
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.roles-page-header {
    background: var(--primary-gradient);
    color: white;
    padding: 15px;
    text-align: center;
}

.roles-page-header h1 {
    margin: 0;
    font-size: 32px;
    font-weight: 700;
}

.roles-page-header p {
    margin: 8px 0 0;
    opacity: 0.9;
    font-size: 16px;
}

.roles-page-content {
    padding: 30px;
}

.roles-search-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 15px;
}

.search-box {
    position: relative;
    flex: 1;
    max-width: 400px;
}

.search-box input {
    width: 100%;
    padding: 14px 20px 14px 50px;
    border: 2px solid var(--border-color);
    border-radius: 14px;
    background: var(--card-bg);
    color: var(--text-primary);
    font-size: 15px;
    transition: all 0.3s;
}

.search-box input:focus {
    outline: none;
    border-color: var(--text-primary);
    box-shadow: 0 0 0 3px rgba(4, 88, 171, 0.1);
}

.search-box input::placeholder {
    color: var(--text-secondary);
}

.search-box img {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-size: 18px;
}

.roles-btn-primary {
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 14px 24px;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 15px;
    box-shadow: 0 4px 12px rgba(4, 88, 171, 0.3);
    transition: all 0.3s;
}

.roles-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(4, 88, 171, 0.4);
}

.roles-table-section {
    overflow-x: auto;
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
}

.table-wrapper {
    overflow-x: auto;
}

.roles-data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

.roles-data-table th,
.roles-data-table td {
    padding: 10px 20px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.roles-data-table th {
    background: var(--dark-bg);
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.roles-data-table tr:hover {
    background: rgba(4, 88, 171, 0.02);
}

.roles-data-table th:last-child {
    text-align: center;
    /* Center header text */
}

.roles-data-table td:last-child {
    text-align: center;
    justify-content: center;
    /* Center flex children (buttons) */
    gap: 12px;
    /* Optional: Space between buttons */
}

.roles-btn-small {
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    margin-right: 8px;
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s;
}

.roles-btn-edit {
    background: rgba(0, 4, 7, 0.2);
    color: #000000;

}

.roles-btn-edit:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(253, 253, 251, 0.3);
}

.roles-btn-delete {
    background: var(--danger-color);
    color: white;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

.roles-btn-delete:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

.table-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: var(--dark-bg);
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 14px;
}

.pagination {
    display: flex;
    align-items: center;
    gap: 10px;
}

.page-btn {
    width: 40px;
    height: 40px;
    border: 1px solid var(--border-color);
    background: white;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all 0.3s;
    text-decoration: none;
}

.page-btn:hover {
    background: var(--primary-gradient);
    color: white;
    border-color: var(--primary-gradient);
}

.page-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-num {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-weight: 500;
    min-width: 40px;
    text-align: center;
    text-decoration: none;
    color: var(--text-primary);
}

.page-num.active {
    background: var(--primary-gradient);
    color: white;
    border-color: var(--primary-gradient);
}

.roles-modal {
    display: none;
    position: fixed;
    z-index: 1050;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.roles-modal-content {
    background: var(--card-bg);
    margin: 5% auto;
    padding: 0;
    border: none;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.roles-modal-header {
    padding: 20px;
    background: var(--primary-gradient);
    color: white;
    border-bottom: none;
    border-radius: 20px 20px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.roles-modal-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
}

.roles-modal-close {
    color: rgba(255, 255, 255, 0.8);
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.roles-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.roles-form-group {
    padding: 10px 25px;
    margin-bottom: 20px;
}

.roles-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
}

.roles-form-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 15px;
    background: white;
    transition: all 0.3s;
    color: var(--text-primary);
}

.roles-form-input:focus {
    outline: none;
    border-color: var(--primary-gradient);
    box-shadow: 0 0 0 3px rgba(4, 88, 171, 0.1);
}

.roles-form-input::placeholder {
    color: var(--text-secondary);
}

.roles-modal form>div:last-child {
    padding: 20px 25px;
    border-top: 1px solid var(--border-color);
    background: var(--dark-bg);
    border-radius: 0 0 20px 20px;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.roles-btn-secondary {
    background: transparent;
    color: var(--text-secondary);
    border: 2px solid var(--border-color);
    padding: 12px 24px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
}

.roles-btn-secondary:hover {
    background: var(--hover-bg);
    border-color: var(--text-primary);
    color: var(--text-primary);
}

.roles-btn-primary {
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(4, 88, 171, 0.3);
    transition: all 0.3s;
}

.roles-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(4, 88, 171, 0.4);
}

/* Responsive */
@media (max-width: 768px) {
    .roles-page-content {
        padding: 20px 15px;
    }

    .roles-search-section {
        flex-direction: column;
        align-items: stretch;
    }

    .search-box input {
        max-width: none;
    }

    .roles-data-table th,
    .roles-data-table td {
        padding: 12px 10px;
        font-size: 14px;
    }

    .table-footer {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .roles-modal-content {
        margin: 10px;
        width: calc(100% - 20px);
    }

    .roles-form-group {
        padding: 0 20px;
    }

    .roles-modal form>div:last-child {
        flex-direction: column;
    }

    .roles-btn-primary,
    .roles-btn-secondary {
        width: 100%;
    }
}



/* Pages Management Styles*/
.pages-page-container {
    max-width: 1200px;
    margin: 20px auto;
    background: var(--card-bg);
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.pages-page-header {
    background: var(--primary-gradient);
    color: white;
    padding: 15px;
    text-align: center;
}

.pages-page-header h1 {
    margin: 0;
    font-size: 32px;
    font-weight: 700;
}

.pages-page-header p {
    margin: 8px 0 0;
    opacity: 0.9;
    font-size: 16px;
}

.pages-page-content {
    padding: 30px;
}

.pages-search-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 15px;
}

.search-box {
    position: relative;
    flex: 1;
    max-width: 400px;
}

.search-box input {
    width: 100%;
    padding: 14px 20px 14px 50px;
    border: 2px solid var(--border-color);
    border-radius: 14px;
    background: var(--card-bg);
    color: var(--text-primary);
    font-size: 15px;
    transition: all 0.3s;
}

.search-box input:focus {
    outline: none;
    border-color: var(--text-primary);
    box-shadow: 0 0 0 3px rgba(4, 88, 171, 0.1);
}

.search-box input::placeholder {
    color: var(--text-secondary);
}

.search-box img {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-size: 18px;
}

.pages-btn-primary {
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 14px 24px;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 15px;
    box-shadow: 0 4px 12px rgba(4, 88, 171, 0.3);
    transition: all 0.3s;
}

.pages-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(4, 88, 171, 0.4);
}

.pages-table-section {
    overflow-x: auto;
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
}

.table-wrapper {
    overflow-x: auto;
}

.pages-data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

.pages-data-table th,
.pages-data-table td {
    padding: 10px 20px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.pages-data-table th {
    background: var(--dark-bg);
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pages-data-table tr:hover {
    background: rgba(4, 88, 171, 0.02);
}

.pages-data-table th:last-child {
    text-align: center;
    /* Center header text */
}

.pages-data-table td:last-child {
    text-align: center;
    justify-content: center;
    /* Center flex children (buttons) */
    gap: 12px;
    /* Optional: Space between buttons */
}

.pages-btn-small {
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    margin-right: 8px;
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s;
}

.pages-btn-edit {
    background: rgba(0, 4, 7, 0.2);
    color: #000000;

}

.pages-btn-edit:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(253, 253, 251, 0.3);
}

.pages-btn-delete {
    background: var(--danger-color);
    color: white;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

.pages-btn-delete:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

.table-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: var(--dark-bg);
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 14px;
}

.pagination {
    display: flex;
    align-items: center;
    gap: 10px;
}

.page-btn {
    width: 40px;
    height: 40px;
    border: 1px solid var(--border-color);
    background: white;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all 0.3s;
    text-decoration: none;
}

.page-btn:hover {
    background: var(--primary-gradient);
    color: white;
    border-color: var(--primary-gradient);
}

.page-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-num {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-weight: 500;
    min-width: 40px;
    text-align: center;
    text-decoration: none;
    color: var(--text-primary);
}

.page-num.active {
    background: var(--primary-gradient);
    color: white;
    border-color: var(--primary-gradient);
}

.pages-modal {
    display: none;
    position: fixed;
    z-index: 1050;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.pages-modal-content {
    background: var(--card-bg);
    margin: 5% auto;
    padding: 0;
    border: none;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.pages-modal-header {
    padding: 20px;
    background: var(--primary-gradient);
    color: white;
    border-bottom: none;
    border-radius: 20px 20px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pages-modal-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
}

.pages-modal-close {
    color: rgba(255, 255, 255, 0.8);
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.pages-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.pages-form-group {
    padding: 0 25px;
    margin-bottom: 20px;
}

.pages-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
}

.pages-form-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 15px;
    background: white;
    transition: all 0.3s;
    color: var(--text-primary);
}

.pages-form-input:focus {
    outline: none;
    border-color: var(--primary-gradient);
    box-shadow: 0 0 0 3px rgba(4, 88, 171, 0.1);
}

.pages-form-input::placeholder {
    color: var(--text-secondary);
}

.pages-modal form>div:last-child {
    padding: 20px 25px;
    border-top: 1px solid var(--border-color);
    background: var(--dark-bg);
    border-radius: 0 0 20px 20px;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.pages-btn-secondary {
    background: transparent;
    color: var(--text-secondary);
    border: 2px solid var(--border-color);
    padding: 12px 24px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
}

.pages-btn-secondary:hover {
    background: var(--hover-bg);
    border-color: var(--text-primary);
    color: var(--text-primary);
}

.pages-btn-primary {
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(4, 88, 171, 0.3);
    transition: all 0.3s;
}

.pages-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(4, 88, 171, 0.4);
}

/* Responsive */
@media (max-width: 768px) {
    .pages-page-content {
        padding: 20px 15px;
    }

    .pages-search-section {
        flex-direction: column;
        align-items: stretch;
    }

    .search-box input {
        max-width: none;
    }

    .pages-data-table th,
    .pages-data-table td {
        padding: 12px 10px;
        font-size: 14px;
    }

    .table-footer {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .pages-modal-content {
        margin: 10px;
        width: calc(100% - 20px);
    }

    .pages-form-group {
        padding: 0 20px;
    }

    .pages-modal form>div:last-child {
        flex-direction: column;
    }

    .pages-btn-primary,
    .pages-btn-secondary {
        width: 100%;
    }
}


/* Access Roles Management Styles*/
.access-roles-page-container {
    max-width: 1200px;
    margin: 20px auto;
    background: var(--card-bg);
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    border: 1px solid var(--border-color);
    padding: 20px;
}

.access-roles-page-header {
    background: var(--primary-gradient);
    color: white;
    padding: 15px;
    text-align: center;
    margin: -20px -20px 20px -20px;
    border-radius: 20px 20px 0 0;
}

.access-roles-page-header h1 {
    margin: 0;
    font-size: 32px;
    font-weight: 700;
}

.access-roles-page-header p {
    margin: 8px 0 0;
    opacity: 0.9;
    font-size: 16px;
}

.access-roles-page-content {
    padding: 0;
}

.access-roles-selection {
    margin-bottom: 30px;
}

.access-roles-label {
    font-weight: 600;
    margin-bottom: 10px;
    display: block;
    font-size: 1rem;
    color: var(--text-primary);
}

.access-roles-select {
    padding: 12px 15px;
    width: 100%;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    font-size: 1rem;
    color: var(--text-primary);
    transition: all 0.3s;
}

.access-roles-select:focus {
    outline: none;
    border-color: var(--primary-gradient);
    box-shadow: 0 0 0 3px rgba(4, 88, 171, 0.1);
}

.access-roles-grid-container {
    display: none;
    margin-top: 20px;
}

.access-roles-info-banner {
    background: rgba(59, 130, 246, 0.1);
    border-left: 4px solid var(--primary-gradient);
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 25px;
}

.access-roles-info-banner p {
    margin: 0;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.access-roles-grid-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.access-roles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.access-roles-btn {
    padding: 20px;
    border: 2px solid rgb(0, 0, 0);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    position: relative;
    overflow: hidden;
}

.access-roles-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
}

.access-roles-btn.active {
    border-color: var(--success-gradient);
    background: rgba(16, 185, 129, 0.15);
}

.access-roles-btn-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.access-roles-btn-header {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.access-roles-btn-icon {
    font-size: 1.5rem;
    margin-right: 10px;
    color: rgba(255, 255, 255, 0.7);
}

.access-roles-btn-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.access-roles-btn-desc {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.access-roles-btn-status {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.access-roles-btn.active .access-roles-btn-status {
    background: var(--success-gradient);
    border-color: var(--success-gradient);
}

.access-roles-btn-check {
    font-size: 1rem;
    color: white;
    opacity: 0;
    transition: opacity 0.3s;
}

.access-roles-btn.active .access-roles-btn-check {
    opacity: 1;
}

.access-roles-save-section {
    text-align: center;
}

.access-roles-btn-save {
    background: var(--primary-gradient);
    color: white;
    padding: 14px 40px;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.access-roles-btn-save:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(59, 130, 246, 0.4);
}

.access-roles-btn-save:active {
    transform: translateY(0);
}

.access-roles-empty-state {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-secondary);
}

.access-roles-empty-state i {
    font-size: 5rem;
    margin-bottom: 25px;
    display: block;
    color: rgba(255, 255, 255, 0.2);
}

.access-roles-empty-title {
    font-size: 1.5rem;
    margin-bottom: 12px;
    color: var(--text-primary);
    font-weight: 600;
}

.access-roles-empty-desc {
    font-size: 1rem;
    color: var(--text-secondary);
}

/* Responsive */
@media (max-width: 768px) {
    .access-roles-page-content {
        padding: 0 10px;
    }

    .access-roles-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .access-roles-btn {
        width: 100%;
    }

    .access-roles-btn-save {
        width: 100%;
        justify-content: center;
    }
}


/* Access Permissions Management Styles*/
.access-permissions-main-container {
    max-width: 1400px;
    margin: 0 auto;
    background: var(--card-bg);
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    border: 1px solid var(--border-color);
    padding: 20px;
    height: 600px;
}

.access-permissions-main-header {
    background: var(--primary-gradient);
    color: white;
    padding: 15px;
    text-align: center;
    margin: -20px -20px 20px -20px;
    border-radius: 20px 20px 0 0;
}

.access-permissions-main-header h1 {
    margin: 0;
    font-size: 32px;
    font-weight: 700;
}

.access-permissions-main-header p {
    margin: 8px 0 0;
    opacity: 0.9;
    font-size: 16px;
}

.access-permissions-main-content {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

.access-permissions-role-section {
    margin-bottom: 10px;
    max-width: 400px;
}

.access-permissions-role-label {
    font-weight: 600;
    margin-bottom: 10px;
    display: block;
    font-size: 1rem;
    color: var(--text-primary);
}

.access-permissions-role-select {
    padding: 12px 15px;
    width: 100%;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    font-size: 1rem;
    color: var(--text-primary);
    transition: all 0.3s;
}

.access-permissions-role-select:focus {
    outline: none;
    border-color: var(--primary-gradient);
    box-shadow: 0 0 0 3px rgba(4, 88, 171, 0.1);
}

.access-permissions-pages-grid {
    flex: 1;
    overflow-y: auto;
    padding: 0 10px 70px;
    margin-top: 10px;
    margin-bottom: 250px;

}

/* Optional: style scrollbar for better UX */
.access-permissions-pages-grid::-webkit-scrollbar {
    width: 8px;
}

.access-permissions-pages-grid::-webkit-scrollbar-thumb {
    background-color: #ccc;
    border-radius: 4px;
}

.access-permissions-pages-grid::-webkit-scrollbar-thumb:hover {
    background-color: #999;
}

.access-permissions-info-section {
    background: rgba(59, 130, 246, 0.1);
    border-left: 4px solid var(--primary-gradient);
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 25px;
}

.access-permissions-info-section p {
    margin: 0;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.access-permissions-info-icon {
    width: 15px;
    height: 15px;
    margin-right: 8px;
}

.access-permissions-categories-section {
    display: block;
    overflow: auto;
}

.access-permissions-category-block {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgb(0, 0, 0);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.access-permissions-category-heading {
    display: flex;
    align-items: center;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-primary);
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
}

.access-permissions-category-icon {
    margin-right: 8px;
    color: var(--primary-gradient);
}

.access-permissions-pages-horizontal-section {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
    align-items: stretch;
}

.access-permissions-page-block {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: all 0.3s ease;
    min-height: 70px;
    display: flex;
    align-items: center;
}

.access-permissions-page-block:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary-gradient);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.access-permissions-page-block-content {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    width: 100%;
}

.access-permissions-page-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary-gradient);
    flex-shrink: 0;
}

.access-permissions-page-label {
    flex: 1;
    cursor: pointer;
    margin: 0;
    min-width: 0;
}

.access-permissions-page-title {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.access-permissions-page-subtext {
    color: var(--text-secondary);
    font-size: 0.8rem;
    display: block;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.access-permissions-toggle-switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 24px;
    flex-shrink: 0;
}

.access-permissions-toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.access-permissions-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--border-color);
    transition: 0.3s;
    border-radius: 24px;
}

.access-permissions-toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.access-permissions-toggle-switch input:checked+.access-permissions-toggle-slider {
    background-color: var(--primary-gradient);
    opacity: 1;
}

.access-permissions-toggle-switch input:checked+.access-permissions-toggle-slider:before {
    transform: translateX(24px);
    background-color: white;
}

.access-permissions-toggle-switch:hover .access-permissions-toggle-slider {
    background-color: rgb(0, 0, 0);
}

.access-permissions-toggle-switch input:checked+.access-permissions-toggle-slider {
    background-color: #04247c;
}

.access-permissions-toggle-slider,
.access-permissions-toggle-slider:before {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    /* Smooth easing */
}

.access-permissions-save-block {
    text-align: center;
    margin-top: 30px;
}

.access-permissions-save-btn {
    background: var(--primary-gradient);
    color: white;
    padding: 12px 35px;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.access-permissions-save-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(4, 88, 171, 0.3);
}

.access-permissions-save-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.access-permissions-empty-block {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.access-permissions-empty-block i {
    font-size: 4rem;
    margin-bottom: 20px;
    display: block;
    color: rgba(255, 255, 255, 0.3);
}

.access-permissions-empty-heading {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.access-permissions-empty-text {
    font-size: 1rem;
    color: var(--text-secondary);
}

/* Responsive */
@media (max-width: 1200px) {
    .access-permissions-pages-horizontal-section {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .access-permissions-pages-horizontal-section {
        grid-template-columns: 1fr;
    }

    .access-permissions-page-title {
        font-size: 0.85rem;
    }

    .access-permissions-page-subtext {
        font-size: 0.7rem;
    }

    .access-permissions-save-btn {
        width: 100%;
        justify-content: center;
    }
}




/* Page Categories Management Styles - Enhanced for POS Theme */
.categories-page-container {
    max-width: 1200px;
    margin: 20px auto;
    background: var(--card-bg);
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.categories-page-header {
    background: var(--primary-gradient);
    color: white;
    padding: 15px;
    text-align: center;
}

.categories-page-header h1 {
    margin: 0;
    font-size: 32px;
    font-weight: 700;
}

.categories-page-header p {
    margin: 8px 0 0;
    opacity: 0.9;
    font-size: 16px;
}

.categories-page-content {
    padding: 30px;
}

.categories-search-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 15px;
}

.search-box {
    position: relative;
    flex: 1;
    max-width: 400px;
}

.search-box input {
    width: 100%;
    padding: 14px 20px 14px 50px;
    border: 2px solid var(--border-color);
    border-radius: 14px;
    background: var(--card-bg);
    color: var(--text-primary);
    font-size: 15px;
    transition: all 0.3s;
}

.search-box input:focus {
    outline: none;
    border-color: var(--text-primary);
    box-shadow: 0 0 0 3px rgba(4, 88, 171, 0.1);
}

.search-box input::placeholder {
    color: var(--text-secondary);
}

.search-box .search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-size: 18px;
}

.categories-btn-primary {
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 14px 24px;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 15px;
    box-shadow: 0 4px 12px rgba(4, 88, 171, 0.3);
    transition: all 0.3s;
}

.categories-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(4, 88, 171, 0.4);
}

.categories-table-section {
    overflow-x: auto;
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
}

.table-wrapper {
    overflow-x: auto;
}

.categories-data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

.categories-data-table th,
.categories-data-table td {
    padding: 10px 20px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.categories-data-table th {
    background: var(--dark-bg);
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.categories-data-table tr:hover {
    background: rgba(4, 88, 171, 0.02);
}

.categories-data-table th:last-child {
    text-align: center;
    /* Center header text */
}

.categories-data-table td:last-child {
    text-align: center;
    justify-content: center;
    /* Center flex children (buttons) */
    gap: 12px;
    /* Optional: Space between buttons */
}

.categories-btn-small {
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    margin-right: 8px;
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s;
}

.categories-btn-edit {
    background: var(--hover-bg);
    color: var(--text-primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.categories-btn-edit:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.categories-btn-delete {
    background: var(--danger-color);
    color: white;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

.categories-btn-delete img {
    filter: brightness(0) invert(1);
}

.categories-btn-delete:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

.no-actions {
    color: var(--text-secondary);
    font-size: 12px;
}

.no-data {
    text-align: center;
    padding: 40px;
    color: var(--text-secondary);
}

.table-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: var(--hover-bg);
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 14px;
}

.pagination {
    display: flex;
    align-items: center;
    gap: 10px;
}

.page-btn {
    width: 40px;
    height: 40px;
    border: 1px solid var(--border-color);
    background: white;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all 0.3s;
    text-decoration: none;
}

.page-btn:hover {
    background: var(--primary-gradient);
    color: white;
    border-color: var(--primary-gradient);
}

.page-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-num {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-weight: 500;
    min-width: 40px;
    text-align: center;
    text-decoration: none;
    color: var(--text-primary);
}

.page-num.active {
    background: var(--primary-gradient);
    color: white;
    border-color: var(--primary-gradient);
}

.pagination-icon {
    width: 12px;
    height: 12px;
}

.categories-modal {
    display: none;
    position: fixed;
    z-index: 1050;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.categories-modal-content {
    background: var(--card-bg);
    margin: 15% auto;
    padding: 0;
    border: none;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    /* overflow: hidden; */
    /* max-height: 10px; */
    display: flex;
    flex-direction: column;

    overflow-y: auto;
    /* Enables vertical scroll when content exceeds height */
    overflow-x: hidden;
}

.categories-modal-header {
    padding: 20px;
    background: var(--primary-gradient);
    color: white;
    border-bottom: none;
    border-radius: 20px 20px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.categories-modal-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
}



.categories-modal-content {
    display: flex !important;
    flex-direction: column !important;
    max-height: 100vh !important;
    /* limit modal height */
    margin-bottom: 10px !important;
}

.category-form {
    overflow-y: auto !important;
    overflow-x: hidden !important;
    flex: 1 !important;
    /* make only the form scrollable */
    padding-right: 5px !important;
    /* prevent scrollbar overlap */
}


.categories-modal-header {
    top: 0 !important;
}

.categories-modal-close {
    color: rgba(255, 255, 255, 0.8);
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.categories-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.category-form {
    flex: 1;
    overflow-y: auto;
    max-height: calc(1000px - 140px);
    display: flex;
    flex-direction: column;
}

.categories-form-group {
    padding: 0 25px;
    margin-bottom: 15px;
    flex-shrink: 0;
}

.categories-modal form>div:last-child {
    padding: 20px 25px;
    border-top: 1px solid var(--border-color);
    background: var(--dark-bg);
    border-radius: 0 0 20px 20px;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    flex-shrink: 0;
    /* Prevent footer shrink */
    margin-top: auto;
    /* Push to bottom */
}

.categories-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
}

.category-form::-webkit-scrollbar {
    width: 6px;
}

.category-form::-webkit-scrollbar-track {
    background: var(--hover-bg);
    border-radius: 3px;
}

.category-form::-webkit-scrollbar-thumb {
    background: var(--primary-gradient);
    border-radius: 3px;
}

.category-form::-webkit-scrollbar-thumb:hover {
    background: rgba(4, 88, 171, 0.8);
}

/* Icon Preview Style (if added) */
.categories-icon-preview {
    width: 100px;
    height: 100px;
    object-fit: cover;
    margin-top: 10px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.categories-form-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 15px;
    background: white;
    transition: all 0.3s;
    color: var(--text-primary);
}

.categories-form-input:focus {
    outline: none;
    border-color: var(--primary-gradient);
    box-shadow: 0 0 0 3px rgba(4, 88, 171, 0.1);
}

.categories-form-input::placeholder {
    color: var(--text-secondary);
}

.categories-modal-footer {
    padding: 20px 25px;
    border-top: 1px solid var(--border-color);
    background: var(--dark-bg);
    border-radius: 0 0 20px 20px;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.categories-btn-secondary {
    background: transparent;
    color: var(--text-secondary);
    border: 2px solid var(--border-color);
    padding: 12px 24px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
}

.categories-btn-secondary:hover {
    background: var(--hover-bg);
    border-color: var(--text-primary);
    color: var(--text-primary);
}

.categories-btn-primary {
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(4, 88, 171, 0.3);
    transition: all 0.3s;
}

.categories-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(4, 88, 171, 0.4);
}

.btn-icon {
    width: 12px;
    height: 12px;
}

.pagination-icon {
    width: 12px;
    height: 12px;
}

/* Responsive */
@media (max-width: 768px) {
    .categories-page-content {
        padding: 20px 15px;
    }

    .categories-search-section {
        flex-direction: column;
        align-items: stretch;
    }

    .search-box input {
        max-width: none;
    }

    .categories-data-table th,
    .categories-data-table td {
        padding: 12px 10px;
        font-size: 14px;
    }

    .table-footer {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .categories-modal-content {
        margin: 10px;
        width: calc(100% - 20px);
        max-height: 95vh;
        margin: 2.5% auto;


    }

    .categories-modal form#categoryForm {
        max-height: calc(95vh - 140px);
        padding: 15px;
    }

    .categories-form-group {
        padding: 0 20px;
    }

    .categories-modal-footer {
        flex-direction: column;
    }

    .categories-btn-primary,
    .categories-btn-secondary {
        width: 100%;
    }
}





/* order tab */
.orders-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 2rem 0;
    margin-bottom: 2rem;
    border-radius: 0 0 20px 20px;
}

.orders-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.orders-subtitle {
    opacity: 0.9;
    font-size: 0.95rem;
}

.stats-card-wrapper {
    margin-bottom: 2rem;
}

.stats-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: var(--card-shadow);
    border: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.stats-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.15);
}

.stats-icon-box {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.stats-icon-box.primary {
    background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
    color: white;
}

.stats-icon-box.success {
    background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
    color: white;
}

.stats-icon-box.warning {
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
    color: white;
}

.stats-icon-box.danger {
    background: linear-gradient(135deg, #ef4444 0%, #f87171 100%);
    color: white;
}

.stats-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 0.25rem;
}

.stats-label {
    color: #6b7280;
    font-size: 0.875rem;
    font-weight: 500;
}

.main-content-card {
    background: white;
    border-radius: 16px;
    box-shadow: var(--card-shadow);
    overflow: hidden;
}

.content-card-header {
    background: linear-gradient(to right, #f9fafb, #ffffff);
    padding: 1.5rem;
    border-bottom: 2px solid #e5e7eb;
}

.filter-section {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.search-input-wrapper {
    position: relative;
    flex: 1;
    min-width: 250px;
}

.search-input-wrapper i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
}

.search-field {
    padding-left: 2.5rem;
    border-radius: 10px;
    border: 2px solid #e5e7eb;
    transition: all 0.3s ease;
}

.search-field:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.filter-dropdown {
    border-radius: 10px;
    border: 2px solid #e5e7eb;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
}

.filter-dropdown:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.action-btn {
    border-radius: 10px;
    padding: 0.5rem 1.5rem;
    font-weight: 600;
    border: none;
    transition: all 0.3s ease;
}

.action-btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
}

.action-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(79, 70, 229, 0.3);
}

.orders-table-wrapper {
    overflow-x: auto;
}

.orders-data-table {
    width: 100%;
    margin-bottom: 0;
}

.orders-data-table thead {
    background: linear-gradient(to right, #f9fafb, #f3f4f6);
}

.orders-data-table th {
    padding: 10px;
    font-weight: 600;
    color: var(--dark-color);
    border-bottom: 2px solid #e5e7eb;
    white-space: nowrap;
}

.orders-data-table td {
    padding: 1rem;
    vertical-align: middle;
    border-bottom: 1px solid #f3f4f6;
}

.orders-data-table tbody tr {
    transition: background-color 0.2s ease;
}

.orders-data-table tbody tr:hover {
    background-color: #f9fafb;
}

.order-number {
    font-weight: 600;
    color: var(--primary-color);
}

.customer-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.customer-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
}

.customer-details h6 {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--dark-color);
}

.customer-details p {
    margin: 0;
    font-size: 0.8rem;
    color: #6b7280;
}

.status-badge {
    padding: 0.4rem 0.9rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
}

.status-completed {
    background: #d1fae5;
    color: #065f46;
}

.status-pending {
    background: #fef3c7;
    color: #92400e;
}

.status-processing {
    background: #dbeafe;
    color: #1e40af;
}

.status-cancelled {
    background: #fee2e2;
    color: #991b1b;
}

.amount-text {
    font-weight: 700;
    color: var(--dark-color);
    font-size: 1.05rem;
}

.table-action-btn {
    border: none;
    background: transparent;
    padding: 0.4rem;
    margin: 0 0.2rem;
    border-radius: 6px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.table-action-btn:hover {
    background: #f3f4f6;
}

.table-action-btn i {
    font-size: 1rem;
}

.pagination-wrapper {
    padding: 1.5rem;
    background: #f9fafb;
    border-top: 2px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.custom-pagination .page-link {
    border-radius: 8px;
    margin: 0 0.25rem;
    border: 2px solid #e5e7eb;
    color: var(--dark-color);
    padding: 0.5rem 0.9rem;
    font-weight: 600;
}

.custom-pagination .page-link:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.custom-pagination .page-item.active .page-link {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

@media (max-width: 768px) {
    .orders-title {
        font-size: 1.5rem;
    }

    .stats-value {
        font-size: 1.5rem;
    }

    .filter-section {
        flex-direction: column;
    }

    .search-input-wrapper {
        width: 100%;
    }

    .orders-data-table {
        font-size: 0.875rem;
    }

    .customer-avatar {
        width: 35px;
        height: 35px;
    }
}




/* Orders Management Styles */
.orders-page-container {
    max-width: 1400px;
    margin: 20px auto;
    background: var(--card-bg);
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    overflow: auto;
    height: auto;
    border: 1px solid var(--border-color);
}

.orders-page-header {
    background: var(--primary-gradient);
    color: white;
    padding: 13px;
    text-align: center;
}

.orders-page-header h1 {
    margin: 0;
    font-size: 32px;
    font-weight: 700;
}

.orders-page-header p {
    margin: 0 0 0;
    opacity: 0.9;
    font-size: 16px;
}

.orders-page-content {
    padding: 15px;
    height: auto;
    overflow-y: auto;
    overflow-x: hidden;
}

.orders-stats-section {
    margin-bottom: 15px;
}

.orders-stat-card {
    background: white;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
    transition: all 0.3s;
    height: 107px;
    display: flex;
    align-items: center;
    gap: 17px;

}

.orders-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.orders-stat-icon {
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.orders-stat-content .orders-stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.orders-stat-content .orders-stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

.orders-search-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.orders-search-box {
    position: relative;
    flex: 1;
    max-width: 500px;
}

.orders-search-box .orders-search-input {
    width: 100%;
    padding: 10px 20px 14px 50px;
    border: 2px solid var(--border-color);
    border-radius: 14px;
    background: var(--card-bg);
    color: var(--text-primary);
    font-size: 15px;
    transition: all 0.3s;
    align-items: center;
    text-align: left;
}

.orders-search-box .orders-search-input:focus {
    outline: none;
    border-color: var(--text-primary);
    box-shadow: 0 0 0 3px rgba(4, 88, 171, 0.1);
}

.orders-search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-size: 18px;
}

.orders-btn-primary {
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 14px 24px;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 15px;
    box-shadow: 0 4px 12px rgba(4, 88, 171, 0.3);
    transition: all 0.3s;
}

.orders-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(4, 88, 171, 0.4);
}

.orders-table-section {
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.orders-table-wrapper {
    overflow-x: auto;
}

.orders-data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

.orders-data-table th,
.orders-data-table td {
    padding: 12px 16px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.orders-data-table th {
    background: var(--dark-bg);
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.orders-data-table tr:hover {
    background: rgba(4, 88, 171, 0.02);
}

.orders-data-table td:last-child {
    text-align: center;
}

.ordersTableBody {
    height: 500px;
    overflow-y: auto;
}

.orders-customer-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.orders-customer-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 14px;
}

.orders-customer-details h6 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.orders-customer-details p {
    margin: 2px 0 0;
    font-size: 12px;
    color: var(--text-secondary);
}

.orders-amount {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 1.1rem;
}

.orders-status-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.orders-status-completed {
    background: #d1fae5;
    color: #065f46;
}

.orders-status-pending {
    background: #fef3c7;
    color: #92400e;
}

.orders-status-processing {
    background: #dbeafe;
    color: #1e40af;
}

.orders-status-held {
    background: #fee2e2;
    color: #991b1b;
}

.orders-actions {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.orders-action-btn {
    padding: 8px 12px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s;
}

.orders-action-view {
    background: var(--hover-bg);
    color: var(--text-primary);
}

.orders-action-view:hover {
    background: var(--text-primary);
    color: white;
}

.orders-action-modify {
    background: var(--primary-gradient);
    color: white;
}

.orders-action-modify:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(4, 88, 171, 0.3);
}

.orders-action-delete {
    background: var(--danger-color);
    color: white;
}

.orders-action-delete:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

.orders-no-actions {
    color: var(--text-secondary);
    font-size: 12px;
}

.orders-no-data {
    text-align: center;
    padding: 40px;
    color: var(--text-secondary);
    font-style: italic;
}

.orders-table-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px;
    background: var(--hover-bg);
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 14px;
}

.orders-pagination {
    display: flex;
    align-items: center;
    gap: 8px;
}

.orders-modal {
    display: none;
    position: fixed;
    z-index: 1050;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.orders-modal-content {
    background: var(--card-bg);
    margin: 10% auto;
    padding: 0;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    max-height: 80vh;
    overflow: hidden;
}

.orders-modal-header {
    padding: 20px;
    background: var(--primary-gradient);
    color: white;
    border-radius: 20px 20px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.orders-modal-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
}

.orders-modal-close {
    color: rgba(255, 255, 255, 0.8);
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.orders-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.orders-form {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.orders-form-group {
    margin-bottom: 20px;
    flex-shrink: 0;
}

.orders-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
}

.orders-form-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 15px;
    background: white;
    transition: all 0.3s;
    color: var(--text-primary);
}

.orders-form-input:focus {
    outline: none;
    border-color: var(--primary-gradient);
    box-shadow: 0 0 0 3px rgba(4, 88, 171, 0.1);
}

.orders-modal-footer {
    padding: 20px;
    border-top: 1px solid var(--border-color);
    background: var(--dark-bg);
    border-radius: 0 0 20px 20px;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    flex-shrink: 0;
}

.orders-btn-secondary {
    background: transparent;
    color: var(--text-secondary);
    border: 2px solid var(--border-color);
    padding: 12px 24px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
}

.orders-btn-secondary:hover {
    background: var(--hover-bg);
    border-color: var(--text-primary);
    color: var(--text-primary);
}

.orders-table-scroll {
    max-height: 500px;    /* Set height you want  */
    overflow-y: auto;     /* Enable vertical scrolling */
    overflow-x: hidden;
}

.orders-data-table thead th {
    position: sticky;
    top: 0;
    background: #fff;     /* Keep header visible while scrolling */
    z-index: 10;
}


/* Responsive */
@media (max-width: 768px) {
    .orders-page-content {
        padding: 20px 15px;
    }

    .orders-search-section {
        flex-direction: column;
        align-items: stretch;
    }

    .orders-data-table th,
    .orders-data-table td {
        padding: 10px 8px;
        font-size: 13px;
    }

    .orders-table-footer {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .orders-modal-content {
        margin: 5%;
        width: 90%;
        max-height: 90vh;
    }

    .orders-stat-card {
        margin-bottom: 1rem;
    }

    .orders-actions {
        flex-direction: column;
        gap: 4px;
    }

    .orders-action-btn {
        width: 100%;
        justify-content: center;
    }
}



/* Payment Modal Styles */
.modal-dialog.modal-dialog-centered.modal-lg {
    overflow-y: hidden;
}

.pay-modal-card {
    border-radius: 25px;
    border: none;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    overflow-y: hidden;
    max-width: 600px;
    margin: 1.75rem auto;
}

.pay-modal-body {
    padding: 2rem;
    max-height: 70vh;
    overflow-y: auto;
}

/* Custom Scrollbar for Modal Body */
.pay-modal-body::-webkit-scrollbar {
    width: 6px;
}

.pay-modal-body::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
}

.pay-modal-body::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #0458ab 0%, #0a7de6 100%);
    border-radius: 3px;
}

.pay-modal-body::-webkit-scrollbar-thumb:hover {
    background: rgba(4, 88, 171, 0.8);
}

/* Order Summary Card */
.pay-order-summary-card {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    border: 1px solid #e2e8f0;
}

.pay-order-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.pay-order-header i {
    color: #0458ab;
    font-size: 1.25rem;
}

.pay-order-header h6 {
    margin: 0;
    color: #1e293b;
    font-size: 1rem;
    font-weight: 600;
}

.pay-order-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.pay-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e2e8f0;
}

.pay-detail-row:last-child {
    border-bottom: none;
}

.pay-detail-label {
    font-weight: 500;
    color: #64748b;
    font-size: 0.95rem;
}

.pay-detail-value {
    font-weight: 600;
    color: #1e293b;
    font-size: 1rem;
}

/* Form Grid */
.pay-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.pay-form-field {
    display: flex;
    flex-direction: column;
}

.pay-form-field.full-width {
    grid-column: 1 / -1;
}

.pay-label {
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.pay-select,
.pay-input,
.pay-textarea {
    padding: 0.75rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    background: white;
    color: #1e293b;
    font-size: 1rem;
    transition: all 0.3s;
}

.pay-select:focus,
.pay-input:focus,
.pay-textarea:focus {
    outline: none;
    border-color: #0458ab;
    box-shadow: 0 0 0 3px rgba(4, 88, 171, 0.1);
}

.pay-input.pay-balance-input {
    background: #f8fafc;
    font-weight: 600;
    color: #059669;
}

.pay-input.pay-balance-input.text-danger {
    color: #dc2626;
}

.pay-helper-text {
    font-size: 0.85rem;
    color: #64748b;
    margin-top: 0.25rem;
    font-style: italic;
}

/* Modal Footer */
.pay-modal-footer {
    padding: 1.5rem 2rem;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.pay-btn {
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s;
    min-width: 140px;
    justify-content: center;
}

.pay-btn-secondary {
    background: #f1f5f9;
    color: #64748b;
    border: 2px solid #e2e8f0;
}

.pay-btn-secondary:hover {
    background: #e2e8f0;
    color: #475569;
    transform: translateY(-1px);
}

.pay-btn-primary {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.pay-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4);
}

/* Responsive */
@media (max-width: 768px) {
    .pay-modal-dialog {
        margin: 0.5rem;
    }

    .pay-form-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .pay-modal-title {
        order: 2;
    }

    .pay-header-icon {
        order: 1;
    }

    .pay-close-btn {
        position: absolute;
        top: 1rem;
        right: 1rem;
    }

    .pay-modal-footer {
        flex-direction: column;
        padding: 1rem;
    }

    .pay-btn {
        width: 100%;
    }

    .pay-order-details {
        gap: 0.75rem;
    }

    .pay-detail-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }

    .pay-detail-value {
        font-size: 1.1rem;
        font-weight: 700;
    }
}

@media (max-width: 576px) {
    .pay-modal-body {
        padding: 1rem;
    }

    .pay-order-summary-card {
        padding: 1rem;
    }
}




/*  Payment tab */
.payments-page-container {
    max-width: 1400px;
    margin: 20px auto;
    background: var(--card-bg);
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.payments-page-header {
    background: var(--primary-gradient);
    color: white;
    padding: 15px;
    text-align: center;
}

.payments-page-header h1 {
    margin: 0;
    font-size: 32px;
    font-weight: 700;
}

.payments-page-header p {
    margin: 8px 0 0;
    opacity: 0.9;
    font-size: 16px;
}

.payments-page-content {
    padding: 13px;
}

.payments-stats-section {
    margin-bottom: 30px;
}

.payments-stat-card {
    background: white;
    border-radius: 16px;
    padding: 0.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
    transition: all 0.3s;
    height: 100%;
    display: flex;
    gap: 30px;
    align-items: left;
    text-align: left;
}

.payments-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.payments-stat-content .payments-stat-value {
    font-size: 2rem;
    font-weight: 500;
}

.payments-stat-content .payments-stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

.payments-search-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 11px;
    flex-wrap: wrap;
    gap: 15px;
}

.payments-search-box {
    position: relative;
    flex: 1;
    max-width: 500px;
}

.payments-search-box .payments-search-input {
    width: 100%;
    padding: 14px 20px 14px 50px;
    border: 2px solid var(--border-color);
    border-radius: 14px;
    background: var(--card-bg);
    color: var(--text-primary);
    font-size: 15px;
    transition: all 0.3s;
}

.payments-search-box .payments-search-input:focus {
    outline: none;
    border-color: var(--text-primary);
    box-shadow: 0 0 0 3px rgba(4, 88, 171, 0.1);
}

.payments-search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-size: 18px;
}

.payments-btn-primary {
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 14px 24px;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 15px;
    box-shadow: 0 4px 12px rgba(4, 88, 171, 0.3);
    transition: all 0.3s;
}

.payments-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(4, 88, 171, 0.4);
}

.payments-table-section {
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.payments-table-wrapper {
    overflow-x: auto;
}

.payments-data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

.payments-data-table th,
.payments-data-table td {
    padding: 10px 16px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.payments-data-table th {
    background: var(--dark-bg);
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.payments-data-table tr:hover {
    background: rgba(4, 88, 171, 0.02);
}

.payments-data-table td:last-child {
    text-align: center;
}

.payments-customer-info {
    display: flex;
    align-items: center;
    text-align: center;
    gap: 30px;
}

.payments-customer-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 14px;
}

.payments-customer-details h6 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.payments-customer-details p {
    margin: 2px 0 0;
    font-size: 12px;
    color: var(--text-secondary);
}

.payments-amount {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 1.1rem;
}



.payments-actions {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.payments-action-btn {
    padding: 8px 12px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s;
}

.payments-action-view {
    background: var(--hover-bg);
    color: var(--text-primary);
}

.payments-action-view:hover {
    background: var(--text-primary);
    color: white;
}

.payments-action-edit {
    background: var(--primary-gradient);
    color: white;
}

.payments-action-edit:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(4, 88, 171, 0.3);
}

.payments-action-delete {
    background: var(--danger-color);
    color: white;
}

.payments-action-delete:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

.payments-no-actions {
    color: var(--text-secondary);
    font-size: 12px;
}

.payments-no-data {
    text-align: center;
    padding: 40px;
    color: var(--text-secondary);
    font-style: italic;
}

.payments-table-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: var(--hover-bg);
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 14px;
}

.payments-pagination {
    display: flex;
    align-items: center;
    gap: 8px;
}

.payments-page-btn,
.payments-page-num {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: white;
    cursor: pointer;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.payments-page-btn:hover,
.payments-page-num:hover {
    background: var(--primary-gradient);
    color: white;
    border-color: var(--primary-gradient);
}

.payments-page-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.payments-page-num.active {
    background: var(--primary-gradient);
    color: white;
    border-color: var(--primary-gradient);
}

.payments-modal {
    display: none;
    position: fixed;
    z-index: 1050;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.payments-modal-content {
    background: var(--card-bg);
    margin: 10% auto;
    padding: 0;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    max-height: 80vh;
    overflow: hidden;
}

.payments-modal-header {
    padding: 20px;
    background: var(--primary-gradient);
    color: white;
    border-radius: 20px 20px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.payments-modal-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
}

.payments-modal-close {
    color: rgba(255, 255, 255, 0.8);
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.payments-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.payments-form {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

/* Custom Scrollbar for Payments Modal Form */
.payments-form::-webkit-scrollbar {
    width: 6px;
}

.payments-form::-webkit-scrollbar-track {
    background: var(--hover-bg);
    border-radius: 3px;
}

.payments-form::-webkit-scrollbar-thumb {
    background: var(--primary-gradient);
    border-radius: 3px;
}

.payments-form::-webkit-scrollbar-thumb:hover {
    background: rgba(4, 88, 171, 0.8);
}

/* Custom Scrollbar for Table Wrapper */
.payments-table-wrapper::-webkit-scrollbar {
    height: 8px;
}

.payments-table-wrapper::-webkit-scrollbar-track {
    background: var(--hover-bg);
    border-radius: 4px;
}

.payments-table-wrapper::-webkit-scrollbar-thumb {
    background: var(--primary-gradient);
    border-radius: 4px;
}

.payments-table-wrapper::-webkit-scrollbar-thumb:hover {
    background: rgba(4, 88, 171, 0.8);
}

.payments-form-group {
    margin-bottom: 20px;
    flex-shrink: 0;
}

.payments-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
}

.payments-form-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 15px;
    background: white;
    transition: all 0.3s;
    color: var(--text-primary);
}

.payments-form-input:focus {
    outline: none;
    border-color: var(--primary-gradient);
    box-shadow: 0 0 0 3px rgba(4, 88, 171, 0.1);
}

.payments-modal-footer {
    padding: 20px;
    border-top: 1px solid var(--border-color);
    background: var(--dark-bg);
    border-radius: 0 0 20px 20px;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    flex-shrink: 0;
}

.payments-btn-secondary {
    background: transparent;
    color: var(--text-secondary);
    border: 2px solid var(--border-color);
    padding: 12px 24px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
}

.payments-btn-secondary:hover {
    background: var(--hover-bg);
    border-color: var(--text-primary);
    color: var(--text-primary);
}

/* Responsive */
@media (max-width: 768px) {
    .payments-page-content {
        padding: 20px 15px;
    }

    .payments-search-section {
        flex-direction: column;
        align-items: stretch;
    }

    .payments-data-table th,
    .payments-data-table td {
        padding: 10px 8px;
        font-size: 13px;
    }

    .payments-table-footer {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .payments-modal-content {
        margin: 5%;
        width: 90%;
        max-height: 90vh;
    }

    .payments-stat-card {
        margin-bottom: 1rem;
    }

    .payments-actions {
        flex-direction: column;
        gap: 4px;
    }

    .payments-action-btn {
        width: 100%;
        justify-content: center;
    }
}






/* Invoice Modal Redesign */
.invoice-wrapper {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
}

.invoice-header {
    background: var(--primary-gradient);
    color: white;
    padding: 20px 30px;
}

.invoice-header h5 {
    margin: 0;
    font-weight: 700;
}

.invoice-company-info p,
.invoice-recipient-info p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.invoice-meta-box {
    background: white;
    padding: 15px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.invoice-items-section table thead {
    background: var(--dark-bg);
    border-bottom: 2px solid var(--border-color);
}

.invoice-summary {
    background: var(--secondary-gradient);
    color: white;
    padding: 25px;
    border-radius: 0;
}

.invoice-summary h5,
.invoice-summary h6 {
    margin: 0;
}

.invoice-footer {
    background: #f8fafc;
    padding: 20px;
    text-align: center;
}

.btn-print {
    background: var(--primary-gradient);
    border: none;
    color: white;
    font-weight: 600;
}

.btn-print:hover {
    opacity: 0.9;
}

.btn-email {
    background: var(--success-gradient);
    border: none;
    color: white;
}

.btn-email:hover {
    opacity: 0.9;
}

.btn-close-custom {
    background: var(--warning-gradient);
    border: none;
    color: white;
}

@media print {

    .modal-footer,
    .btn,
    .btn-close,
    .modal-header {
        display: none !important;
    }

    body {
        background: white !important;
    }
}









/* Payment View Modal Styles */
.payment-view-wrapper {
    border-radius: 20px;
    border: none;
    overflow: hidden;
}

.payment-view-header {
    background: var(--primary-gradient);
    color: white;
    padding: 1.5rem 2rem;
    border-bottom: none;
}

.payment-view-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.payment-view-close {
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

.payment-view-close:hover {
    opacity: 1;
}

.payment-view-body {
    padding: 2rem;
    background: #f8f9fa;
    max-height: 700vh;
    overflow-y: auto;
}

/* Custom Scrollbar */
.payment-view-body::-webkit-scrollbar {
    width: 8px;
}

.payment-view-body::-webkit-scrollbar-track {
    background: #e5e7eb;
    border-radius: 10px;
}

.payment-view-body::-webkit-scrollbar-thumb {
    background: #10b981;
    border-radius: 10px;
}

/* Status Banner */
.payment-status-banner {
    border-radius: 16px;
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 10px;
    border: 1px solid #e5e7eb;
}

.payment-status-info {
    flex: 1;
}

.payment-status-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0 0 0.25rem 0;
}

.payment-status-subtitle {
    font-size: 0.95rem;
    margin: 0;
}

.payment-status-amount {
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.payment-amount-label {
    font-size: 0.875rem;
    font-weight: 600;
}

.payment-amount-value {
    font-size: 2rem;
    font-weight: 900;
}

/* Information Grid */
.payment-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 0.5rem;
    margin-bottom: 10px;
}

.payment-detail-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
}

.payment-card-header {
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
    padding: 1rem 1.5rem;
    border-bottom: 2px solid #e5e7eb;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.payment-card-header i {
    font-size: 1.25rem;
    color: #10b981;
}

.payment-card-header h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
}

.payment-card-content {
    padding: 1.5rem;
}

.payment-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f3f4f6;
}

.payment-info-row:last-child {
    border-bottom: none;
}

.payment-info-label {
    color: #6b7280;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.payment-info-label i {
    color: #10b981;
    font-size: 1rem;
}

.payment-info-value {
    color: #1f2937;
    font-weight: 700;
    font-size: 0.9rem;
    text-align: right;
}

.payment-order-link {
    color: #10b981;
    cursor: pointer;
    text-decoration: underline;
}

.payment-order-link:hover {
    color: #059669;
}

/* Customer Profile */
.payment-customer-profile {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid #f3f4f6;
}

.payment-customer-info {
    flex: 1;
}

.payment-customer-name {
    font-size: 1.2rem;
    font-weight: 500;
    color: #1f2937;
    margin: 0 0 0.25rem 0;
}

.payment-customer-id {
    font-size: 0.85rem;
    color: #6b7280;
    margin: 0;
}

/* Badges and Tags */
.payment-method-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #1e40af;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.85rem;
}

.payment-status-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.85rem;
}

.payment-status-completed {
    background: #d1fae5;
    color: #065f46;
}

/* Payment Breakdown */
.payment-breakdown-section {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
}

.payment-breakdown-row {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
}

.payment-breakdown-label {
    color: #6b7280;
    font-weight: 600;
    font-size: 0.95rem;
}

.payment-breakdown-value {
    color: #1f2937;
    font-weight: 700;
    font-size: 0.95rem;
}

.payment-discount {
    color: #10b981;
}

.payment-breakdown-total {
    padding: 1rem;
    border-radius: 8px;
    margin: 0.5rem 0;
}

.payment-breakdown-total .payment-breakdown-label,
.payment-breakdown-total .payment-breakdown-value {
    font-size: 1.2rem;
    font-weight: 800;
    color: #1f2937;
}

.payment-breakdown-paid {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin: 0.5rem 0;
}

.payment-breakdown-paid .payment-breakdown-label,
.payment-breakdown-paid .payment-breakdown-value {
    color: #065f46;
    font-weight: 700;
}

.payment-breakdown-change {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin: 0.5rem 0;
}

.payment-breakdown-change .payment-breakdown-label,
.payment-breakdown-change .payment-breakdown-value {
    color: #92400e;
    font-weight: 700;
}

/* Additional Info */
.payment-additional-info {
    margin-bottom: 2rem;
}

.payment-note-box {
    background: white;
    border-left: 4px solid #10b981;
    padding: 1.5rem;
    border-radius: 8px;
    display: flex;
    gap: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.payment-note-box i {
    font-size: 1.5rem;
    color: #10b981;
    flex-shrink: 0;
}

.payment-note-box strong {
    color: #1f2937;
    font-size: 0.95rem;
    display: block;
    margin-bottom: 0.5rem;
}

.payment-note-box p {
    color: #6b7280;
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.6;
}

/* Timeline */
.payment-timeline-section {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
}

.payment-timeline {
    padding: 1.5rem;
}

.payment-timeline-item {
    display: flex;
    gap: 1rem;
    padding-bottom: 1.5rem;
    position: relative;
}

.payment-timeline-item:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 11px;
    top: 30px;
    width: 2px;
    height: calc(100% - 15px);
    background: #e5e7eb;
}

.payment-timeline-dot {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.payment-timeline-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 0 0 4px #d1fae5;
}

.payment-timeline-info {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    box-shadow: 0 0 0 4px #dbeafe;
}

.payment-timeline-default {
    background: linear-gradient(135deg, #9ca3af 0%, #6b7280 100%);
    box-shadow: 0 0 0 4px #f3f4f6;
}

.payment-timeline-content h6 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 0.25rem 0;
}

.payment-timeline-content p {
    font-size: 0.85rem;
    color: #6b7280;
    margin: 0;
}

/* Modal Footer */
.payment-view-footer {
    background: #f8f9fa;
    padding: 1.5rem 2rem;
    border-top: 2px solid #e5e7eb;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.payment-view-btn {
    border-radius: 10px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.payment-view-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Responsive Design */
@media (max-width: 768px) {
    .payment-status-banner {
        flex-direction: column;
        text-align: center;
    }

    .payment-status-amount {
        text-align: center;
    }

    .payment-info-grid {
        grid-template-columns: 1fr;
    }

    .payment-view-footer {
        justify-content: center;
    }

    .payment-view-btn {
        flex: 1;
        min-width: calc(50% - 0.5rem);
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .payment-view-body {
        padding: 1rem;
    }

    .payment-status-banner {
        padding: 1.5rem;
    }

    .payment-status-icon {
        width: 60px;
        height: 60px;
    }

    .payment-status-icon i {
        font-size: 2rem;
    }

    .payment-amount-value {
        font-size: 1.5rem;
    }

    .payment-view-btn {
        min-width: 100%;
    }
}


/* Reports Main Container */
.rpt-main-container {
    max-width: 1400px;
    margin: 20px auto;
    background: var(--card-bg);
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    overflow: hidden;
    height: auto;
    border: 1px solid var(--border-color);
}

/* Header */
.rpt-main-header {
    background: var(--primary-gradient);
    color: white;
    padding: 13px;
    text-align: center;

}

.rpt-main-header h1 {
    margin: 0;
    font-size: 32px;
    font-weight: 700;
}

.rpt-main-header p {
    margin: 5px 0 0;
    opacity: 0.9;
    font-size: 16px;
}

/* Section Cards */
.rpt-category-card {
    background: white;
    border-radius: 16px;
    padding: 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: all 0.3s;
    margin: 10px;
}

.rpt-category-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

/* Card Header */
.rpt-card-header {
    background: var(--dark-bg);
    padding: 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--border-color);
}

.rpt-header-icon {
    font-size: 22px;
    color: var(--text-primary);
}

.rpt-header-text {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

/* List Group */
.rpt-list-group {
    list-style: none;
    margin: 0;
    padding: 0;
}

.rpt-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.3s;
}

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

.rpt-list-item:hover {
    background: rgba(4, 88, 171, 0.05);
    padding-left: 25px;
}

/* Text + Arrow */
.rpt-item-text {
    font-size: 15px;
    color: var(--text-primary);
    font-weight: 600;
}

.rpt-item-arrow {
    font-size: 16px;
    color: var(--text-secondary);
    transition: transform 0.3s;
}

.rpt-list-item:hover .rpt-item-arrow {
    transform: translateX(5px);
}

/* Responsive */
@media (max-width: 768px) {
    .rpt-main-header h1 {
        font-size: 26px;
    }

    .rpt-list-item {
        padding: 12px 16px;
    }
}


/* Print Styles */
@media print {
    .rpt-main-container {
        box-shadow: none;
        border: none;
        margin: 0;
        padding: 0;
    }

    .rpt-header-section {
        background: none !important;
        color: black !important;
        -webkit-print-color-adjust: exact;
    }

    .rpt-category-card {
        box-shadow: none;
        border: 1px solid #000;
        break-inside: avoid;
    }

    .rpt-list-item {
        page-break-inside: avoid;
    }
}







/* ========================================
   RESPONSIVE STYLES FOR 1024x768
   ======================================== */

@media only screen and (max-width: 1024px) and (max-height: 768px) {


    /* ===== SIDEBAR ===== */
    .sidebar {
        width: 260px !important;
        padding: 15px 0 !important;
    }

    .sidebar.collapsed {
        width: 70px !important;
    }

    .sidebar-brand {
        padding: 0 3px !important;
        margin-bottom: 25px !important;
    }

    .brand-logo {
        width: 38px !important;
        height: 38px !important;
        font-size: 20px !important;
    }

    .brand-text {
        font-size: 18px !important;
    }

    .sidebar-menu {
        padding: 0 12px !important;
    }

    .sidebar-menu a {
        padding: 8px 12px !important;
        gap: 12px !important;
        font-size: 14px !important;
    }

    .sidebar-menu a i {
        font-size: 18px !important;
    }

    .menu-text {
        font-size: 14px !important;
    }


    /* ===== MAIN CONTENT ===== */
    .main-content {
        margin-left: 240px !important;
        padding: 12px !important;
        height: calc(100vh - 24px) !important;
    }

    .main-content.expanded {
        margin-left: 70px !important;
    }

    /* ===== TOP BAR ===== */
    .top-bar {
        padding: 8px 20px !important;
        margin-bottom: 8px !important;
        gap: 15px !important;
        border-radius: 16px !important;
    }

    .search-box {
        max-width: 350px !important;
        min-width: 200px !important;
    }

    .search-box input {
        padding: 10px 15px 10px 40px !important;
        font-size: 13px !important;
        border-radius: 12px !important;
    }

    .search-box img {
        left: 14px !important;
        width: 16px !important;
        height: 16px !important;
    }

    .action-btn {
        width: 38px !important;
        height: 38px !important;
        border-radius: 10px !important;
    }

    .action-btn .badge {
        width: 16px !important;
        height: 16px !important;
        font-size: 9px !important;
    }

    .user-info {
        padding: 6px 12px !important;
        gap: 10px !important;
        border-radius: 10px !important;
    }

    .user-avatar {
        width: 38px !important;
        height: 38px !important;
        font-size: 14px !important;
        border-radius: 10px !important;
    }

    .user-name {
        font-size: 13px !important;
    }

    .user-role {
        font-size: 11px !important;
    }

    /* ===== CATEGORY SECTION ===== */
    .category-section {
        height: auto !important;
        border-radius: 16px !important;
        padding: 10px 15px !important;
    }

    .category-tabs {
        gap: 40px !important;
        height: auto !important;
    }

    .category-btn {
        width: 85px !important;
        height: auto !important;
        padding: 8px !important;
        border-radius: 10px !important;
    }

    .category-btn img {
        width: 34px !important;
        height: 34px !important;
    }

    .category-btn span {
        font-size: 12px !important;
    }

    /* ===== ITEMS SECTION ===== */
    .items-section {
        height: 540px !important;
        padding: 15px 12px !important;
        margin-top: 8px !important;
        border-radius: 16px !important;
    }

    .section-header {
        margin-bottom: 15px !important;
        padding-bottom: 8px !important;
    }

    .section-header h3 {
        font-size: 18px !important;
    }

    .view-btn {
        width: 36px !important;
        height: 36px !important;
        border-radius: 8px !important;
    }

    .items-scroll-container {
        height: calc(100vh - 320px) !important;
        gap: 12px !important;

    }

    .item-card {
        padding: 10px !important;
        margin-bottom: 12px !important;
        border-radius: 16px !important;
    }

    .item-image {
        height: 150px !important;
    }

    .item-image-wrapper {
        border-radius: 12px !important;
        margin-bottom: 12px !important;
    }

    .item-badge {
        top: 10px !important;
        right: 10px !important;
        padding: 5px 10px !important;
        font-size: 10px !important;
        border-radius: 16px !important;
    }

    .item-name {
        font-size: 15px !important;
        margin-bottom: 6px !important;
    }

    .item-description {
        font-size: 12px !important;
        margin-bottom: 12px !important;
    }

    .item-price {
        font-size: 13px !important;
    }

    .add-btn {
        width: 35px !important;
        height: 35px !important;
        border-radius: 10px !important;
    }

    .add-btn img {
        width: 10px !important;
        height: 10px !important;
    }

    /* ===== BILL SECTION ===== */
    .bill-section {
        height: 660px !important;
        border-radius: 16px !important;
    }

    .bill-header {
        padding: 15px 18px !important;
        margin-bottom: 15px !important;
    }

    .bill-title {
        font-size: 18px !important;
    }

    .clear-all-btn {
        padding: 7px 14px !important;
        font-size: 11px !important;
        border-radius: 8px !important;
    }

    .bill-items {
        padding: 0 10px 12px !important;
        max-height: calc(100vh - 300px) !important;
    }

    .bill-item {
        padding: 7px !important;
        margin-bottom: 10px !important;
        border-radius: 10px !important;
    }

    .bill-item-name {
        font-size: 14px !important;
    }

    .bill-item-quantity {
        font-size: 14px !important;
        min-width: 35px !important;
    }

    .bill-item-price {
        font-size: 14px !important;
        min-width: 70px !important;
    }

    .bill-item-discount {
        font-size: 12px !important;
        min-width: 55px !important;
    }

    .bill-item-delete {
        width: 28px !important;
        height: 28px !important;
    }

    .bill-item-delete img {
        width: 14px !important;
        height: 14px !important;
    }

    .bill-summary {
        padding: 0 18px 12px !important;
    }

    .bill-row {
        padding: 6px 0 !important;
        font-size: 13px !important;
    }

    .bill-total {
        font-size: 16px !important;
        padding-top: 10px !important;
        margin-top: 8px !important;
    }

    .bill-footer {
        padding: 12px 18px !important;
        gap: 10px !important;
    }

    .place-order-btn {
        padding: 12px !important;
        font-size: 14px !important;
        height: 44px !important;
        border-radius: 10px !important;
        width: 220px;
    }

    /* ===== MODALS ===== */
    .modal-dialog {
        max-width: 900px !important;
        margin: 1rem auto !important;
    }

    .modal-content {
        border-radius: 18px !important;
        height: auto;
    }

    .modal-header {
        padding: 15px 20px !important;
    }

    .modal-title {
        font-size: 18px !important;
    }

    .modal-body {
        padding: 18px 20px !important;
        max-height: calc(100vh - 200px) !important;
    }

    .modal-footer {
        padding: 12px 20px !important;
    }

    .modal-footer .btn {
        padding: 9px 20px !important;
        font-size: 14px !important;
        border-radius: 10px !important;
    }

    /* ===== ORDER PLACEMENT MODAL ===== */
    #orderPlacementModal .modal-dialog {
        max-width: 1000px !important;
    }

    .order-type-grid {
        gap: 12px !important;
    }

    .order-type-card {
        padding: 10px !important;
        border-radius: 12px !important;
    }

    .order-type-icon {
        width: 40px !important;
        height: 40px !important;
        font-size: 20px !important;
    }

    .order-type-name {
        font-size: 13px !important;
    }

    .table-grid,
    .room-grid {
        gap: 8px !important;
        grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)) !important;
    }

    .table-card,
    .room-card {
        padding: 10px !important;
        border-radius: 10px !important;
    }

    .table-number,
    .room-number {
        font-size: 18px !important;
        margin-bottom: 6px !important;
    }

    .table-status,
    .room-status {
        font-size: 9px !important;
        padding: 3px 7px !important;
    }

    .customer-search-input,
    .room-search-input {
        padding: 10px 12px !important;
        font-size: 13px !important;
        border-radius: 10px !important;
    }

    .btn-search-customer {
        height: 34px !important;
        padding: 10px 20px !important;
        font-size: 13px !important;
    }

    /* ===== ITEM MODAL ===== */
    .modal-layout {
        gap: 18px !important;
        flex-direction: row !important;
    }

    .modal-left {
        width: 250px !important;
    }

    .modal-item-image {
        height: 220px !important;
        border-radius: 10px !important;
    }

    .modal-item-name {
        font-size: 18px !important;
    }

    .modal-item-desc {
        font-size: 12px !important;
    }

    .modal-item-price {
        font-size: 22px !important;
    }

    .modal-right {
        gap: 62px !important;
    }

    .modal-item-details{
        width: 230px;
    }

    .modal-quantity-control {
        padding: 6px !important;
        gap: 40px !important;
        border-radius: 8px !important;
    }

    .modal-qty-btn {
        width: 28px !important;
        height: 28px !important;
        font-size: 13px !important;
    }

    .modal-qty-input {
        width: 45px !important;
        height: 28px !important;
        font-size: 14px !important;
    }

    .modal-discount-input {
        padding: 7px 10px !important;
        font-size: 13px !important;
    }

    .modal-price-summary {
        padding: 14px !important;
        border-radius: 10px !important;
    }

    .summary-row {
        padding: 7px 0 !important;
        font-size: 13px !important;
    }

    /* ===== VIRTUAL KEYBOARD ===== */
    .virtual-keyboard-container {
        padding: 12px 8px !important;
        max-height: 45vh !important;
    }

    .keyboard-body {
        gap: 12px !important;
    }

    .main-keys {
        min-width: 280px !important;
        gap: 6px !important;
    }

    .numpad {
        min-width: 180px !important;
        max-width: 220px !important;
        padding: 6px !important;
        gap: 6px !important;
    }

    .key-row {
        gap: 5px !important;
    }

    .vkey {
        min-width: 36px !important;
        height: 38px !important;
        max-width: 55px !important;
        padding: 6px !important;
        font-size: 14px !important;
        border-radius: 7px !important;
    }

    .vkey span {
        font-size: 14px !important;
    }

    .vkey small {
        font-size: 7px !important;
    }

    .space-key {
        min-width: 140px !important;
        height: 38px !important;
    }

    .done-key {
        min-width: 65px !important;
        height: 38px !important;
    }

    .backspace-key {
        min-width: 60px !important;
    }

    /* ===== CALCULATOR ===== */
    .calculator-container {
        top: 65px !important;
        right: 18px !important;
        width: 250px !important;
    }

    .calculator-panel {
        padding: 18px !important;
        border-radius: 14px !important;
    }

    .calc-title {
        font-size: 16px !important;
    }

    .calculator-display {
        height: 50px !important;
        font-size: 20px !important;
        padding: 10px 14px !important;
        border-radius: 10px !important;
        margin-bottom: 16px !important;
    }

    .calc-key-row {
        gap: 10px !important;
        margin-bottom: 10px !important;
    }

    .calc-key {
        height: 48px !important;
        font-size: 18px !important;
        border-radius: 10px !important;
    }

    .calc-key.equals {
        height: 48px !important;
    }

    /* ===== NUMBER PAD ===== */
    .number-pad-container {
        top: 50% !important;
        left: calc(25%) !important;
    }

    .number-pad-panel {
        width: 250px !important;
        padding: 18px !important;
        border-radius: 18px !important;
    }

    .number-pad-input {
        height: 55px !important;
        font-size: 26px !important;
        padding: 9px 13px !important;
        border-radius: 10px !important;
    }

    .number-pad-body {
        gap: 9px !important;
    }

    .number-pad-row {
        gap: 9px !important;
    }

    .number-pad-key {
        height: 50px !important;
        font-size: 20px !important;
        border-radius: 10px !important;
    }

    /* ===== HOLD ORDERS ===== */
    .hold-orders-container {
        width: 350px !important;
        right: -350px !important;
    }

    .hold-orders-panel {
        padding: 18px !important;
    }

    .hold-orders-header {
        padding-bottom: 18px !important;
        margin-bottom: 18px !important;
    }

    .hold-orders-header h4 {
        font-size: 18px !important;
    }

    .close-hold-orders {
        width: 32px !important;
        height: 32px !important;
        font-size: 18px !important;
    }

    .hold-order-card {
        padding: 13px !important;
        margin-bottom: 13px !important;
        border-radius: 10px !important;
    }

    .hold-order-number {
        font-size: 15px !important;
    }

    .hold-order-time {
        font-size: 11px !important;
    }

    .hold-order-item {
        font-size: 12px !important;
        padding: 4px 0 !important;
    }

    .hold-order-total {
        font-size: 15px !important;
    }

    .restore-order-btn,
    .delete-hold-order-btn {
        padding: 7px 14px !important;
        font-size: 11px !important;
        border-radius: 7px !important;
    }

    /* ===== NOTIFICATIONS ===== */
    .notifications-container {
        width: 370px !important;
        right: -370px !important;
    }

    .notifications-header {
        padding: 18px !important;
    }

    .notifications-header h4 {
        font-size: 18px !important;
    }

    .mark-all-read-btn {
        padding: 7px 11px !important;
        font-size: 11px !important;
        border-radius: 7px !important;
    }

    .close-notifications {
        width: 32px !important;
        height: 32px !important;
        font-size: 18px !important;
    }

    .notifications-list {
        padding: 9px !important;
    }

    .notification-item {
        padding: 14px !important;
        margin-bottom: 11px !important;
        border-radius: 10px !important;
    }

    .notification-icon {
        width: 36px !important;
        height: 36px !important;
        font-size: 16px !important;
        margin-right: 10px !important;
    }

    .notification-title {
        font-size: 13px !important;
    }

    .notification-message {
        font-size: 12px !important;
    }

    .notification-time {
        font-size: 10px !important;
    }

    .notification-action-btn {
        padding: 7px 11px !important;
        font-size: 11px !important;
        border-radius: 7px !important;
    }

    /* ===== USER MANAGEMENT ===== */
    .users-page-container,
    .roles-page-container,
    .pages-page-container,
    .categories-page-container,
    .access-roles-page-container,
    .orders-page-container,
    .payments-page-container {
        margin: 15px auto !important;
        border-radius: 18px !important;
    }

    .users-page-header,
    .roles-page-header,
    .pages-page-header,
    .categories-page-header,
    .access-roles-page-header,
    .orders-page-header,
    .payments-page-header {
        padding: 12px !important;
    }

    .users-page-header h1,
    .roles-page-header h1,
    .pages-page-header h1,
    .categories-page-header h1,
    .access-roles-page-header h1,
    .orders-page-header h1,
    .payments-page-header h1 {
        font-size: 28px !important;
    }

    .users-page-header p,
    .roles-page-header p,
    .pages-page-header p,
    .categories-page-header p,
    .access-roles-page-header p,
    .orders-page-header p,
    .payments-page-header p {
        font-size: 14px !important;
    }

    .users-page-content,
    .roles-page-content,
    .pages-page-content,
    .categories-page-content,
    .access-roles-page-content,
    .orders-page-content,
    .payments-page-content {
        padding: 20px !important;
    }

    .users-search-section,
    .roles-search-section,
    .pages-search-section,
    .categories-search-section,
    .orders-search-section,
    .payments-search-section {
        gap: 12px !important;
        margin-bottom: 12px !important;
    }

    .search-box input {
        padding: 11px 18px 11px 45px !important;
        font-size: 14px !important;
        border-radius: 12px !important;
    }

    .users-btn-primary,
    .roles-btn-primary,
    .pages-btn-primary,
    .categories-btn-primary,
    .orders-btn-primary,
    .payments-btn-primary {
        padding: 11px 20px !important;
        font-size: 14px !important;
        border-radius: 10px !important;
    }

    .users-data-table th,
    .users-data-table td,
    .roles-data-table th,
    .roles-data-table td,
    .pages-data-table th,
    .pages-data-table td,
    .categories-data-table th,
    .categories-data-table td,
    .orders-data-table th,
    .orders-data-table td,
    .payments-data-table th,
    .payments-data-table td {
        padding: 10px 14px !important;
        font-size: 13px !important;
    }

    .users-btn-small,
    .roles-btn-small,
    .pages-btn-small,
    .categories-btn-small,
    .orders-action-btn,
    .payments-action-btn {
        padding: 7px 13px !important;
        font-size: 12px !important;
        border-radius: 7px !important;
        margin-right: 6px !important;
    }

    .users-badge,
    .orders-status-badge,
    .payments-status-badge {
        padding: 5px 10px !important;
        font-size: 11px !important;
        border-radius: 16px !important;
    }

    .table-footer {
        padding: 15px !important;
        font-size: 13px !important;
    }

    .page-btn,
    .page-num {
        width: 36px !important;
        height: 36px !important;
        padding: 6px 10px !important;
        border-radius: 7px !important;
        font-size: 13px !important;
    }

    /* ===== STATS CARDS ===== */
    .orders-stat-card,
    .payments-stat-card {
        padding: 13px !important;
        height: 77px !important;
        gap: 15px !important;
        border-radius: 14px !important;
    }

    .orders-stat-icon,
    .payments-stat-icon {
        font-size: 1.3rem !important;
    }

    .orders-stat-content .orders-stat-value,
    .payments-stat-content .payments-stat-value {
        font-size: 1.75rem !important;
        margin-bottom: 0.4rem !important;
    }

    .orders-stat-content .orders-stat-label,
    .payments-stat-content .payments-stat-label {
        font-size: 0.85rem !important;
    }

    /* ===== CUSTOMER INFO ===== */
    .orders-customer-info,
    .payments-customer-info {
        gap: 10px !important;
    }

    .orders-customer-avatar,
    .payments-customer-avatar {
        width: 36px !important;
        height: 36px !important;
        font-size: 13px !important;
    }

    .orders-customer-details h6,
    .payments-customer-details h6 {
        font-size: 13px !important;
    }

    .orders-customer-details p,
    .payments-customer-details p {
        font-size: 11px !important;
    }

    .orders-amount,
    .payments-amount {
        font-size: 1rem !important;
    }

    /* ===== MODAL FORMS ===== */
    .users-modal-content,
    .roles-modal-content,
    .pages-modal-content,
    .categories-modal-content,
    .orders-modal-content,
    .payments-modal-content {
        max-width: 450px !important;
        margin: 8% auto !important;
        border-radius: 18px !important;
        max-height: 85vh !important;
    }

    .users-modal-header,
    .roles-modal-header,
    .pages-modal-header,
    .categories-modal-header,
    .orders-modal-header,
    .payments-modal-header {
        padding: 18px !important;
    }

    .users-modal-header h3,
    .roles-modal-header h3,
    .pages-modal-header h3,
    .categories-modal-header h3,
    .orders-modal-header h3,
    .payments-modal-header h3 {
        font-size: 18px !important;
    }

    .users-modal-close,
    .roles-modal-close,
    .pages-modal-close,
    .categories-modal-close,
    .orders-modal-close,
    .payments-modal-close {
        width: 30px !important;
        height: 30px !important;
        font-size: 22px !important;
    }

    .users-form-group,
    .roles-form-group,
    .pages-form-group,
    .categories-form-group,
    .orders-form-group,
    .payments-form-group {
        padding: 0 22px !important;
        margin-bottom: 16px !important;
    }

    .users-form-group label,
    .roles-form-group label,
    .pages-form-group label,
    .categories-form-group label,
    .orders-form-group label,
    .payments-form-group label {
        font-size: 13px !important;
        margin-bottom: 7px !important;
    }

    .users-form-input,
    .roles-form-input,
    .pages-form-input,
    .categories-form-input,
    .orders-form-input,
    .payments-form-input {
        padding: 10px 14px !important;
        font-size: 14px !important;
        border-radius: 10px !important;
    }

    .users-modal form>div:last-child,
    .roles-modal form>div:last-child,
    .pages-modal form>div:last-child,
    .categories-modal form>div:last-child,
    .orders-modal-footer,
    .payments-modal-footer {
        padding: 16px 22px !important;
        gap: 10px !important;
    }

    .users-btn-secondary,
    .roles-btn-secondary,
    .pages-btn-secondary,
    .categories-btn-secondary,
    .orders-btn-secondary,
    .payments-btn-secondary {
        padding: 10px 20px !important;
        font-size: 14px !important;
        border-radius: 10px !important;
    }

    /* ===== CATEGORIES SPECIFIC ===== */
    .categories-icon-preview {
        width: 85px !important;
        height: 85px !important;
        border-radius: 7px !important;
    }

    .category-form {
        max-height: calc(85vh - 140px) !important;
    }

    /* ===== ACCESS PERMISSIONS ===== */
    .access-permissions-main-container {
        max-width: 1200px !important;
        padding: 18px !important;
        border-radius: 18px !important;
        height: 550px !important;
    }

    .access-permissions-main-header {
        padding: 12px !important;
        margin: -18px -18px 18px -18px !important;
    }

    .access-permissions-main-header h1 {
        font-size: 28px !important;
    }

    .access-permissions-main-header p {
        font-size: 14px !important;
    }

    .access-permissions-role-section {
        margin-bottom: 18px !important;
        max-width: 350px !important;
    }

    .access-permissions-role-label {
        font-size: 0.95rem !important;
        margin-bottom: 9px !important;
    }

    .access-permissions-role-select {
        padding: 10px 13px !important;
        font-size: 0.95rem !important;
        border-radius: 7px !important;
    }

    .access-permissions-pages-grid {
        padding: 0 9px 60px !important;
        margin-top: 9px !important;
        margin-bottom: 220px !important;
    }

    .access-permissions-info-section {
        padding: 10px 14px !important;
        margin-bottom: 22px !important;
        border-radius: 5px !important;
    }

    .access-permissions-info-section p {
        font-size: 0.85rem !important;
    }

    .access-permissions-category-block {
        padding: 18px !important;
        margin-bottom: 18px !important;
        border-radius: 10px !important;
    }

    .access-permissions-category-heading {
        font-size: 1.05rem !important;
        margin-bottom: 13px !important;
        padding-bottom: 9px !important;
    }

    .access-permissions-pages-horizontal-section {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)) !important;
        gap: 10px !important;
    }

    .access-permissions-page-block {
        min-height: 65px !important;
        border-radius: 7px !important;
    }

    .access-permissions-page-block-content {
        padding: 10px 12px !important;
        gap: 10px !important;
    }

    .access-permissions-page-checkbox {
        width: 16px !important;
        height: 16px !important;
    }

    .access-permissions-page-title {
        font-size: 0.9rem !important;
    }

    .access-permissions-page-subtext {
        font-size: 0.75rem !important;
    }

    .access-permissions-toggle-switch {
        width: 44px !important;
        height: 22px !important;
    }

    .access-permissions-toggle-slider:before {
        height: 16px !important;
        width: 16px !important;
    }

    .access-permissions-toggle-switch input:checked+.access-permissions-toggle-slider:before {
        transform: translateX(22px) !important;
    }

    .access-permissions-save-block {
        margin-top: 25px !important;
    }

    .access-permissions-save-btn {
        padding: 10px 30px !important;
        font-size: 0.95rem !important;
        border-radius: 7px !important;
    }

    /* ===== ACCESS ROLES ===== */
    .access-roles-page-container {
        padding: 18px !important;
    }

    .access-roles-page-header {
        margin: -18px -18px 18px -18px !important;
        padding: 12px !important;
    }

    .access-roles-selection {
        margin-bottom: 25px !important;
    }

    .access-roles-label {
        font-size: 0.95rem !important;
        margin-bottom: 9px !important;
    }

    .access-roles-select {
        padding: 10px 13px !important;
        font-size: 0.95rem !important;
        border-radius: 7px !important;
    }

    .access-roles-info-banner {
        padding: 10px 14px !important;
        margin-bottom: 22px !important;
        border-radius: 5px !important;
    }

    .access-roles-info-banner p {
        font-size: 0.85rem !important;
    }

    .access-roles-grid-title {
        font-size: 0.95rem !important;
        margin-bottom: 13px !important;
    }

    .access-roles-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)) !important;
        gap: 13px !important;
        margin-bottom: 25px !important;
    }

    .access-roles-btn {
        padding: 18px !important;
        border-radius: 10px !important;
    }

    .access-roles-btn-icon {
        font-size: 1.3rem !important;
        margin-right: 9px !important;
    }

    .access-roles-btn-name {
        font-size: 1.05rem !important;
    }

    .access-roles-btn-desc {
        font-size: 0.8rem !important;
    }

    .access-roles-btn-status {
        width: 22px !important;
        height: 22px !important;
    }

    .access-roles-btn-check {
        font-size: 0.95rem !important;
    }

    .access-roles-btn-save {
        padding: 12px 35px !important;
        font-size: 0.95rem !important;
        border-radius: 7px !important;
    }

    /* ===== PAYMENT MODAL ===== */
    .pay-modal-card {
        max-width: 550px !important;
        margin: 1.5rem auto !important;
        border-radius: 22px !important;
    }

    .pay-modal-body {
        padding: 1.75rem !important;
        max-height: 65vh !important;
    }

    .pay-order-summary-card {
        padding: 1.1rem !important;
        margin-bottom: 1.3rem !important;
        border-radius: 10px !important;
    }

    .pay-order-header {
        margin-bottom: 0.9rem !important;
    }

    .pay-order-header i {
        font-size: 1.15rem !important;
    }

    .pay-order-header h6 {
        font-size: 0.95rem !important;
    }

    .pay-detail-row {
        padding: 0.45rem 0 !important;
    }

    .pay-detail-label {
        font-size: 0.9rem !important;
    }

    .pay-detail-value {
        font-size: 0.95rem !important;
    }

    .pay-form-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 1.3rem !important;
        margin-bottom: 0.9rem !important;
    }

    .pay-label {
        margin-bottom: 0.45rem !important;
        font-size: 0.9rem !important;
    }

    .pay-select,
    .pay-input,
    .pay-textarea {
        padding: 0.65rem 0.9rem !important;
        border-radius: 9px !important;
        font-size: 0.95rem !important;
    }

    .pay-helper-text {
        font-size: 0.8rem !important;
    }

    .pay-modal-footer {
        padding: 1.3rem 1.75rem !important;
        gap: 0.9rem !important;
    }

    .pay-btn {
        padding: 0.65rem 1.75rem !important;
        font-size: 0.9rem !important;
        border-radius: 9px !important;
        min-width: 130px !important;
    }

    /* ===== INVOICE MODAL ===== */
    .invoice-wrapper {
        border-radius: 10px !important;
    }

    .invoice-header {
        padding: 18px 26px !important;
    }

    .invoice-header h5 {
        font-size: 18px !important;
    }

    .invoice-company-info p,
    .invoice-recipient-info p {
        font-size: 0.8rem !important;
    }

    .invoice-meta-box {
        padding: 13px !important;
        border-radius: 9px !important;
    }

    .invoice-items-section table thead {
        font-size: 13px !important;
    }

    .invoice-items-section table tbody {
        font-size: 13px !important;
    }

    .invoice-summary {
        padding: 22px !important;
    }

    .invoice-summary h5 {
        font-size: 18px !important;
    }

    .invoice-summary h6 {
        font-size: 16px !important;
    }

    .invoice-footer {
        padding: 18px !important;
    }

    .btn-print,
    .btn-email,
    .btn-close-custom {
        padding: 9px 18px !important;
        font-size: 13px !important;
        border-radius: 8px !important;
    }

    /* ===== PAYMENT VIEW MODAL ===== */
    .payment-view-wrapper {
        border-radius: 18px !important;
    }

    .payment-view-header {
        padding: 1.3rem 1.75rem !important;
    }

    .payment-view-title {
        font-size: 1.3rem !important;
    }

    .payment-view-body {
        padding: 0.75rem !important;
        max-height: 83vh !important;
    }

    .payment-status-banner {
        padding: 1.75rem !important;
        gap: 1.3rem !important;
        margin-bottom: 18px !important;
        border-radius: 14px !important;
    }

    .payment-status-title {
        font-size: 1.3rem !important;
    }

    .payment-status-subtitle {
        font-size: 0.9rem !important;
    }

    .payment-amount-label {
        font-size: 0.825rem !important;
    }

    .payment-amount-value {
        font-size: 1.75rem !important;
    }

    .payment-info-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
        gap: 16px !important;
        margin-bottom: 18px !important;
    }

    .payment-detail-card {
        border-radius: 10px !important;
    }

    .payment-card-header {
        padding: 0.9rem 1.3rem !important;
        gap: 0.65rem !important;
    }

    .payment-card-header i {
        font-size: 1.15rem !important;
    }

    .payment-card-header h4 {
        font-size: 1.05rem !important;
    }

    .payment-card-content {
        padding: 1.3rem !important;
    }

    .payment-info-row {
        padding: 0.65rem 0 !important;
    }

    .payment-info-label {
        font-size: 0.85rem !important;
        gap: 0.45rem !important;
    }

    .payment-info-label i {
        font-size: 0.95rem !important;
    }

    .payment-info-value {
        font-size: 0.85rem !important;
    }

    .payment-customer-profile {
        padding-bottom: 0.9rem !important;
        margin-bottom: 0.9rem !important;
        gap: 0.9rem !important;
    }

    .payment-customer-name {
        font-size: 1.1rem !important;
        margin: 0 0 0.2rem 0 !important;
    }

    .payment-customer-id {
        font-size: 0.8rem !important;
    }

    .payment-method-badge {
        gap: 0.45rem !important;
        padding: 0.45rem 0.9rem !important;
        font-size: 0.8rem !important;
        border-radius: 18px !important;
    }

    .payment-status-tag {
        gap: 0.45rem !important;
        padding: 0.45rem 0.9rem !important;
        font-size: 0.8rem !important;
        border-radius: 18px !important;
    }

    .payment-breakdown-section {
        border-radius: 10px !important;
    }

    .payment-breakdown-row {
        padding: 0.65rem 0 !important;
    }

    .payment-breakdown-label {
        font-size: 0.9rem !important;
    }

    .payment-breakdown-value {
        font-size: 0.9rem !important;
    }

    .payment-breakdown-total {
        padding: 0.9rem !important;
        border-radius: 7px !important;
        margin: 0.45rem 0 !important;
    }

    .payment-breakdown-total .payment-breakdown-label,
    .payment-breakdown-total .payment-breakdown-value {
        font-size: 1.1rem !important;
    }

    .payment-breakdown-paid {
        padding: 0.65rem 0.9rem !important;
        border-radius: 7px !important;
        margin: 0.45rem 0 !important;
    }

    .payment-breakdown-change {
        padding: 0.65rem 0.9rem !important;
        border-radius: 7px !important;
        margin: 0.45rem 0 !important;
    }

    .payment-note-box {
        padding: 1.3rem !important;
        border-radius: 7px !important;
        gap: 0.9rem !important;
    }

    .payment-note-box i {
        font-size: 1.3rem !important;
    }

    .payment-note-box strong {
        font-size: 0.9rem !important;
        margin-bottom: 0.45rem !important;
    }

    .payment-note-box p {
        font-size: 0.85rem !important;
    }

    .payment-timeline-section {
        border-radius: 10px !important;
    }

    .payment-timeline {
        padding: 1.3rem !important;
    }

    .payment-timeline-item {
        gap: 0.9rem !important;
        padding-bottom: 1.3rem !important;
    }

    .payment-timeline-item:not(:last-child)::after {
        left: 10px !important;
        top: 27px !important;
    }

    .payment-timeline-dot {
        width: 22px !important;
        height: 22px !important;
    }

    .payment-timeline-content h6 {
        font-size: 0.9rem !important;
        margin: 0 0 0.2rem 0 !important;
    }

    .payment-timeline-content p {
        font-size: 0.8rem !important;
    }

    .payment-view-footer {
        padding: 1.3rem 1.75rem !important;
        gap: 0.9rem !important;
    }

    .payment-view-btn {
        padding: 0.65rem 1.3rem !important;
        border-radius: 9px !important;
        gap: 0.45rem !important;
    }

    /* ===== REPORTS ===== */
    .rpt-main-container {
        margin: 18px auto !important;
    }

    .rpt-header-section {
        padding: 22px !important;
        border-radius: 10px !important;
        margin-bottom: 22px !important;
    }

    .rpt-main-title {
        font-size: 2.2rem !important;
        margin: 0 0 7px !important;
    }

    .rpt-main-subtitle {
        font-size: 1.05rem !important;
    }

    .rpt-category-card {
        border-radius: 14px !important;
        margin-bottom: 18px !important;
    }

    .rpt-card-header {
        padding: 16px 18px !important;
        gap: 10px !important;
    }

    .rpt-header-icon {
        font-size: 1.35rem !important;
    }

    .rpt-header-text {
        font-size: 1.05rem !important;
    }

    .rpt-list-group {
        max-height: 280px !important;
    }

    .rpt-list-item {
        padding: 13px 18px !important;
    }

    .rpt-item-text {
        font-size: 0.95rem !important;
    }

    .rpt-item-arrow {
        font-size: 1.05rem !important;
    }

    /* ===== LOGIN & CHANGE PASSWORD ===== */
    .login-container {
        padding: 18px !important;
    }

    .login-box,
    .change-password-box {
        padding: 35px !important;
        max-width: 380px !important;
        border-radius: 18px !important;
    }

    .login-header,
    .change-header {
        margin-bottom: 40px !important;
    }

    .change-title {
        font-size: 22px !important;
    }

    .change-subtitle {
        font-size: 13px !important;
    }

    .form-control {
        padding: 11px 13px !important;
        font-size: 14px !important;
        border-radius: 10px !important;
        margin-bottom: 18px !important;
    }

    .btn-login,
    .btn-new-login {
        padding: 12px !important;
        font-size: 15px !important;
        border-radius: 10px !important;
        margin-top: 13px !important;
    }

    .btn-back {
        padding: 12px !important;
        font-size: 13px !important;
        border-radius: 10px !important;
        margin: 7px !important;
    }

    .error-message {
        padding: 10px !important;
        margin-bottom: 18px !important;
        border-radius: 7px !important;
        font-size: 12px !important;
    }

    .form-group label {
        font-size: 12px !important;
        margin-bottom: 7px !important;
    }

    .alert {
        padding: 10px 13px !important;
        margin-bottom: 18px !important;
        border-radius: 7px !important;
        font-size: 13px !important;
    }

    .invalid-feedback {
        font-size: 11px !important;
        margin-top: 4px !important;
    }

    /* ===== USER MENU DROPDOWN ===== */
    .user-menu-dropdown {
        top: calc(100% + 9px) !important;
        width: 260px !important;
        border-radius: 10px !important;
    }

    .user-menu-header {
        padding: 14px !important;
        gap: 10px !important;
    }

    .user-avatar-large {
        width: 44px !important;
        height: 44px !important;
        font-size: 16px !important;
    }

    .user-menu-name {
        font-size: 13px !important;
    }

    .user-menu-email {
        font-size: 11px !important;
    }

    .user-menu-item {
        padding: 10px 14px !important;
        gap: 10px !important;
        font-size: 13px !important;
    }

    .user-menu-icon {
        width: 16px !important;
        height: 16px !important;
    }

    /* ===== SCROLLBAR STYLING ===== */
    ::-webkit-scrollbar {
        width: 7px !important;
        height: 7px !important;
    }

    ::-webkit-scrollbar-track {
        border-radius: 3px !important;
    }

    ::-webkit-scrollbar-thumb {
        border-radius: 3px !important;
    }

    .sidebar::-webkit-scrollbar {
        width: 5px !important;
    }

    .items-scroll-container::-webkit-scrollbar,
    .bill-items::-webkit-scrollbar {
        width: 5px !important;
    }

    .payment-view-body::-webkit-scrollbar,
    .pay-modal-body::-webkit-scrollbar,
    .payments-form::-webkit-scrollbar,
    .category-form::-webkit-scrollbar {
        width: 5px !important;
    }

    /* ===== EMPTY STATES ===== */
    .empty-cart,
    .empty-hold-orders,
    .empty-notifications,
    .access-roles-empty-block,
    .access-permissions-empty-block {
        padding: 50px 18px !important;
    }

    .empty-cart .menu-icon,
    .empty-hold-orders .menu-icon,
    .empty-notifications img {
        width: 70px !important;
        height: 70px !important;
        margin-bottom: 18px !important;
    }

    .empty-cart p,
    .empty-hold-orders p,
    .empty-notifications p {
        font-size: 14px !important;
    }

    .access-roles-empty-block i,
    .access-permissions-empty-block i {
        font-size: 3.5rem !important;
        margin-bottom: 18px !important;
    }

    .access-roles-empty-title,
    .access-permissions-empty-heading {
        font-size: 1.2rem !important;
        margin-bottom: 9px !important;
    }

    .access-roles-empty-desc,
    .access-permissions-empty-text {
        font-size: 0.95rem !important;
    }

    /* ===== BADGES & TAGS ===== */
    .badge {
        width: 18px !important;
        height: 18px !important;
        font-size: 10px !important;
    }

    .notification-unread-dot {
        width: 7px !important;
        height: 7px !important;
        top: 14px !important;
        right: 14px !important;
    }

    /* ===== GRID LAYOUTS ===== */
    .col-lg-4,
    .col-md-6,
    .col-sm-12 {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    .row {
        margin-left: -10px !important;
        margin-right: -10px !important;
    }

    /* ===== FORM ELEMENTS ===== */
    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="number"],
    input[type="tel"],
    input[type="date"],
    select,
    textarea {
        font-size: 14px !important;
        padding: 10px 13px !important;
        border-radius: 10px !important;
    }

    /* ===== BUTTONS ===== */
    .btn,
    button {
        font-size: 14px !important;
        padding: 10px 0px !important;
        border-radius: 10px !important;
    }

    .btn-sm {
        font-size: 12px !important;
        padding: 7px 13px !important;
        border-radius: 8px !important;
    }

    .btn-lg {
        font-size: 16px !important;
        padding: 12px 22px !important;
        border-radius: 12px !important;
    }

    /* ===== ICONS ===== */
    .fa,
    .fas,
    .far,
    .fal,
    .fab {
        font-size: 14px !important;
    }

    i.fa-lg {
        font-size: 18px !important;
    }

    i.fa-2x {
        font-size: 28px !important;
    }

    /* ===== HEADINGS ===== */
    h1 {
        font-size: 28px !important;
    }

    h2 {
        font-size: 24px !important;
    }

    h3 {
        font-size: 20px !important;
    }

    h4 {
        font-size: 18px !important;
    }

    h5 {
        font-size: 16px !important;
    }

    h6 {
        font-size: 14px !important;
    }

    /* ===== SPACING UTILITIES ===== */
    .mb-1 {
        margin-bottom: 0.25rem !important;
    }

    .mb-2 {
        margin-bottom: 0.5rem !important;
    }

    .mb-3 {
        margin-bottom: 0.9rem !important;
    }

    .mb-4 {
        margin-bottom: 1.3rem !important;
    }

    .mb-5 {
        margin-bottom: 2.2rem !important;
    }

    .mt-1 {
        margin-top: 0.25rem !important;
    }

    .mt-2 {
        margin-top: 0.5rem !important;
    }

    .mt-3 {
        margin-top: 0.9rem !important;
    }

    .mt-4 {
        margin-top: 1.3rem !important;
    }

    .mt-5 {
        margin-top: 2.2rem !important;
    }

    .p-1 {
        padding: 0.25rem !important;
    }

    .p-2 {
        padding: 0.5rem !important;
    }

    .p-3 {
        padding: 0.9rem !important;
    }

    .p-4 {
        padding: 1.3rem !important;
    }

    .p-5 {
        padding: 2.2rem !important;
    }

    /* ===== SHADOWS ===== */
    .shadow-sm {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06) !important;
    }

    .shadow {
        box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08) !important;
    }

    .shadow-lg {
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1) !important;
    }

    /* ===== BORDER RADIUS ===== */
    .rounded {
        border-radius: 10px !important;
    }

    .rounded-lg {
        border-radius: 14px !important;
    }

    .rounded-xl {
        border-radius: 18px !important;
    }

    .rounded-circle {
        border-radius: 50% !important;
    }

    /* ===== ANIMATIONS ===== */
    @keyframes fadeIn {
        from {
            opacity: 0 !important;
            transform: translateY(18px) !important;
        }

        to {
            opacity: 1 !important;
            transform: translateY(0) !important;
        }
    }

    @keyframes slideIn {
        from {
            opacity: 0 !important;
            transform: translateX(-18px) !important;
        }

        to {
            opacity: 1 !important;
            transform: translateX(0) !important;
        }
    }

    @keyframes slideInRight {
        from {
            opacity: 0 !important;
            transform: translateX(90px) !important;
        }

        to {
            opacity: 1 !important;
            transform: translateX(0) !important;
        }
    }

    @keyframes slideUpKeyboard {
        from {
            transform: translateY(100%) !important;
        }

        to {
            transform: translateY(0) !important;
        }
    }

    @keyframes slideDown {
        from {
            opacity: 0 !important;
            transform: translateY(-9px) !important;
        }

        to {
            opacity: 1 !important;
            transform: translateY(0) !important;
        }
    }

    @keyframes pulse {

        0%,
        100% {
            transform: scale(1) !important;
        }

        50% {
            transform: scale(1.08) !important;
        }
    }

    @keyframes glowPulse {

        0%,
        100% {
            filter: drop-shadow(0 0 7px rgba(0, 188, 212, 0.4)) !important;
        }

        50% {
            filter: drop-shadow(0 0 16px rgba(0, 188, 212, 0.7)) !important;
        }
    }

    /* ===== TRANSITIONS ===== */
    * {
        transition-duration: 0.25s !important;
    }

    /* ===== Z-INDEX FIXES ===== */
    .sidebar {
        z-index: 999 !important;
    }

    .top-bar {
        z-index: 998 !important;
    }

    .modal {
        z-index: 1050 !important;
    }

    .modal-backdrop {
        z-index: 1049 !important;
    }

    .calculator-container {
        z-index: 1998 !important;
    }

    .number-pad-container {
        z-index: 1998 !important;
    }

    .hold-orders-container {
        z-index: 999 !important;
    }

    .notifications-container {
        z-index: 999 !important;
    }

    .virtual-keyboard-container {
        z-index: 9998 !important;
    }

    .bill-overlay {
        z-index: 998 !important;
    }

    .user-menu-dropdown {
        z-index: 999 !important;
    }

    /* ===== PRINT OPTIMIZATION ===== */
    @media print {
        body {
            font-size: 12px !important;
        }

        .sidebar,
        .top-bar,
        .modal-header,
        .modal-footer,
        .btn,
        .action-btn {
            display: none !important;
        }

        .main-content {
            margin-left: 0 !important;
            padding: 0 !important;
        }

        * {
            box-shadow: none !important;
            border-radius: 0 !important;
        }
    }






}


