@import url("/assets/sidebar_optimized-6fddf584.css");
@import url("/assets/mobile-8c8097e1.css"); 

/* Prevent horizontal scroll on all devices */
html, body {
  overflow-x: hidden;
  max-width: 100vw;
}

/* Ensure proper box-sizing */
*, *::before, *::after {
  box-sizing: border-box;
}

/* Main content container */
.main-content {
  margin-left: 16rem;
  max-width: 100%;
  transition: margin-left 0.3s ease;
  overflow-x: hidden;
}

@media (max-width: 1023px) {
  .main-content {
    margin-left: 0 !important;
    width: 100% !important;
  }
}

/* ===== ENHANCED SEARCH MODAL STYLES (MOBILE-OPTIMIZED) ===== */

.search-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding-top: 15vh;
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.search-modal.show {
  display: flex;
  opacity: 1;
  transform: scale(1);
}

.search-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

.search-modal-container {
  position: relative;
  width: 100%;
  max-width: 650px;
  margin: 0 1rem;
  background: white;
  border-radius: 12px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  border: 1px solid #e5e7eb;
}

/* Mobile search modal adjustments */
@media (max-width: 767px) {
  .search-modal {
    padding-top: 0 !important;
    align-items: stretch !important;
  }
  
  .search-modal-container {
    width: 100vw !important;
    height: 100vh !important;
    max-width: none !important;
    margin: 0 !important;
    border-radius: 0 !important;
    display: flex !important;
    flex-direction: column !important;
  }
}

.search-modal-input-container {
  position: relative;
  display: flex;
  align-items: center;
  border-bottom: 1px solid #e5e7eb;
}

.search-modal-input {
  width: 100%;
  border: none;
  padding: 18px 52px 18px 52px;
  font-size: 18px;
  background: transparent;
  outline: none;
  color: #1f2937;
  font-weight: 400;
}

/* Mobile input adjustments */
@media (max-width: 767px) {
  .search-modal-input-container {
    padding: 1rem;
    border-bottom: 1px solid #e5e7eb;
    flex-shrink: 0;
  }
  
  .search-modal-input {
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 1rem 3.5rem;
    font-size: 16px; /* Prevent zoom on iOS */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }
  
  .search-modal-input:focus {
    border-color: #009245;
    box-shadow: 0 0 0 3px rgba(0, 146, 69, 0.1);
  }
}

.search-modal-input::placeholder {
  color: #9ca3af;
}

.search-modal-search-icon {
  position: absolute;
  left: 18px;
  color: #9ca3af;
  pointer-events: none;
}

/* Mobile icon positioning */
@media (max-width: 767px) {
  .search-modal-search-icon {
    left: 2rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
  }
}

.search-modal-shortcut-hint {
  position: absolute;
  right: 18px;
  pointer-events: none;
}

/* Mobile hint adjustments */
@media (max-width: 767px) {
  .search-modal-shortcut-hint {
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    background: #f3f4f6;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 12px;
    color: #6b7280;
    font-weight: 600;
  }
}

.search-modal-results {
  max-height: 420px;
  overflow-y: auto;
  display: none;
}

.search-modal-results.show {
  display: block;
}

