  * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
  }

  body {
      font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
      overflow-x: hidden;
  }

  ::-webkit-scrollbar {
      width: 6px;
      height: 6px;
  }

  ::-webkit-scrollbar-track {
      background: transparent;
  }

  ::-webkit-scrollbar-thumb {
      background: #cbd5e1;
      border-radius: 4px;
  }

  .dark ::-webkit-scrollbar-thumb {
      background: #475569;
  }

  .sidebar-link {
      transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
      position: relative;
  }

  .sidebar-link::before {
      content: '';
      position: absolute;
      left: 0;
      top: 50%;
      transform: translateY(-50%);
      width: 3px;
      height: 0;
      background: linear-gradient(180deg, #6366f1, #818cf8);
      border-radius: 0 4px 4px 0;
      transition: height 0.25s ease;
  }

  .sidebar-link:hover::before,
  .sidebar-link.active::before {
      height: 60%;
  }

  .sidebar-link:hover,
  .sidebar-link.active {
      background: linear-gradient(90deg, rgba(99, 102, 241, 0.08), transparent);
      color: #6366f1;
  }

  .dark .sidebar-link:hover,
  .dark .sidebar-link.active {
      background: linear-gradient(90deg, rgba(99, 102, 241, 0.18), transparent);
      color: #818cf8;
  }

  .stat-card {
      transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .stat-card:hover {
      transform: translateY(-4px);
      box-shadow: 0 20px 40px -12px rgba(99, 102, 241, 0.15);
  }

  .dark .stat-card:hover {
      box-shadow: 0 20px 40px -12px rgba(99, 102, 241, 0.3);
  }

  .notification-panel,
  .messenger-panel {
      max-width: calc(100vw - 1rem);
  }

  .table-container {
      overflow-x: auto;
      -webkit-overflow-scrolling: touch;
  }

  .table-container table {
      min-width: 820px;
  }

  @keyframes fadeInUp {
      from {
          opacity: 0;
          transform: translateY(16px);
      }

      to {
          opacity: 1;
          transform: translateY(0);
      }
  }

  @keyframes scaleIn {
      from {
          transform: scale(0.95);
          opacity: 0;
      }

      to {
          transform: scale(1);
          opacity: 1;
      }
  }

  .animate-fadeInUp {
      animation: fadeInUp 0.5s ease both;
  }

  .animate-scaleIn {
      animation: scaleIn 0.2s ease both;
  }

  .sidebar-overlay {
      display: none;
      position: fixed;
      inset: 0;
      background: rgba(0, 0, 0, 0.5);
      z-index: 40;
      backdrop-filter: blur(4px);
  }

  .sidebar-overlay.active {
      display: block;
  }

  @media (max-width: 1023px) {
      .sidebar-desktop {
          transform: translateX(-100%);
          position: fixed;
          z-index: 50;
      }

      .sidebar-desktop.open {
          transform: translateX(0);
      }
  }

  .tooltip-trigger {
      position: relative;
  }

  .tooltip-trigger .tooltip-text {
      visibility: hidden;
      opacity: 0;
      position: absolute;
      bottom: calc(100% + 8px);
      left: 50%;
      transform: translateX(-50%);
      background: #1e293b;
      color: #fff;
      padding: 4px 10px;
      border-radius: 6px;
      font-size: 11px;
      white-space: nowrap;
      transition: all 0.2s;
      z-index: 100;
      pointer-events: none;
  }

  .dark .tooltip-trigger .tooltip-text {
      background: #e2e8f0;
      color: #1e293b;
  }

  .tooltip-trigger:hover .tooltip-text {
      visibility: visible;
      opacity: 1;
  }

  .toast-container {
      position: fixed;
      top: 1rem;
      right: 1rem;
      z-index: 9999;
      display: flex;
      flex-direction: column;
      gap: 0.5rem;
      pointer-events: none;
  }

  .toast {
      pointer-events: auto;
      animation: scaleIn 0.3s ease;
  }