/*
  css/components.css
  UI Components: Buttons, Cards, Inputs, Navbar, Badges.
*/

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  gap: 0.5rem;
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.98);
}

.btn--primary {
  background: var(--primary);
  color: white;
  box-shadow: var(--shadow-primary);
}

.btn--primary:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

.navbar__auth .btn--primary {
  color: #ffffff;
}

.btn--secondary {
  background: white;
  color: var(--text-main);
  border: 1px solid var(--border);
}

.btn--secondary:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.btn--danger {
  background: #fee2e2;
  color: #ef4444;
}

.btn--danger:hover {
  background: #fecaca;
}

.btn--text {
  background: transparent;
  color: var(--text-muted);
  padding: 0.5rem;
}

.btn--text:hover {
  color: var(--primary);
  background: rgba(16, 185, 129, 0.05);
}

/* Button Groups & Toggles */
.btnRow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.pill-toggle {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  background: white;
  padding: 4px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  width: fit-content;
}

.pill-toggle .btn {
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  border: none;
  background: transparent;
  color: var(--text-muted);
  min-width: 80px;
}

.pill-toggle .btn:hover {
  background: #f8fafc;
}

.pill-toggle .btn.isActive,
.pill-toggle .btn.btn--primary {
  background: var(--primary) !important;
  color: white !important;
  box-shadow: var(--shadow-sm);
}

.pill-toggle .btn.btn--text {
    padding: 0.5rem 1rem;
}


/* Cards */
.card {
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0, 0, 0, 0.02);
  transition: var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-md);
}

.card--glass {
  background: var(--bg-glass-dark);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

/* Navbar Component */
.navbar {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  min-width: 0;
  overflow: visible;
}

.navbar > div:first-child {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.navbar__brand {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--secondary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  letter-spacing: -0.02em;
  text-decoration: none;
  transition: opacity 0.2s ease;
  min-width: 0;
  flex-shrink: 1;
}

.navbar__brand span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.navbar__brand:hover {
  opacity: 0.9;
}

.navbar__brandMark {
  width: 32px;
  height: 32px;
  background: var(--primary);
  color: white;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

/* Custom Styled Location Pill Selector */
.navbar__location {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: #f1f5f9;
  border: 1px solid var(--border);
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
  white-space: nowrap;
  max-width: 180px;
  flex-shrink: 0;
}

.navbar__location span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
}

.navbar__location:hover {
  background: #e2e8f0;
  border-color: #cbd5e1;
  transform: translateY(-1px);
}

/* Desktop & Mobile Menu */
.navbar__menu {
  display: none;
}

/* Modern Hamburger Toggle Button */
.navbar__toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  padding: 0.6rem;
  width: 38px;
  height: 38px;
  transition: all 0.2s ease;
}

.navbar__toggle:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.navbar__toggleBar {
  width: 20px;
  height: 2px;
  background: var(--text-main);
  border-radius: 4px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Toggle morph animation to 'X' when open */
.navbar__toggle.isOpen .navbar__toggleBar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.navbar__toggle.isOpen .navbar__toggleBar:nth-child(2) {
  opacity: 0;
  transform: translateX(-10px);
}

.navbar__toggle.isOpen .navbar__toggleBar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.navbar__auth {
  display: flex;
  gap: 1rem;
  align-items: center;
}

/* Sleek User status pill */
.navbar__user-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-full);
  background: #f8fafc;
  border: 1px solid var(--border);
  color: var(--text-main);
  font-size: 0.85rem;
  font-weight: 700;
  white-space: nowrap;
}

.navbar__user-pill::before {
  content: '👤';
  font-size: 0.85rem;
}

/* Adjust all buttons inside the navbar to look polished and proportional */
.navbar .btn {
  padding: 0.45rem 1rem;
  font-size: 0.85rem;
  height: 38px;
  white-space: nowrap;
}