/* Mobile results adjustments */
@media (max-width: 767px) {
  .search-modal-results {
    flex: 1;
    max-height: none;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* Enhanced Result Items */
.search-modal-result {
  display: flex;
  align-items: flex-start;
  padding: 14px 18px;
  cursor: pointer;
  transition: background-color 0.15s ease;
  border-bottom: 1px solid #f3f4f6;
  min-height: 70px;
}

.search-modal-result:last-child {
  border-bottom: none;
}

.search-modal-result:hover,
.search-modal-result.selected {
  background-color: #f8fafc;
}

/* Mobile result adjustments */
@media (max-width: 767px) {
  .search-modal-result {
    padding: 1.25rem;
    min-height: auto;
  }
}

.result-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f3f4f6;
  border-radius: 10px;
  margin-right: 14px;
  color: #6b7280;
  margin-top: 2px;
}

/* Mobile icon adjustments */
@media (max-width: 767px) {
  .result-icon {
    width: 48px;
    height: 48px;
    margin-right: 1rem;
    border-radius: 12px;
  }
}

.result-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.result-type {
  display: inline-block;
  background: var(--social-green, #009245);
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  width: fit-content;
  margin-bottom: 4px;
}

/* Mobile type adjustments */
@media (max-width: 767px) {
  .result-type {
    font-size: 10px;
    padding: 4px 8px;
    margin-bottom: 0.5rem;
  }
}

.result-title {
  font-weight: 600;
  color: #1f2937;
  font-size: 15px;
  margin-bottom: 4px;
  line-height: 1.3;
  word-break: break-word;
}

/* Mobile title adjustments */
@media (max-width: 767px) {
  .result-title {
    font-size: 16px;
    margin-bottom: 0.25rem;
    line-height: 1.4;
  }
}

.result-subtitle {
  font-size: 13px;
  color: #6b7280;
  line-height: 1.4;
  word-break: break-word;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Mobile subtitle adjustments */
@media (max-width: 767px) {
  .result-subtitle {
    font-size: 14px;
    line-height: 1.4;
  }
}

/* Enhanced highlighting for search terms */
.result-title mark,
.result-subtitle mark {
  background: rgba(251, 176, 64, 0.4);
  color: #92400e;
  padding: 1px 2px;
  border-radius: 3px;
  font-weight: 600;
}

/* Loading, Empty, and Error States */
.search-modal-loading,
.search-modal-empty,
.search-modal-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  text-align: center;
}

/* Mobile state adjustments */
@media (max-width: 767px) {
  .search-modal-loading,
  .search-modal-empty,
  .search-modal-error {
    padding: 3rem 2rem;
    min-height: 200px;
  }
}

.spinner {
  margin-bottom: 12px;
  color: var(--social-green, #009245);
}

/* Mobile spinner adjustments */
@media (max-width: 767px) {
  .spinner {
    margin-bottom: 1rem;
  }
}

.empty-icon {
  margin-bottom: 16px;
  opacity: 0.6;
}

/* Mobile empty icon adjustments */
@media (max-width: 767px) {
  .empty-icon {
    margin-bottom: 1.5rem;
  }
}

.empty-title {
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 6px;
  font-size: 16px;
}

/* Mobile empty title adjustments */
@media (max-width: 767px) {
  .empty-title {
    font-size: 18px;
    margin-bottom: 0.5rem;
  }
}

.empty-subtitle {
  font-size: 14px;
  color: #6b7280;
  line-height: 1.5;
}

/* Mobile empty subtitle adjustments */
@media (max-width: 767px) {
  .empty-subtitle {
    font-size: 14px;
    line-height: 1.5;
    max-width: 280px;
  }
}

/* Footer */
.search-modal-footer {
  padding: 14px 18px;
  background: #f9fafb;
  border-top: 1px solid #e5e7eb;
}

/* Mobile footer adjustments */
@media (max-width: 767px) {
  .search-modal-footer {
    flex-shrink: 0;
    padding: 1rem;
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
  }
}

.search-modal-footer-hints {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

/* Mobile hints adjustments */
@media (max-width: 767px) {
  .search-modal-footer-hints {
    gap: 1rem;
    flex-wrap: wrap;
  }
}

.search-modal-hint {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #6b7280;
  font-weight: 500;
}

/* Mobile hint adjustments */
@media (max-width: 767px) {
  .search-modal-hint {
    font-size: 12px;
    gap: 0.25rem;
  }
}

kbd {
  display: inline-block;
  padding: 3px 7px;
  font-size: 11px;
  font-weight: 600;
  color: #374151;
  background: white;
  border: 1px solid #d1d5db;
  border-radius: 5px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Consolas, "Liberation Mono", Menlo, monospace;
}

/* Mobile kbd adjustments */
@media (max-width: 767px) {
  kbd {
    padding: 2px 6px;
    font-size: 10px;
    border-radius: 4px;
  }
}

/* ===== GENERAL LAYOUT IMPROVEMENTS ===== */

/* Reduce padding in main content area */
main.flex-grow > div {
  padding: 1rem !important;
  max-width: 100%;
}

/* Mobile main content adjustments */
@media (max-width: 767px) {
  main.flex-grow > div {
    padding: 1rem !important;
  }
}

/* Add container for content with better max-width */
.content-container {
  max-width: 1600px;
  margin: 0 auto;
  width: 100%;
}

/* Mobile content container adjustments */
@media (max-width: 767px) {
  .content-container {
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin: 0 !important;
  }
}

/* Make tables use full width */
table {
  width: 100%;
}

/* Hide tables on mobile */
@media (max-width: 767px) {
  table,
  thead,
  tbody,
  th,
  td,
  tr {
    display: none !important;
  }
}

/* Optimize card layouts */
.card {
  margin-bottom: 1rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border-radius: 0.5rem;
  background-color: white;
}

/* Mobile card adjustments */
@media (max-width: 767px) {
  .card,
  .bg-white {
    margin-bottom: 1rem !important;
    border-radius: 12px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
    border: 1px solid #e2e8f0 !important;
    overflow: hidden !important;
  }
}

/* Dashboard stats cards optimization */
.stats-card {
  padding: 1rem;
}

/* Mobile stats card adjustments */
@media (max-width: 767px) {
  .stats-card,
  .stat-card {
    padding: 1.25rem !important;
    text-align: center !important;
    position: relative !important;
    background: white !important;
    border-radius: 12px !important;
  }
  
  .stats-card::before,
  .stat-card::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 4px !important;
    background: linear-gradient(90deg, #009245, #FBB040) !important;
    border-radius: 12px 12px 0 0 !important;
  }
}

/* Make cards in grid layouts fill available space */
.grid-cols-1 > div,
.grid-cols-2 > div,
.grid-cols-3 > div,
.grid-cols-4 > div {
  width: 100%;
}

/* Mobile grid adjustments */
@media (max-width: 767px) {
  .grid-cols-1,
  .grid-cols-2,
  .grid-cols-3,
  .grid-cols-4 {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }
}

/* Optimize form layouts */
form > div {
  margin-bottom: 0.75rem;
}

/* For forms with field labels beside inputs */
.field-row {
  display: flex;
  align-items: center;
  margin-bottom: 0.5rem;
}

.field-row label {
  width: 30%;
  min-width: 120px;
}

.field-row input,
.field-row select,
.field-row textarea {
  flex: 1;
}

/* Mobile form adjustments */
@media (max-width: 767px) {
  .field-row,
  .flex.items-center {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.5rem !important;
  }
  
  .field-row label {
    width: 100% !important;
    margin-bottom: 0.5rem !important;
  }
  
  .field-row input,
  .field-row select,
  .field-row textarea {
    width: 100% !important;
    flex: none !important;
  }
}

/* Reduce padding in cards and sections */
.p-4 {
  padding: 0.75rem !important;
}

.py-4 {
  padding-top: 0.75rem !important;
  padding-bottom: 0.75rem !important;
}

.px-4 {
  padding-left: 0.75rem !important;
  padding-right: 0.75rem !important;
}

/* Mobile padding adjustments */
@media (max-width: 767px) {
  .p-4, .p-6 {
    padding: 1rem !important;
  }
  
  .px-4, .px-6 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  
  .py-4, .py-6 {
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
  }
}

/* Make sidebar slightly narrower but with breakpoint */
@media (min-width: 1400px) {
  #sidebar {
    width: 16rem;
  }
  
  .main-content {
    margin-left: 16rem;
  }
}

@media (min-width: 1024px) and (max-width: 1399px) {
  #sidebar {
    width: 14rem;
  }
  
  .main-content {
    margin-left: 14rem;
  }
}

/* Optimize collapsed sidebar */
#sidebar.collapsed {
  width: 4rem !important;
}

.main-content.sidebar-collapsed {
  margin-left: 4rem !important;
}

/* ===== MOBILE BUTTON IMPROVEMENTS ===== */
@media (max-width: 767px) {
  .btn,
  button,
  .button,
  input[type="submit"],
  a[role="button"] {
    min-height: 48px !important;
    padding: 0.75rem 1.5rem !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.5rem !important;
    transition: all 0.2s ease !important;
    text-decoration: none !important;
    cursor: pointer !important;
    border: 2px solid transparent !important;
    box-sizing: border-box !important;
  }
  
  .btn-primary,
  .bg-blue-600,
  .bg-green-600 {
    background: #009245 !important;
    color: white !important;
    border-color: #009245 !important;
  }
  
  .btn-primary:hover,
  .bg-blue-600:hover,
  .bg-green-600:hover {
    background: #00793A !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(0, 146, 69, 0.3) !important;
  }
}

/* ===== MOBILE FORM IMPROVEMENTS ===== */
@media (max-width: 767px) {
  input[type="text"],
  input[type="email"],
  input[type="password"],
  input[type="number"],
  input[type="tel"],
  input[type="url"],
  input[type="search"],
  textarea,
  select {
    width: 100% !important;
    min-height: 48px !important;
    padding: 0.75rem !important;
    border: 2px solid #d1d5db !important;
    border-radius: 8px !important;
    font-size: 16px !important;
    background: white !important;
    transition: all 0.2s ease !important;
    box-sizing: border-box !important;
  }
  
  input:focus,
  textarea:focus,
  select:focus {
    outline: none !important;
    border-color: #009245 !important;
    box-shadow: 0 0 0 3px rgba(0, 146, 69, 0.1) !important;
  }
  
  label {
    font-weight: 600 !important;
    color: #374151 !important;
    margin-bottom: 0.5rem !important;
    display: block !important;
    font-size: 1rem !important;
  }
}

/* ===== LOADING AND ANIMATION FIXES ===== */

.page-loading::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(to right, #009245, #FBB040);
  animation: loading-bar 2s ease-in-out infinite;
  z-index: 9999;
}

@keyframes loading-bar {
  0% {
    width: 0%;
    left: 0;
  }
  50% {
    width: 50%;
    left: 25%;
  }
  100% {
    width: 0%;
    left: 100%;
  }
}

/* Smooth scrolling for results */
.search-modal-results {
  scroll-behavior: smooth;
}

/* Custom scrollbar for results */
.search-modal-results::-webkit-scrollbar {
  width: 6px;
}

.search-modal-results::-webkit-scrollbar-track {
  background: #f1f5f9;
}

.search-modal-results::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px;
}

