@import url('https://fonts.googleapis.com/css2?family=Calistoga&family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500;1,600;1,700&family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Poppins: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');

/* Light Mode Scrollbar */
body {
  background-color: #ffffff !important;
  /* Soft white gray */
  color: #2B2D42;
  /* Deep charcoal gray */
}

body::-webkit-scrollbar {
  width: 10px;
  /* Width of the scrollbar */
}

body::-webkit-scrollbar-track {
  background: #e4e4e4;
  /* Light background for the track */
}

body::-webkit-scrollbar-thumb {
  background-color: #e4e4e4;
  /* Deep charcoal gray for the thumb */
  border-radius: 10px;
  /* Rounded edges */
  border: 3px solid #b1a3a3;
  /* Border around the thumb */
}

/* Dark Mode Scrollbar */
body.dark-mode {
  background-color: #161A1D;
  /* Deep charcoal black */
  color: #E8E8E8;
  /* Soft white */
}

body.dark-mode::-webkit-scrollbar {
  width: 10px;
  /* Width of the scrollbar */
}

body.dark-mode::-webkit-scrollbar-track {
  background: #161A1D;
  /* Dark background for the track */
}

body.dark-mode::-webkit-scrollbar-thumb {
  background-color: #161A1D;
  /* Soft white for the thumb */
  border-radius: 10px;
  /* Rounded edges */
  border: 3px solid #2B2D42;
  /* Border around the thumb */
}

html:not(.loaded) {
  visibility: hidden;
  opacity: 0;
}

html.loaded {
  visibility: visible;
  opacity: 1;
  transition: none;
}

/* Open Sans Font Settings */
/* .open-sans-navbar {
  font-family: "Open Sans", sans-serif;
  font-optical-sizing: auto;
  font-weight: 500;
  font-style: normal;
  font-variation-settings: 100;
} */

.inter-navbar {
  font-family: "Inter", serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
}

.open-sans-catalog {
  font-family: "Open Sans", sans-serif;
  font-optical-sizing: auto;
  font-weight: 500;
  font-style: normal;
  font-variation-settings: 100;
}

/* Navbar */
.dark-mode .navbar {
  background-color: #2D2A32;
  /* Elegant dark gray */
  padding-top: 1rem !important;
  border-bottom: 1.5px solid rgba(255, 255, 255, 0.1);
  /* Subtle border for separation */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  /* Slightly stronger shadow for depth */
  transition: background-color 0.3s ease, color 0.3s ease;
}

.navbar .navbar-brand {
  color: #E4E4E4;
  /* Navbar brand color */
  font-size: 1.15rem;
  /* Larger brand font for prominence */
  font-weight: bold;
  letter-spacing: 1px;
  /* Slight spacing for elegance */
  transition: color 0.3s ease;
}

.navbar .navbar-brand:hover {
  color: #F5DEB3;
  /* Soft warm color on hover (Wheat) */
}

/*.navbar .navbar-brand img {
  border-radius: 6px;
  border: 1px solid black;
}*/

.navbar .nav-link {
  color: #B0B0B0;
  /* Light gray for links */
  margin-right: 5px;
  transition: color 0.3s ease, transform 0.3s ease;
}

.navbar .nav-link:hover {
  color: #ffffff;
  /* Soft hover color */
  text-decoration: underline;
  transition: ease-in-out 0.5s;
}

/* Show dropdown menu on hover */
.navbar-nav .nav-item.dropdown:hover .dropdown-menu {
  display: block;
  visibility: visible;
  /* Ensure the menu is visible */
  opacity: 1;
  /* Ensure the menu is fully opaque */
  transform: translateY(0);
  /* Bring dropdown into place smoothly */
}

.dropdown-menu {
  display: none;
  /* Hide the dropdown menu by default */
  position: absolute;
  /* background-color: var(--dropdown-bg); */
  min-width: 140px;
  /* box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.2); */
  z-index: 1;
  top: 75% !important;
  right: 10%;
  border-color: none !important;
  background-color: #38343A;
  /* Darker background for dropdown */
  border: none;
  /* Remove default border */
  border-radius: 8px;
  /* Rounded corners for a modern look */
  padding: 0.5rem 0;
  /* Spacing around the dropdown */
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
  transition: opacity 0.3s ease, transform 0.3s ease;
  transform: translateY(10px);
  /* Subtle slide-down effect */
}

