:root {
    --bg-color: #050a0f;
    --panel-bg: #0d161f;
    --accent-cyan: #00f2ff;
    --text-white: #ffffff;
    --text-dim: #94a3b8;
    --border-glow: rgba(0, 242, 255, 0.3);
    --text-darkred: #471818;
    --bg-dark: #050a0f;
    --cyan: #00f2ff;
    --magenta: #ff00ff;
    --success-green: #00ffaa;
    --border: #1a2a3a;
}

body {
    background-color: var(--bg-color);
    user-select: none;
}

:fullscreen .body {
    background-color: #000; /* Deepen the blacks */
}

/* Hide scrollbars specifically in fullscreen for that "App" feel */
::-webkit-scrollbar {
    display: none;
}

.main-content {
    flex: 1; /* This forces the middle to fill the gap between sidebars */
    overflow: auto; /* Keeps your products/content scrollable */
    position: relative;
}

.no_decoration{
    text-decoration: none;
}

.no-display {
    display: none !important;
}


@media (max-width: 768px) {
    .no-display-media {
        display: none !important;
    }
}

    .body {
        background-color: var(--bg-color);
        color: var(--text-white) !important;
        font-family: 'Segoe UI', Roboto, sans-serif;
        margin: 0;
        display: flex;
        height: 100vh;
        overflow: hidden;
    }

    /* Side Navigation */
    .nav {
        width: 150px;
        background: var(--panel-bg);
        border-right: 1px solid var(--border-glow);
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
    }

    .nav-item {
        margin-bottom: 30px;
        color: var(--text-dim);
        cursor: pointer;
        transition: 0.3s;
        font-size: 30px;
    }

    .nav-item, a, a:link {
        color: var(--text-dim) !important;
    }

        .nav-item:hover, .nav-item.active {
            color: var(--accent-cyan);
            filter: drop-shadow(0 0 5px var(--accent-cyan));
        }

    /* Product Grid Section */
    main {
        flex: 1;
        padding: 20px;
        overflow-y: auto;
    }

    .header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 20px;
    }

    .brand-text {
        font-weight: bold;
        font-size: 1.5rem;
        letter-spacing: 1px;
    }

        .brand-text span {
            color: var(--accent-cyan);
        }

    .search-bar {
        background: var(--panel-bg);
        border: 1px solid var(--border-glow);
        padding: 10px 20px;
        border-radius: 5px;
        color: white;
        width: 300px;
    }

    .header-back {
        width: 50px;
        height: 50px;
        border-radius: 8px;
        font-size: 30px;
        padding: 0;
        overflow: hidden;
        justify-self: left;
        background: var(--panel-bg);
        color: var(--text-white);
        border: 1px solid var(--border-glow);
        box-shadow: 0 0 40px var(--border-glow);
    }

        .header-back:hover {
            background: var(--text-white);
            color: var(--panel-bg);
            box-shadow: 0 0 15px var(--border-glow);
            transform: translateY(-3px);
        }

    .grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }

    .open-grid {
        display: flex;
        gap: 15px;
    }

    .product-card {
        background: var(--panel-bg);
        border: 1px solid transparent;
        padding: 15px;
        border-radius: 8px;
        text-align: center;
        cursor: pointer;
        transition: 0.2s;
        color: white !important;
    }

        .product-card:hover {
            border-color: var(--accent-cyan);
            box-shadow: 0 0 15px rgba(0, 242, 255, 0.1);
            transform: translateY(-3px);
        }

        .product-card img {
            width: 100%;
            height: 100px;
            object-fit: contain;
            margin-bottom: 10px;
        }

    /* Cart/Checkout Panel */
    .cart-panel {
        width: 380px;
        background: var(--panel-bg);
        border-left: 1px solid var(--border-glow);
        display: flex;
        flex-direction: column;
        padding: 20px;
    }

    .cart-list {
        flex: 1;
        overflow-y: auto;
    }

    .cart-item {
        display: flex;
        justify-content: space-between;
        padding: 10px 0;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }

        .cart-item .remove {
            background: none;
            color: var(--text-darkred);
            border: none;
        }

            .cart-item .remove:hover {
                text-shadow: 0 0 15px var(--text-darkred);
            }

    .totals {
        margin-top: 20px;
        border-top: 2px solid var(--border-glow);
        padding-top: 20px;
    }

    .cart-header {
        margin-bottom: 20px;
        border-bottom: 2px solid var(--border-glow);
        padding-bottom: 20px;
    }

    .total-row {
        display: flex;
        justify-content: space-between;
        margin-bottom: 10px;
        font-size: 1.1rem;
    }

    .grand-total {
        color: var(--accent-cyan);
        font-size: 1.8rem;
        font-weight: bold;
        margin-top: 5px;
    }

    .btn-pay {
        background: var(--accent-cyan);
        color: var(--bg-color);
        border: none;
        padding: 15px;
        width: 100%;
        border-radius: 5px;
        font-weight: bold;
        font-size: 1.2rem;
        cursor: pointer;
        margin-top: 20px;
        text-transform: uppercase;
        box-shadow: 0 0 20px rgba(0, 242, 255, 0.4);
    }

        .btn-pay:hover {
            background: #ffffff;
        }




    .create-container {
        background: var(--panel-bg);
        width: 500px;
        padding: 30px;
        border-radius: 15px;
        border: 1px solid var(--border-glow);
        box-shadow: 0 0 30px rgba(0,0,0,0.5);
    }

    h2 {
        margin-top: 0;
        color: var(--accent-cyan);
        letter-spacing: 1px;
        text-transform: uppercase;
        font-size: 1.2rem;
        border-bottom: 1px solid var(--border-glow);
        padding-bottom: 10px;
    }

    .form-group {
        margin-bottom: 20px;
    }

    .w-80 {
        width: 80%;
    }


    .label {
        display: block;
        margin-bottom: 8px;
        font-size: 0.9rem;
        color: #94a3b8;
    }

    /* Input styling - password toggle adjustments */
    .input {
        width: 100%;
        padding: 12px;
        background: var(--input-bg);
        border: 1px solid #2d3e50;
        border-radius: 5px;
        color: grey;
        box-sizing: border-box;
        outline: none;
        transition: 0.3s;
        /* allow space for an inline toggle button on the right */
        padding-right: 40px;
        position: relative;
    }

        .input:focus {
            border-color: var(--accent-cyan);
            box-shadow: 0 0 10px rgba(0, 242, 255, 0.2);
        }

        /* Target toggle button inside input containers so it stays small and positioned */
        .input button {
            position: absolute;
            right: 10px;
            top: 50%;
            transform: translateY(-50%);
            background: transparent;
            border: none;
            color: var(--text-dim);
            padding: 6px;
            cursor: pointer;
            font-size: 1rem;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            line-height: 1;
        }

            /* If the toggle renders an icon element (i or svg), keep it small */
            .input button i,
            .input button svg {
                font-size: 1rem;
                width: 1rem;
                height: 1rem;
            }

    .row {
        display: flex;
        gap: 15px;
    }

        .row > div {
            flex: 1;
        }

    .image-upload {
        height: 100px;
        border: 2px dashed #2d3e50;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        cursor: pointer;
        margin-bottom: 20px;
        border-radius: 5px;
        color: #94a3b8;
    }

        .image-upload:hover {
            border-color: var(--accent-cyan);
            color: white;
        }

    .btn-group {
        display: flex;
        gap: 10px;
        margin-top: 10px;
    }

    .btn {
        flex: 1;
        padding: 12px;
        border-radius: 5px;
        font-weight: bold;
        cursor: pointer;
        border: none;
        transition: 0.2s;
    }

    .btn-save {
        background: var(--accent-cyan);
        color: var(--bg-color);
        box-shadow: 0 0 15px rgba(0, 242, 255, 0.3);
    }

        .btn-save:hover {
            background: white;
            transform: scale(1.02);
        }

    .btn-cancel {
        background: transparent;
        color: #94a3b8;
        border: 1px solid #2d3e50;
    }

        .btn-cancel:hover {
            background: rgba(255,0,0,0.1);
            color: #ff4d4d;
            border-color: #ff4d4d;
        }

    .icon {
        color: var(--text-white) !important;
    }

        .icon:hover {
            background: gray;
            transform: scale(1.02);
        }

    .btn-icon {
        width: -webkit-fill-available;
    }


    .item-grid {
        margin-top: 30px;
        width: 100%;
        display: inline-grid;
        gap: 15px;
        overflow-wrap: break-word;
    }

        .item-grid-repeat {
            grid-template-columns: repeat(auto-fill, minmax(150px, 1fr))
        }

        .item-grid .item {
            background: var(--panel-bg);
            border: 1px solid transparent;
            padding: 15px;
            border-radius: 8px;
            cursor: pointer;
            transition: 0.2s;
            text-align: left;
            color: white;
            font-weight: unset;
            text-transform: none !important;
        }

            .item-grid .item:hover {
                border-color: var(--accent-cyan);
                transform: scale(1.02);
            }

    .zenit-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: var(--bg-overlay);
        backdrop-filter: blur(8px);
        display: flex;
        justify-content: center;
        align-items: center;
        z-index: 1089;
        font-family: 'Segoe UI', sans-serif;
        gap: 20px;
    }

    .flex-direction-column {
        flex-direction: column;
    }

    /*.toast {
    z-index: 9999 !important;
    position: fixed !important;
}*/

    .login-card {
        background: var(--panel-bg);
        backdrop-filter: blur(10px);
        width: 550px;
        padding: 40px;
        border-radius: 20px;
        border: 1px solid var(--border-glow);
        text-align: center;
        box-shadow: 0 0 40px rgba(0, 0, 0, 0.7);
    }

        .login-card h3 {
            text-transform: uppercase;
            letter-spacing: 3px;
            margin: 0;
            color: var(--text-dim);
        }

    .btn-login {
        width: 100%;
        padding: 15px;
        background: var(--accent-cyan);
        color: var(--bg-color);
        border: none;
        border-radius: 8px;
        font-weight: bold;
        font-size: 1rem;
        cursor: pointer;
        transition: 0.3s;
        margin-top: 10px;
        text-transform: uppercase;
        box-shadow: 0 0 20px rgba(0, 242, 255, 0.3);
    }

        .btn-login:hover {
            box-shadow: 0 0 25px rgba(255, 255, 255, 0.4);
            transform: translateY(-2px);
        }

    .forgot-pass {
        display: block;
        margin-top: 20px;
        font-size: 0.8rem;
        color: #94a3b8;
        text-decoration: none;
        transition: 0.2s;
    }

        .forgot-pass:hover {
            color: var(--accent-cyan);
        }

    .pin-hint {
        margin-top: 25px;
        padding-top: 20px;
        border-top: 1px solid rgba(255,255,255,0.05);
        font-size: 0.75rem;
        color: #4a5568;
    }

    .subtitle {
        color: #94a3b8;
        font-size: 0.85rem;
        margin-top: 5px;
        text-transform: uppercase;
        letter-spacing: 1px;
    }

    .logo-area {
        margin-bottom: 30px;
    }

    .logo-text {
        font-size: 2rem;
        font-weight: 800;
        letter-spacing: 2px;
        margin: 0;
    }

        .logo-text span {
            color: var(--accent-cyan);
            text-shadow: 0 0 10px rgba(0, 242, 255, 0.5);
        }

    .user-modal {
        background: var(--panel-bg);
        width: 550px;
        padding: 40px;
        border-radius: 15px;
        border: 1px solid var(--border-glow);
        box-shadow: 0 0 40px rgba(0, 242, 255, 0.15);
        color: white;
    }

    .form-row {
        display: flex;
        gap: 15px;
        margin-bottom: 15px;
        justify-content: flex-end;
    }

    .input-group {
        flex: 1;
        margin-bottom: 15px;
    }

    .btn-container {
        display: flex;
        gap: 10px;
    }

    .btn {
        flex: 1;
        padding: 14px;
        border-radius: 6px;
        font-weight: bold;
        cursor: pointer;
        border: none;
        text-transform: uppercase;
        transition: 0.2s;
    }

    .btn-primary {
        background: var(--accent-cyan);
        color: #050a0f;
    }

        .btn-primary:hover {
            box-shadow: 0 0 20px rgba(255,255,255,0.2);
        }

    .btn-secondary {
        background: transparent;
        color: #94a3b8;
        border: 1px solid #2d3e50;
        margin-top: 10px;
    }

        .btn-secondary:hover {
            border-color: #ff4d4d;
            color: #ff4d4d;
        }


    .btn-icon {
        display: flex;
        background: transparent;
        color: #94a3b8;
        border: 1px solid #2d3e50;
        line-height: 50px;
        gap: 14px;
        flex-direction: row;
        justify-content: center;
    }

        .btn-icon:hover {
            border-color: var(--accent-cyan);
            color: white;
        }



    .pay-container {
        background: var(--panel-bg);
        width: 600px;
        padding: 40px;
        border-radius: 10px;
        border: 1px solid var(--border-glow);
        box-shadow: 0 0 50px rgba(0,0,0,0.8);
        position: relative;
        clip-path: polygon(0 0, 95% 0, 100% 5%, 100% 100%, 5% 100%, 0 95%);
    }

    .summary-header {
        text-align: center;
        margin-bottom: 30px;
        border-bottom: 1px solid #1a2a3a;
        padding-bottom: 20px;
    }

    .total-amount {
        font-size: 3.5rem;
        font-weight: 900;
        color: var(--cyan);
        text-shadow: 0 0 15px rgba(0, 242, 255, 0.4);
        margin: 10px 0;
    }

    .label-dim {
        text-transform: uppercase;
        letter-spacing: 2px;
        color: var(--text-dim);
        font-size: 0.8rem;
    }

    /* Payment Grid */
    .payment-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
        margin-bottom: 30px;
    }

    .pay-option {
        background: #162431;
        border: 1px solid #2d3e50;
        padding: 25px;
        text-align: center;
        cursor: pointer;
        transition: all 0.3s ease;
        clip-path: polygon(10% 0, 100% 0, 100% 75%, 90% 100%, 0 100%, 0 25%);
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
        color: var(--text-white);
    }

        .pay-option:hover {
            border-color: var(--cyan);
            background: rgba(0, 242, 255, 0.05);
            transform: translateY(-5px);
            box-shadow: 0 5px 15px rgba(0, 242, 255, 0.1);
        }

        .pay-option.active {
            background: var(--cyan);
            color: var(--bg-dark);
            border-color: var(--cyan);
        }

        .pay-option svg {
            width: 40px;
            height: 40px;
            stroke: var(--cyan);
        }

        .pay-option.active svg {
            stroke: var(--bg-dark);
        }

        .pay-option span {
            font-weight: 800;
            text-transform: uppercase;
            letter-spacing: 1px;
        }

    /* Action Buttons */
    .action-row {
        display: flex;
        gap: 15px;
    }

    .btn-back {
        flex: 1;
        padding: 15px;
        background: transparent;
        color: var(--text-dim);
        border: 1px solid #2d3e50;
        cursor: pointer;
        font-weight: bold;
        text-transform: uppercase;
        clip-path: polygon(0 0, 100% 0, 100% 100%, 15% 100%, 0 70%);
    }

        .btn-back:hover {
            background: rgba(255,0,0,0.1);
            color: #ff4d4d;
            border-color: #ff4d4d;
        }

    .btn-complete {
        flex: 2;
        padding: 15px;
        background: var(--cyan);
        color: var(--bg-dark);
        border: none;
        cursor: pointer;
        font-weight: 900;
        font-size: 1.1rem;
        text-transform: uppercase;
        clip-shadow: 0 0 20px var(--cyan);
        clip-path: polygon(0 0, 85% 0, 100% 30%, 100% 100%, 0 100%);
        transition: 0.3s;
    }

        .btn-complete:hover {
            background: white;
            box-shadow: 0 0 30px rgba(255,255,255,0.3);
        }







    /* Die Kwitansie Houer */
    .receipt-paper {
        background: var(--panel-bg);
        width: 100%;
        max-width: 400px;
        padding: 30px;
        position: relative;
        border-top: 4px solid var(--cyan);
        /* 'Tear-off' effek onderaan met clip-path */
        clip-path: polygon(0 0, 100% 0, 100% 98%, 95% 100%, 90% 98%, 85% 100%, 80% 98%, 75% 100%, 70% 98%, 65% 100%, 60% 98%, 55% 100%, 50% 98%, 45% 100%, 40% 98%, 35% 100%, 30% 98%, 25% 100%, 20% 98%, 15% 100%, 10% 98%, 5% 100%, 0 98%);
        box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    }

    .status-badge {
        text-align: center;
        color: var(--success-green);
        text-transform: uppercase;
        font-weight: 900;
        letter-spacing: 3px;
        margin-bottom: 20px;
        font-size: 0.9rem;
        text-shadow: 0 0 10px rgba(0, 255, 170, 0.3);
    }

    .brand-header {
        text-align: center;
        margin-bottom: 30px;
    }

        .brand-header h1 {
            margin: 0;
            font-size: 1.5rem;
            letter-spacing: 2px;
        }

            .brand-header h1 span {
                color: var(--cyan);
            }

    .info-row {
        display: flex;
        justify-content: space-between;
        font-size: 0.8rem;
        color: var(--text-dim);
        margin-bottom: 5px;
    }

    /* Item Tabel */
    .item-list {
        margin: 30px 0;
        border-top: 1px dashed var(--border);
        border-bottom: 1px dashed var(--border);
        padding: 15px 0;
    }

    .item-row {
        display: flex;
        justify-content: space-between;
        margin-bottom: 10px;
        font-size: 0.95rem;
    }

    .item-qty {
        color: var(--cyan);
        font-weight: bold;
        margin-right: 10px;
    }

    /* Totale */
    .totals-section {
        margin-bottom: 20px;
    }

    .total-row {
        display: flex;
        justify-content: space-between;
        margin-bottom: 8px;
    }

    .grand-total {
        font-size: 1.6rem;
        font-weight: 900;
        color: var(--cyan);
        border-top: 1px solid var(--border);
        padding-top: 15px;
        margin-top: 10px;
    }

    /* Knoppies */
    .action-container {
        margin-top: 40px;
        display: flex;
        gap: 15px;
        width: 400px;
    }

    .btn-tactical {
        flex: 1;
        padding: 15px;
        border: none;
        cursor: pointer;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 1px;
        transition: 0.3s;
        clip-path: polygon(10% 0, 100% 0, 100% 70%, 90% 100%, 0 100%, 0 30%);
    }

    .btn-print {
        background: #1a2a3a;
        color: white;
    }

        .btn-print:hover {
            background: #2d3e50;
        }

    .btn-new {
        background: var(--cyan);
        color: var(--bg-dark);
        box-shadow: 0 0 15px rgba(0, 242, 255, 0.3);
    }

        .btn-new:hover {
            background: white;
            transform: translateY(-3px);
        }

    @media print {
        .action-container {
            display: none;
        }

        body {
            background: white;
            padding: 0;
        }

        .receipt-paper {
            box-shadow: none;
            border: 1px solid #ccc;
            width: 100%;
        }
    }


    .dashboard-header {
        margin-bottom: 40px;
        border-left: 4px solid var(--cyan);
        padding-left: 20px;
    }

        .dashboard-header h1 {
            text-transform: uppercase;
            letter-spacing: 3px;
            margin: 0;
            font-size: 1.8rem;
        }

    /* Rooster vir die Kaarte */
    .dashboard-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .chart-container {
        background: var(--panel-bg);
        padding: 25px;
        border: 1px solid rgba(0, 242, 255, 0.1);
        clip-path: polygon(0 0, 100% 0, 100% 90%, 95% 100%, 0 100%);
        position: relative;
    }

    .full-width {
        grid-column: span 2;
    }

    .chart-title {
        text-transform: uppercase;
        font-size: 0.8rem;
        letter-spacing: 2px;
        color: var(--cyan);
        margin-bottom: 20px;
        display: flex;
        align-items: center;
        gap: 10px;
    }

        .chart-title::before {
            content: '';
            width: 8px;
            height: 8px;
            background: var(--cyan);
            box-shadow: 0 0 10px var(--cyan);
        }

    canvas {
        max-height: 300px;
    }

    .chart-controls {
        display: flex;
        align-items: center;
        gap: 10px;
        background: #162431;
        padding: 5px 15px;
        clip-path: polygon(5% 0, 100% 0, 100% 100%, 0 100%, 0 30%);
        border: 1px solid rgba(0, 242, 255, 0.2);
    }

        .chart-controls input[type="date"] {
            background: transparent;
            border: none;
            color: var(--cyan);
            font-family: 'Segoe UI', monospace;
            font-size: 0.8rem;
            outline: none;
            cursor: pointer;
        }

        .chart-controls span {
            color: var(--text-dim);
            font-size: 0.7rem;
            text-transform: uppercase;
        }

    .header-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 20px;
    }

    .btn-refresh {
        background: #00f2ff;
        color: #050a0f;
        border: none;
        padding: 4px 12px;
        font-weight: 900;
        font-size: 0.7rem;
        cursor: pointer;
        clip-path: polygon(10% 0, 100% 0, 90% 100%, 0 100%);
    }

        .btn-refresh:hover {
            background: white;
        }