.navbar__link {
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  padding: 0.5rem 0;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.navbar__link:hover {
  color: var(--primary);
}

.navbar__roleLinks {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

/* Header Actions container */
.header-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

/* Pager/Pagination */
.pager {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1.5rem 0;
}

.pager__btn {
  min-width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0 1rem; /* For Prev/Next */
  cursor: pointer;
  transition: all 0.2s ease;
  color: var(--text-main);
  box-shadow: var(--shadow-sm);
}

.pager__btn:hover:not(:disabled) {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.pager__btn.isActive {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  box-shadow: var(--shadow-primary);
}

.pager__btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  background: #f8fafc;
}

/* Desktop layout styles */
@media (min-width: 900px) {
  .navbar__toggle {
    display: none;
  }

  .navbar__menu {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-grow: 1;
    gap: 2rem;
  }

  .navbar__link:not(.btn) {
    position: relative;
  }

  .navbar__link:not(.btn)::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background: var(--primary);
    transition: width 0.2s ease;
  }

  .navbar__link:not(.btn):hover::after {
    width: 100%;
  }
}

/* Mobile responsive menu dropdown styles */
@media (max-width: 899px) {
  .navbar {
    gap: 0.75rem;
  }

  .navbar > div:first-child {
    flex: 1 1 auto;
    gap: 0.5rem;
    max-width: calc(100% - 48px);
  }

  .navbar__brand {
    font-size: 1rem;
    gap: 0.4rem;
  }

  .navbar__brand img,
  .navbar__brandMark {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
  }

  .navbar__location {
    max-width: clamp(96px, 28vw, 140px);
    padding: 0.35rem 0.55rem;
    font-size: 0.78rem;
  }

  .navbar__toggle {
    flex: 0 0 38px;
  }

  .navbar__menu {
    display: none;
  }

  .navbar__menu.isOpen {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background: white;
    padding: 1.5rem;
    box-shadow: var(--shadow-lg);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    gap: 1.25rem;
  }

  .navbar__roleLinks {
    flex-direction: column;
    align-items: stretch;
    gap: 1.25rem;
    width: 100%;
  }

  .navbar__auth {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    width: 100%;
    margin-top: 0.5rem;
    border-top: 1px solid var(--border);
    padding-top: 1.25rem;
  }

  .navbar__link {
    display: block;
    width: 100%;
    padding: 0.55rem 0;
    font-size: 0.95rem;
    border-bottom: 1px solid #f1f5f9;
  }

  .navbar__link:last-child {
    border-bottom: none;
  }

  .navbar__user-pill {
    justify-content: center;
    width: 100%;
    text-align: center;
    padding: 0.6rem 1rem;
  }

  .navbar__auth .btn {
    width: 100%;
    justify-content: center;
  }
}

/* Inputs & Forms */
.field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: #f8fafc;
  color: var(--text-main);
  transition: var(--transition);
  outline: none;
  font-family: inherit;
}

