@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');
@import "tailwindcss";
@source "../../user/**/*.php";
@source "../../account/**/*.php";
@source "../../view/**/*.php";
@source "../../login/**/*.php";
@source "../../support/**/*.php";
@source "user/**/*.php";
@source "account/**/*.php";
@source "view/**/*.php";
@source "login/**/*.php";
@source "support/**/*.php";

@theme {
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --color-brand-teal: #003d5c;
  --color-brand-purple: #594e90;
  --color-brand-magenta: #bc4c96;
  --color-brand-coral: #ff5f66;
  --color-brand-yellow: #ffa600;
}

.home-banner-gradient-pattern {
  background: radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.08) 0%, transparent 45%),
    radial-gradient(circle at 90% 80%, rgba(255, 255, 255, 0.08) 0%, transparent 45%),
    radial-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px),
    linear-gradient(135deg, var(--color-brand-teal) 0%, var(--color-brand-purple) 50%, var(--color-brand-magenta) 100%);
  background-size: 100% 100%, 100% 100%, 20px 20px, 100% 100%;
}


/* Edge-to-edge sidebar list reset */
#sidebar nav,
#sidebar ul,
#sidebar li {
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  list-style: none !important;
}

#sidebar a {
  color: #a1a1aa !important;
  /* zinc-400 */
  text-decoration: none !important;
}

#sidebar a.menu-item {
  border-left: 4px solid transparent !important;
  transition: all 0.2s ease !important;
}

#sidebar a.menu-item:hover {
  background-color: rgba(255, 255, 255, 0.06) !important;
  color: #ffffff !important;
}

#sidebar a.menu-item.active-menu-item {
  background-color: rgba(255, 255, 255, 0.06) !important;
  color: #ffffff !important;
  border-left-color: #ffffff !important;
  font-weight: 600 !important;
}

/* Lucide SVG Icons Sizing and Colors */
#sidebar svg.lucide {
  width: 1.5rem !important;
  /* 24px */
  height: 1.5rem !important;
  stroke-width: 2;
  stroke: #a1a1aa !important;
  /* zinc-400 */
  display: inline-block;
  vertical-align: middle;
  transition: stroke 0.2s ease, transform 0.2s ease;
}

#sidebar a:hover svg.lucide,
#sidebar a.active-menu-item svg.lucide {
  stroke: #ffffff !important;
  /* white */
}

/* Remove hover zoom/transforms from logo in sidebar */
#sidebar a:hover img,
#sidebar a img:hover,
#sidebar a:hover span,
#sidebar a span:hover {
  transform: none !important;
  scale: none !important;
  transition: none !important;
}

/* Redesigned Shell Layout & Toggle Rules */
.dashboard-sidebar {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  width: 16rem;
  background-color: #16213e !important;
  border-right: 1px solid #e4e4e4;
  z-index: 40;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.dashboard-content-wrapper {
  flex: 1 1 0%;
  display: flex;
  flex-direction: column;
  min-width: 0;
  transition: padding-left 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.dashboard-sidebar-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(4px);
  z-index: 30;
  display: none;
}

/* Responsive Layout Logic */
@media (min-width: 1024px) {

  /* Default Desktop State (Expanded) */
  .dashboard-sidebar {
    transform: translateX(0);
  }

  .dashboard-content-wrapper {
    padding-left: 16rem;
  }

  /* Desktop Collapsed State */
  body.sidebar-collapsed .dashboard-sidebar {
    transform: translateX(-16rem);
  }

  body.sidebar-collapsed .dashboard-content-wrapper {
    padding-left: 0;
  }
}

@media (max-width: 1023px) {

  /* Default Mobile State (Hidden) */
  .dashboard-sidebar {
    transform: translateX(-16rem);
  }

  .dashboard-content-wrapper {
    padding-left: 0;
  }

  /* Mobile Open Drawer State */
  body.sidebar-open .dashboard-sidebar {
    transform: translateX(0);
  }

  body.sidebar-open .dashboard-sidebar-backdrop {
    display: block;
  }

  body.sidebar-open {
    overflow: hidden;
  }
}

/* Mobile-only header logo display rules (to prevent inline !important clash) */
.mobile-header-logo {
  display: flex !important;
  align-items: center !important;
}

@media (min-width: 1024px) {
  .mobile-header-logo {
    display: none !important;
  }
}

/* Header Button Hover Overrides */
#logoutBtn:hover {
  background-color: #fecdd3 !important;
  /* rose-200 */
  color: #be123c !important;
  /* rose-700 */
}