/* --- Mobile-First Base Styles (Up to 768px) --- */

.dashboard-header {
    margin-bottom: 25px; /* Reduced for mobile */
    border-left: 3px solid var(--cyan);
    padding-left: 15px;
}

    .dashboard-header h1 {
        text-transform: uppercase;
        letter-spacing: 1.5px; /* Tightened for smaller screens */
        margin: 0;
        font-size: 1.4rem; /* Scaled down */
    }

.header-row {
    display: flex;
    flex-direction: column; /* Stack header and controls on small screens */
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr; /* Single column layout */
    gap: 20px;
}

.chart-container {
    background: var(--panel-bg);
    padding: 20px;
    border: 1px solid rgba(0, 242, 255, 0.1);
    /* Simplified clip-path for mobile or removed if it cuts off content */
    clip-path: polygon(0 0, 100% 0, 100% 95%, 92% 100%, 0 100%);
    position: relative;
}

/* On mobile, every card is full width */
.full-width {
    grid-column: 1;
}

.chart-title {
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1px;
    color: var(--cyan);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

canvas {
    width: 100% !important; /* Ensure canvas fills container */
    height: auto !important;
    max-height: 250px;
}

.chart-controls {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping on very narrow screens */
    align-items: center;
    gap: 8px;
    background: #162431;
    padding: 8px 12px;
    width: 100%; /* Full width on mobile */
    box-sizing: border-box;
}

/* --- Desktop Enhancements (768px and up) --- */
@media (min-width: 768px) {
    .dashboard-header h1 {
        font-size: 1.8rem;
        letter-spacing: 3px;
    }

    .header-row {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .dashboard-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .full-width {
        grid-column: span 2;
    }

    .chart-controls {
        width: auto;
    }
}


    /* Gemeenskaplike Handle Styles */
    .menu-handle {
        position: absolute;
        top: 50%; /* Sentraal vertikaal */
        transform: translateY(-50%);
        width: 5px;
        height: 60px;
        background: var(--panel-bg, #0d161f);
        border: 1px solid rgba(0, 242, 255, 0.3);
        color: var(--cyan, #00f2ff);
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.3s ease;
        z-index: 100;
    }

    /* Linker Handle Spesifiek */
    .left-handle {
        left: 150px; /* Steek halfpad oor die rand */
        border-radius: 0 10px 10px 0;
        border-left: none;
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }

    .left-handle-closed {
        left: 0;
    }


    /* Regter Handle Spesifiek */
    .right-handle {
        right: 380px; /* Steek halfpad oor die rand */
        border-radius: 10px 0 0 10px;
        border-right: none;
        clip-path: polygon(100% 0, 0 0, 0 100%, 100% 100%);
    }

    .right-handle-closed {
        right: 0 !important;
    }

    /* Hover Effekte */
    .menu-handle:hover {
        background: var(--cyan, #00f2ff);
        color: #050a0f;
        /*box-shadow: 0 0 15px rgba(0, 242, 255, 0.6);*/
        width: 30px; /* Word effens breër vir makliker klik */
    }

    /* Ikoon grootte */
    .menu-handle i {
        font-size: 0.8rem;
    }

    .toast-message {
        white-space: pre-wrap;
    }

    /* --- RESPONSIVE MOBILE OVERRIDES --- */

    @media (max-width: 1024px) {
        /* Allow the page to scroll on mobile */
        .body {
            height: auto;
            overflow-y: auto;
            flex-direction: column;
        }

        /* 1. Navigation: Move from side to top */
        .nav {
            width: 100%;
            height: auto;
            flex-direction: row;
            justify-content: space-around;
            padding: 10px 0;
            border-right: none;
            border-bottom: 1px solid var(--border-glow);
            position: sticky;
            top: 0;
            z-index: 1000;
        }

        .nav-item {
            margin-bottom: 0;
            font-size: 24px;
        }

        /* 2. Main Content: Ensure it takes full width */
        main {
            width: 100%;
            padding: 15px;
            box-sizing: border-box;
            height: auto;
        }

        .header {
            flex-direction: column;
            gap: 15px;
            align-items: flex-start;
        }

        .search-bar {
            width: 100%; /* Search bar fills screen width */
            box-sizing: border-box;
        }

        /* 3. Grid: Adjust for smaller screens */
        .grid {
            grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
            gap: 10px;
        }

        /* 4. Cart/Checkout Panel: Move to bottom or make full width */
        .cart-panel {
            width: 100%;
            border-left: none;
            border-top: 1px solid var(--border-glow);
            box-sizing: border-box;
            height: auto;
        }

        /* 5. Modals & Cards: Shrink fixed-width containers */
        .login-card,
        .user-modal,
        .create-container,
        .pay-container {
            width: 95% !important;
            max-width: none;
            padding: 20px;
            box-sizing: border-box;
            margin: 10px auto;
            clip-path: none; /* Removing complex clips on mobile prevents layout bugs */
        }

        /* 6. Dashboard: Stack the charts */
        .dashboard-grid {
            grid-template-columns: 1fr;
        }

        .full-width {
            grid-column: auto;
        }

        /* 7. Payment Grid: Stack options */
        .payment-grid {
            grid-template-columns: 1fr;
        }

        /* 8. Forms: Make rows stack vertically */
        .row, .form-row {
            flex-direction: column;
            gap: 10px;
        }

        /* Hide the desktop "Menu Handles" as they interfere with touch */
        .menu-handle {
            display: none !important;
        }

        /* Receipt action buttons */
        .action-container {
            width: 100%;
            flex-direction: column;
        }
    }

    /* Extra small screens */
    @media (max-width: 480px) {
        .brand-text {
            font-size: 1.1rem;
        }

        .total-amount {
            font-size: 2.5rem;
        }

        .btn-complete, .btn-pay {
            font-size: 1rem;
            padding: 12px;
        }
    }


    /* --- MOBILE LAYOUT OVERRIDE --- */

    @media (max-width: 768px) {
        /* 1. Force the parent container to stack children vertically */
        .create-container,
        .user-modal,
        .pay-container {
            flex-direction: column !important;
            align-items: center !important;
            height: auto !important;
            padding: 15px !important;
            gap: 20px !important;
        }

        /* 2. Make the form and the icon grid full width */
        .create-container,
        .item-grid-container, /* adjust to your specific class for the icon side if different */
        .contact-container {
            width: 100% !important;
            max-width: 95vw !important;
            box-sizing: border-box !important;
        }

        /* 3. Handle the side-by-side columns (the culprit in your image) */
        .row, .form-row, .open-grid {
            flex-direction: column !important;
            width: 100% !important;
        }

        /* 4. Fix the "Select a Icon" panel specifically */
        /* Assuming it's a sibling of the form inside a flex container */
        .create-container + div,
        aside,
        .icon-selection-panel {
            width: 100% !important;
            max-width: 100% !important;
            margin-top: 20px;
            border-left: none !important;
            border-top: 1px solid var(--border-glow);
            padding-top: 20px;
        }

        /* 5. Fix the Icon Grid itself so icons aren't huge */
        .item-grid {
            width: 100% !important;
        }

        /* 6. Ensure the Image Upload/Choose Icon area doesn't overlap text */
        .image-upload {
            width: 100% !important;
            height: 120px !important;
            margin-bottom: 15px;
        }

        /* 7. Make buttons full-width for easier thumb tapping */
        .btn-group, .btn-container {
            flex-direction: row; /* Keep buttons side-by-side but let them grow */
            width: 100%;
        }

        .btn {
            padding: 15px 5px !important;
            font-size: 0.9rem !important;
        }
    }


/* --- STICKY MOBILE CART BUTTON --- */

/* Hide by default on Desktop */
.mobile-cart-toggle {
    display: none;
}

@media (max-width: 1024px) {
    .mobile-cart-toggle {
        display: flex;
        position: fixed;
        bottom: 20px;
        right: 20px;
        width: 60px;
        height: 60px;
        background: var(--cyan);
        color: var(--bg-dark);
        border: none;
        border-radius: 50%; 
        justify-content: center;
        align-items: center;
        font-size: 1.5rem;
        z-index: 2000; 
        cursor: pointer;
        transition: transform 0.2s, background 0.2s;
        clip-path: polygon(15% 0%, 100% 0%, 100% 85%, 85% 100%, 0% 100%, 0% 15%);
        transition: all 0.3s ease;
    }

        .mobile-cart-toggle:active {
            transform: scale(0.9);
        }

    /* Small badge for item count */
    .cart-count-badge {
        position: absolute;
        top: -5px;
        right: -5px;
        background: #ff00ff; /* Magenta to contrast the Cyan */
        color: white;
        font-size: 0.7rem;
        padding: 4px 8px;
        border-radius: 10px;
        font-weight: bold;
        border: 2px solid var(--bg-dark);
    }
}