.dropdown-menu a {
  color: #ffffff;
  padding: 10px 20px;
  text-decoration: none;
  display: block;
  font-size: 0.95rem;
  /* Slightly smaller font */
  transition: background-color 0.3s ease, color 0.3s ease;
}

body.dark-mode .navbar .dropdown-menu a:hover {
  color: white !important;
  background-color: #444 !important;
  border-radius: 4px;
  /* Subtle rounding for hover effect */
  transition: background-color 0.1s, color 0.1s;
}

/* Light Mode */
body.light-mode .navbar {
  background-color: #ffffff;
  color: #000;
  padding-top: 1rem !important;
  border-bottom: 1.5px solid rgba(255, 255, 255, 0.603);
  /* Subtle border for separation */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
  /* Adds a subtle shadow for depth */
}

body.light-mode .dropdown-menu {
  background-color: #ffffff;
}

body.light-mode .dropdown-menu a {
  background-color: #ffffff;
  color: #495057;
}

body.light-mode .dropdown-menu a:hover {
  background-color: #cccccc !important;
  color: #000000 !important;
}


body.light-mode .navbar .navbar-brand {
  color: #222831;
  /* Navbar brand color in light mode */
}

body.light-mode .navbar .nav-link {
  color: #6a6a6a;
  /* Navbar link color in light mode */
}

body.light-mode .navbar .nav-link:hover {
  color: #222831;
  /* Navbar link color on hover in light mode */
}

/* Dark Mode */
body.dark-mode {
  background-color: #1e1e1e !important;
  color: #fff;
}

body.dark-mode .dropdown-menu {
  --dropdown-bg: #222831;
}

body.dark-mode .navbar .navbar-brand {
  color: #eeeeee;
  /* Navbar brand color in dark mode */
}

body.dark-mode .navbar .nav-link {
  color: #bcbcbc;
  /* Navbar link color in dark mode */
}

body.dark-mode .navbar .nav-link:hover {
  color: #ffffff;
  /* Navbar link color on hover in dark mode */
}

body.dark-mode .dropdown-menu a {
  color: #eeeeee;
  /* Dropdown link color in dark mode */
}

body.dark-mode .dropdown-menu a:hover {
  background-color: #7f5539 !important;
  /* Warm brown */
  color: #ffffff;
}

body.dark-mode .dropdown-item {
  color: white;
  /* Dropdown item color in dark mode */
}

:root {
  --border-color: black;
}

.dark-mode {
  --border-color: white;
}

.bold-line {
  border-bottom: 2px solid var(--border-color);
}

/* Theme Toggle */
.nav-item-mode .dropdown-mode {
  position: relative;
  display: inline-block;
}

/* Buttons Styling */
.btn-success_login {
  background-color: none !important;
  color: #6a6a6a;
  /* border: none; */
  /* border-radius: 20px; Rounded corners */
  /* padding: 8px 20px; */
  text-decoration: none;
  font-size: 1rem;
  transition: all 0.3s ease-in-out;
  /* box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15); Subtle shadow */
}

.btn-success_login:hover {
  /* background-color: #218838; Darker green on hover */
  text-decoration: underline !important;
  color: #fff;
  /* box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2); Enhanced shadow on hover */
  transform: scale(1.05);
  /* Slight scale-up effect */
}

.btn-primary_register {
  background-color: none !important;
  color: #cecece;
  /* border: none;
  border-radius: 20px; Rounded corners
  padding: 8px 20px; */
  text-decoration: none;
  font-size: 1rem;
  transition: all 0.3s ease-in-out;
  /* box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15); Subtle shadow */
}

.btn-primary_register:hover {
  /* background-color: #0056b3; Darker blue on hover */
  text-decoration: underline !important;
  color: #fff;
  /* box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2); Enhanced shadow on hover */
  transform: scale(1.05);
  /* Slight scale-up effect */
}

