:root {
  /* Primary theme colors */
  --primary-color: #2c3e50;
  --secondary-color: #34495e;
  --success-color: #27ae60;
  --warning-color: #f39c12;
  --danger-color: #e74c3c;
  --info-color: #3498db;
  --light-color: #ecf0f1;
  --dark-color: #2c3e50;
  --white: #ffffff;
  --gray-100: #f8f9fa;
  --gray-200: #e9ecef;
  --gray-300: #dee2e6;
  --gray-400: #ced4da;
  --gray-500: #adb5bd;
  --gray-600: #6c757d;
  --gray-700: #495057;
  --gray-800: #343a40;
  --gray-900: #212529;
  
  /* Sidebar colors */
  --sidebar-bg: #0f5132;
  --sidebar-bg-hover: #0b3d25;
  --sidebar-accent: #198754;
  --sidebar-text: #e9f7ef;
  --sidebar-muted: #cfe8d9;
  
  /* Typography */
  --font-family-sans-serif: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-size-base: 1rem;
  --font-weight-normal: 400;
  --font-weight-bold: 700;
  
  /* Spacing */
  --spacer: 1rem;
  --border-radius: 0.375rem;
  --border-radius-lg: 0.5rem;
  --border-radius-sm: 0.25rem;
  
  /* Shadows */
  --box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  --box-shadow-lg: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  
  /* Transitions */
  --transition: all 0.15s ease-in-out;
  --transition-fast: all 0.1s ease-in-out;
}

/* Base styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family-sans-serif);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-normal);
  line-height: 1.5;
  color: var(--gray-900);
  background-color: var(--light-color);
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  margin-bottom: 0.5rem;
  font-weight: var(--font-weight-bold);
  line-height: 1.2;
  color: var(--dark-color);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
  margin-bottom: 1rem;
  color: var(--gray-700);
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

/* Container */
.container, .container-fluid {
  width: 100%;
  padding-right: 1rem;
  padding-left: 1rem;
  margin-right: auto;
  margin-left: auto;
  max-width: 100vw;
}

@media (min-width: 576px) {
  .container {
    max-width: 540px;
  }
}

@media (min-width: 768px) {
  .container {
    max-width: 720px;
  }
}

@media (min-width: 992px) {
  .container {
    max-width: 960px;
  }
}

@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
}

@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
}

/* Grid system */
.row {
  display: flex;
  flex-wrap: wrap;
  margin-right: -0.5rem;
  margin-left: -0.5rem;
}

.col {
  flex: 1 0 0%;
  padding-right: 0.5rem;
  padding-left: 0.5rem;
}

.col-auto {
  flex: 0 0 auto;
  width: auto;
}

/* Generate column classes for different breakpoints */
.col-1 { flex: 0 0 8.333333%; max-width: 8.333333%; }
.col-2 { flex: 0 0 16.666667%; max-width: 16.666667%; }
.col-3 { flex: 0 0 25%; max-width: 25%; }
.col-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
.col-5 { flex: 0 0 41.666667%; max-width: 41.666667%; }
.col-6 { flex: 0 0 50%; max-width: 50%; }
.col-7 { flex: 0 0 58.333333%; max-width: 58.333333%; }
.col-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
.col-9 { flex: 0 0 75%; max-width: 75%; }
.col-10 { flex: 0 0 83.333333%; max-width: 83.333333%; }
.col-11 { flex: 0 0 91.666667%; max-width: 91.666667%; }
.col-12 { flex: 0 0 100%; max-width: 100%; }

/* Responsive grid */
@media (min-width: 576px) {
  .col-sm-1 { flex: 0 0 8.333333%; max-width: 8.333333%; }
  .col-sm-2 { flex: 0 0 16.666667%; max-width: 16.666667%; }
  .col-sm-3 { flex: 0 0 25%; max-width: 25%; }
  .col-sm-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
  .col-sm-5 { flex: 0 0 41.666667%; max-width: 41.666667%; }
  .col-sm-6 { flex: 0 0 50%; max-width: 50%; }
  .col-sm-7 { flex: 0 0 58.333333%; max-width: 58.333333%; }
  .col-sm-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
  .col-sm-9 { flex: 0 0 75%; max-width: 75%; }
  .col-sm-10 { flex: 0 0 83.333333%; max-width: 83.333333%; }
  .col-sm-11 { flex: 0 0 91.666667%; max-width: 91.666667%; }
  .col-sm-12 { flex: 0 0 100%; max-width: 100%; }
}

