@import url("https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");
@import url("/assets/css/calligraphy.css");

:root {
  --font-primary: "Montserrat", sans-serif;

  /* Primary Colors */
  --color-light: #fbfbfb;
  /* --color-accent: purple = #4e67bc; old = #1a8c9e*/
  --color-accent: #1a7f93;
  --color-danger: #c84144;
  --color-dark: #1e1e1e;
  --color-white: #ffffff;
  --color-input-tint: #677383;

  /* Opacity */
  --color-opacity-primary: rgba(30, 30, 30, 0.18);
  --color-opacity-secondary: rgba(30, 30, 30, 0.7);

  /* Extended Color Palette */
  --color-primary-blue: #007bff;
  --color-primary-blue-dark: #0056b3;
  --color-success-green: #28a745;
  --color-warning: #ffd900;
  --color-info-cyan: #17a2b8;
  --color-secondary-gray: #6c757d;
  --color-light-gray: #f8f9fa;
  --color-medium-gray: #e9ecef;
  --color-dark-gray: #383838;
  --color-black: #000000;

  /* Background Colors */
  --color-bg-primary: #ffffff;
  --color-bg-secondary: #f8f9fa;
  --color-bg-dark: #2c3e50;
  --color-bg-overlay: rgba(0, 0, 0, 0.8);
  --color-bg-overlay-light: rgba(0, 0, 0, 0.4);

  /* Text Colors */
  --color-text-primary: #2c3e50;
  --color-text-secondary: #6c757d;
  --color-text-light: #ffffff;
  --color-text-muted: rgba(255, 255, 255, 0.9);

  /* Border & Shadow */
  --color-border-light: #e9ecef;
  --color-border-dark: rgba(32, 32, 32, 0.245);
  --color-shadow: rgba(0, 0, 0, 0.1);
  --color-shadow-medium: rgba(0, 0, 0, 0.15);

  --radius-primary: 8px;

  /* v3 Colors */
  --color-light-3: #f3f3f3;
  --color-gray-superlight: #f3f3f3;
  --color-blue-light: #e6edef;
  --color-opacity-medium: rgba(30, 30, 30, 0.3);
  --color-gray-light: #dfdfdf;
  --color-gray-mediumlight: #ebebeb;
  --color-gray-dark: #727272;
  --color-opacity-dark: rgba(30, 30, 30, 0.7);
  --color-success: #39ae29;
  --color-accent-loading: rgba(64, 168, 191, 0.4);

  /* Hover colors */
  --color-accent-hover: #297382;
  --color-dark-hover: rgba(56, 56, 56, 0.8);
  --color-danger-hover: rgba(228, 83, 86, 0.8);
  --color-warning-hover: rgba(224, 202, 73, 0.5);
  --color-success-hover: rgba(57, 174, 41, 0.8);
  --color-blue-light-hover: rgba(230, 237, 239, 0.8);
  --color-gray-superlight-hover: rgba(243, 243, 243, 0.7);
  --color-gray-light-hover: rgba(223, 223, 223, 0.8);
  --color-white-hover: rgba(255, 255, 255, 0.9);
  --color-light-button-hover: rgba(235, 243, 243, 0.4);

  /* Inputs */
  --input-tint-gray: #9ca3af;
  --input-gray: #f3f4f6;
  --input-border-gray: #dfdfdf;
}

body {
  font-family: var(--font-primary) !important;
  background-color: var(--color-gray-superlight) !important;
}

/* scroll - start */
html,
body {
  margin: 0px;
  padding: 0px;
  overscroll-behavior: none; /* Prevent the whole page from bouncing */
  background-color: var(--color-light) !important;
}

main {
  flex-grow: 1;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch; /* Smooth momentum scrolling for iOS */
  display: flex;
  flex-direction: column;
  background-color: var(--color-light);
  padding-bottom: 30px;
}

/* main for customer details page */
.details-page-container {
  display: block;
}
/* scroll - end */