.field input:focus,
.field select:focus {
  background: white;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

/* Turf Card */
.turfCard {
  background: white;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.turfCard:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.turfCard__imgPlaceholder {
  height: 180px;
  width: 100%;
  background: #e2e8f0;
  position: relative;
  overflow: hidden;
}

.turfCard__imgPlaceholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  transition: transform 0.5s ease;
}

.turfCard:hover .turfCard__imgPlaceholder img {
  transform: scale(1.05);
}

/* Notification System - Premium Styles */
.notif-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.notif-bell {
  background: white;
  border: 1px solid var(--border);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  color: #64748b;
  box-shadow: var(--shadow-sm);
}

.notif-bell:hover {
  background: #f8fafc;
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.notif-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background: #ef4444;
  color: white;
  font-size: 10px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid white;
  box-shadow: 0 2px 4px rgba(239, 68, 68, 0.3);
}

.notif-panel {
  position: absolute;
  top: calc(100% + 15px);
  right: 0;
  width: 320px;
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  border: 1px solid var(--border);
  overflow: hidden;
  display: none;
  z-index: 1000;
  animation: slideDownIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.notif-panel.isOpen {
  display: block;
}

.notif-header {
  padding: 1rem 1.25rem;
  background: #f8fafc;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.notif-header h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--secondary);
  margin: 0;
}

.notif-list {
  max-height: 400px;
  overflow-y: auto;
}

.notif-item {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #f1f5f9;
  transition: background 0.2s ease;
  display: flex;
  gap: 1rem;
  cursor: default;
}

.notif-item:hover {
  background: #f8fafc;
}

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

.notif-item.unread {
  background: rgba(16, 185, 129, 0.03);
}

.notif-item.unread:hover {
  background: rgba(16, 185, 129, 0.05);
}

.notif-icon-box {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.notif-body {
  flex: 1;
}

.notif-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 0.2rem;
}

.notif-message {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.notif-time {
  font-size: 0.70rem;
  color: #94a3b8;
  margin-top: 0.4rem;
}

.notif-status-btn {
  opacity: 0;
  visibility: hidden;
  background: white;
  border: 1px solid var(--border);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 10px;
  transition: all 0.2s ease;
  flex-shrink: 0;
  margin-top: 0.5rem;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.notif-item:hover .notif-status-btn {
  opacity: 1;
  visibility: visible;
}

.notif-mark-read {
  color: var(--primary);
}

.notif-mark-unread {
  color: #64748b;
}

.notif-status-btn:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  transform: scale(1.1);
}

.notif-mark-unread:hover {
  background: #64748b;
  border-color: #64748b;
}

.notif-footer {
  padding: 0.85rem;
  text-align: center;
  border-top: 1px solid var(--border);
}

.notif-empty {
  padding: 3rem 1rem;
  text-align: center;
  color: var(--text-muted);
}

.notif-type-booking {
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
}

.notif-type-feedback {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
}

.notif-type-deactivation {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

.notif-type-other {
  background: rgba(100, 116, 139, 0.1);
  color: #64748b;
}

.turfCard__body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
}

.turfCard__title {
  font-size: 1.15rem;
  margin: 0;
  color: var(--secondary);
}

.turfCard__meta {
  font-size: 0.9rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.turfCard__price {
  margin-top: auto;
  font-weight: 700;
  color: var(--primary);
  font-size: 1.1rem;
  padding-top: 1rem;
  border-top: 1px solid #f1f5f9;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Tags / Badges */
.badge {
  display: inline-flex;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.badge--success {
  background: #d1fae5;
  color: #065f46;
}

.badge--warning {
  background: #fef3c7;
  color: #92400e;
}

.badge--danger {
  background: #fee2e2;
  color: #b91c1c;
}

.badge--neutral {
  background: #f1f5f9;
  color: #64748b;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  z-index: -1;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.modal__dialog {
  background: white;
  width: 100%;
  max-width: 500px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 1.5rem;
  animation: modalSlideUp 0.3s ease-out;
}

@keyframes modalSlideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

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

.modal__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.modal__title {
  font-size: 1.25rem;
  margin: 0;
}

/* Search Boxes */
.search-box {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 0.25rem 1rem;
  max-width: 400px;
  margin-bottom: 1.5rem;
  transition: var(--transition);
}

.search-box:focus-within {
  background: white;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.search-box input {
  border: none;
  background: transparent;
  width: 100%;
  padding: 0.6rem 0;
  font-size: 0.9rem;
  outline: none;
  color: var(--text-main);
}

.search-box .icon {
  color: var(--text-muted);
  font-size: 1rem;
}

.carousel__wrapper {
  position: relative;
  width: 100%;
  max-width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.carousel {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  border-radius: var(--radius-lg);
  /* More compact, professional height instead of oversized 16:9 */
  height: clamp(280px, 45vh, 450px);
  width: 100%;
}

.carousel::-webkit-scrollbar {
  display: none;
}

.carousel__item {
  flex: 0 0 100%;
  width: 100%;
  scroll-snap-align: start;
  height: 100%;
}

.carousel__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.carousel__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: white;
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--primary);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.2s ease;
  z-index: 100;
  opacity: 0.8;
}

.carousel__btn:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.3);
}

.carousel__btn--prev {
  left: 1rem;
}

.carousel__btn--next {
  right: 1rem;
}

.carousel__dots {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 10;
}

.carousel__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: var(--transition);
}

.carousel__dot--active {
  background: white;
  width: 20px;
  border-radius: 10px;
}

/* Image Preview Grid */
.image-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.image-preview-item {
  position: relative;
  width: 60px;
  height: 60px;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #f1f5f9;
}

.image-preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-preview-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 20px;
  height: 20px;
  background: rgba(239, 68, 68, 0.9);
  color: white;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 12px;
  font-weight: bold;
  line-height: 1;
  transition: var(--transition);
  padding: 0;
}

.image-preview-remove:hover {
  background: var(--danger);
  transform: scale(1.1);
}

/* Utilities */
.mt2 {
  margin-top: 1rem;
}

.mt4 {
  margin-top: 2rem;
}

/* Slot Information Feature - Premium Styles */
.slot-info-wrapper {
  position: relative;
  display: inline-block;
}

.slot-info-btn {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid var(--primary);
  background: white;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0;
  box-shadow: 0 2px 4px rgba(16, 185, 129, 0.1);
  position: relative;
  /* For tooltip containment if needed, though we'll use wrapper usually */
}

/* Custom Tooltip */
.slot-info-btn::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  right: 50%;
  transform: translateX(50%) translateY(5px);
  background: #1e293b;
  color: white;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  z-index: 101;
}

.slot-info-btn:hover::after {
  opacity: 1;
  transform: translateX(50%) translateY(0);
}

.slot-info-btn:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-1px) scale(1.05);
  box-shadow: 0 4px 8px rgba(16, 185, 129, 0.2);
}