@media (min-width: 768px) {
  .col-md-1 { flex: 0 0 8.333333%; max-width: 8.333333%; }
  .col-md-2 { flex: 0 0 16.666667%; max-width: 16.666667%; }
  .col-md-3 { flex: 0 0 25%; max-width: 25%; }
  .col-md-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
  .col-md-5 { flex: 0 0 41.666667%; max-width: 41.666667%; }
  .col-md-6 { flex: 0 0 50%; max-width: 50%; }
  .col-md-7 { flex: 0 0 58.333333%; max-width: 58.333333%; }
  .col-md-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
  .col-md-9 { flex: 0 0 75%; max-width: 75%; }
  .col-md-10 { flex: 0 0 83.333333%; max-width: 83.333333%; }
  .col-md-11 { flex: 0 0 91.666667%; max-width: 91.666667%; }
  .col-md-12 { flex: 0 0 100%; max-width: 100%; }
}

@media (min-width: 992px) {
  .col-lg-1 { flex: 0 0 8.333333%; max-width: 8.333333%; }
  .col-lg-2 { flex: 0 0 16.666667%; max-width: 16.666667%; }
  .col-lg-3 { flex: 0 0 25%; max-width: 25%; }
  .col-lg-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
  .col-lg-5 { flex: 0 0 41.666667%; max-width: 41.666667%; }
  .col-lg-6 { flex: 0 0 50%; max-width: 50%; }
  .col-lg-7 { flex: 0 0 58.333333%; max-width: 58.333333%; }
  .col-lg-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
  .col-lg-9 { flex: 0 0 75%; max-width: 75%; }
  .col-lg-10 { flex: 0 0 83.333333%; max-width: 83.333333%; }
  .col-lg-11 { flex: 0 0 91.666667%; max-width: 91.666667%; }
  .col-lg-12 { flex: 0 0 100%; max-width: 100%; }
}

@media (min-width: 1200px) {
  .col-xl-1 { flex: 0 0 8.333333%; max-width: 8.333333%; }
  .col-xl-2 { flex: 0 0 16.666667%; max-width: 16.666667%; }
  .col-xl-3 { flex: 0 0 25%; max-width: 25%; }
  .col-xl-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
  .col-xl-5 { flex: 0 0 41.666667%; max-width: 41.666667%; }
  .col-xl-6 { flex: 0 0 50%; max-width: 50%; }
  .col-xl-7 { flex: 0 0 58.333333%; max-width: 58.333333%; }
  .col-xl-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
  .col-xl-9 { flex: 0 0 75%; max-width: 75%; }
  .col-xl-10 { flex: 0 0 83.333333%; max-width: 83.333333%; }
  .col-xl-11 { flex: 0 0 91.666667%; max-width: 91.666667%; }
  .col-xl-12 { flex: 0 0 100%; max-width: 100%; }
}

/* Buttons */
.btn {
  display: inline-block;
  font-weight: var(--font-weight-bold);
  line-height: 1.5;
  color: var(--white);
  text-align: center;
  text-decoration: none;
  vertical-align: middle;
  cursor: pointer;
  user-select: none;
  background-color: transparent;
  border: 1px solid transparent;
  padding: 0.375rem 0.75rem;
  font-size: 1rem;
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--box-shadow-lg);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)) !important;
  border: none !important;
  color: var(--white) !important;
}

.btn-success {
  background-color: var(--success-color) !important;
  border-color: var(--success-color) !important;
  color: var(--white) !important;
}

.btn-danger {
  background-color: var(--danger-color) !important;
  border-color: var(--danger-color) !important;
  color: var(--white) !important;
}

.btn-warning {
  background-color: var(--warning-color) !important;
  border-color: var(--warning-color) !important;
  color: var(--white) !important;
}

.btn-info {
  background-color: var(--info-color) !important;
  border-color: var(--info-color) !important;
  color: var(--white) !important;
}

