:root {
    --font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --color-1: #fff;
    --color-2: #efefef;
    --color-3: #999;
    --color-4: #555;
    --color-5: #333;
    --color-6: #000;
    --primary-color:#099;
    --font-size-1:20px;
    --gradient-1:linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --spacing: 20px;
}

.custom{
    background: var(--color-3);
    color:var(--color-1);
}
.light{
    background: var(--color-2);
    color:var(--color-5);
}
.dark{
    background: var(--color-5);
    color:var(--color-1);
}

* {
    box-sizing: border-box;
    transition: all 0.3s ease;
}

body {
    margin: 0px;
    font-family: var(--font-family);
    background: var(--color-2);
    min-height: 100vh;
    align-items: center;
    justify-content: center;
}



/* firefox scroll */
.engine-firefox * {
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, .4) transparent;
}

/* Edge / Chrome */
.engine-edge *::-webkit-scrollbar,
.engine-chrome *::-webkit-scrollbar {
    width: 6px;
    height: 3px;
}

.engine-edge *::-webkit-scrollbar-thumb,
.engine-chrome *::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, .4);
    border-radius: 10px;
}


.engine-edge *::-webkit-scrollbar-track,
.engine-chrome *::-webkit-scrollbar-track {
    background: transparent;
}

.input-touch button {
  width: fit-content;

}

.reduce-motion * {
    animation: none !important;
}


.menu_icon {
  width: 5px;
  height: 5px;
  background-color: #fff;
  margin: auto;
  border-radius: 30px;
  margin-top: 4px;
  margin-bottom: 4px;

}

.center {
    left: 50%;
    transform: translate(-50%, 0);
}

.container {
    /*
            background: white;
            box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
            */
    /* padding: 2rem; */
    border-radius: 10px;

    width: 100%;

    max-width: 400px;
    margin: auto;
    /* margin-top: 5%; */
    margin-bottom: 10%;
    text-align: center;

}

.form-container {
    display: flex;
    flex-direction: column;
}

.tabs {}

.footer .tabs {

  overflow: auto;
  text-align: center;
  display: -webkit-box;
}


/*
const el = document.querySelector('.hover-scroll');

let t;
el.addEventListener('scroll', () => {
  el.classList.add('scrolling');
  clearTimeout(t);
  t = setTimeout(() => el.classList.remove('scrolling'), 800);
});
*/



.flex {
    display: flex;
}

.inline_block {
    display: inline-block;
}

.tab_buttons {
    margin-bottom: 2rem;
    border-bottom: 2px solid #eee;
}

.form_tab {
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    border: none;
    background: none;
    font-size: 1rem;
    font-weight: 500;
    color: #666;
    transition: all 0.3s ease;
}

.form_tab.active {
    color: #667eea;
    border-bottom: 2px solid #667eea;
    margin-bottom: -2px;
}

.form {
    display: none;
}

.form.active {
    display: block;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
    font-weight: 500;
}

input {
    width: 100%;
    padding: 0.75rem;
    border: 0px solid;
    border-radius: 15px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    filter: drop-shadow(0px 5px 5px rgba(0, 0, 0, 0.1));
    margin-bottom: 1.5rem;
}

input:focus {
    outline: none;
    border-color: #667eea;
}

