@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap");

* {
  font-family: "Poppins", sans-serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #f5f5f5;
  min-height: 100vh;
}

.glass-effect {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.header-container {
  border-radius: 0 0 30px 30px;
}

/* Search Components */
.search-container {
  position: relative;
}

.search-input {
  width: 100%;
  padding: 12px 24px;
  border: 1px solid #e2e8f0;
  border-radius: 50px;
  font-size: 14px;
  transition: all 0.3s ease;
}

.search-input:focus {
  outline: none;
  border-color: #ff211a;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.searchable-dropdown {
  width: 20vw;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: white;
  border-radius: 15px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  display: none;
  z-index: 1000;
  max-height: 300px;
  overflow-y: auto;
  padding: 8px;
}

.search-container.active .searchable-dropdown {
  display: block;
  width: 18vw;
}

.search-item {
  padding: 12px 16px;
  cursor: pointer;
  border-radius: 8px;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.2s ease;
}

.search-item:hover {
  background: rgba(255, 33, 26, 0.1);
}

.search-item i {
  color: #ff211a;
  width: 24px;
  text-align: center;
}

/* Category Styles */
.category-scroll {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.category-scroll::-webkit-scrollbar {
  display: none;
}

#categoryContainer {
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  align-items: top;
  text-align: center;
}

.category-item {
  width: 4rem;
  transition: all 0.3s ease;
  padding: 8px;
  border-radius: 50px;
  cursor: pointer;
}

/* .category-item:hover { */
/*   transform: translateY(-5px); */
/*   background: rgba(255, 255, 255, 0.8); */
/*   box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05); */
/* } */

.category-icon {
  background: #ff211a;
  border-radius: 50%;
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  margin-bottom: 8px;
  transition: all 0.3s ease;
}

.category-item:hover .category-icon {
  transform: scale(1.1);
}

/* Button Styles */
.search-button {
  background: #ff211a;
  color: white;
  border-radius: 50px;
  transition: all 0.3s ease;
  border: none;
  padding: 12px 32px;
  font-weight: 500;
}

.search-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 33, 26, 0.3);
}

.btn-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  cursor: pointer;
  background: transparent;
  border: none;
}

.btn-icon:hover {
  background: rgba(255, 33, 26, 0.1);
}

/* Date Picker */
.date-picker-container {
  position: relative;
}

.custom-calendar {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: white;
  border-radius: 15px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  display: none;
  z-index: 1000;
  padding: 16px;
  width: 300px;
}

.date-picker-container.active .custom-calendar {
  display: block;
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.calendar-month {
  font-weight: 600;
  color: #333;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}

.calendar-weekday {
  text-align: center;
  font-size: 0.8rem;
  font-weight: 600;
  color: #666;
  padding: 4px;
}

.calendar-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 50%;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.calendar-day:hover:not(.disabled) {
  background: rgba(255, 33, 26, 0.1);
}

.calendar-day.active {
  background: #ff211a;
  color: white;
}

.calendar-day.disabled {
  color: #ccc;
  cursor: not-allowed;
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  bottom: 0;
  width: 100%;
  max-width: 380px;
  background: white;
  z-index: 2000;
  transition: right 0.3s ease;
  border-radius: 30px 0 0 30px;
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
}

.mobile-menu.active {
  right: 0;
}

.mobile-search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1900;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
}

.mobile-search-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Desktop specific styles */
@media (min-width: 1025px) {
  .mobile-search-overlay {
    display: none;
  }

  .searchable-dropdown,
  .custom-calendar {
    position: absolute;
    transform: none !important;
  }

  .searchable-dropdown {
    width: 70vw;
  }
}

/* Mobile specific styles */
@media (max-width: 1024px) {
  .searchable-dropdown {
    /* position: fixed; */
    left: 0;
    right: 0;
    top: auto;
    margin: 16px;
    border-radius: 15px;
    max-height: 60vh;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    width: 70vw;
  }

  .search-container.active .searchable-dropdown {
    transform: translateY(0);
    width: 70vw;
  }

  .custom-calendar {
    left: 0;
    right: 0;
    top: auto;
    margin: 0;
    width: 100%;
    border-radius: 15px 15px 0 0;
    transform: translateY(100%);
    transition: transform 0.3s ease;
  }

  .date-picker-container.active .custom-calendar {
    transform: translateY(0);
  }

  .search-button {
    width: 100%;
  }
}

.menu-link {
  display: flex;
  align-items: center;
  padding: 12px 20px;
  border-radius: 50px;
  transition: all 0.2s ease;
  text-decoration: none;
  color: #333;
}

/* .menu-link:hover { */
/*   background: rgba(255, 33, 26, 0.1); */
/* } */

.menu-link i {
  color: #ff211a;
  width: 24px;
  margin-right: 12px;
}

.testLink {
  display: flex;
  flex-direction: column;
  justify-items: center;
  align-items: center;
}

body::-webkit-scrollbar {
  height: 0.1rem;
  width: 0.3rem;
  background-color: transparent;
}

body::-webkit-scrollbar-thumb {
  height: 0.5rem;
  width: 1px;
  background-color: red;
}

/* Adding some wild stuff to fix issues with iphone and safari
 * for consistent UI */

.category-item:hover .category-icon {
  -webkit-transform: scale(1.1);
  /* Safari */
  transform: scale(1.1);
}

#categoryContainer {
  display: -webkit-flex;
  /* Safari 7-8 */
  display: flex;
}

body::-webkit-scrollbar {
  height: 0.1rem;
  width: 0.3rem;
}

body::-webkit-scrollbar-thumb {
  background-color: red;
}

body::-webkit-scrollbar-track {
  background-color: transparent;
}