.btn-block {
  display: block;
  width: 100%;
}

/* Forms */
.form-control {
  display: block;
  width: 100%;
  padding: 0.375rem 0.75rem;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--gray-700);
  background-color: var(--white);
  background-clip: padding-box;
  border: 2px solid var(--gray-300);
  appearance: none;
  border-radius: var(--border-radius);
  transition: var(--transition);
  max-width: 100%;
}

.form-control:focus {
  color: var(--gray-700);
  background-color: var(--white);
  border-color: var(--primary-color);
  outline: 0;
  box-shadow: 0 0 0 0.2rem rgba(44, 62, 80, 0.25);
}

.form-label {
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--gray-700);
}

.form-floating {
  position: relative;
  margin-bottom: 1.5rem;
}

.form-floating > .form-control {
  height: calc(3.5rem + 2px);
  line-height: 1.25;
}

.form-floating > label {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  padding: 1rem 0.75rem;
  pointer-events: none;
  border: 1px solid transparent;
  transform-origin: 0 0;
  transition: opacity 0.1s ease-in-out, transform 0.1s ease-in-out;
}

.form-floating > .form-control:focus,
.form-floating > .form-control:not(:placeholder-shown) {
  padding-top: 1.625rem;
  padding-bottom: 0.625rem;
}

.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label {
  opacity: 0.65;
  transform: scale(0.85) translateY(-0.5rem) translateX(0.15rem);
}

/* Cards */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  word-wrap: break-word;
  background-color: var(--white);
  background-clip: border-box;
  border: 1px solid var(--gray-200);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--box-shadow);
}

.card-header {
  padding: 1rem 1.5rem;
  margin-bottom: 0;
  background-color: var(--primary-color);
  color: var(--white);
  border-bottom: 1px solid var(--gray-200);
  border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
  font-weight: 600;
}

.card-body {
  flex: 1 1 auto;
  padding: 1.5rem;
}

/* Alerts */
.alert {
  position: relative;
  padding: 1rem 1.5rem;
  margin-bottom: 1rem;
  border: 1px solid transparent;
  border-radius: var(--border-radius);
}

.alert-success {
  color: var(--success-color);
  background-color: rgba(39, 174, 96, 0.1);
  border-color: rgba(39, 174, 96, 0.2);
}

.alert-danger {
  color: var(--danger-color);
  background-color: rgba(220, 53, 69, 0.1);
  border-color: rgba(220, 53, 69, 0.2);
}

.alert-warning {
  color: var(--warning-color);
  background-color: rgba(243, 156, 18, 0.1);
  border-color: rgba(243, 156, 18, 0.2);
}

.alert-info {
  color: var(--info-color);
  background-color: rgba(52, 152, 219, 0.1);
  border-color: rgba(52, 152, 219, 0.2);
}

/* Tables */
.table {
  width: 100%;
  margin-bottom: 1rem;
  color: var(--gray-700);
  vertical-align: top;
  border-color: var(--gray-200);
  background-color: var(--white);
  table-layout: fixed;
}

.table th,
.table td {
  padding: 0.75rem;
  vertical-align: top;
  border-color: var(--gray-200);
  word-wrap: break-word;
  overflow-wrap: anywhere;
  white-space: normal;
}

.table thead th {
  vertical-align: bottom;
  border-bottom: 2px solid var(--gray-200);
  background-color: var(--primary-color);
  color: var(--white);
  font-weight: 600;
}

.table tbody + tbody {
  border-top: 2px solid var(--gray-200);
}

/* Badges */
.badge {
  display: inline-block;
  padding: 0.35em 0.65em;
  font-size: 0.75em;
  font-weight: 700;
  line-height: 1;
  color: var(--white);
  text-align: center;
  white-space: nowrap;
  vertical-align: baseline;
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.badge-success {
  background-color: var(--success-color);
}

.badge-danger {
  background-color: var(--danger-color);
}

.badge-warning {
  background-color: var(--warning-color);
}

.badge-info {
  background-color: var(--info-color);
}

.badge-primary {
  background-color: var(--primary-color);
}

/* Sidebar */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 260px;
  background: var(--sidebar-bg);
  color: var(--sidebar-text);
  overflow-y: auto;
  transition: width 0.3s ease, left 0.3s ease;
  z-index: 1030;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

.sidebar.collapsed {
  width: 80px;
}

.sidebar .brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem;
  font-weight: 600;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar .brand i {
  color: var(--white);
  font-size: 1.5rem;
}

.sidebar .profile {
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 70px;
}

.sidebar .avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--sidebar-bg-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.25rem;
}

