
body {
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  background-color: #f8f7f2;
}

/* Sidebar Styles */
.sidebar {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 100;
  padding: 0;
  box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.05), 0 2px 10px 0 rgba(0, 0, 0, 0.05);
  height: 100vh;
}

.sidebar .nav-link {
  font-weight: 500;
  padding: 0.75rem 1rem;
  border-radius: 0.25rem;
  margin: 0.2rem 0.5rem;
  transition: all 0.2s ease-in-out;
}

.sidebar .nav-link:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.sidebar .nav-link.active {
  background-color: rgba(255, 255, 255, 0.2);
}

/* Mobile sidebar */
@media (max-width: 767.98px) {
  .sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    width: 70%;
    max-width: 250px;
    z-index: 1030;
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
  }
  
  .sidebar.show {
    transform: translateX(0);
  }
}

/* Main content adjustments */
.col-md-9.ms-sm-auto.col-lg-10 {
  padding-top: 1rem;
}

/* Container adjustments */
.container-fluid {
  padding-left: 0;
  padding-right: 0;
}

/* Existing styles */
.container { max-width: 1024px; }

.navbar-brand { font-weight: 700; letter-spacing: 0.2px; }

.table-responsive { margin-top: 8px; }
:focus-visible {
  outline: 3px solid rgba(13, 110, 253, 0.55);
  outline-offset: 2px;
}
.skip-link {
  position: absolute;
  left: 12px;
  top: 8px;
  padding: 8px 12px;
  border-radius: 10px;
  background: #ffffff;
  color: #0d6efd;
  border: 1px solid rgba(13, 110, 253, 0.25);
  text-decoration: none;
  transform: translateY(-140%);
  transition: transform 120ms ease;
  z-index: 1030;
}
.skip-link:focus {
  transform: translateY(0);
}
.btn { border-radius: 12px; }
.card { 
  border-radius: 16px; 
  background-color: #ffffff;
  border-color: #bbdefb;
}

.card-hover {
  transition: transform 120ms ease, box-shadow 120ms ease;
}
.card-hover:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.08);
}

/* Scrollbar Styling */
/* For WebKit browsers (Chrome, Safari) */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* For Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: #888 #f1f1f1;
}

/* Ensure all modal content has scrollbars when needed */
.modal-body {
  max-height: 70vh;
  overflow-y: auto;
  padding: 1.25rem;
}

/* Improve modal styling */
.modal-dialog {
  max-width: 95%;
  margin: 1.75rem auto;
}

@media (min-width: 576px) {
  .modal-dialog {
    max-width: 500px;
  }
  
  .modal-dialog.modal-lg {
    max-width: 800px;
  }
}

/* Ensure content areas have scrollbars when needed */
.card-body {
  overflow: auto;
}

/* Ensure main content area has scrollbars */
main {
  overflow: auto;
  height: 100%;
}

/* Ensure tables have horizontal scrollbars when needed */
.table-responsive {
  overflow-x: auto;
  max-height: 70vh;
  overflow-y: auto;
}

/* Style for dropdown menus with scrollbars */
.dropdown-menu {
  max-height: 300px;
  overflow-y: auto;
}

/* Style for select dropdowns */
select.form-select {
  overflow-y: auto;
}

/* Style for long form content */
.form-control {
  overflow: auto;
}

/* Ensure list groups have scrollbars when needed */
.list-group {
  max-height: 70vh;
  overflow-y: auto;
}
