html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 60px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

.card {
    min-height: 180px;
}

.card-title {
    font-size: 1.1rem;
    font-weight: bold;
}

.input-group input {
    width: 50px;
}

.category-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.category-btn {
    padding: 8px 16px;
    border: 1px solid #ccc;
    border-radius: 20px;
    background-color: #f8f9fa;
    cursor: pointer;
    transition: background-color 0.2s;
}

    .category-btn:hover {
        background-color: #e2e6ea;
    }

    .category-btn.active {
        background-color: #007bff;
        color: white;
        border-color: #007bff;
    }

#cartToggleBtn:hover {
    transform: scale(1.05);
    transition: transform 0.2s;
}

#cartCount {
    font-size: 0.85rem;
    padding: 2px 6px;
}

@media print {
    @page {
        size: 4.80in auto; /* Set exact width to 80mm */
        margin: 0;
    }

    body {
        margin: 0;
        font-family: 'Consolas', monospace;
        font-size: 15px;
    }

        body * {
            visibility: hidden;
        }

    .printable-area, .printable-area * {
        visibility: visible;
    }

    .printable-area {
        position: absolute;
        left: 0;
        top: 0;
        width: 4.80in; /* Match the @page size */
        padding: 5px;
    }

        .printable-area table {
            width: 100%;
            border-collapse: collapse;
        }

            .printable-area table td,
            .printable-area table th {
                padding: 2px 0;
                border-bottom: 1px dashed #999;
            }

        .printable-area h3,
        .printable-area h4 {
            font-size: 20px;
            text-align: center;
        }
}

/* =====================================================
   MOBILE SIDEBAR MENU 
===================================================== */

@media (max-width: 991.98px) {

    .mobile-sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        height: 100vh;
        background: #1e1e1e;
        z-index: 2000;
        transition: left 0.3s ease-in-out;
        overflow-y: auto;
    }

        .mobile-sidebar.active {
            left: 0;
        }

    .mobile-sidebar-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 15px 20px;
        color: #fff;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

        .mobile-sidebar-header h5 {
            margin: 0;
            font-size: 18px;
            font-weight: 600;
        }

        .mobile-sidebar-header button {
            background: none;
            border: none;
            color: #fff;
            font-size: 22px;
            cursor: pointer;
        }

    .mobile-menu {
        list-style: none;
        padding: 0;
        margin: 0;
    }

        .mobile-menu li {
            border-bottom: 1px solid rgba(255,255,255,0.08);
        }

            .mobile-menu li a {
                display: block;
                padding: 14px 20px;
                color: #fff;
                text-decoration: none;
                font-size: 15px;
            }

                .mobile-menu li a:hover {
                    background: rgba(255,255,255,0.08);
                }

        .mobile-menu .logout a {
            background: #00bcd4;
            color: #000;
            margin: 15px;
            border-radius: 6px;
            text-align: center;
            font-weight: 600;
        }
}