.dropdown-menu-mode {
  display: none;
  position: absolute;
  /* padding: 0.4rem 0; */
  /* background-color: var(--dropdown-bg); */
  background-color: #2d2f36;
  /* Darker background for dropdown */
  border-radius: 6px;
  min-width: 68px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 1;
  top: 50px !important;
  right: 1%;
  border: none;
  /* Remove default border */
  border-radius: 6px;
  /* Rounded corners for a modern look */
  padding: 0.5rem 0;
  /* Spacing around the dropdown */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  /* Elegant shadow */
  transition: opacity 0.3s ease, transform 0.3s ease;
  transform: translateY(10px);
  /* Subtle slide-down effect */
  pointer-events: none;
  /* Prevent interaction until visible */
}

.dropdown-menu-mode.show {
  display: block;
}

.nav-item-mode:hover .dropdown-menu-mode {
  pointer-events: auto;
  /* Enable interaction on hover */
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.dropdown-item {
  color: black;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  cursor: pointer;
}

body.dark-mode .dropdown-item {
  color: white;
  /* Dropdown item color in dark mode */
}

.dropdown-item:hover {
  color: #f1f1f1 !important;
  background: #212529;
}

.dropdown-item:active {
  background: #212529 !important;
}

.dropdown:hover .dropdown-menu {
  display: block;
  margin-top: 0;
  /* Optional: Adjust for styling */
}

/* notification sidebar */

.notification-item {
  background-color: #f5ebdd !important;
  padding: 10px;
  border-bottom: 1px solid #ddd;
  cursor: pointer;
}

.notification-item:hover {
  background-color: #f4debf !important;
}

body.light-mode .notification-item {
  border-bottom-color: #9a9a9a;
}

body.light-mode .notification-item:hover {
  background-color: #f1f1f1;
}

body.dark-mode .notification-item {
  background-color: #383944 !important;
  border-bottom-color: #555555 !important;
}

body.dark-mode .notification-item:hover {
  background-color: #555555 !important;
}

.notification-icon {
  position: relative;
}

.notification-icon .badge {
  position: absolute;
  top: -4px;
  right: 0px;
  padding: 3px 6px;
  border-radius: 50%;
  background-color: #ff5e5e;
  color: white;
  font-size: 12px;
  display: none;
}

/* Sidebar styles */
#notification-sidebar {
  position: fixed;
  right: -400px;
  top: 0;
  width: 300px;
  height: 100%;
  background-color: #fff;
  box-shadow: -2px 0 5px rgba(0, 0, 0, 0.5);
  transition: right 0.3s ease-in-out;
  /* Smooth slide-in effect */
  z-index: 1050;
  overflow-y: auto;
}

#notification-sidebar.open {
  right: 0;
  /* Slide the sidebar into view */
}

#notification-sidebar .header {
  padding: 10px;
  background-color: #f8f9fa;
  font-size: 16px;
  text-align: center;
  border-bottom: 1px solid #ddd;
}

#notification-sidebar .close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  cursor: pointer;
  font-size: 16px;
}

#notification-container {
  padding: 10px;
}

/* Light Mode Styles */
body.light-mode #notification-sidebar {
  background-color: #ffffff;
  color: #000;
}

body.light-mode #notification-sidebar .header {
  background-color: #ffffff;
  border-bottom-color: #000000;
}

/* Dark Mode Styles */
body.dark-mode #notification-sidebar {
  background-color: #322f37;
  color: #fff;
}

body.dark-mode #notification-sidebar .header {
  background-color: #2D2A32;
  border-bottom-color: #586a7b;
}

.dismiss-btn {
  float: right;
  cursor: pointer;
  color: #888;
  font-size: 16px;
}

.dismiss-btn:hover {
  color: red;
}

#clear-all-btn {
  position: relative;
  float: right;
  top: 0px;
  /* Adjusts distance from the top */
  right: 10px;
  /* Positions it to the right */
  padding: 5px 10px;
  /* Smaller padding for a compact button */
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  /* Smaller font size for the button */
}


#clear-all-btn:hover {
  background-color: #0056b3;
}

