/* Import Inter and Manrope fonts from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Manrope:wght@600;700;800&display=swap');

/* Basic theme properties for custom behaviors */
:root {
  --colors-primary: #111111;
  --colors-primary-active: #242424;
  --colors-canvas: #ffffff;
  --colors-surface-card: #f5f5f5;
  --colors-hairline: #e5e7eb;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--colors-canvas);
  color: var(--colors-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Display Font Class: Simulating Cal Sans with tight spacing and Manrope/Inter */
.font-display {
  font-family: 'Manrope', 'Inter', sans-serif;
  font-weight: 700;
  letter-spacing: -0.04em;
}

/* Dropdown basic transitions */
.dropdown-menu {
  opacity: 0;
  transform: scale(0.95) translateY(-8px);
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.dropdown-menu.active {
  opacity: 1;
  transform: scale(1) translateY(0);
  pointer-events: auto;
}

/* Nested (3rd level) dropdown on desktop */
.nested-dropdown {
  display: none;
}

/* On desktop, show nested dropdown when hovering/focusing the parent list item */
@media (min-width: 768px) {
  .has-nested:hover > .nested-dropdown {
    display: block;
    animation: fadeIn 0.15s ease-out;
  }
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95) translateX(-4px); }
  to { opacity: 1; transform: scale(1) translateX(0); }
}

/* Mobile Drawer (Slide panel) styles */
.mobile-drawer {
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-drawer.active {
  transform: translateX(0);
}

.drawer-overlay {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.drawer-overlay.active {
  opacity: 0.4;
  pointer-events: auto;
}

/* Mobile accordion dynamic slide effect */
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.accordion-content.active,
.accordion-content.open {
  max-height: 600px;
}

/* Clean Dashboard Card Layout for High Density Information */
.dashboard-card {
  height: 290px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background-color: var(--colors-canvas);
  border: 1px solid var(--colors-hairline);
  border-radius: 12px; /* rounded-lg */
  padding: 20px; /* slightly smaller padding for high density */
  transition: border-color 0.15s ease;
}

.dashboard-card:hover {
  border-color: #cbd5e1;
}

.dashboard-card-header {
  margin-bottom: 12px;
  flex-shrink: 0;
}

.dashboard-card-body {
  flex-grow: 1;
  overflow-y: auto;
}

/* Customized scrollbar for dashboard lists & responsive tables */
.custom-scrollbar::-webkit-scrollbar {
  width: 4px;
  height: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
  background: transparent;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
  background: var(--colors-hairline);
  border-radius: 9999px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background: #d1d5db;
}

/* Responsive Table Wrapper & Mobile Scroll Preservation */
.table-responsive-container {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Standard Administration Table Style (Ensures PC visual layout in Mobile) */
.table-admin-standard {
  width: 100%;
  min-width: 850px;
  white-space: nowrap;
  border-collapse: collapse;
}

.table-admin-compact {
  width: 100%;
  min-width: 400px;
  white-space: nowrap;
  border-collapse: collapse;
}