.slot-info-btn:active {
  transform: translateY(0) scale(0.95);
}

.slot-info-btn:disabled {
  opacity: 0.6;
  cursor: wait;
}

.slot-info-container {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 280px;
  background: white;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  border: 1px solid var(--border);
  padding: 1.25rem;
  z-index: 100;
  animation: slideDownIn 0.2s ease-out;
}

/* Arrow for the info box */
.slot-info-container::before {
  content: '';
  position: absolute;
  bottom: 100%;
  right: 5px;
  border: 6px solid transparent;
  border-bottom-color: var(--border);
}

.slot-info-container::after {
  content: '';
  position: absolute;
  bottom: 100%;
  right: 5px;
  border: 6px solid transparent;
  border-bottom-color: white;
  margin-bottom: -1px;
}

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

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

@keyframes pulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.7);
  }

  70% {
    transform: scale(1);
    box-shadow: 0 0 0 6px rgba(37, 99, 235, 0);
  }

  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0);
  }
}

.slot-info-header {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
}

.slot-info-list {
  max-height: 200px;
  overflow-y: auto;
  padding-right: 4px;
}

.slot-info-list::-webkit-scrollbar {
  width: 4px;
}

.slot-info-list::-webkit-scrollbar-thumb {
  background: #e2e8f0;
  border-radius: 4px;
}

.slot-info-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.65rem 0;
  border-bottom: 1px solid #f8fafc;
}

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

.slot-info-time {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--secondary);
}

.slot-info-type {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.15rem 0.5rem;
  border-radius: 8px;
  white-space: nowrap;
}

.type-online {
  background: #ecfdf5;
  color: #059669;
}

.type-manual {
  background: #fff7ed;
  color: #d97706;
}

.type-frozen {
  background: #eff6ff;
  color: #2563eb;
}

.type-expired {
  background: #f1f5f9;
  color: #64748b;
  text-decoration: line-through;
}

.slot-info-empty {
  text-align: center;
  color: var(--text-muted);
  padding: 1rem 0;
  font-size: 0.85rem;
  font-style: italic;
}

/* About Page Hero Section */
.aboutHero {
  padding: 60px 0px;
  text-align: center;
}

.aboutHeroContainer {
  max-width: 1000px;
  margin: 0 auto;
}

.aboutHeroLogo {
  width: 300px;
  /* Bigger size */
  max-width: 95%;
  height: auto;
  display: block;
  margin: 0 auto 1.5rem auto;
  /* reduced space */
  filter: drop-shadow(0 25px 45px rgba(0, 0, 0, 0.25));
  transition: transform 0.3s ease;
}

.aboutHeroLogo:hover {
  transform: scale(1.05);
}
