@charset "UTF-8";

html {
  font-size: 14px;
  position: relative;
  min-height: 100%;
  overflow-x: hidden;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

body {
  font-family: Inter,BlinkMacSystemFont,-apple-system,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,Helvetica,Arial,sans-serif;
  overflow-x: hidden;
}

a {
  color: #2b2b2b;
}

h7 {
  font-size: 13px;
}

.form-check .form-check-input {
  float: left;
  margin-left: 0em;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

.side-menu {
  position: fixed;
  left: 0;
  width: 220px;
  height: calc(100% - 70px);
  background: #f8f9fa;
  border-right: 1px solid #dee2e6;
  z-index: 1000;
}

  .side-menu .nav-link {
    color: #333;
    border-radius: 0;
    margin-bottom: 4px;
    transition: background 0.2s, color 0.2s;
  }

    .side-menu .nav-link:hover, .side-menu .nav-link.active {
      background: #0d6efd;
      color: #fff;
    }

@media (max-width: 768px) {
  .side-menu {
    position: static;
    width: 100%;
    height: auto;
    border-right: none;
  }

  .main-content {
    margin-left: 0;
  }
}

#autocompleteList {
  max-height: 400px;
  display: block;
  overflow: overlay;
}

.autocompleteItem {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
}

.ac-item-content {
  display: flex;
  flex-direction: row;
  gap: 5px;
}

.ac-card-desc {
  display: flex;
  flex-direction: column;
}

.form-control {
  font-size: 0.8rem;
  line-height: 1.2;
}

/* Mobile Form Control Fix */
@media (max-width: 576px) {
  .form-control,
  .form-select,
  .input-group {
    max-width: 100%;
  }
}

.btn-group-toggle > .btn input[type=checkbox], .btn-group-toggle > .btn input[type=radio], .btn-group-toggle > .btn-group > .btn input[type=checkbox], .btn-group-toggle > .btn-group > .btn input[type=radio] {
  position: absolute;
  clip: rect(0, 0, 0, 0);
  pointer-events: none;
}

.btn {
  font-size: 0.8rem;
}

.toast-container-fixed {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 1080;
}

/* Navbar Search Styling */
.navbar-search-container {
  /*max-width: 600px;*/
}

  .navbar-search-container #searchForm {
    width: 100%;
  }

  .navbar-search-container .form-control {
    font-size: 0.95rem;
    padding: 0.75rem 1rem;
    border-radius: 0.375rem;
  }

    .navbar-search-container .form-control:focus {
      border-color: #0d6efd;
      box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
    }

@media (max-width: 768px) {
  .navbar-search-container {
    max-width: none;
    min-width: 200px;
  }
}

/* Form Check Styling */
.form-check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding-left: 0;
}

.form-check-input {
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.125rem;
  margin-right: 0;
  flex-shrink: 0;
  cursor: pointer;
  border: 1px solid #dee2e6;
  border-radius: 0.25rem;
}

.form-check-label {
  margin-bottom: 0;
  cursor: pointer;
  user-select: none;
}

.form-check-input:checked {
  background-color: #0d6efd;
  border-color: #0d6efd;
}

.form-check-input:focus {
  border-color: #0d6efd;
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Admin Pages Form Checkbox Styling */
.form-group .form-check-input[type="checkbox"],
.form-group input[type="checkbox"].form-check-input {
  width: 1.25rem;
  height: 1.25rem;
  margin: 0.125rem 0 0 0;
  padding: 0;
  flex-shrink: 0;
  cursor: pointer;
  border: 1px solid #dee2e6;
  border-radius: 0.25rem;
}

.form-group input[type="checkbox"] {
  width: 1.25rem !important;
  height: 1.25rem !important;
  padding: 0 !important;
  margin-bottom: 0;
  margin-top: 0.125rem;
  cursor: pointer;
  border: 1px solid #dee2e6;
  border-radius: 0.25rem;
}

/* ===== CARD FAVORITE STYLING ===== */
.card-favorite-btn {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
  padding: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

  .card-favorite-btn:hover {
    background: white;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  }

  .card-favorite-btn i {
    font-size: 1.3rem;
    transition: all 0.3s ease;
  }

    .card-favorite-btn i.bi-heart {
      color: #e74c3c;
    }

    .card-favorite-btn i.bi-heart-fill {
      color: #e74c3c;
    }

  .card-favorite-btn.is-favorited i {
    color: #e74c3c;
  }

  .card-favorite-btn:not(.is-favorited) i {
    color: #bbb;
  }

  .card-favorite-btn.is-favorited:not(:hover) {
    background: rgba(231, 76, 60, 0.1);
  }

/* ===== CARD DELETE STYLING ===== */
.card-delete-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
  padding: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

  .card-delete-btn:hover {
    background: white;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  }

  .card-delete-btn i {
    font-size: 1.3rem;
    transition: all 0.3s ease;
    color: #dc3545;
  }

  .card-delete-btn:hover i {
    color: #c82333;
  }

.form-switch .form-check-input {
  margin-left: 0px !important;
}

/* ===== NOTIFICATIONS STYLING ===== */
#notificationsBtn {
  position: relative;
  padding: 0.5rem 0.75rem !important;
  font-size: 1.3rem;
  transition: all 0.3s ease;
  border: none;
  text-decoration: none;
}

  #notificationsBtn:hover {
    color: #0d6efd !important;
    transform: scale(1.1);
  }