button {
    width: 100%;
    padding: 0.75rem;
    /* background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); */
    /* background: linear-gradient(135deg, #0ee 0%, #099 100%); */
    background: var(--color-3);
    color: var(--color-1);
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.buttons .fixed {
    position: fixed;
    bottom: 120px;
    right: 24px;
    padding: 10px;
}

button:hover {
    transform: translateY(-1px);
    background: var(--color-2);
    color:var(--color-5);
}

button:active {
    transform: translateY(0);
}

.message {
    margin-top: 1rem;
    padding: 0.75rem;
    border-radius: 5px;
    text-align: center;
    font-weight: 500;
}

.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.user-info {
    text-align: center;
    margin-bottom: 1rem;
}

.logout-btn {
    background: #dc3545;
    margin-top: 1rem;
}

.loading {
    opacity: 0.7;
    pointer-events: none;
}




.header {
    
    display: none;
    position: fixed;
    width: 100%;
    z-index: 1;
    height: 40px;
    font-weight: bold;
    font-size: 15.5px;
    filter: drop-shadow(0px 5px 5px rgba(0,0,0,0.2));
    
}

.header.active {
    display: flex;
}

.icon_and_name {
  text-align: center;
  filter: drop-shadow(0px 15px 35px rgba(0, 0, 0, 0.2));
  justify-content: center;
  border-radius: 30px;
  display: flex;
  margin: auto; 
  align-items: center;
  padding: 0px 8px;

}

.header_element {
    margin-left: 3px;
  margin-right: 3px;
}

.tabs_list{
  position: absolute;
  top: 40px;
  background: var(--color-4);
  width: 100%;
  filter: drop-shadow(0px 0px 10px rgba(0,0,0,0.5));
  overflow: scroll;
}

.footer {
position: fixed;
  text-align: center;
  filter: drop-shadow(0px 15px 35px rgba(0, 0, 0, 0.2));
  justify-content: center;
  z-index: 1;
  bottom: 0px;
  width: 100%;
  
}

.footer p {
    margin: auto;
  height: 35px;
  align-content: center;
  display: block;
}

.footer.active {
    
}

.page_tab {

    padding: 0.55rem 1.5rem;
    cursor: pointer;
    outline: none;
    caret-color: transparent;
    user-select: none;
    border: none;
    background: none;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    margin: auto;
    display: flex;
}

.page_tab.active {
    font-weight: bold;
    background: var(--primary-color);
    
}

.no_caret {
    cursor: pointer;
    outline: none;
    caret-color: transparent;
    user-select: none;
    -webkit-user-select: none;
    /* Safari */
    -moz-user-select: none;
    /* Firefox */
    -ms-user-select: none;
    /* IE/Edge */
    /* pointer-events: none;  */
    /* Optional: prevent cursor interactions */
}



.page {
    display: none;


}


.page.active {
    display: block;


}

.board {
    display: none;
}

.board.active {
    display: block;


}


.icon {
    height: 25px;
}

.click-effect{
     background-color: #4CAF50; /* Normal background color */
  border: none;
  color: white;
  padding: 15px 32px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  margin: 4px 2px;
  cursor: pointer;
  /* Transition for a smooth change back to normal when the `highlight` class is removed */
  transition: background-color 0.5s ease; 
}

.click-effect:active {
  background-color: #f44336; /* Darker/highlight color while held down */
}

@keyframes highlight-fade {
  0% { background-color: #f44336; } /* Start with the highlight color */
  100% { background-color: #4CAF50; } /* Fade back to the original color */
}

.highlight {
  animation: highlight-fade 0.5s ease forwards; /* Run the animation once and stay at the final state (the original color) */
}

/*  dropdown + options menu */

.menu-container {
   position: absolute;
  margin-right: 10px;
  margin-left: 10px;
  direction: rtl;
  right: 0;
  text-align: end;
}

.menu-btn {
  
  cursor: pointer;
  width: 40px;
  height: 40px;
  border-radius: 50px;
  display: block;
  text-align: center;
  align-content: center;
}

.dropdown {
    display: none;
    position: absolute;
    right: 0;
    min-width: 120px;
    background: white;
    border: 1px solid #ccc;
    padding: 8px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

.dropdown a {
    display: block;
    padding: 8px 12px;
    text-decoration: none;
    color: black;
}



.dropdown a:hover {
  background: #eee;
}

/* Show dropdown on click */
/*
.menu-container:hover .dropdown {
  display: block;
}
  */


.profile_avatar {
    height: 140px;
    filter: drop-shadow(0px 15px 10px rgba(0, 0, 0, 0.1));
    margin-bottom: 20px;
    margin-top: 50px;
}


.dashboard {
    display: none;
}


.hidden_up {

    top: -100px;
}

.hidden_down {

    bottom: -100px;
}


.apps {
    text-align: center;
    margin-top: 100px;
    margin-bottom: 100px;
}

.app_name {
    font-weight: bold;
    color: #fff;
    background: #333;
    border-radius: 30px;
    padding: 15px;
    display: inline-block;
    margin: 10px;
    cursor: pointer;
}


.nav {
    position: fixed;
    overflow: scroll;
    height: 70%;
    top: 15%;
}



.nav .item {
    background: #555;
    color: #fff;
    padding: 15px;
    border-radius: 30px;
    margin: 5px;
    cursor: pointer;
    text-decoration: none;
    caret-color: transparent;
    user-select: none;

}


.models {

  position: absolute;
  top: 78px;
  background: var(--color-3);
  width: 100%;
  filter: drop-shadow(0px 0px 10px rgba(0,0,0,0.5));
  display: flex;
  overflow: scroll;
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  height: 40px;
}



.model {
    display: none;
    margin-left: -1000px;
    margin-right: 1000px;
    margin-top: 90px;


}

.model.active {
    display: block;
    margin-bottom: 100px;
    margin-left: 0px;
    margin-right: 0px;
}

.fk-field {
    display: flex;
    gap: 6px;
    align-items: center;
}

.fk-actions button {
    padding: 2px 6px;
    cursor: pointer;
}

.model_tab {
color: var(--color-1);
  display: ruby;
  cursor: pointer;
  height: 40px;
  padding: 7px;
   
  padding-right: 25px;
  padding-left: 25px;
  margin: auto;
  
}

.model_tab.active {
    
    background: var(--primary-color);
  
    /* filter: drop-shadow(0px 10px 10px rgba(0,0,0,0.5)); */

}

.button.rounded {
    width: fit-content;
    border-radius: 30px;
    padding: 0.4rem;
}

.table {
    width: 100%;
    /* overflow: scroll; */
    margin-bottom: 100px;
}

.table_header {
    color: #fff;
    background: #777 !important;
    font-weight: bold;

}



.col_actions {
    text-align: end;
    padding-right: 10px;
    caret-color: transparent;
}

.row {
    display: flex;
    justify-content: space-around;
    background: #fff;
    padding: 5px;
    border-radius: 30px;
    margin-bottom: 5px;
    min-width: 600px;
    align-items: center;

}

.row:hover {
    /* filter: drop-shadow(0px 5px 2px rgba(0,0,0,0.1));
     margin-top: -1px; */
}

.column {
    width: 30%
}


.div-table {
    display: table;
    width: 100%;
    border-collapse: collapse;
    /* Optional: for single borders */
}

.div-table-row {
    display: table-row;
}

.div-table-cell {
    display: table-cell;
    border: 1px solid #ccc;
    padding: 8px;
    vertical-align: top;
    /* Optional: aligns content to the top */
}


textarea {
    width: 100%;
    padding: 0.75rem;
    border: 0px solid;
    border-radius: 15px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    filter: drop-shadow(0px 5px 5px rgba(0, 0, 0, 0.1));
    margin-bottom: 1.5rem;
}

select {
    width: 100%;
    padding: 0.75rem;
    border: 0px solid;
    border-radius: 15px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    filter: drop-shadow(0px 5px 5px rgba(0, 0, 0, 0.1));
    margin-bottom: 1.5rem;
    background: #fff;
}


.categories {


    width: 95%;
    /* overflow: scroll; */
    /* display: block ruby; */
    display: block;
    margin-bottom: 10px;
    /* height: 90px; */
    text-align: initial;
    border-bottom: 1px solid #fff;
    padding-bottom: 10px;

}


.category_tab {
    color: #333;
    background: #fff;
    border-radius: 30px;
    display: inline-block;
    margin: 5px;
    margin-bottom: 5px;
    cursor: pointer;
    padding: 10px;
}

.category_tab.active {
    color: #667eea;
    /* border: 2px solid #667eea; */
    /* margin-bottom: -2px; */
    filter: drop-shadow(0px 10px 10px rgba(0, 0, 0, 0.5));

}


.category {
    display: none;



}

.category.active {
    display: block;
    margin-bottom: 100px;
    text-align: initial;
    padding-bottom: 10px;
    width: 95%;
    border-bottom: 1px solid #fff;


}

.product {
    color: #fff;
    background: #099;
    border-radius: 30px;
    padding: 10px;
    display: inline-block;
    margin: 10px;
    cursor: pointer;
    min-width: 160px;
    text-align: center;
}

.product:hover {
    color: #fff;
    background: #0cc;
}


.blur {
    -webkit-backdrop-filter: blur(40px) saturate(1);
    backdrop-filter: blur(40px) saturate(1);
    background-color: #0000000d;
    border: 1px solid hsla(0, 0%, 100%, .05);
    position: relative;
    corner-shape: squircle;
    border-radius: 7em;
    padding: 6em 5em;
    z-index: 10000;
}

.scale {
    transform: translate(-50%, -50%) scale(0.9);
}


/* modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal {
  width: 100%;
  max-height: 90vh;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, .3);
  inset: 0;
  background: var(--color-2);
}

.modal-header {
    display: flex;
  justify-content: space-between;
  padding: 10px;
  border-bottom: 1px solid #ddd;
  width: 100%;
}

.modal-footer{
text-align: center;
}

.modal[data-level="2"] {
    z-index: 2000;
}

.modal[data-level="3"] {
    z-index: 3000;
}



/* Row action menu */
.row-actions {
    position: relative;
    display: inline-block;
}

.action-trigger {
    background: transparent;
    border: none;
    font-size: 18px;
    cursor: pointer;
    padding: 4px 8px;
}

.action-menu {
    position: absolute;
    right: 0;
    top: 24px;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .15);
    min-width: 120px;
    display: none;
    z-index: 1;
}

.action-menu.open {
    display: block;
}

.action-menu button {
    display: block;
    width: 100%;
    background: none;
    border: none;
    padding: 8px 12px;
    text-align: left;
    cursor: pointer;
}

.action-menu button:hover {
    background: #f5f5f5;
}

.action-menu button.danger {
    color: #c0392b;
}



.fk-menu-wrapper {
    position: relative;
    display: inline-block;
    margin-left: 6px;
}

.fk-menu-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    padding: 2px 6px;
}

.fk-menu {
    position: absolute;
    right: 0;
    top: 100%;
    background: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    min-width: 120px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: none;
    z-index: 1000;
}

.fk-menu.open {
    display: block;
}

.fk-menu-item {
    padding: 8px 12px;
    cursor: pointer;
    font-size: 14px;
}

.fk-menu-item:hover {
    background: #f5f5f5;
}


.bg {
    position: fixed;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.bg img {
    width: 100%;
    height: 100%;
    position: fixed;
    display: block;
}



.POS {
    display: flex;
    padding-top: 70px;
}

.cart {

    background: rgba(255, 255, 255, 0.5);
    border-radius: 30px;
    filter: drop-shadow(10px 10px 10px rgba(0, 0, 0, 0.1));

    width: 320px;
    border-left: 1px solid #ddd;

    padding-top: 30px;
    margin-bottom: 80px;
}

.cart-items {


    border-radius: 30px;
    filter: drop-shadow(10px 10px 10px rgba(0, 0, 0, 0.1));

    width: 320px;
    border-left: 1px solid #ddd;

    padding: 10px;
    margin-bottom: 80px;
}

.cart-header {
    font-weight: bold;
    border-bottom: 1px solid #555;
    width: 90%;
    margin-left: 5%;
    padding-bottom: 10px;
}

.cart-item {
    border-bottom: 1px solid #eee;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 30px;
    padding: 15px;

}

.ci-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ci-note {
    width: 100%;
    margin-top: 5px;
}

.cart-footer {
    margin-top: 10px;
    font-weight: bold;
}


@media screen and (max-width: 900px) {

    .models {

        


    }


    .container {
        margin-top: 10%
    }


}


@media screen and (max-width : 600px) {

    .models {

        


    }

    table {
        width: 100%;
        background: #fff;
        border-radius: 30px;
        padding: 15px;
        margin-top: 10px;
        margin-bottom: 10px;
        overflow: scroll;
        display: block;
    }

    .page_tab {}

    .container {
        /* margin-top: 15%; */
        margin-bottom: 15%;
    }


    .menu-btn {

        top: 30px;
        right: 40px;
    }

    

    .container {
        margin-top: 30%
    }


    .tab_buttons {
  border-bottom: 2px solid #eee;
  width: 90%;
  margin: auto;
    margin-bottom: auto;
  margin-bottom: 2rem;
}

input{
    width:90%
}

button {
  width: 90%;
}

.dropdown a:hover {
  background: #eee;
}

}



.category_and_products {
    width: 70%;
}


input[type="number"] {

    height: 30px;
    margin: 0px;
    text-align: center;
    width: 50px;
}

.ci-controls {
    display: flex;
    justify-content: end;
}

.ci-name {
    text-align: left;
    align-content: center;
}

.cart-item {
    border-bottom: 1px solid #eee;
    padding: 15px;
    margin-bottom: 10px;
}

.ci-note {
    width: 100%;
    margin-top: 5px;
    display: none;
}

button.checkout-btn {
    margin: auto;
    margin-top: 30px;
    margin-bottom: 30px;
}

.quantity {
    display: flex;
    align-items: center;
    gap: 8px;
}

.quantity button {
    width: 32px;
    height: 32px;
}

.qty-value {
    min-width: 30px;
    text-align: center;
    font-weight: bold;
}

.del_item {
    background: #999;
    border-radius: 50px;
    align-content: center;
    align-items: center;
    align-self: center;
    color: #fff;
    margin-left: 5px;
    margin-right: 10px;
    padding-left: 10px;
    padding-right: 10px;
    padding-top: 4px;
    padding-bottom: 5px;
    text-align: center;
    font-family: arial;
    cursor: pointer;
}

.quantity_modifier {
    background: #fff;
    border-radius: 50px;
    align-content: center;
    align-items: center;
    align-self: center;
    color: #555;
    margin-left: 5px;
    margin-right: 5px;
    padding-left: 10px;
    padding-right: 10px;
    padding-top: 4px;
    padding-bottom: 5px;
    text-align: center;
    font-family: arial;
    cursor: pointer;
    width: 30px;
}



.quantity_control {
    display: flex;

}

.item_first_line {
    display: flex;
    margin-bottom: 10px;
}

.item_second_line {
    display: flex;
    justify-content: space-between;

}

.no-spinner::-webkit-outer-spin-button,
.no-spinner::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Firefox */
.no-spinner {
    -moz-appearance: textfield;
    appearance: textfield;
}

.item_total {
    font-weight: bold;
}

.cart-footer {
    margin-top: 10px;
    font-weight: bold;
    position: absolute;
    bottom: 0px;
    margin-bottom: 30px;
    margin-left: 5%;
    margin-right: 5%;
    border-top: 1px solid #000;
    width: 90%;
    justify-content: space-between;
    display: flex;
}





/*  dropdown + options cart item */

.options-container {
    display: block ruby;
    text-align: end;
    width: 100%;
    position: relative;
}

.options-btn {
    font-size: 30px;
    border: none;
    background: transparent;
    cursor: pointer;
    color: #282828;
    font-weight: bolder;
    rotate: 0deg;
    margin-left: 5px;
    margin-right: 5px;

    width: 27px;
    padding-left: 11px;
    padding-right: 10px;
    border-radius: 30px;
    height: 24px;
    padding-top: 2px;
    transition: 1s all;
}

.options-btn:hover {
    background: rgba(255, 255, 255, 0.5);
}

/*  auto position */


.options_dropdown {
    display: none;
    position: absolute;
    right: 0;
    min-width: 135px;
    background: white;
    border: 1px solid #ccc;
    padding: 10px 5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    border-radius: 15px;
    text-align: initial;
    z-index: 1000;
}

.options_dropdown.active {
    display: block;
}

.options_dropdown a {
    display: block;
    padding: 8px 12px;
    text-decoration: none;
    color: black;
    border-radius: 10px;
}



.options_dropdown a:hover {
    background: #eee;
    display: block;
}


/* Show dropdown on click */

.options-container:hover .dropdown {
    display: block;
}

.options_icon {
    width: 4px;
    height: 4px;
    background-color: #555;
    margin: 2px 0;
    border-radius: 30px;

}





/* amendment */
/* Apps Grid for Home Page */
.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px;
}

.app-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
}

.app-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.app-card h3 {
    margin-bottom: 15px;
    color: #333;
    border-bottom: 2px solid #667eea;
    padding-bottom: 10px;
}

.app-models {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.model-item {
    padding: 10px 15px;
    background: #f5f5f5;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.model-item:hover {
    background: #e0e0e0;
}

/* Loading and Error Messages */
.loading-message,
.error-message {
    text-align: center;
    padding: 40px;
    background: white;
    border-radius: 10px;
    margin: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.loading-message p,
.error-message p {
    margin-bottom: 20px;
    color: #666;
}

/* Make sure the active page has proper spacing */
.page.active {
    min-height: 60vh;
    padding: 20px 0;
}

/* Update app container spacing */