.search-modal-results::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Animation for results appearing */
.search-modal-results {
  animation: slideIn 0.2s ease-out;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Loading spinner animation */
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.animate-spin {
  animation: spin 1s linear infinite;
}

/* Ensure consistent container widths across the application */
.app-container {
  max-width: 80rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 640px) {
  .app-container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .app-container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

/* Alternative: Override max-w utilities to be consistent */
.max-w-container {
  max-width: 80rem !important;
}

/* Fix for any existing max-w-8xl usage */
.max-w-8xl {
  max-width: 80rem;
}

/* ===== MOBILE TABLE CARD REPLACEMENT ===== */
@media (max-width: 767px) {
  .mobile-table-card {
    background: white !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    margin-bottom: 1rem !important;
    padding: 1rem !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05) !important;
  }
  
  .mobile-table-card-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
    margin-bottom: 1rem !important;
    padding-bottom: 1rem !important;
    border-bottom: 1px solid #f1f5f9 !important;
  }
  
  .mobile-table-card-title {
    font-weight: 700 !important;
    color: #1e293b !important;
    font-size: 1rem !important;
    line-height: 1.4 !important;
  }
  
  .badge,
  .badge-success,
  .badge-warning,
  .badge-danger,
  .badge-info {
    padding: 0.25rem 0.75rem !important;
    border-radius: 12px !important;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
  }
  
  .badge-success { 
    background: #dcfce7 !important; 
    color: #166534 !important; 
  }
  .badge-warning { 
    background: #fef3c7 !important; 
    color: #92400e !important; 
  }
  .badge-danger { 
    background: #fee2e2 !important; 
    color: #991b1b !important; 
  }
  .badge-info { 
    background: #dbeafe !important; 
    color: #1e40af !important; 
  }
}