#mobileMenuBtn {
  min-width: 48px !important;
  min-height: 48px !important;
  padding: 0.5rem 0.75rem !important;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

  #mobileMenuBtn:hover {
    color: #0d6efd !important;
  }

#notificationBadge {
  font-size: 0.65rem;
  padding: 0.25rem 0.5rem;
  min-width: 20px;
  text-align: center;
  animation: notification-pulse 2s infinite;
  left: 80% !important;
  top: 20% !important;
}

@keyframes notification-pulse {
  0%, 100% {
    opacity: 1;
  }

  50% {
    opacity: 0.7;
  }
}

/* ===== MOBILE MENU STYLING ===== */
.mobile-menu-panel {
  position: fixed;
  top: 112px;
  left: 0;
  right: 0;
  bottom: 0;
  background: white;
  z-index: 999;
  overflow-y: auto;
  border-top: 1px solid #e2e8f0;
  animation: slide-down 0.3s ease-out;
  max-height: calc(100vh - 48px);
}

@keyframes slide-down {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.mobile-menu-content {
  padding: 1rem 0;
}

.mobile-nav-section {
  padding: 0.5rem 0;
}

.mobile-nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.25rem;
  color: #333;
  text-decoration: none;
  border: none;
  background: none;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
  text-align: left;
}

  .mobile-nav-item:hover {
    background-color: rgba(102, 126, 234, 0.1);
    color: #667eea;
    padding-left: 1.5rem;
  }

  .mobile-nav-item i {
    font-size: 1.1rem;
  }

  .mobile-nav-item.text-primary {
    color: #0d6efd;
  }

  .mobile-nav-item.text-danger {
    color: #dc3545;
  }

.mobile-menu-divider {
  height: 1px;
  background-color: #e2e8f0;
  margin: 0.5rem 0;
}

/* Mobile Submenu Styling */
.mobile-submenu {
  background-color: #f8f9fa;
  padding: 0;
}

.mobile-submenu-item {
  padding: 0;
}

.mobile-submenu-toggle {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 2rem;
  color: #333;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.9rem;
}

  .mobile-submenu-toggle:hover {
    background-color: rgba(102, 126, 234, 0.15);
    color: #667eea;
  }

  .mobile-submenu-toggle i {
    font-size: 0.9rem;
  }

.mobile-submenu-items {
  background-color: #f0f1f5;
  padding: 0;
}

.mobile-submenu-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 2.5rem;
  color: #555;
  text-decoration: none;
  font-size: 0.9rem;
  border-left: 3px solid transparent;
  transition: all 0.2s ease;
}

  .mobile-submenu-link:hover {
    background-color: rgba(102, 126, 234, 0.2);
    color: #667eea;
    border-left-color: #667eea;
  }

  .mobile-submenu-link .badge {
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
  }

/* Navbar content arrangement */
.navbar-content {
  gap: 0.5rem;
  width: 100%;
}

.navbar-brand {
  padding-left: 0;
  padding-right: 0;
  padding-top: 0;
  padding-bottom: 0;
  margin-bottom: 0;
}

.navbar-search-container-mobile {
  flex: 1;
  min-width: 0;
  margin: 0 0.5rem;
}

  .navbar-search-container-mobile .form-control {
    font-size: 0.85rem;
    padding: 0.5rem 0.75rem;
  }

.addremove-container {
  gap: 0.2rem;
}

@media (min-width: 992px) {
  .navbar-search-container-mobile {
    display: none !important;
  }
}

@media (max-width: 767px) {
  .navbar-search-container {
    display: none !important;
  }

  .navbar-right-section {
    display: none !important;
  }

  .navbar-brand {
    font-size: 1rem;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .mobile-menu-panel {
    top: calc(100vh - calc(100vh - 62px));
  }

  /* Navbar Responsive */
  .navbar {
    padding: 0.5rem 0;
  }

    .navbar .container-fluid {
      padding-left: 0.75rem;
      padding-right: 0.75rem;
    }
}

/* Responsive Container Fix for Mobile */
@media (max-width: 576px) {
  .navbar .container {
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }

  .container {
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }

  .navbar {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}

/* Mobile Navbar Fix */
@media (max-width: 576px) {
  .navbar-brand {
    padding-left: 0.5rem !important;
    padding-right: 0 !important;
    margin-right: 0.5rem !important;
  }

  .navbar-search-container-mobile {
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding: 0 !important;
  }

  .navbar-content {
    gap: 0.25rem !important;
  }
}

/* Mobile Main Content Fix */
@media (max-width: 576px) {
  main {
    padding-left: 0 !important;
    padding-right: 0 !important;
    padding-top: 75px !important;
  }

  .main-content {
    padding: 0;
    margin: 0;
  }
}

/* Mobile Header Sticky */
@media (max-width: 767px) {
  header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 1030 !important;
    width: 100%;
    background: white;
  }

    header .container,
    header .container-fluid {
      width: 100%;
      max-width: none;
      padding: 0;
      margin: 0;
    }

    /* Hide desktop navigation on mobile */
    header .navbar.d-none.d-md-block {
      display: none !important;
    }
}

.remember-me-container {
  width: 200px;
  display: flex;
  gap: 5px;
}