fieldset {
  min-width: 0;
  padding: 0;
  margin: 0;
  border: 0;
}

p,
button,
h1,
h2,
h3,
h4,
h5,
h6,
fluent-button,
fluent-label {
  font-family: var(--font-primary) !important;
  margin: 0px;
  font-weight: 300;
}
* {
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE 10+ */
}

h1,
h2,
h3,
h4,
h5,
h6,
span,
p {
  color: var(--color-dark);
  font-weight: 400;
}

ul,
ol {
  padding: 0px;
  margin: 0px;
  list-style: none;
}

a {
  text-decoration: none;
  color: var(--color-accent);
}

a:hover {
  color: var(--color-accent-hover);
}

button {
  color: unset;
  cursor: pointer;
  border: none;
  background: none;
  padding: 0px;
}

.font-ultra-light {
  font-weight: 100 !important;
}
.font-light {
  font-weight: 300 !important;
}
.font-regular {
  font-weight: 400 !important;
}
.font-medium {
  font-weight: 500 !important;
}
.font-semibold {
  font-weight: 600 !important;
}
.font-bold {
  font-weight: 700 !important;
}
.font-extrabold {
  font-weight: 800 !important;
}

/* Paddings and margins */
.padding-0 {
  padding: 0px !important;
}
.m-0 {
  margin: 0px !important;
}

/* Flex */
.h-flex-start {
  justify-content: flex-start !important;
  display: flex;
}

.align-center {
  align-items: center !important;
}

.gap-10 {
  gap: 10px !important;
}

.gap-12 {
  gap: 12px !important;
}

.gap-14 {
  gap: 14px !important;
}

.gap-16 {
  gap: 16px !important;
}

.gap-18 {
  gap: 18px !important;
}

.gap-20 {
  gap: 20px !important;
}

/* Fluent UI */

fluent-button[appearance="stealth"]::part(control) {
  background-color: transparent !important;
  border: none;
  border-radius: 0px;
}

fluent-search::part(root) {
  background: var(--color-white);
  border-radius: 8px;
}

fluent-search::part(control) {
  font-family: var(--font-primary) !important;
  font-weight: 200 !important;
  font-size: 16px !important;
}

fluent-search:focus-within::after {
  content: "";
  position: absolute;
  height: calc(var(--focus-stroke-width, 2) * 1px);
  bottom: 0px;
  border: none;
}

fluent-progress-ring {
  --accent-fill-rest: var(--color-accent) !important;
  --accent-fill-hover: var(--color-accent) !important;
  --accent-fill-active: var(--color-accent) !important;
}

.card-list-container {
  padding-bottom: 20px;
  li {
    width: 100%;
  }
}

.sort-button {
  background: var(--color-white);
}

.sort-button svg {
  fill: var(--color-dark) !important;
}

.sort-button:hover svg {
  fill: var(--color-accent) !important;
}

.like-button {
  min-width: 24px !important;
  height: auto;
}

.like-button::part(control) {
  padding: 0px !important;
}

/* TabBar Button Styles */

.tab-button {
  transition: all 0.3s ease;
  border-radius: 0px;
  padding: 0px 20px;
}

.tab-button svg {
  fill: var(--color-white) !important;
}

.tab-button:hover {
  cursor: pointer;
  transform: translateY(-2px);
}

.tab-active {
  background-color: transparent;
  color: white !important;
}

.tab-active:hover {
  background-color: transparent;
}

.tab-inactive {
  color: white !important;
}

.tab-icon {
  font-size: 18px;
  margin-bottom: 4px;
}

.tab-label {
  font-size: 12px;
  font-weight: 500;
}

.tab-active .tab-icon,
.tab-active .tab-label {
  color: white;
}

/* Booking Card Styles */
.card-icon {
  width: 20px;
  height: 20px;
  display: inline-block;
  vertical-align: middle;
}

