:root {
  --greenix-teal: #38b09d;
}

.text-teal {
  color: var(--greenix-teal) !important;
}

.btn-teal {
  background-color: var(--greenix-teal);
  border-color: var(--greenix-teal);
  color: white;
}

.btn-teal:hover {
  background-color: #2a8e7d;
  color: white;
}

.btn-outline-teal {
  border: 2px solid var(--greenix-teal);
  color: var(--greenix-teal);
  background-color: transparent;
}

.btn-outline-teal:hover {
  background-color: var(--greenix-teal);
  color: white;
}

.text-greenix {
  color: #38b09d !important;
}

.transition {
  transition: all 0.3s ease-in-out;
}

.transition:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(56, 176, 157, 0.2);
}

.img-fixed {
  height: 400px;
  object-fit: cover;
  object-position: center;
}

.logo-carousel {
  overflow: hidden;
  position: relative;
  background-color: #f9f9f9;
  padding: 1rem 0;
}

.logo-track {
  display: flex;
  width: fit-content;
  animation: scroll 30s linear infinite;
  gap: 2rem;
}

.logo-track img {
  height: 50px;
  object-fit: contain;
  filter: grayscale(100%);
  transition: filter 0.3s ease;
}

.logo-track img:hover {
  filter: grayscale(0%);
}

@keyframes scroll {
  0% {
    transform: translateX(0%);
  }

  100% {
    transform: translateX(-50%);
  }
}

.swiper {
  padding: 0 1rem;
}

.swiper_wiper {
  padding: 0 5rem;
}

.swiper-slide {
  width: auto !important;
  display: flex;
  justify-content: center;
  align-items: center;
}

.swiper-slide img {
  filter: grayscale(100%);
  transition: filter 0.3s ease;
}

.swiper-slide img:hover {
  filter: grayscale(0%);
}

.glassmorphism {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 32px rgba(31, 38, 135, 0.1);
  border-radius: 16px;
}

form input::placeholder {
  color: #ccc;
}

th.sorting:after,
th.sorting_asc:after,
th.sorting_desc:after {
  font-family: Arial, sans-serif;
  font-size: 0.75rem;
  margin-left: 6px;
  opacity: 0.6;
}

th.sorting:after {
  content: "⇅";
}

th.sorting_asc:after {
  content: "↑";
}

th.sorting_desc:after {
  content: "↓";
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.form-control:focus {
  border-color: #38b09d;
  box-shadow: 0 0 0 0.2rem rgba(56, 176, 157, 0.25);
}

/* Navbar Dropdown - Greenix Styled */
.navbar-nav .nav-link {
  padding: 0.5rem 0.75rem;
  font-weight: 500;
}

/* Scrollspy bar fix */
#aboutNav {
  z-index: 1020;
  /* Bootstrap default for sticky-top */
}

/* Dropdown Fix */
.dropdown-menu {
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  padding: 0.5rem 0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  min-width: 220px;
  position: absolute;
  z-index: 1050;
  /* Make sure dropdown shows above sticky bar */
}

.dropdown-item {
  padding: 10px 20px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.dropdown-item:hover {
  background-color: #eafaf8;
  color: var(--greenix-teal);
}

.glass-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease-in-out;
  min-height: 180px;
}

.glass-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.glass-mini {
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  min-height: 160px;
  transition: transform 0.2s ease-in-out;
}

.glass-mini:hover {
  transform: translateY(-4px);
}

.uniform-card {
  height: 200px;
  min-height: 200px;
  max-height: 200px;
}

.uniform-cards {
  height: 180px;
  min-height: 180px;
  max-height: 180px;
}

.img-preview-wrapper {
  position: relative;
  display: inline-block;
}

.img-preview {
  display: none;
  position: absolute;
  top: -10px;
  left: 105%;
  z-index: 10;
  height: 120px;
  width: 120px;
  object-fit: cover;
  border: 2px solid #ccc;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.img-preview-wrapper:hover .img-preview {
  display: block;
}

.btn-outline-greenix {
  border: 2px solid #38b09d;
  color: #38b09d;
  transition: 0.3s;
}

.btn-outline-greenix:hover {
  background-color: #38b09d;
  color: white;
}

.table-glass-wrapper {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
  border-radius: 1rem;
}

.table-glass-wrapper table {
  color: #212529;
}

.table-glass-wrapper th {
  font-size: 0.85rem;
}

.table-glass-wrapper td {
  font-size: 0.95rem;
}

.container.mt-5 {
  margin-top: 3rem !important;
  padding-bottom: 2rem;
}

.mb-4 {
  margin-bottom: 2rem !important;
  text-align: center;
  color: #333;
}

.card {
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.2s ease-in-out;
}

.card:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.card-img-top {
  border-bottom: 1px solid #eee;
}

.card-body {
  padding: 1rem;
  display: flex;
  flex-direction: column;
}

.card-title {
  font-size: 1.1rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
  color: #333;
}

.card-text.text-muted {
  font-size: 0.9rem;
  color: #666 !important;
  margin-bottom: 1rem;
  flex-grow: 1;
  /* Make description take available vertical space */
}

.mt-auto {
  margin-top: auto !important;
  /* Push price and button to the bottom */
}

.badge.bg-danger {
  font-size: 0.8rem;
  margin-left: 0.5rem;
}

.btn.btn-primary.btn-sm {
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  cursor: not-allowed;
  /* Indicate it's disabled */
}

.btn.btn-primary.btn-sm:hover {
  background-color: #0056b3;
}

.white-space-pre-line {
  white-space: pre-line;
}

#registerTabs .nav-link {
  border-radius: 8px;
  font-weight: 500;
  transition: 0.3s;
}

#registerTabs .nav-link.active {
  background-color: #38b09d;
  color: white;
  font-weight: 600;
}

#registerTabs .nav-link:hover {
  background-color: #2e8c7d;
  color: white;
}

#existingDetails .card {
  background: #f8fffd;
  border-left: 5px solid #38b09d;
}

#existingDetails i {
  font-size: 1.1rem;
}