.sidebar .meta {
  line-height: 1.1;
}

.sidebar .meta .name {
  font-weight: 600;
  font-size: 1.1rem;
}

.sidebar .meta .sub {
  color: var(--sidebar-muted);
  font-size: 0.85rem;
}

.sidebar .menu {
  padding: 0.5rem;
}

.sidebar .menu a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--sidebar-text);
  text-decoration: none;
  padding: 0.75rem 0.75rem;
  border-radius: 0.5rem;
  transition: var(--transition-fast);
  margin-bottom: 0.25rem;
  min-height: 44px; /* Touch-friendly size */
}

.sidebar .menu a:hover {
  background: var(--sidebar-bg-hover);
}

.sidebar .menu a.active {
  background: var(--sidebar-accent);
  color: var(--white);
}

.sidebar .collapse-toggle {
  position: absolute;
  right: -12px;
  top: 12px;
  background: var(--sidebar-accent);
  color: var(--white);
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  transition: var(--transition);
  min-height: 28px; /* Touch-friendly size */
}

.sidebar .collapse-toggle:hover {
  transform: scale(1.1);
}

/* Main content */
main.container-fluid {
  margin-left: 260px;
  width: calc(100vw - 260px);
  overflow-x: hidden;
  transition: margin-left 0.2s ease, width 0.2s ease;
  padding: 1.5rem;
  min-height: 100vh;
}

.sidebar.collapsed + main.container-fluid {
  margin-left: 80px;
  width: calc(100vw - 80px);
}

/* Footer */
.site-footer {
  margin-left: 260px;
  width: calc(100vw - 260px);
  overflow-x: hidden;
  transition: margin-left 0.2s ease, width 0.2s ease;
  padding: 1rem;
  background-color: var(--white);
  border-top: 1px solid var(--gray-200);
  text-align: center;
  color: var(--gray-600);
  font-size: 0.9rem;
}

.sidebar.collapsed ~ .site-footer {
  margin-left: 80px;
  width: calc(100vw - 80px);
}

/* Mobile sidebar toggle */
#mobileSidebarBtn {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1040;
  display: none;
  background: var(--primary-color);
  color: var(--white);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  transition: var(--transition);
}

#mobileSidebarBtn:hover {
  transform: scale(1.1);
  background: var(--secondary-color);
}

/* Prevent body scroll when sidebar is open on mobile */
body.sidebar-open {
  overflow: hidden;
}

/* Overlay for mobile sidebar */
.sidebar-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1029;
  backdrop-filter: blur(2px);
}

@media (max-width: 992px) {
  .sidebar-overlay.open {
    display: block;
  }
}

/* Improved mobile sidebar positioning */
@media (max-width: 992px) {
  .sidebar {
    box-shadow: 5px 0 15px rgba(0, 0, 0, 0.2);
  }
  
  .sidebar.open {
    box-shadow: 5px 0 25px rgba(0, 0, 0, 0.3);
  }
}

/* Responsive design */
@media (max-width: 992px) {
  .sidebar {
    left: -260px;
    transition: left 0.3s ease;
  }
  
  .sidebar.open {
    left: 0;
  }
  
  main.container-fluid {
    margin-left: 0;
    width: 100vw;
  }
  
  .site-footer {
    margin-left: 0;
    width: 100vw;
  }
  
  #mobileSidebarBtn {
    display: inline-flex;
  }
  
  .sidebar.collapsed + main.container-fluid,
  .sidebar.collapsed ~ .site-footer {
    margin-left: 0;
    width: 100vw;
  }
}

/* Hide link text when collapsed */
.sidebar.collapsed .link-text {
  display: none;
}