/* EMERGENCY MOBILE SIDEBAR FIX - Add this to your application.css */

/* Force mobile sidebar to be visible and functional */
@media (max-width: 1023px) {
  
  /* Make sure sidebar exists and is positioned correctly */
  .sidebar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 280px !important;
    height: 100vh !important;
    z-index: 50 !important;
    transform: translateX(-100%) !important;
    transition: transform 0.3s ease !important;
    background: linear-gradient(180deg, #009245 0%, #00793A 100%) !important;
    overflow-y: auto !important;
  }

  /* When sidebar is expanded (mobile open) */
  .sidebar.mobile-open {
    transform: translateX(0) !important;
  }

  /* Make sure main content doesn't have left margin on mobile */
  .main-content {
    margin-left: 0 !important;
    width: 100% !important;
  }

  /* Ensure backdrop is properly positioned */
  .sidebar-backdrop {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: rgba(0, 0, 0, 0.5) !important;
    z-index: 40 !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: all 0.3s ease !important;
  }

  /* Show backdrop when sidebar is open */
  .sidebar-backdrop.visible {
    opacity: 1 !important;
    visibility: visible !important;
  }

  /* Mobile toggle button positioning */
  .sidebar-toggle {
    position: fixed !important;
    top: 1rem !important;
    left: 1rem !important;
    z-index: 60 !important;
    width: 44px !important;
    height: 44px !important;
    background: #009245 !important;
    color: white !important;
    border: none !important;
    border-radius: 8px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
  }

  .sidebar-toggle:hover {
    background: #00793A !important;
    transform: scale(1.05) !important;
  }

  /* Prevent body scroll when sidebar is open */
  body.sidebar-open {
    overflow: hidden !important;
    position: fixed !important;
    width: 100% !important;
  }

  /* Make sure sidebar sections work on mobile */
  .nav-section {
    margin-bottom: 0.5rem !important;
  }

  .section-header {
    padding: 0.75rem 1rem !important;
    min-height: 44px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    cursor: pointer !important;
    border-radius: 8px !important;
    margin: 0 0.5rem !important;
    transition: background 0.2s ease !important;
  }

  .section-header:hover {
    background: rgba(255, 255, 255, 0.1) !important;
  }

  .section-content {
    max-height: 0 !important;
    overflow: hidden !important;
    transition: max-height 0.3s ease !important;
    margin: 0 0.5rem !important;
  }

  .nav-section.section-open .section-content {
    max-height: 300px !important; /* Allow plenty of space on mobile */
  }

  .sidebar-link {
    display: flex !important;
    align-items: center !important;
    padding: 0.75rem 1rem !important;
    margin: 0.25rem 0.5rem !important;
    border-radius: 8px !important;
    color: rgba(255, 255, 255, 0.9) !important;
    text-decoration: none !important;
    min-height: 44px !important;
    transition: all 0.2s ease !important;
  }

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

  .sidebar-link.active {
    background: #FBB040 !important;
    color: #444444 !important;
    font-weight: 600 !important;
  }

  /* Logo section mobile */
  .logo-container {
    padding: 1rem !important;
    text-align: center !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2) !important;
  }

  .logo-container img {
    max-height: 40px !important;
    filter: brightness(0) invert(1) !important;
  }

  /* Search section mobile */
  .search-section {
    padding: 1rem !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
  }

  .search-expanded .search-input {
    width: 100% !important;
    padding: 0.75rem 1rem 0.75rem 2.5rem !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 8px !important;
    background: rgba(255, 255, 255, 0.1) !important;
    color: white !important;
    font-size: 16px !important; /* Prevent iOS zoom */
  }

  .search-expanded .search-input::placeholder {
    color: rgba(255, 255, 255, 0.7) !important;
  }

  .search-icon {
    position: absolute !important;
    left: 0.75rem !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    color: rgba(255, 255, 255, 0.7) !important;
  }

  /* Hide collapsed search on mobile */
  .search-collapsed {
    display: none !important;
  }

  /* Navigation content scrolling */
  .nav-content {
    flex: 1 !important;
    overflow-y: auto !important;
    padding: 0.5rem 0 !important;
    -webkit-overflow-scrolling: touch !important;
  }

  /* Custom scrollbar for mobile sidebar */
  .nav-content::-webkit-scrollbar {
    width: 4px !important;
  }

  .nav-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1) !important;
  }

  .nav-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3) !important;
    border-radius: 2px !important;
  }

}

/* Ensure desktop sidebar still works */
@media (min-width: 1024px) {
  .sidebar {
    position: fixed !important;
    left: 0 !important;
    top: 0 !important;
    width: 16rem !important;
    height: 100vh !important;
    transform: none !important;
    z-index: 30 !important;
  }

  .main-content {
    margin-left: 16rem !important;
  }

  .sidebar-toggle {
    position: fixed !important;
    top: 1.5rem !important;
    left: calc(16rem - 1.25rem) !important;
    z-index: 40 !important;
  }

  .sidebar.collapsed {
    width: 4rem !important;
  }

  .sidebar.collapsed ~ .main-content {
    margin-left: 4rem !important;
  }

  .sidebar.collapsed ~ .sidebar-toggle {
    left: calc(4rem - 1.25rem) !important;
  }
}