/* INTEL Custom Web App Styles */

/* Smooth custom scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

/* Hide scrollbar utility for clean mobile scrolling */
.no-scrollbar::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}
.no-scrollbar {
  -ms-overflow-style: none !important;
  scrollbar-width: none !important;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Monospace logs formatting */
#tally-live-logs::-webkit-scrollbar-track {
  background: #0f172a;
}
#tally-live-logs::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 4px;
}

/* Table row interactive hover */
tbody tr {
  transition: background-color 0.15s ease-in-out;
}
tbody tr:hover {
  background-color: #f8fafc;
}

/* Active navigation tab */
.nav-tab.active {
  color: #1d4ed8;
  background-color: #eff6ff;
}

/* Spinner animation */
.spin {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Toast Notifications */
.toast-enter {
  animation: toastSlideIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.toast-exit {
  animation: toastSlideOut 0.2s ease-in forwards;
}

@keyframes toastSlideIn {
  from {
    opacity: 0;
    transform: translateY(1rem) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes toastSlideOut {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateY(0.5rem) scale(0.95);
  }
}

/* ==================== PINNED APPLICATION SHELL & SIDEBAR ==================== */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

#app-shell {
  height: 100vh;
  max-height: 100vh;
  overflow: hidden;
}

#desktop-sidebar {
  height: 100vh;
  max-height: 100vh;
  flex-shrink: 0;
  z-index: 30;
  transition: width 0.2s cubic-bezier(0.16, 1, 0.3, 1), padding 0.2s ease-in-out;
}

#main-canvas {
  height: 100vh;
  max-height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

/* ==================== DESKTOP SIDEBAR COLLAPSED STATE ==================== */

#desktop-sidebar.sidebar-collapsed {
  width: 72px !important;
}

#desktop-sidebar.sidebar-collapsed .sidebar-text,
#desktop-sidebar.sidebar-collapsed .sidebar-heading,
#desktop-sidebar.sidebar-collapsed .sidebar-badge {
  display: none !important;
}

#desktop-sidebar.sidebar-collapsed .nav-tab {
  justify-content: center !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

#desktop-sidebar.sidebar-collapsed .nav-tab div {
  gap: 0 !important;
  justify-content: center !important;
}

#desktop-sidebar.sidebar-collapsed #sidebar-user-card {
  padding: 0.5rem !important;
  margin: 0.5rem !important;
  align-items: center !important;
}


