:root {
  --primary-100: #FFF6F6;
  --primary-200: #FFECEC;
  --primary-300: #FEDEDE;
  --primary-400: #FEC7C7;
  --primary-500: #FDA2A2;
  --primary-600: #CA8282;
  --primary-700: #986161;
  --primary-800: #654141;
  --primary-900: #332020;

  --primary-color: #ff9494;
  /* --primary-color: rgb(248, 174, 174); */
  /* Top Nav Pink */
  --secondary-color: #565656;
  /* Sidebar Dark Gray */
  --accent-color: #f48fb1;
  /* Soft Pink */
  --bg-color: #fffafb;
  /* Very light pink tint */
  --text-main: #3e2723;
  /* Dark Brown for text */
  --text-muted: #8d6e63;
  /* Muted Brown */
  --card-shadow: 0 4px 6px rgba(93, 64, 55, 0.05), 0 1px 3px rgba(93, 64, 55, 0.1);
  --card-hover-shadow: 0 10px 15px rgba(93, 64, 55, 0.1), 0 4px 6px rgba(93, 64, 55, 0.05);
  --border-radius: 12px;

  --pink: #FDA2A2;
  --pink-light: #fff3f3;
  --pink-mid: #f8c8c8;
  --pink-dark: #d96060;
  --pink-deep: #b84444;
  --pink-shadow: rgba(220, 100, 100, 0.18);
  /* --pink-glossy:   linear-gradient(160deg, #ffd8d8 0%, #FDA2A2 55%, #ee8080 100%); */
  --divider: #f5d5d5;
  --text-main: #3a2a2a;
  /* --text-muted: #a08080; */
  --white: #ffffff;
  --bg-content: #fffafa;
}


@font-face {
  font-family: "THSarabunNew";

  font-family: 'Material Icons Outlined';
  font-style: normal;
  font-weight: 400;
  /* src: url(../iconfont/MaterialIconsOutlined-Regular.otf); For IE6-8 */
  src: local('Material Icons Outlined'),
    local('MaterialIconsOutlined-Regular'),
    /* url(../iconfont/MaterialIconsOutlined-Regular.otf) format('opentype'), */
    url(../iconfont/MaterialSymbolsOutlined[FILL,GRAD,opsz,wght].woff2) format('woff2'),
    url(../iconfont/MaterialSymbolsOutlined[FILL,GRAD,opsz,wght].ttf) format('truetype');
}

.material-symbols-outlined {
  font-family: 'Material Icons Outlined';
  font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  /* Preferred icon size */
  display: inline-block;
  line-height: 1;
  text-transform: none;
  letter-spacing: normal;
  word-wrap: normal;
  white-space: nowrap;
  direction: ltr;

  /* Support for all WebKit browsers. */
  -webkit-font-smoothing: antialiased;
  /* Support for Safari and Chrome. */
  text-rendering: optimizeLegibility;

  /* Support for Firefox. */
  -moz-osx-font-smoothing: grayscale;

  /* Support for IE. */
  font-feature-settings: 'liga';

}

body {
  /* font-family: Sarabun-Regular; */
  font-family: 'Inter', 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
  /* background-color: var(--primary-100); */
}

.base-bg-color {
  /* background-color: #FDA2A2; */
  background-color: var(--primary-color);
  /* backdrop-filter: blur(10px); */
  /* -webkit-backdrop-filter: blur(10px); */
  /* border: 1px solid rgba(255, 255, 255, 0.18); */
  /* box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.2); */
  /* box-shadow: 0 8px 16px 0 rgba(114, 118, 172, 0.37); */
  /* border-radius: 10px; */
}

.base-color {
  color: var(--primary-color);
}

#sidebar span {
  font-size: 3rem;
}

div.row.top {
  height: 80px;
  padding-top: 16px;
}

.btn-float {
  height: 120;
  margin: 24px;
  border-radius: 8px;
  line-height: 120px;
  text-align: center;
}

#head {
  margin-left: 80px;
  height: 48px;
}

.main {
  background-color: rgb(244, 244, 244);
  min-height: 100%;
  width: 100%;
}

.wrapper {
  width: 100%;
  height: 100vh;
}

#sidebar {
  color: var(--primary-color);
  background-color: var(--secondary-color);
}

@media only screen and (max-width: 768px) {
  #sidebar {
    position: fixed;
    bottom: 0px;
    min-width: 100vw;
    max-width: 100vw;
    min-height: 80px;
    padding: 0px;
    display: flex;
    justify-content: center;
    /* align-items: center; */
    /* z-index: 1000; */
  }

  #sidebar div {
    /* width: 100%; */
    overflow-x: auto;
  }

  .navbar-expand .navbar-nav {
    flex-direction: row;
  }

  #content {
    padding-left: 0px;
    padding-right: 0px;    
    margin-top: 56px;      
    padding-bottom: 96px;
  }

  #head {
    margin-left: 0px;
  }
}


