/*
 * Kopi & Co - style.css 1.0
 * Copyright 2020-2023 Baristoft.
 */

 @import url('https://fonts.googleapis.com/css2?family=Open Sans:wght@100;200;300;400&display=swap');
 @import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@100;200;300;400&display=swap');

:root {
  --primary-color: #2a110d;
  --secondary-color: #fff3da;
  --tertiary-color: #faa631;
  --dark-color: #000;
  --light-color: #e5e0e4;
  --success-color: #5cb85c;
  --error-color: #d9534f;
}

* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
  -webkit-tap-highlight-color: transparent;
  /* -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
  user-drag: none; */
}

body {
  font-family: 'Montserrat', sans-serif;
  color: #333;
  line-height: 1.6;
}

ul {
  list-style-type: none;
}

a {
  text-decoration: none;
  color: white;
}

h1,
h2 {
  font-weight: 700;
  line-height: 1.2;
  margin: 10px 0;
}

h3 {
  font-weight: 200;
}

h4, h5 {
  font-weight: 200;
}

p {
  font-family: 'Open Sans', Arial, sans-serif;
  margin: 10px 0;
}

img {
  width: 100%;
}

.code,
pre {
  background-color: #333;
  color: #fff;
  padding: 10px;
}

.hidden {
  visibility: hidden;
  height: 0;
}

.box {
  border: 1px solid red;
}

/* Sidebar-Content */
.content {
  width: 100%;
  overflow-y: auto;
}

.assistant-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color), #4a1f1a);
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(42, 17, 13, 0.25);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 1000;
  overflow: hidden;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.assistant-fab:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 25px rgba(42, 17, 13, 0.3);
  background: linear-gradient(135deg, #4a1f1a, var(--primary-color));
}

.assistant-fab:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(250, 166, 49, 0.3), 0 8px 25px rgba(42, 17, 13, 0.25);
}