#logoutBtn:hover i {
  color: #be123c !important;
}

#logoutBtn:active {
  background-color: #fda4af !important;
  /* rose-300 */
}

header a[target="_blank"]:hover {
  background-color: #f8fafc !important;
  /* slate-50 */
  color: #1e293b !important;
  /* slate-900 */
  border-color: #94a3b8 !important;
  /* slate-400 */
}

header a[target="_blank"]:hover i {
  color: #1e293b !important;
}

/* Premium Unified Button System & Tabs */
.btn-dark-accent {
  background-color: #1e1e1e !important;
  color: #ffffff !important;
  font-weight: 500 !important;
  font-size: 13px !important;
  padding: 6px 12px !important;
  border-radius: 6px !important;
  border: 1px solid #2d2d2d !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  text-decoration: none !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
}

.btn-dark-accent:hover {
  background-color: #2d2d2d !important;
  border-color: #3f3f46 !important;
  color: #ffffff !important;
}

.btn-dark-accent:disabled {
  opacity: 0.5 !important;
  cursor: not-allowed !important;
}

/* Secondary Button (Bordered slate) */
.btn-secondary-accent {
  background-color: #ffffff !important;
  color: #334155 !important;
  /* slate-700 */
  font-weight: 500 !important;
  font-size: 13px !important;
  padding: 6px 12px !important;
  border-radius: 6px !important;
  border: 1px solid #cbd5e1 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  text-decoration: none !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
}

.btn-secondary-accent:hover {
  background-color: #f8fafc !important;
  border-color: #94a3b8 !important;
  color: #0f172a !important;
  /* slate-900 */
}

.btn-secondary-accent:disabled {
  opacity: 0.5 !important;
  cursor: not-allowed !important;
}

/* Success Button (Emerald/Green) */
.btn-success-accent {
  background-color: #10b981 !important;
  /* emerald-500 */
  color: #ffffff !important;
  font-weight: 500 !important;
  font-size: 13px !important;
  padding: 6px 12px !important;
  border-radius: 6px !important;
  border: 1px solid #059669 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  text-decoration: none !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
}

.btn-success-accent:hover {
  background-color: #059669 !important;
  border-color: #047857 !important;
  color: #ffffff !important;
}

/* Danger Button (Rose/Red) */
.btn-danger-accent {
  background-color: #f43f5e !important;
  /* rose-500 */
  color: #ffffff !important;
  font-weight: 500 !important;
  font-size: 13px !important;
  padding: 6px 12px !important;
  border-radius: 6px !important;
  border: 1px solid #e11d48 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  text-decoration: none !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
}

.btn-danger-accent:hover {
  background-color: #e11d48 !important;
  border-color: #be123c !important;
  color: #ffffff !important;
}

/* Navigation tabs in sub-header */
.dashboard-nav-tabs {
  display: flex !important;
  align-items: center !important;
  background-color: #ffffff !important;
  padding: 6px !important;
  border-radius: 8px !important;
  border: 1px solid #e2e8f0 !important;
  gap: 4px !important;
  overflow-x: auto !important;
  white-space: nowrap !important;
  margin-bottom: 16px !important;
}

.dashboard-nav-tab-item {
  text-decoration: none !important;
  color: #475569 !important;
  /* slate-600 */
  font-size: 13px !important;
  font-weight: 500 !important;
  padding: 6px 12px !important;
  border-radius: 6px !important;
  transition: all 0.2s ease !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
}

.dashboard-nav-tab-item:hover {
  background-color: #f1f5f9 !important;
  /* slate-100 */
  color: #0f172a !important;
  /* slate-900 */
}

.dashboard-nav-tab-item.active {
  background-color: #1e1e1e !important;
  /* dark accent active tab */
  color: #ffffff !important;
}

@layer utilities {
  @media (max-width: 991px) {
    .mobile-hide-text {
      display: none !important;
    }
  }

  /* Utility to hide scrollbars while preserving scroll functionality */
  .no-scrollbar::-webkit-scrollbar {
    display: none !important;
  }
  .no-scrollbar {
    -ms-overflow-style: none !important;  /* IE and Edge */
    scrollbar-width: none !important;  /* Firefox */
  }
}