@media only screen and (min-width: 769px) {

  #sidebar {
    /* min-width: 80px;
        max-width: 80px; */
    min-height: 100vh;
    padding: 0;
  }

  #head {
    margin-left: 0px;
  }

  .navbar-expand .navbar-nav {
    flex-direction: column;
  }

  /* #sidebar.navbar {
        padding-left: 4px;
    } */
  #content {
    padding-top: 56px;
    padding-left: 5vw;
    padding-right: 3vw;
    width: 100%;
  }

  #order_col {
    height: 95vh;
  }

  #order_overflow {
    height: 85vh;
  }

  #summary_col {
    height: 60vh;
  }
}

#main {
  padding: 16px;
  background-color: white;
}

.color-primary {
  color: #444444;
  background-color: #FDA2A2;
}

.color-outline-primary {
  color: #c07474;
  border: 1px solid #FDA2A2;
}

.color-secondary {
  background-color: #D7BDBD;
}

#loading {
  /* display: block; */
  position: fixed;
  top: 0;
  /* left: 0; */
  z-index: 100;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  background-repeat: no-repeat;
  background-position: center;
}

.loader {
  border: 16px solid #f3f3f3;
  border-radius: 50%;
  border-top: 16px solid #3498db;
  width: 120px;
  height: 120px;
  -webkit-animation: spin 2s linear infinite;
  /* Safari */
  animation: spin 2s linear infinite;
}

/* Safari */
@-webkit-keyframes spin {
  0% {
    -webkit-transform: rotate(0deg);
  }

  100% {
    -webkit-transform: rotate(360deg);
  }
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.text-overflow {
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}


dialog {
  opacity: 0;
  scale: 0;
  transition: all 0.5s;
  z-index: 1000;
  background: white;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  max-width: 100%;
  text-align: center;
  overflow: auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: none;
}

#customDialog {
  width: 500px;
  height: 400px;
}

dialog[open] {
  opacity: 1;
  scale: 1;
}

dialog::backdrop {
  background: rgba(0, 0, 0, 0.5);
}

/* .dialog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #ccc;
} */

.dialog-body {
  /* padding: 20px; */
  /* text-align: left; */
  overflow: auto;
  height: 100%;
  white-space: pre-wrap;
  /* flex-basis: auto; */
}

.dialog-body p {
  margin: 0;
  padding: 4px;
  text-align: center;
  font-style: bold;
  /* font-size: large; */

  font-size: 30px;
  font-size: 1.5vw;
  min-height: 200px;
  display: grid;
  place-items: center;
}

.dialog-body p.alert {
  color: red;
}

#version-body.dialog-body {
  padding: 20px;
  text-align: left;
  max-width: 400px;
  height: 100%;
  /* flex-basis: auto; */
}

#version-body.dialog-body ul {
  list-style-type: disc;
  text-align: left;
  padding: 0px 20px 0px 20px;
}

#versionDialog .dialog-footer {
  display: grid;
  grid-template-columns: 1fr;
  justify-content: flex-end;
  padding: 10px 0px 0px 0px;
  gap: 10px;
}

#versionDialog .dialog-footer button {
  background: #007bff;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  outline: none;
  width: 100%;
}

.dialog-header {
  display: flex;
  justify-content: space-between;
  /* align-items: center; */
  padding: 0px 0px 10px 0px;
  /* border-bottom: 1px solid #ccc; */
}

.dialog-header h4 {
  margin: 0;
  padding: 0;
  text-align: center;
  color: #007bff;
  font-style: bold;
  font-size: 1.5rem;
}

.dialog-footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  justify-content: flex-end;
  padding: 10px 0px 0px 0px;
  /* border-top: 1px solid #ccc; */
  gap: 10px;
}

dialog .ok-button {
  background: #007bff;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  outline: none;
}

dialog .cancel-button {
  background: hsl(0, 100%, 68%);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
}

.dialog-footer button:hover {
  filter: brightness(0.9);
}

.cursor-pointer {
  cursor: pointer;
}

.seat-fs {
  font-size: 4rem;
}

.modal-content {
  border-radius: 12px;
  border: none;
}

.modal-header-custom {
  background-color: #fafafa;
  border-bottom: 1px solid #e0e0e0;
  padding: 16px 20px;
  border-radius: 12px 12px 0 0;
}

.modal-title-custom {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.modal-search {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #f0f0f0;
}

.modal-search label {
  font-size: 14px;
  color: #616161;
  margin: 0;
}

.modal-search input {
  flex: 1;
  max-width: 250px;
  padding: 10px 14px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-size: 14px;
}

.modal-search input:focus {
  outline: none;
  border-color: #1976d2;
}

.modal-table {
  width: 100%;
}

.modal-table thead th {
  background-color: #fafafa;
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 600;
  color: #616161;
  border-bottom: 1px solid #e0e0e0;
}

.modal-table tbody tr {
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.modal-table tbody tr:hover {
  background-color: #f5f5f5;
}

.modal-table tbody td {
  padding: 14px 16px;
  font-size: 14px;
  color: #333;
  border-bottom: 1px solid #f0f0f0;
}

.seat-btn {
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  border-radius: 8px;
  /* border: 1px solid #e0e0e0; */
  margin: 8px;
  /* width: fit-content; */
}

.seat-btn:hover {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
  background-color: white;
}

.seat-btn:hover .material-symbols-outlined {
  transform: scale(1.15);
  transition: transform 0.15s ease;
}