.assistant-fab i {
  font-size: 22px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.assistant-fab:hover i {
  transform: scale(1.1);
}

.assistant-fab__label {
  position: absolute;
  right: 70px;
  background: rgba(42, 17, 13, 0.95);
  color: white;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  opacity: 0;
  visibility: hidden;
  transform: translateX(10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.assistant-fab:hover .assistant-fab__label {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.assistant-chat {
  position: fixed;
  bottom: 94px;
  right: 24px;
  width: 380px;
  height: 580px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 24px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12),
              0 0 0 1px rgba(0, 0, 0, 0.05),
              0 0 80px rgba(42, 17, 13, 0.15);
  display: flex;
  flex-direction: column;
  z-index: 1000;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.assistant-chat--open {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.assistant-chat__header {
  padding: 22px 24px;
  background: linear-gradient(135deg, var(--primary-color), #4a1f1a);
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
  position: relative;
  z-index: 2;
}

.assistant-chat__body {
  flex: 1;
  padding: 24px;
  overflow-y: auto;
  scroll-behavior: smooth;
  background: linear-gradient(180deg, rgba(250, 251, 252, 0.8), rgba(248, 249, 250, 0.8));
  background-attachment: local;
}

.assistant-chat__body::-webkit-scrollbar {
  width: 8px;
}

.assistant-chat__body::-webkit-scrollbar-track {
  background: transparent;
}

.assistant-chat__body::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.1);
  border-radius: 4px;
}

.assistant-chat__body::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.15);
}

.assistant-chat__form {
  padding: 20px 24px;
  background: rgba(255, 255, 255, 0.9);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: relative;
  z-index: 2;
}

.assistant-chat__input {
  flex: 1;
  padding: 14px 20px;
  border: 2px solid rgba(42, 17, 13, 0.08);
  border-radius: 16px;
  font-size: 15px;
  line-height: 1.5;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: rgba(248, 249, 250, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #2c3e50;
}

.assistant-chat__send {
  background: linear-gradient(135deg, var(--primary-color), #4a1f1a);
  color: white;
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 22px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(42, 17, 13, 0.15);
}

.assistant-chat__message {
  margin-bottom: 24px;
  max-width: 85%;
  clear: both;
  animation: messageIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  transform-origin: bottom;
  font-size: 15px;
  line-height: 1.5;
}

.assistant-chat__message--assistant {
  float: left;
  background: rgba(255, 255, 255, 0.9);
  color: #2c3e50;
  padding: 14px 20px;
  border-radius: 20px 20px 20px 4px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.assistant-chat__message--assistant::before {
  content: '';
  position: absolute;
  bottom: -2px;
  left: -2px;
  width: calc(100% + 4px);
  height: calc(100% + 4px);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent);
  border-radius: 22px 22px 22px 6px;
  z-index: -1;
  opacity: 0.5;
}

.sidebar {
  overflow-y: hidden;
  display: flex;
  flex-direction: column;
  height: 100vh;
  background: var(--primary-color);
  color: white;
  padding: 15px 0;
  justify-content: space-between;
  align-items: center; /* only for large */
}

.sidebar nav {
  width: 100%;
  display: grid;
}

.sidebar .menu {
  opacity: 0;
  width: 24px;
  height: auto;
}

.sidebar .menu:hover {
  cursor: pointer;
}

.sidebar .logo {
  width: 128px;
  height: 128px;
  margin: 10px auto;
}

.sidebar .logo-placeholder {
  width: auto;
  height: 85px;
  margin-right: 10px;
}

.sidebar .nav-placeholder {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sidebar ul {
  display: flex;
  flex-direction: column;
  margin: 10px 0;
}

.sidebar li {
  height: 45px;
  padding: 10px;
  margin: 0 5px;
  text-align: center;
}

.sidebar a {
  width: 100%;
  color: white;
  text-align: center;
  padding-top: 5px;
}

.sidebar a:hover {
  background-color: #351a0d;
}

.sidebar a.active {
/*background-color: #502815;*/
}

.sidebar .flex {
  justify-content: flex-start;
  overflow: hidden;
}

.menu-user {
  display: flex;
  width: 100%;
}

.menu .content {
  background-color: var(--secondary-color);
}

.menu .summary {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 11;
  background: rgba(0, 0, 0, 0.25);
}

.menu .summary-dummy-bg {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 11;
  width: calc(60vw - 20px);
  
}

.menu .summary-container {
  position: fixed;
  width: 40vw;
  height: 100vh;
  top: 0;
  right: 0;
  z-index: 12;
  background: white;
  overflow-y: scroll;
  animation: slideInFromRight 0.2s ease-out;
}

.menu .summary-head.container {
  display: flex;
  height: 100px;
  border-bottom: 1px lightgray solid;
}

.menu .summary-head h2 {
  margin: auto 0;
}

.menu .summary-content {
  min-height: calc(100vh - 101px);
}

.menu .summary-content select {
  border: 0px;
  outline: 0px;
  -webkit-appearance: none;
  -moz-appearance: none;
}

.menu .summary-content.container {
  position: relative;
  padding-top: 2rem;
  padding-bottom: 80px;
}

.menu .summary-order.container {
  height: 50px;
  position: fixed;
  display: flex;
  bottom: 20px;
  right: 0;
  left: 60vw;
}

.menu .summary-list li {
  display: grid;
  grid-template-columns: 2fr 5fr 1fr;
  gap: 10px;
  margin: 10px 0;
  align-items: center;
}

.menu .summary-list li div {
  display: flex;
}

.menu .summary-list li div:last-child {
  justify-self: flex-end;
}

.menu .summary-amount {
  padding: 5px 10px;
  border: 1px gray solid;
  width: 50px;
  justify-content: center;
}

.menu .remove {
  padding: 5px 5px;
  margin-right: 5px;
  cursor: pointer;
  color: lightgray;
  margin-top: auto;
  margin-bottom: auto;
}

.menu .summary-subtotal-container,
.menu .summary-discount-container,
.menu .summary-total-container,
.menu .summary-promo-container {
  display: flex;
  justify-content: space-between;
}

.menu .summary-subtotal-container {
  border-top: 1px gray solid;
  padding-top: 20px;
}

.menu .summary-promo-container select {
  text-align: end;
}

.menu .summary-discount-container {
  padding-top: 5px;
}

.menu .summary-total-container {
  padding-top: 10px;
}

.menu .summary-total-container #summary-total {
  font-weight: bold;
}

.menu .btn {
  width: 100%;
  text-align: center;
  margin: auto;
}

.show-hide {
  position: fixed;
  display: flex;
  right: 0;
  top: 0;
  bottom: 0;
  width: 30px;
  z-index: 10;
}

.show-hide.left {
  left: 60vw;
  right: auto;
}

.show-hide img {
  width: 100%;
  height: auto;
  object-fit: contain;
  margin: auto 0;
  cursor: pointer;
}

/* Modal */
.modal {
  position: fixed;
  z-index: 99;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background-color: rgba(0, 0, 0, 0.4);
}

.modal img {
  margin: auto;
  height: auto;
  width: 100%;
}

.modal-content {
  position: relative;
  display: flex;
  margin: 2.5vh auto;
  padding: 20px;
  height: 95vh;
  width: 68.28vh;
  max-width: 100vw;
}

.modal .close {
  position: absolute;
  top: -5px;
  right: 10px;
  color: #f0f0f0;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.modal .close:hover,
.modal .close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

/* Home */
.home-head {
  position: relative;
  background: linear-gradient(rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.25)), url("../images/header-home.jpg");
  background-size: cover;
  width: 100%;
  height: 100vh;
}

.home-head .container {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgb(0, 0, 0, 0.1);
  color: white;
  overflow-y: hidden;
}

.home-head .container.flex,
.coworking-head .container.flex,
.about-head .container.flex {
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.home-head h1,
.home-about h1 {
  font-size: 2.2rem;
  margin-bottom: 40px;
}

.home-head p,
.home-about p {
  font-size: 1.2rem;
  width: 75%;
  margin-left: 0;
}

.home-about {
  background-color: var(--secondary-color);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.home-about .container {
  margin: auto;
}

/* Menu */
.menu .grid {
  grid-template-columns: 1fr 2fr;
  align-items: start;
}

[id^=product-list-] {
/*min-height: 200px;*/
}

.menu .product-list .grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  justify-content: start;
  align-items: start;
  height: 100%;
}

.menu .product-list {
  position: relative;
  min-height: calc(100vh - 40px);
  padding-top: 3rem;
}

.product.card {
  position: relative;
  padding: 0;
}

.product.card.adding-to-chart {
  animation: addingToChart 0.5s ease-out;
}

.product h3 {
  font-size: 1.1rem;
  margin: 0;
  padding: 0 10px;
  font-weight: 700;
}

.product i {
  position: absolute;
  right: 10px;
  bottom: 10px;
  color: var(--primary-color);
  font-size: 1rem;
  margin-bottom: 5px;
}

.product i:hover {
  cursor: pointer;
}

.product h4 {
  padding: 0 10px;
  font-weight: normal;
  margin-bottom: 5px;
  font-size: 1.0rem;
}

.menu .product-list-filter-container {
  position: absolute;
  height: 3rem;
  padding-top: 8px;
  padding-bottom: 8px;
  top: 0.5rem;
  left: 0;
  right: 0;
}

.product-list-filter-container .container {
  height: 100%;
  display: flex;
}

.menu .product-list-filter {
  width: calc(100% - 2.0rem);
  text-align: center;
  height: 2rem;
}

.menu .search-button {
  width: 2.0rem;
  text-align: center;
  background-color: var(--light-color);
  border: 1px solid var(--light-color);
}

.menu .search-button.active {
  color: red;
}

.menu select {
  height: 1.5rem;
  font-size: 1rem;
  color: gray;
  font-family: 'Montserrat';
}

/* Coworking */
.coworking-head,
.about-head {
  position: relative;
  background: linear-gradient(rgba(255, 255, 255, 0.80), rgba(255, 255, 255, 0.80)), url("../images/coworking-home.jpg");
  background-size: cover;
  width: 100%;
}

.coworking-head .container,
.about-head .container {
  color: #333;
  overflow-y: hidden;
}

.coworking-package {
  position: relative;
  padding: 50px 0 50px 0;
  background: var(--secondary-color);
}

.coworking-package .flex {
  flex-direction: column;
  justify-content: center;
  align-content: flex-start;
}

.coworking-head h1,
.about-head h1,
.coworking-package h1 {
  font-size: 2.5rem;
  margin-bottom: 40px;
  width: 100%;
  text-align: center;
  font-weight: 500;
}

.coworking-package h2 {
  font-size: 2.5rem;
  font-weight: 500;
  margin-bottom: 3rem;
}

.coworking-head p,
.coworking-package p {
  font-size: 1.2rem;
  width: 100%;
  margin-left: 0;
  text-align: center;
}

.about-head p {
  text-align: left;
}

.coworking-package h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  text-align: center;
  font-weight: 700;
}

.coworking-package .package-1.card {
  background-color: var(--secondary-color);
}

.coworking-package a {
  width: 100%;
  text-align: center;
}

/* About */
.about-head h1 {
  text-align: left;
}

.about-members {
  position: relative;
  padding: 50px 0 50px 0;
  background: var(--secondary-color);
}

/* Cashier */
.cashier {
  margin-top: 0px; /* HAA EDITED */
  background-color: var(--light-color);
  min-height: calc(100vh - 85px);
}

.cashier h3 {
  font-weight: bold;
  margin-top: 10px;
}
.cashier .container {
  display: flex;
  flex-direction: column;
  padding-top: 32px;
  padding-bottom: 32px;
  align-items: start;
} 

.cashier .grid {
  grid-template-columns: 1fr 2fr;
  align-items: start;
}

.cashier input,
.cashier option,
.cashier select,
.summary input,
.summary option,
.summary select {
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
}

.cashier .no-border {
  border: none;
}

.cashier .no-border:focus {
  outline: none;
  border: 0px;
}

.cashier #cashier-table {
  max-width: calc(100vw - 20px);
  overflow-x: auto;
}

.cashier-wrapper table {
  width: 100%;
}

.remove-item {
  cursor: pointer;
}

.full-width {
  width: 100%;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type=number] {
  -moz-appearance: textfield;
}

.cashier input[type="button"]:disabled {
  background: #dddddd;
  color: #eeeeee;
}

.align-left {
  text-align: left;
  align-content: flex-start;
}

.align-right {
  text-align: right;
  align-content: flex-end;
}

.align-center {
  text-align: center;
  align-content: center;
}

.main {
  display: grid;
  grid-template-columns: 1fr 4fr;
  height: calc(100vh - 40px);
}

.main table,
.main th,
.main td {
  border: 2px solid var(--light-color);
}

.main th,
.main td {
  background-color: white;
  padding: 5px 10px;
}

.main table select {
  border: 1px solid #fff;
  background-color: transparent;
}

.remove-item {
  color: #a0a0a0;
}

.progress-bar {
  display: flex;
  position: fixed;
  width: 100%;
  height: 100vh;
  top: 0;
  z-index: 15;
}

.progress-bar i {
  margin: auto;
}

/* Receipts */
.recipe-list {
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: 8px;
}

.sop {
  border: 1px solid gray;
  padding: 24px 0;
  margin-top: 24px;
}

.recipe-list > * {
  border-bottom: 1px solid gray;
  padding: 4px 0;
}

.recipe-list *:nth-child(odd) {
  text-align: right;
}

.recipe-list *:nth-child(even) {
  text-align: left;
}

/* Receipts */
.receipts {
  margin-top: 85px;
  background-color: var(--light-color);
  min-height: calc(100vh - 85px);
}

.receipt-list {
  margin: auto;
  max-width: 525px;
  display: grid;
  grid-template-columns: 5rem 1fr 1fr 1fr;
}

.receipt-list > * {
  padding: 5px 8px;
}

.receipt-list > *:nth-child(3n + 1) {
  background: #f5f5f5;
}

.receipt-list > *:nth-child(3n + 2) {
  background: #f0f0f0;
}

.receipt-list > *:nth-child(3n) {
  background: white;
}

/* Footer */
.footer,
.content-footer {
  width: 100%;
  height: 40px;
  background: #000;
  color: rgba(225, 225, 225, 0.5);
  font-size: 0.7rem;
}

.footer .container,
.content-footer .container {
  margin-right: 0;
}

/* Animations */
@keyframes slideInFromLeft {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(0); }
}

@keyframes slideInFromRight {
  0% { transform: translateX(100%); }
  100% { transform: translateX(0); }
}

@keyframes slideInFromTop {
  0% { transform: translateY(-100%); }
  100% { transform: translateX(0); }
}

@keyframes slideInFromBottom {
  0% { transform: translateY(100%); }
  100% { transform: translateX(0); }
}

@keyframes addingToChart {
  0% {
    transform: translateX(0)
    scale(1, 1);
  }
  100% {
    transform: translateX(100vw)
    scale(0, 0);
  }
}

/* Tablets and under */
@media(max-width: 768px) {
  .grid,
  .menu .grid,
  .menu .product .grid,
  .product .grid {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
  }

  .menu .product-list {
    padding-bottom: 10px;
  }

  .menu .product-list .grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr;
  }

  .menu .summary-container {
    width: 80vw;
  }

  .menu .summary-dummy-bg {
    width: calc(20vw - 20px);
  }

  .menu .summary-order.container {
    left: 20vw;
  }

  .modal-content {
    margin: 10vh auto;
    height: 80vh;
    width: 57.7vh;
  }
}

/* Mobile */
@media(max-width: 500px) {
  .main {
    display: grid;
    grid-template-columns: 1fr;
    height: 100vh;
  }

  .home .content .home-head,
  .home .content .home-head .container {
    padding-top: 100px;
  }

  .menu .content {
    padding-top: 100px;
  }

  .sidebar {
    position: absolute;
    top: 0;
    width: 100%;
    height: 100px;
    min-height: auto;
    flex-direction: row;
    justify-content: space-between;
    z-index: 10;
    padding: 0 10px;
  }

  .sidebar .logo {
    width: 80px;
    height: 80px;
    margin: auto 0;
  }

  .sidebar nav {
    margin: auto 0;
    display: flex;
  }

  .sidebar ul {
    flex-direction: row;
    flex-wrap: wrap;
    margin: auto 0;
  }

  .sidebar a {
    width: auto;
    font-size: 0.8rem;
  }

  .menu-user {
    width: auto;
  }

  .show-hide {
    top: 100px;
    width: 20px;
  }

  .show-hide.left {
    top: calc(100px - 54px);
    left: 20vw;
  }

  .home-head-container {
    top: 100px;
  }

  .home-head .container h1 {
    font-size: 2.0rem;
    margin-bottom: 2rem;
  }

  .home-head .container h2.see-more {
    width: 40vw;
  }

  .home-head .bg-large {
    display: none;
  }
  
  .home-head .bg-small {
    display: block;
  }

  .home-head-model {
    display: none;
  }

  .home-head {
    min-height: calc(100vh - 100px);
  }

  .home-about {
    background-color: var(--secondary-color);
    min-height: calc(100vh - 100px);
  }

  .home-head p,
  .home-about p {
    width: 100%;
  }

  .menu .product-list .grid{
    grid-template-columns: repeat(2, 1fr);
    gap: 5px 20px;
  }

  .about-head,
  .coworking-head {
    margin-top: 100px;
  }
}

/* Customer Search Results */
.customer-search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid #ddd;
  border-top: none;
  max-height: 200px;
  overflow-y: auto;
  z-index: 100;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  margin-top: -1px;
}

.customer-search-result-item {
  padding: 10px;
  cursor: pointer;
  border-bottom: 1px solid #eee;
}

.customer-search-result-item:hover {
  background-color: #f5f5f5;
}

.customer-search-result-item:last-child {
  border-bottom: none;
}

.customer-search-result-item .user-id {
  font-size: 0.8em;
  color: #666;
}

.customer-search-result-item .user-name {
  font-weight: bold;
}