.event-card-info {
  display: flex;
  justify-content: flex-start;
  flex-direction: column;
  gap: 0px;
}

.w-fit {
  width: fit-content;
}

.auto-w {
  width: auto !important;
}

.w-100 {
  width: 100% !important;
}

.h-100 {
  height: 100% !important;
}

.star-icon svg {
  fill: var(--color-warning) !important;
}

.booking-card-type {
  font-size: 14px !important;
  font-weight: 400 !important;
  color: rgba(255, 255, 255, 0.9) !important;
}

.sorting-container {
  position: absolute;
  right: 0px;
  top: 44px;
  display: flex;
  align-items: top;
  justify-content: space-between;
  padding: 12px 8px;
  height: auto;
  width: 100px;
  border-radius: var(--radius-primary);
  background-color: var(--color-white);
  border: 1px solid var(--color-border-dark);
}

.sort-item-button {
  font-size: 10px;
  padding: 0px;
  height: 12px !important;
  min-height: 12px !important;
  max-height: 12px !important;
}

.sort-item-button::part(control) {
  height: 12px !important;
  min-height: 12px !important;
  padding: 0px !important;
}

.sort-item-button::part(control):hover {
  background-color: var(--color-medium-gray) !important;
}

.sort-item-button::part(start) {
  margin-inline-end: 3px;
  margin-inline-start: 0px;
}

/* App Layout Styles */
.app-layout {
  display: flex;
  flex-direction: column;
}

.content-area {
  padding: 24px 16px 0px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.view-content {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  width: 100%;
}

/* Search Bar - Fixed at top of content */
.search-bar-container {
  position: sticky;
  top: 0;
  background-color: var(--color-light);
  z-index: 50;
  border-bottom: 1px solid #e9ecef;
}

/* Content that scrolls under search bar */
.scrollable-content {
  /* flex: 1;
  overflow-y: auto;
  overflow-x: hidden; */
}

/* Navigation Bar Styles */

.navbar-title {
  font-size: 28px !important;
  font-weight: 500;
  color: var(--color-dark);
}

.favorite-icon-button {
  fill: var(--color-danger) !important;
}

.container {
  padding: 0px 20px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Menu Styles */
.menu-container {
  padding: 0px 20px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.menu-title {
  font-size: 24px;
  font-weight: 500;
  color: var(--color-dark);
}

.menu-item {
  padding: 12px 16px;
  border-bottom: 1px solid var(--color-border-light);
}

.menu-item:last-child {
  border-bottom: none;
}

/* Restaurant details */

/* Image Gallery */
.gallery-container {
  position: relative;
  width: 100%;
  height: 226px;
  border-radius: var(--radius-primary);
  overflow: hidden;
  background-color: var(--color-medium-gray);
}

.gallery-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 1;
}

.gallery-nav-button {
  position: absolute;
  width: 27px;
  height: 100%;
  margin: 0px;
  border: 0px;
  background-color: rgba(30, 30, 30, 0.5);
  top: 0px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.restaurant-info-container {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 20px 0px;
}

.icon-title-container {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: start;
  gap: 12px;
}

.icon-20 {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
}

.left {
  left: 0px;
}

.right {
  right: 0px;
}

.share-container {
  position: sticky;
  height: 100px;
  background-color: var(--color-white);
  border-radius: var(--radius-primary);
  width: 100%;
  left: 0px;
  right: 0px;
  bottom: 0px;
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  flex-direction: row;
  padding: 20px;
  gap: 12px;
}

.share-icon {
  width: 40px;
  height: 40px;
  background-color: var(--color-accent);
  border-radius: 50%;
  padding: 4px;
  display: flex;
}

.close-icon {
  height: 40px;
  border-radius: 50%;
  display: flex;
  width: 100%;
  justify-content: flex-end;
}

/* Global */
.layout {
  display: flex !important;
  justify-content: flex-start;
  flex-direction: column;
  padding: 20px;
  gap: 20px;
}
