@media (max-width: 767px) {
  .mobile-bottom-nav {
    position: fixed; bottom: 0; left: 0; right: 0;
    z-index: 1050; background: #fff;
    border-top: 1px solid #dee2e6;
    display: flex; justify-content: space-around;
    padding: 6px 0;
    padding-bottom: calc(6px + env(safe-area-inset-bottom));
    box-shadow: 0 -2px 10px rgba(0,0,0,0.08);
  }
  .mobile-bottom-nav a {
    display: flex; flex-direction: column; align-items: center;
    font-size: 10px; color: #6c757d; text-decoration: none;
    min-width: 44px; min-height: 44px; justify-content: center;
    transition: color 0.2s;
  }
  .mobile-bottom-nav a.active { color: #0056b3; }
  .mobile-bottom-nav a i { font-size: 20px; margin-bottom: 2px; }
  body { padding-bottom: 65px; }
}

@media (max-width: 767px) {
  .admin-sidebar-wrap {
    position: fixed; top: 0; right: -280px; left: auto;
    width: 280px; height: 100vh; z-index: 1060;
    transition: right 0.3s ease;
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
  }
  .admin-sidebar-wrap.open { right: 0; }
  .sidebar-backdrop {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.5); z-index: 1055;
    display: none;
  }
  .sidebar-backdrop.show { display: block; }
  .sidebar-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border: none; background: transparent;
    font-size: 24px; cursor: pointer; color: #333;
  }
}
@media (min-width: 768px) {
  .sidebar-toggle, .sidebar-backdrop { display: none !important; }
}

@media (max-width: 767px) {
  .table-responsive-card table,
  .table-responsive-card thead,
  .table-responsive-card tbody,
  .table-responsive-card tr,
  .table-responsive-card td { display: block; }
  .table-responsive-card thead { display: none; }
  .table-responsive-card tr {
    border: 1px solid #dee2e6; border-radius: 8px;
    padding: 12px; margin-bottom: 12px; background: #fff;
  }
  .table-responsive-card td {
    padding: 4px 0; border: none; font-size: 13px;
  }
  .table-responsive-card td::before {
    content: attr(data-label);
    font-weight: 600; display: inline-block; width: 40%;
    color: #495057;
  }
  .table-responsive-card .action-cell::before { display: none; }
  .table-responsive-card .action-cell {
    text-align: right; padding-top: 8px; border-top: 1px solid #eee; margin-top: 8px;
  }
}

.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: 4px;
}
@keyframes skeleton-loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.skeleton-row { height: 20px; margin-bottom: 8px; }
.skeleton-card { height: 80px; margin-bottom: 12px; border-radius: 8px; }

.toast-container {
  position: fixed; top: 20px; right: 20px; z-index: 9999;
}
.toast-notification {
  animation: toast-slide-in 0.4s ease-out;
  min-width: 300px; margin-bottom: 8px;
}
@keyframes toast-slide-in {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}
@keyframes toast-slide-out {
  from { transform: translateX(0); opacity: 1; }
  to { transform: translateX(100%); opacity: 0; }
}
.toast-hide { animation: toast-slide-out 0.3s ease-in forwards; }

@media (max-width: 767px) {
  .stat-card { margin-bottom: 12px; }
  .card-body { padding: 12px; }
  h4 { font-size: 1.1rem; }
  .admin-wrapper .container-fluid { padding-left: 12px; padding-right: 12px; }
}

.tap-target {
  min-width: 44px; min-height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
}
.tap-active:active { transform: scale(0.95); opacity: 0.8; }
