:root {
  --dms-card-radius: 14px;
}

/* Base styles */
.card {
  border-radius: var(--dms-card-radius);
}

code {
  padding: 0.1rem 0.35rem;
  border-radius: 0.35rem;
  background: rgba(13,110,253,0.08);
}

.table thead th {
  white-space: nowrap;
}

/* Sidebar sticky positioning */
.dms-sidebar-card {
  position: sticky;
  top: 84px;
}

/* Mobile sidebar - ensure clickability */
.offcanvas-body a.list-group-item-action,
.offcanvas-body button[data-bs-toggle="collapse"] {
  cursor: pointer;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
}

/* Reduce animations on mobile for better performance */
@media (max-width: 768px) {
  .offcanvas {
    transition: transform 0.2s ease-out;
  }
  
  .collapse {
    transition: none;
  }
  
  .fade {
    transition: opacity 0.1s linear;
  }
  
  /* Disable smooth scrolling on mobile */
  html {
    scroll-behavior: auto;
  }
  
  /* Reduce card shadows on mobile */
  .card {
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  }
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
