* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: #0f1117;
  color: #e4e6ed;
}

#root {
  min-height: 100vh;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: #2d3040;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: #3d4050;
}

/* Input/select focus */
input:focus, select:focus, textarea:focus {
  border-color: #6366f1 !important;
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.15);
}

/* Button transitions */
button {
  transition: all 0.15s ease;
}
button:hover {
  opacity: 0.9;
}
button:active {
  transform: scale(0.98);
}

/* Selection */
::selection {
  background: rgba(99, 102, 241, 0.3);
  color: #fff;
}

/* Table row hover animation */
tr {
  transition: background 0.15s ease;
}

/* =========================================
   Mobile UI & Layout Enhancements 
   ========================================= */

/* Header Mobile Adjustments */
.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  flex-wrap: wrap;
  gap: 12px;
}
.header-controls {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 13px;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .header-container {
    padding: 12px 16px;
    flex-direction: column;
    align-items: flex-start;
  }
  .header-controls {
    width: 100%;
    justify-content: space-between;
  }
}

/* Navigation Tabs Mobile Adjustments */
.nav-container {
  display: flex;
  justify-content: space-between; 
  align-items: center; 
  padding: 12px 24px 0; 
  flex-wrap: wrap; 
  gap: 12px;
}
.nav-tabs {
  display: flex;
  gap: 6px;
  flex: 1;
  overflow-x: auto;
  white-space: nowrap;
  padding-bottom: 6px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.nav-tabs::-webkit-scrollbar {
  display: none;
}
.nav-actions {
  display: flex;
  gap: 8px;
  flex-wrap: nowrap;
  margin-bottom: 6px;
}

@media (max-width: 768px) {
  .nav-container {
    padding: 12px 16px 0;
    flex-direction: column;
    align-items: stretch;
  }
  .nav-tabs {
    width: 100%;
  }
  .nav-actions {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 6px;
    scrollbar-width: none;
  }
  .nav-actions::-webkit-scrollbar {
    display: none;
  }
  .nav-actions button {
    flex: 1;
    text-align: center;
    white-space: nowrap;
  }
}