/* Search Bar Styling */
.form-control-search {
  border-radius: 20px;
  width: 20%;
  padding: 6px 12px;
  border: 1px solid #ccc;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  width: 100%;
  padding: 10px 40px 10px 15px;
  /* Adjust padding for icon space */
  border: 1px solid #ccc;
  border-radius: 20px;
  font-size: 15px;
  outline: none;
}

.btn-search {
  border-radius: 20px;
  margin-left: 5px;
  margin-right: 5px;
}

/* Profile Icon Dropdown */
.navbar .fa-user-circle {
  color: #B0B0B0;
  font-size: 1.5rem;
  transition: color 0.3s ease;
}

.navbar .fa-user-circle:hover {
  color: white;
}

/* Search Bar Styling */
.search-container {
  display: flex;
  justify-content: center;
  width: 31.2% !important;
  margin-top: -4px !important;
  margin-left: 6rem !important;
}

.input-group {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  width: 180px;
  /* Small size */
}

.input-group-text {
  background: #f8f9fa;
  border: none;
  padding: 5px 10px;
  color: #6c757d;
}

.search-input {
  border: none;
  padding: 5px 10px;
  width: 100%;
  font-size: 14px;
  outline: none;
}

.search-input:focus {
  box-shadow: none;
}

.suggestions-list {
  position: absolute;
  background: #ffffff;
  width: 20%;
  max-width: 400px;
  max-height: 200px;
  overflow-y: auto;
  z-index: 1000;
  border-radius: 8px;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.15);
  display: none;
  padding: 5px 0;
  border: 1px solid #ddd;
  top: 100%;
  /* Appear just below input */
  left: 41%;
  margin-top: 5px;
}

@media (max-width: 576px) {
  .suggestions-list {
    width: 90%;
    left: 5%;
    max-width: none;
  }
}

.search-wrapper {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  /* Ensures .suggestions-list is positioned relative to this */
}

.suggestion-item {
  padding: 10px 15px;
  font-size: 14px;
  cursor: pointer;
  border-bottom: 1px solid #f1f1f1;
  transition: background 0.2s ease-in-out;
}

.suggestion-item:last-child {
  border-bottom: none;
  /* Removes border for the last item */
}

.suggestion-item:hover {
  background: #f0f0f0;
  /* Softer hover effect */
}

/* Hide scrollbar for a clean UI */
.suggestions-list::-webkit-scrollbar {
  width: 5px;
}

.suggestions-list::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.suggestions-list::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 5px;
}

.suggestions-list::-webkit-scrollbar-thumb:hover {
  background: #999;
}

/* Ensure the search bar is centered */
.search-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-top: 10px;
}

/* Center the search bar properly */
.search-wrapper {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 400px;
  /* Adjust as needed */
  position: relative;
}

/* Search input field */
.search-input {
  width: 100%;
  padding: 10px 40px 10px 15px;
  /* Space for icon */
  border: 1px solid #ccc;
  border-radius: 20px;
  font-size: 16px;
  outline: none;
}

/* Position the search icon */
.search-icon {
  position: absolute;
  right: 15px;
  color: #6c757d;
  font-size: 16px;
  pointer-events: none;
}

/* Responsive adjustments */
@media (max-width: 576px) {
  .search-container {
    width: 100% !important;
    margin: 0 auto !important;
    padding: 0 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .form-control-search {
    font-size: 14px;
    padding: 8px 36px 8px 12px;
  }

  .search-icon {
    font-size: 14px;
    right: 10px;
  }
}


.favorites-icon {
  margin-right: 15px;
  font-size: 20px;
}

.favorites-icon .heart-icon {
  color: gray;
  /* Adjust based on theme */
  transition: color 0.3s ease;
}

.favorites-icon .heart-icon:hover {
  color: red;
}
.modal-content{
  left: 6rem;
}
/* Optional: Override modal max width for better scaling */
@media (max-width: 768px) {
  .modal-dialog {
    margin: 1rem auto;
    max-width: 90%;
  }

  .modal-content {
    padding: 10px;
    left: 0;
  }

  .modal-body img {
    max-width: 100%;
    height: auto;
  }
}

@media (max-width: 480px) {
  .modal-dialog {
    max-width: 95%;
  }
}