.sidebar.collapsed .menu a {
  justify-content: center;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
  body {
    font-size: 0.9rem;
  }
  
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.5rem; }
  h4 { font-size: 1.25rem; }
  h5 { font-size: 1.1rem; }
  h6 { font-size: 1rem; }
  
  .container, .container-fluid {
    padding-right: 0.75rem;
    padding-left: 0.75rem;
  }
  
  main.container-fluid {
    padding: 1rem 0.75rem;
  }
  
  .card-body {
    padding: 1rem;
  }
  
  .table th,
  .table td {
    padding: 0.5rem;
  }
  
  .form-control {
    padding: 0.25rem 0.5rem;
    font-size: 0.9rem;
  }
  
  .btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.9rem;
  }
  
  .sidebar .meta .name {
    font-size: 1rem;
  }
  
  .sidebar .meta .sub {
    font-size: 0.75rem;
  }
}

@media (max-width: 576px) {
  .container, .container-fluid {
    padding-right: 0.5rem;
    padding-left: 0.5rem;
  }
  
  main.container-fluid {
    padding: 0.75rem 0.5rem;
  }
  
  .card-body {
    padding: 0.75rem;
  }
  
  .form-floating {
    margin-bottom: 1rem;
  }
  
  .form-floating > .form-control {
    height: calc(3rem + 2px);
  }
  
  .form-floating > label {
    padding: 0.75rem 0.5rem;
  }
  
  .form-floating > .form-control:focus,
  .form-floating > .form-control:not(:placeholder-shown) {
    padding-top: 1.25rem;
    padding-bottom: 0.25rem;
  }
  
  .form-floating > .form-control:focus ~ label,
  .form-floating > .form-control:not(:placeholder-shown) ~ label {
    transform: scale(0.85) translateY(-0.4rem) translateX(0.15rem);
  }
  
  /* Adjust sidebar for very small screens */
  .sidebar {
    width: 240px;
  }
  
  .sidebar.collapsed {
    width: 70px;
  }
  
  main.container-fluid {
    margin-left: 0;
  }
  
  .sidebar.collapsed + main.container-fluid {
    margin-left: 0;
  }
}

/* Utility classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-primary { color: var(--primary-color); }
.text-success { color: var(--success-color); }
.text-danger { color: var(--danger-color); }
.text-warning { color: var(--warning-color); }
.text-info { color: var(--info-color); }
.text-muted { color: var(--gray-600); }

.bg-white { background-color: var(--white); }
.bg-light { background-color: var(--light-color); }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 3rem; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 3rem; }

.my-1 { margin-top: 0.25rem; margin-bottom: 0.25rem; }
.my-2 { margin-top: 0.5rem; margin-bottom: 0.5rem; }
.my-3 { margin-top: 1rem; margin-bottom: 1rem; }
.my-4 { margin-top: 1.5rem; margin-bottom: 1.5rem; }
.my-5 { margin-top: 3rem; margin-bottom: 3rem; }

.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 1rem; }
.p-4 { padding: 1.5rem; }
.p-5 { padding: 3rem; }

.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 1rem; padding-bottom: 1rem; }
.py-4 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-5 { padding-top: 3rem; padding-bottom: 3rem; }

.d-flex { display: flex; }
.d-block { display: block; }
.d-inline { display: inline; }
.d-none { display: none; }

.justify-content-center { justify-content: center; }
.justify-content-between { justify-content: space-between; }
.justify-content-end { justify-content: flex-end; }

.align-items-center { align-items: center; }
.align-items-start { align-items: flex-start; }
.align-items-end { align-items: flex-end; }

.flex-column { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }

.w-100 { width: 100%; }
.h-100 { height: 100%; }

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--secondary-color);
}

/* Loading animation */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: var(--white);
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Print styles */
@media print {
  .sidebar,
  #mobileSidebarBtn,
  .site-footer {
    display: none;
  }
  
  main.container-fluid {
    margin-left: 0;
    width: 100%;
    padding: 0;
  }
  
  .card {
    box-shadow: none;
    border: 1px solid var(--gray-300);
  }
  
  .btn {
    display: none;
  }
  
  body {
    background-color: var(--white);
  }
}