    :root {
      --primary: #274690;
      --primary-light: #3867d6;
      --background: #f5f7fa;
      --surface: #ffffff;
      --text: #1c1e21;
      --muted: #6c757d;
      --accent: #e9f3ff;
      --border: #e9ecef;
      --shadow-sm: 0 1px 3px rgba(0,0,0,0.12);
      --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
      --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
      --success: #28a745;
      --warning: #ffc107;
      --danger: #dc3545;
      --info: #17a2b8;
      --radius-lg: 16px;
      --radius-md: 12px;
      --radius-sm: 8px;
      --focus: 0 0 0 3px rgba(56,103,214,.25);
    }

    * { margin: 0; padding: 0; box-sizing: border-box; }
    html, body { height: 100%; }
    body {
      font-family: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
      background: var(--background);
      color: var(--text);
      line-height: 1.6;
      -webkit-font-smoothing: antialiased;
      padding-top: 80px; /* Account for fixed topbar */
    }

    /* Topbar */
    .topbar {
      background: white;
      border-bottom: 1px solid var(--border);
      padding: 1rem 2rem;
      box-shadow: var(--shadow-sm);
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      width: 100%;
      z-index: 1000;
      margin: 0;
    }

    .logo {
      text-decoration: none;
      color: inherit;
      display: inline-block;
      transition: transform 0.2s ease;
    }
    .logo:hover { transform: translateY(-1px); }
    .logo-container { display: flex; align-items: center; gap: 12px; }

    .logo-icon {
      width: 40px;
      height: 40px;
      background: #28a745;
      border-radius: 6px;
      display: flex;
      align-items: center;
      justify-content: center;
    }
    .logo-icon span { color: white; font-weight: 700; font-size: 20px; }
    .logo-text { font-size: 1.5rem; font-weight: 700; color: var(--primary); }

    /* Page Container */
    .special-trips-container {
      max-width: 1200px;
      margin: 0 auto;
      padding: 2rem;
      min-height: 100vh;
    }

    /* Header */
    .schedules-header {
      background: linear-gradient(135deg, var(--surface), var(--accent));
      border: 1px solid rgba(39,70,144,0.08);
      border-radius: var(--radius-lg);
      box-shadow: var(--shadow-lg);
      padding: 1.75rem 2rem;
      margin-bottom: 1.5rem;
    }
    .header-title {
      display: flex; align-items: center; gap: .85rem;
      font-size: 1.85rem; font-weight: 700; color: var(--primary);
      letter-spacing: .2px;
    }
    .header-title i { color: var(--primary-light); font-size: 1.4rem; }
    .header-subtitle { color: var(--muted); font-size: .98rem; margin-top: .35rem; }

    /* Back button */
    .btn-back {
      text-decoration: none; display: inline-flex; align-items: center; gap: .5rem;
      padding: .75rem 1.25rem; background: var(--muted); color: #fff; border-radius: var(--radius-md);
      font-weight: 600; box-shadow: 0 2px 8px rgba(108,117,125,.3);
      transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
      border: 1px solid rgba(0,0,0,0.02);
    }
    .btn-back:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(108,117,125,.35); background: #5a6268; }

    /* Filters Toolbar */
    .filters-toolbar {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: var(--radius-lg);
      box-shadow: var(--shadow-md);
      padding: 1.25rem 1.5rem;
      margin-bottom: 1.25rem;
    }
    .filters-group {
      display: flex; align-items: flex-end; gap: 1rem; flex-wrap: wrap;
    }
    .filter-item {
      display: flex; flex-direction: column; gap: 0.5rem; min-width: 150px;
    }
    .filter-label {
      font-size: 0.85rem; font-weight: 600; color: var(--muted);
      text-transform: uppercase; letter-spacing: 0.5px;
      display: flex; align-items: center; gap: 0.5rem;
    }
    .filter-select, .filter-input {
      padding: 0.75rem; border: 1px solid var(--border);
      border-radius: var(--radius-sm); font-family: inherit;
      background: var(--surface); color: var(--text);
      transition: border-color .2s ease, box-shadow .2s ease;
    }
    .filter-select:focus, .filter-input:focus {
      outline: none; border-color: var(--primary); box-shadow: var(--focus);
    }
    .filter-select {
      cursor: pointer;
    }

    /* Special Trip Slot Groups */
    .special-slot-group {
      margin-bottom: 1rem;
      border: 1px solid var(--border);
      border-radius: var(--radius-md);
      background: var(--surface);
      box-shadow: var(--shadow-sm);
      overflow: hidden;
      transition: box-shadow .2s ease, transform .2s ease;
    }
    .special-slot-group:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }

    .special-slot-header {
      display: flex; align-items: center; justify-content: space-between; gap: 1rem;
      padding: 1rem 1.25rem;
      background: linear-gradient(135deg, var(--primary), var(--primary-light));
      color: #fff;
      cursor: pointer; user-select: none;
      transition: all 0.2s ease;
    }
    .special-slot-header:hover {
      background: linear-gradient(135deg, var(--primary-light), #4a7cff);
      transform: translateY(-1px);
    }

    .special-slot-title {
      display: flex; align-items: center; gap: .6rem;
      font-size: 1.15rem; font-weight: 700;
    }
    .special-slot-meta {
      display: flex; flex-wrap: wrap; gap: 1rem; font-size: .95rem; margin-top: .35rem;
      opacity: .95;
    }
    .special-slot-header i { transition: transform .25s ease; }
    .special-slot-group.expanded .special-slot-header i { transform: rotate(180deg); }

    /* Slot Actions - Modern Button Styling */
    .slot-actions {
      display: flex;
      align-items: center;
      gap: 0.75rem;
    }

    .slot-actions .btn {
      padding: 0.6rem 1.1rem;
      border: none;
      border-radius: 8px;
      font-weight: 600;
      font-size: 0.875rem;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      gap: 0.5rem;
      transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
      position: relative;
      overflow: hidden;
    }

    .slot-actions .btn::before {
      content: '';
      position: absolute;
      top: 50%;
      left: 50%;
      width: 0;
      height: 0;
      border-radius: 50%;
      background: rgba(255, 255, 255, 0.3);
      transform: translate(-50%, -50%);
      transition: width 0.6s, height 0.6s;
    }

    .slot-actions .btn:hover::before {
      width: 300px;
      height: 300px;
    }

    .slot-actions .btn i {
      position: relative;
      z-index: 1;
      font-size: 0.9rem;
    }

    .slot-actions .btn span,
    .slot-actions .btn {
      position: relative;
      z-index: 1;
    }

    /* Edit Button - Blue/Primary */
    .slot-actions .btn-primary {
      background: linear-gradient(135deg, #4a90e2, #357abd);
      color: #ffffff;
      box-shadow: 0 4px 12px rgba(74, 144, 226, 0.4);
    }

    .slot-actions .btn-primary:hover {
      background: linear-gradient(135deg, #357abd, #2a5f8f);
      transform: translateY(-2px);
      box-shadow: 0 6px 20px rgba(74, 144, 226, 0.5);
    }

    .slot-actions .btn-primary:active {
      transform: translateY(0);
      box-shadow: 0 2px 8px rgba(74, 144, 226, 0.4);
    }

    /* Delete Button - Red/Danger */
    .slot-actions .btn-danger {
      background: linear-gradient(135deg, #e74c3c, #c0392b);
      color: #ffffff;
      box-shadow: 0 4px 12px rgba(231, 76, 60, 0.4);
    }

    .slot-actions .btn-danger:hover {
      background: linear-gradient(135deg, #c0392b, #a93226);
      transform: translateY(-2px);
      box-shadow: 0 6px 20px rgba(231, 76, 60, 0.5);
    }

    .slot-actions .btn-danger:active {
      transform: translateY(0);
      box-shadow: 0 2px 8px rgba(231, 76, 60, 0.4);
    }

    /* Chevron icon styling */
    .slot-actions .fa-chevron-down {
      color: rgba(255, 255, 255, 0.9);
      font-size: 0.9rem;
      margin-left: 0.5rem;
      transition: transform 0.25s ease;
    }

    .special-slot-content {
      max-height: 0;
      overflow: hidden;
      transition: max-height .35s ease;
    }
    .special-slot-group.expanded .special-slot-content {
      max-height: 2000px;
      overflow-y: auto;
    }

    .special-slot-schedules { padding: 1rem 1.25rem 1.25rem; }

    /* Slot Quick Actions */
    .slot-quick-actions {
      border-bottom: 1px solid var(--border);
      background: rgba(39,70,144,0.03);
      padding: 0.75rem 1.25rem;
      display: flex;
      gap: 0.5rem;
      flex-wrap: wrap;
      align-items: center;
    }
    .action-btn.small {
      font-size: 0.8rem;
      padding: 0.5rem 0.75rem;
    }

    /* Special Trip Badges */
    .trip-type-badge {
      padding: .25rem .6rem; border-radius: 12px; font-size: .75rem;
      font-weight: 700; text-transform: uppercase; letter-spacing: .3px;
    }
    .trip-outbound { background: #e3f2fd; color: #1976d2; }
    .trip-return { background: #f3e5f5; color: #7b1fa2; }
    .trip-both { background: #e8f5e8; color: #2e7d32; }

    .special-badge {
      background: linear-gradient(135deg, #ff6b6b, #ee5a52);
      color: #fff; padding: .3rem .8rem; border-radius: 999px;
      font-size: .7rem; font-weight: 700; margin-left: .5rem;
      box-shadow: 0 2px 8px rgba(255,107,107,.3);
    }

    /* Staff Group for Special Trips */
    .staff-group {
      margin-bottom: 1rem;
      border: 1px solid var(--border);
      border-radius: var(--radius-md);
      background: var(--surface);
      box-shadow: var(--shadow-sm);
      overflow: hidden;
      transition: box-shadow .2s ease, transform .2s ease;
    }
    .staff-group:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }

    .staff-group-header {
      display: flex; align-items: center; justify-content: space-between; gap: 1rem;
      padding: .9rem 1.1rem;
      background: linear-gradient(135deg, #28a745, #20c997);
      color: #fff; cursor: pointer; user-select: none;
      transition: all 0.2s ease;
    }
    .staff-group-header:hover {
      background: linear-gradient(135deg, #20c997, #17a2b8);
      transform: translateY(-1px);
    }

    .staff-info { display: flex; align-items: center; gap: .75rem; }
    .staff-avatar {
      width: 40px; height: 40px; border-radius: 50%;
      background: rgba(255,255,255,.22); color: #fff; display: grid; place-items: center;
      font-weight: 700; font-size: 1rem;
    }
    .staff-details h4 { color: #fff; font-weight: 700; font-size: 1.05rem; }
    .staff-details p { color: rgba(255,255,255,.92); font-size: .9rem; }

    .staff-stats { display: flex; align-items: center; gap: .6rem; }
    .trip-count {
      padding: .25rem .6rem; border-radius: 999px; background: rgba(255,255,255,.22);
      color: #fff; font-size: .8rem; font-weight: 600;
    }

    .staff-content {
      max-height: 0;
      overflow: hidden;
      transition: max-height .35s ease;
      background: var(--surface);
    }
    .staff-group.expanded .staff-content {
      max-height: 800px;
      overflow-y: auto;
      padding: 1rem;
    }
    .staff-group-header i.fa-chevron-down {
      transition: transform 0.25s ease;
    }
    .staff-group.expanded .staff-group-header i.fa-chevron-down {
      transform: rotate(180deg);
    }

    /* Modern Trip Card Layout */
    .trip-date-row {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: var(--radius-lg);
      margin: 1rem 0.5rem;
      box-shadow: var(--shadow-sm);
      transition: all 0.3s ease;
      overflow: hidden;
    }
    
    .trip-date-row:hover {
      transform: translateY(-4px);
      box-shadow: var(--shadow-lg);
      border-color: var(--primary);
    }

    /* Card Header */
    .trip-card-header {
      display: flex;
      align-items: center;
      gap: 1rem;
      padding: 1.25rem 1.5rem;
      background: linear-gradient(135deg, var(--accent), #f8fbff);
      border-bottom: 1px solid rgba(39,70,144,0.08);
    }

    .trip-card-select {
      display: flex;
      align-items: center;
    }

    .trip-card-main {
      flex: 1;
      display: flex;
      flex-direction: column;
      gap: 0.75rem;
    }

    .trip-date-badge {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      font-size: 1.1rem;
      font-weight: 700;
      color: var(--primary);
    }

    .trip-date-badge i {
      color: var(--primary-light);
      font-size: 1rem;
    }

    .trip-meta-badges {
      display: flex;
      align-items: center;
      gap: 0.75rem;
      flex-wrap: wrap;
    }

    .trip-card-actions {
      display: flex;
      align-items: center;
      gap: 0.5rem;
    }

    /* Card Body */
    .trip-card-body {
      padding: 1.5rem;
    }

    .trip-details-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
      gap: 1.25rem;
      margin-bottom: 1.5rem;
    }

    .trip-detail-item {
      display: flex;
      align-items: center;
      gap: 0.75rem;
      padding: 1rem;
      background: rgba(39,70,144,0.03);
      border-radius: var(--radius-md);
      border-left: 3px solid var(--primary);
    }

    .detail-icon {
      width: 40px;
      height: 40px;
      border-radius: 50%;
      background: var(--primary);
      color: white;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
    }

    .detail-content {
      flex: 1;
    }

    .detail-label {
      font-size: 0.8rem;
      font-weight: 600;
      color: var(--muted);
      text-transform: uppercase;
      letter-spacing: 0.5px;
      margin-bottom: 0.25rem;
    }

    .detail-value {
      font-size: 0.95rem;
      font-weight: 600;
      color: var(--text);
      line-height: 1.3;
    }

    /* Location Section */
    .trip-locations {
      display: flex;
      align-items: center;
      gap: 1rem;
      margin-bottom: 1.25rem;
      padding: 1.25rem;
      background: linear-gradient(135deg, #f8f9fa, #e9ecef);
      border-radius: var(--radius-md);
      border: 1px solid rgba(0,0,0,0.05);
    }

    .location-item {
      display: flex;
      align-items: center;
      gap: 0.75rem;
      flex: 1;
    }

    .pickup-icon {
      color: var(--primary);
      font-size: 1.2rem;
    }

    .destination-icon {
      color: var(--primary-light);
      font-size: 1.2rem;
    }

    .location-details {
      flex: 1;
    }

    .location-label {
      font-size: 0.75rem;
      font-weight: 700;
      color: var(--muted);
      text-transform: uppercase;
      letter-spacing: 0.5px;
      margin-bottom: 0.25rem;
    }

    .location-address {
      font-size: 0.9rem;
      font-weight: 500;
      color: var(--text);
      line-height: 1.3;
    }

    .route-line {
      width: 40px;
      height: 2px;
      background: linear-gradient(90deg, var(--primary), var(--primary-light));
      border-radius: 1px;
      position: relative;
      flex-shrink: 0;
    }

    .route-line::after {
      content: '';
      position: absolute;
      right: -4px;
      top: -2px;
      width: 6px;
      height: 6px;
      background: var(--primary-light);
      border-radius: 50%;
    }

    /* Return Info */
    .return-info {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      padding: 0.75rem 1rem;
      background: rgba(39,70,144,0.1);
      border: 1px solid rgba(39,70,144,0.3);
      border-radius: var(--radius-sm);
      color: var(--primary);
      font-size: 0.9rem;
      font-weight: 600;
      margin-bottom: 1rem;
    }

    .return-icon {
      color: var(--primary-light);
    }

    /* Trip Extras */
    .trip-extras {
      display: flex;
      flex-direction: column;
      gap: 0.5rem;
    }

    .extra-item {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      padding: 0.5rem 0.75rem;
      background: rgba(39,70,144,0.1);
      border-left: 3px solid var(--primary);
      border-radius: var(--radius-sm);
      font-size: 0.85rem;
      color: var(--text);
    }

    .extra-item.driver-note {
      background: rgba(56,103,214,0.1);
      border-left-color: var(--primary-light);
    }

    .extra-item i {
      color: var(--primary);
      width: 16px;
      text-align: center;
    }

    .driver-note i {
      color: var(--primary-light);
    }

    /* Status Pills */
    .status-pill {
      padding: .5rem 1rem;
      border-radius: 999px;
      font-size: .8rem;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: .5px;
      min-width: 90px;
      text-align: center;
      box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    }
    .pill-pending {
      background: linear-gradient(135deg, #fff3cd, #ffeaa7);
      color: #6f5200;
    }
    .pill-accepted {
      background: linear-gradient(135deg, #d4edda, #a8e6cf);
      color: #155724;
    }
    .pill-rejected {
      background: linear-gradient(135deg, #f8d7da, #ffb3ba);
      color: #7d2430;
    }
    .pill-completed {
      background: linear-gradient(135deg, #d1ecf1, #bee5eb);
      color: #0c5460;
    }
    .pill-cancelled {
      background: linear-gradient(135deg, #e2e3e5, #ced4da);
      color: #495057;
    }
    .pill-arrived {
      background: linear-gradient(135deg, #cce5ff, #b8daff);
      color: #004085;
    }
    .pill-picked-up {
      background: linear-gradient(135deg, #d1f2eb, #a3e4d7);
      color: #0e6655;
    }
    .pill-dropped {
      background: linear-gradient(135deg, #d5f5e3, #abebc6);
      color: #1e8449;
    }
    .pill-no-show {
      background: linear-gradient(135deg, #fdebd0, #f5cba7);
      color: #7e5109;
    }

    /* Slot Status Bar — colored pills inside the blue header */
    .slot-status-bar {
      display: flex;
      flex-wrap: wrap;
      gap: 0.4rem;
      margin-top: 0.5rem;
    }
    .status-count-pill {
      padding: 0.2rem 0.55rem;
      border-radius: 999px;
      font-size: 0.7rem;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.3px;
      white-space: nowrap;
      box-shadow: 0 1px 3px rgba(0,0,0,0.15);
    }

    /* Staff-level status pills */
    .staff-status-pills {
      display: flex;
      flex-wrap: wrap;
      gap: 0.35rem;
      align-items: center;
    }
    .staff-status-pills .status-count-pill {
      font-size: 0.65rem;
      padding: 0.15rem 0.45rem;
    }

    /* Pending pulse animation to draw attention */
    @keyframes pendingPulse {
      0%, 100% { box-shadow: 0 1px 3px rgba(0,0,0,0.15); }
      50% { box-shadow: 0 0 8px rgba(111,82,0,0.45); }
    }
    .pulse-pending {
      animation: pendingPulse 2s ease-in-out infinite;
    }

    /* Action Buttons */
    .action-btn {
      display: inline-flex; align-items: center; gap: .5rem;
      padding: .6rem .9rem; border: 1px solid transparent; border-radius: var(--radius-md);
      font-weight: 700; font-size: .85rem; cursor: pointer;
      transition: all .15s ease;
      font-family: inherit;
    }
    .action-btn:focus-visible { outline: none; box-shadow: var(--focus); }

    .accept-btn { background: var(--success); color: #fff; }
    .accept-btn:hover { transform: translateY(-2px); background: #218838; }

    .reject-btn { background: var(--danger); color: #fff; }
    .reject-btn:hover { transform: translateY(-2px); background: #c82333; }

    .complete-btn { background: var(--info); color: #fff; }
    .complete-btn:hover { transform: translateY(-2px); background: #138496; }


    /* Empty & Loading States */
    .empty-state, .loading {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: var(--radius-lg);
      box-shadow: var(--shadow-sm);
      text-align: center;
      padding: 3rem 1.5rem;
      color: var(--muted);
    }
    .empty-state { background: linear-gradient(135deg, var(--accent), #f8fbff); }
    .empty-state i { font-size: 3.25rem; color: var(--primary); opacity: .8; margin-bottom: 1rem; }
    .empty-state h3 { color: var(--primary); font-weight: 700; font-size: 1.35rem; margin-bottom: .5rem; }

    .loading { display: flex; align-items: center; justify-content: center; gap: .75rem; }
    .loading i { font-size: 1.6rem; color: var(--primary); animation: spin 1s linear infinite; }
    @keyframes spin { to { transform: rotate(360deg); } }

    /* Route optimizer entrypoint */
    .route-optimizer-banner {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 1rem;
      margin: 1rem 0;
      padding: 1rem 1.25rem;
      border: 1px solid var(--border);
      border-radius: var(--radius-lg);
      background: linear-gradient(120deg, #f4f6fb, #e9f3ff);
      box-shadow: var(--shadow-sm);
    }
    .route-optimizer-banner h3 {
      margin: 0;
      color: var(--primary);
      font-size: 1.25rem;
      font-weight: 700;
    }
    .route-optimizer-banner p {
      margin: .25rem 0 0;
      color: var(--muted);
    }
    .route-optimizer-btn {
      display: inline-flex;
      align-items: center;
      gap: .5rem;
      padding: .85rem 1.25rem;
      background: var(--primary);
      color: #fff;
      border: none;
      border-radius: var(--radius-md);
      font-weight: 700;
      cursor: pointer;
      box-shadow: var(--shadow-sm);
      transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
      text-decoration: none;
    }
    .route-optimizer-btn:hover {
      transform: translateY(-1px);
      box-shadow: var(--shadow-md);
      background: var(--primary-light);
    }
    .route-optimizer-btn:active { transform: translateY(0); }

    /* Toast Notification */
    .notification {
      position: fixed; top: 20px; right: 20px;
      padding: .9rem 1.1rem; border-radius: var(--radius-sm); color: #fff; font-weight: 700; z-index: 10000;
      transform: translateX(120%); transition: transform .3s ease, opacity .2s ease; opacity: 0;
      box-shadow: var(--shadow-md);
    }
    .notification.show { transform: translateX(0); opacity: 1; }
    .notification.success { background: var(--success); }
    .notification.error { background: var(--danger); }
    .notification.info { background: var(--info); }

    /* Price Input Modal */
    .modal-overlay {
      position: fixed; top: 0; left: 0; right: 0; bottom: 0;
      background: rgba(0,0,0,0.5); display: flex; align-items: center; justify-content: center;
      z-index: 10001; opacity: 0; visibility: hidden;
      transition: opacity .3s ease, visibility .3s ease;
    }
    .modal-overlay.show { opacity: 1; visibility: visible; }

    .modal-content {
      background: var(--surface); border-radius: var(--radius-lg);
      padding: 2rem; max-width: 400px; width: 90%;
      box-shadow: var(--shadow-lg);
      transform: scale(0.9); transition: transform .3s ease;
    }
    .modal-overlay.show .modal-content { transform: scale(1); }

    .modal-header { margin-bottom: 1.5rem; }
    .modal-title { font-size: 1.3rem; font-weight: 700; color: var(--primary); }

    .form-group { margin-bottom: 1rem; }
    .form-label { display: block; margin-bottom: .5rem; font-weight: 600; color: var(--text); }
    .form-input {
      width: 100%; padding: .75rem; border: 1px solid var(--border);
      border-radius: var(--radius-sm); font-family: inherit;
      transition: border-color .2s ease, box-shadow .2s ease;
    }
    .form-input:focus { outline: none; border-color: var(--primary); box-shadow: var(--focus); }

    .modal-actions { display: flex; gap: 1rem; justify-content: flex-end; margin-top: 1.5rem; }

    /* Trip checkbox */
    .trip-checkbox {
      width: 20px;
      height: 20px;
      cursor: pointer;
      accent-color: var(--primary);
    }

    /* Responsive - Tablet and below */
    @media (max-width: 900px) {
      body {
        overflow-x: hidden;
        max-width: 100vw;
      }

      .topbar {
        padding: 0.75rem 1rem;
      }

      .logo-text {
        font-size: 1.25rem;
      }

      .special-trips-container { 
        padding: 1rem;
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
      }

      .schedules-header {
        padding: 1.25rem;
      }

      .schedules-header > div {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 1rem !important;
      }

      .header-title {
        font-size: 1.5rem;
        flex-wrap: wrap;
      }

      .btn-back {
        width: 100%;
        justify-content: center;
      }


      .filters-toolbar {
        padding: 1rem;
      }

      .filters-group {
        flex-direction: column;
        align-items: stretch;
      }

      .filter-item {
        width: 100%;
        min-width: auto;
      }

      /* Special Slot Groups */
      .special-slot-group {
        margin: 0 0.5rem 1rem 0.5rem;
        width: calc(100% - 1rem);
        max-width: 100%;
        overflow: hidden;
      }

      .special-slot-header {
        padding: 1rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
      }

      .special-slot-title {
        font-size: 1rem;
        flex-wrap: wrap;
      }

      .special-slot-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        font-size: 0.85rem;
      }

      /* Staff Groups */
      .staff-group {
        margin: 0 0.5rem 1rem 0.5rem;
        width: calc(100% - 1rem);
        max-width: 100%;
        overflow: hidden;
      }

      .staff-group-header {
        padding: 0.85rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
      }

      .staff-info {
        flex-direction: row;
        width: 100%;
      }

      .staff-stats {
        width: 100%;
        justify-content: space-between;
      }

      /* Trip Date Cards */
      .trip-date-row {
        margin: 0.75rem 0.5rem;
        width: calc(100% - 1rem);
        max-width: 100%;
        overflow: hidden;
      }

      .trip-card-header {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
        padding: 1rem;
      }
      
      .trip-card-select {
        order: 1;
        justify-content: flex-start;
      }

      .trip-card-main {
        order: 2;
      }

      .trip-date-badge {
        font-size: 1rem;
      }

      .trip-meta-badges {
        flex-wrap: wrap;
        gap: 0.5rem;
      }

      .trip-card-actions {
        order: 3;
        justify-content: center;
        flex-wrap: wrap;
      }

      .action-btn {
        flex: 1;
        min-width: 80px;
        justify-content: center;
      }

      .trip-card-body {
        padding: 1rem;
      }
      
      .trip-details-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
      }

      .trip-detail-item {
        padding: 0.85rem;
      }
      
      .trip-locations {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
      }

      .location-item {
        width: 100%;
      }
      
      .route-line {
        width: 2px;
        height: 20px;
        background: linear-gradient(180deg, var(--primary), var(--primary-light));
        align-self: center;
        margin: 0.5rem 0;
      }
      
      .route-line::after {
        right: -2px;
        top: 16px;
      }

      .return-info {
        padding: 0.65rem 0.85rem;
        font-size: 0.85rem;
      }

      .trip-extras {
        gap: 0.4rem;
      }

      .extra-item {
        padding: 0.45rem 0.65rem;
        font-size: 0.8rem;
      }

      /* Status Pills */
      .status-pill {
        padding: 0.4rem 0.75rem;
        font-size: 0.75rem;
        min-width: 70px;
      }

      .trip-type-badge {
        padding: 0.2rem 0.5rem;
        font-size: 0.7rem;
      }

      /* Modal */
      .modal-content { 
        padding: 1.5rem;
        width: 95%;
        max-width: 95%;
      }
      
      .modal-title {
        font-size: 1.15rem;
      }

      .modal-actions { 
        flex-direction: column;
        gap: 0.75rem;
      }

      .modal-actions .action-btn {
        width: 100%;
      }

      /* Empty and Loading States */
      .empty-state,
      .loading {
        padding: 2rem 1rem;
        margin: 0 0.5rem;
      }

      .empty-state i {
        font-size: 2.5rem;
      }

      .empty-state h3 {
        font-size: 1.15rem;
      }
    }

    /* Mobile - Extra small screens */
    @media (max-width: 480px) {
      .special-trips-container {
        padding: 0.75rem 0.5rem;
      }

      .schedules-header {
        padding: 1rem;
        margin-bottom: 1rem;
      }

      .header-title {
        font-size: 1.3rem;
      }

      .header-subtitle {
        font-size: 0.9rem;
      }

      .special-badge {
        font-size: 0.65rem;
        padding: 0.25rem 0.6rem;
      }


      .special-slot-header,
      .staff-group-header {
        padding: 0.75rem;
      }

      .trip-card-header {
        padding: 0.85rem;
      }

      .trip-card-body {
        padding: 0.85rem;
      }

      .detail-icon {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
      }

      .detail-label {
        font-size: 0.75rem;
      }

      .detail-value {
        font-size: 0.9rem;
      }

      .action-btn {
        padding: 0.55rem 0.75rem;
        font-size: 0.8rem;
        min-width: 70px;
      }

      .notification {
        right: 10px;
        left: 10px;
        top: 10px;
        font-size: 0.9rem;
        padding: 0.75rem;
      }
    }
