
        body { 
            background: #1c1c1e; 
            color: #e0e0e0; 
            font-family: 'SF Pro Display', sans-serif; 
            margin: 0; 
            padding: 0 0 20px 0; 
            min-height: 100vh; 
            -webkit-user-select: none; 
            -ms-user-select: none; 
            user-select: none; 
            -webkit-touch-callout: none; 
            overflow-x: hidden; 
        }
        .container { 
            max-width: 1200px; 
            margin: 0 auto; 
            padding: 30px 20px; 
            position: relative; 
            transition: margin-left 0.3s ease;
        }
        .section { 
            background: #252527; 
            border-radius: 20px; 
            padding: 30px; 
            margin-bottom: 20px; 
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6); 
            transition: transform 0.3s ease, opacity 0.3s ease; 
        }
        .section.hidden { 
            transform: translateY(20px); 
            opacity: 0; 
            pointer-events: none; 
        }
        h1 { 
            font-size: clamp(1.5rem, 5vw, 2.5rem); 
            font-weight: 700; 
            letter-spacing: -2px;
            margin: 0;
            background: linear-gradient(45deg, #007aff, #34c759, #007aff);
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
            text-shadow: 0 4px 20px rgba(0, 122, 255, 0.3);
            position: relative;
            z-index: 1;
        }
        h2 { 
            font-size: clamp(1.25rem, 3vw, 1.75rem); 
            font-weight: 600; 
            margin-bottom: 20px; 
            text-align: center; 
            color: #ffffff; 
        }
        h4 { 
            margin: 0 0 10px; 
            font-size: clamp(1rem, 2.5vw, 1.25rem); 
            font-weight: 600; 
            color: #ffffff; 
        }
        p { 
            font-size: clamp(0.9rem, 2.5vw, 1.1rem); 
            opacity: 1; 
            color: #d0d0d0; 
        }
        .btn { 
            background: linear-gradient(45deg, #34c759, #007aff);
            color: white;
            border: none; 
            padding: 12px 20px;
            border-radius: 12px;
            font-weight: 600;
            cursor: pointer; 
            width: 100%; 
            font-size: 16px;
            transition: all 0.3s;
            position: relative;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .btn-primary { 
            background: #dc2626;
            color: white;
            border: none; 
            padding: 12px 20px;
            border-radius: 12px;
            font-weight: 600;
            cursor: pointer; 
            width: 100%; 
            font-size: 16px;
            transition: all 0.3s;
            position: relative;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .btn:hover { 
            background: linear-gradient(135deg, #34c759, #007aff);
            transform: translateY(-2px); 
            box-shadow: 0 6px 15px rgba(255, 45, 85, 0.4);
        }
        .btn:active {
            transform: translateY(0);
            box-shadow: 0 2px 5px rgba(45, 174, 255, 0.2);
        }
        .btn:disabled {
            opacity: 0.7;
            cursor: not-allowed;
            transform: none;
        }
        .btn-spinner {
            display: none;
            width: 16px;
            height: 16px;
            border: 2px solid rgba(255, 255, 255, 0.5);
            border-radius: 50%;
            border-top-color: #fff;
            animation: spin 1s ease-in-out infinite;
            margin-left: 8px;
        }
        @keyframes spin {
            to { transform: rotate(360deg); }
        }
        .btn-secondary { 
            background: #30c8ff; 
            padding: 8px 18px; 
            width: auto;
        }
        .btn-secondary:hover { 
            background: #26a5dc; 
        }
        .btn-tertiary {
            background: #6b7280;
            padding: 8px 18px;
            width: auto;
        }
        .btn-tertiary:hover {
            background: #4b5563;
        }
        .input { 
            background: #343436; 
            border: none; 
            color: #ccc; 
            padding: 14px; 
            border-radius: 12px; 
            width: 100%; 
            margin-bottom: 15px; 
            font-size: clamp(0.875rem, 2.5vw, 1rem); 
            box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3); 
            transition: background 0.2s ease, transform 0.2s ease; 
        }
        .input:focus { 
            background: #3a3a3c; 
            outline: none; 
            transform: scale(1.02); 
        }
        .notification { 
            position: fixed; 
            top: 20px; 
            left: 50%; 
            transform: translateX(-50%); 
            background: rgba(52, 199, 89, 0.9);
            color: white;
            padding: 12px 15px;
            border-radius: 10px;
            text-align: left;
            display: flex;
            align-items: center;
            gap: 10px;
            font-size: 14px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
            border-left: 4px solid #34C759;
            z-index: 1000; 
            opacity: 0; 
            transition: opacity 0.3s ease; 
        }
        .notification.show { 
            opacity: 1; 
        }
        .notification.error { 
            background: rgba(255, 59, 48, 0.9);
            border-left-color: #FF3B30;
        }
        .notification-icon {
            font-size: 18px;
        }
        .item { 
            background: #2c2c2e; 
            padding: 20px; 
            border-radius: 14px; 
            margin-bottom: 15px; 
            transition: transform 0.2s ease, box-shadow 0.2s ease; 
        }
        .item:hover { 
            transform: translateY(-3px); 
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4); 
        }
        .item h4 { 
            margin: 0 0 10px; 
            font-size: clamp(1rem, 2.5vw, 1.25rem); 
            font-weight: 600; 
            color: #ffffff; 
        }
        .item p { 
            margin: 5px 0; 
            font-size: clamp(0.85rem, 2vw, 0.95rem); 
            color: #d0d0d0; 
        }
        .item-actions {
            display: flex;
            gap: 10px;
            margin-top: 10px;
        }
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 250px;
  background: #1c1c1e;
  padding: 20px;
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  z-index: 1000;
  box-shadow: 2px 0 20px rgba(0,0,0,0.5);
  border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar.open {
  transform: translateX(0);
}

.sidebar-header {
  margin-bottom: 20px;
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  text-align: center;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sidebar-item {
  background: transparent;
  color: #b0b0b0;
  border: none;
  text-align: left;
  padding: 14px 16px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: background 0.2s ease, color 0.2s ease;
  cursor: pointer;
}

.sidebar-item i {
  font-size: 1.2rem;
}

.sidebar-item:hover {
  background: rgba(255,255,255,0.08);
  color: #fff;
}

.sidebar-item.active {
  background: #007aff;
  color: #fff;
  box-shadow: 0 4px 12px rgba(0,122,255,0.3);
}

.sidebar-toggle {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 1100;
  background: #007aff;
  color: white;
  padding: 10px 12px;
  border: none;
  border-radius: 10px;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.sidebar-toggle:hover {
  background: #005bb5;
  transform: scale(1.05);
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background: rgba(0,0,0,0.4);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.overlay.active {
  opacity: 1;
  visibility: visible;
}
        #login-section { 
            position: fixed; 
            top: 0; 
            left: 0; 
            width: 100%; 
            height: 100%; 
            display: flex; 
            flex-direction: column; 
            align-items: center; 
            justify-content: center; 
            padding: 20px; 
            background: linear-gradient(135deg, #1c1c1e 0%, #252527 100%); 
            z-index: 2000; 
            overflow: hidden; 
        }
        #login-section::before { 
            content: ''; 
            position: absolute; 
            top: -50%; 
            left: -50%; 
            width: 200%; 
            height: 200%; 
            background: radial-gradient(circle, rgba(0, 122, 255, 0.1) 0%, transparent 70%); 
            animation: pulse 10s infinite; 
            z-index: 0; 
        }
        #login-section .login-container { 
            background: #2c2c2e; 
            border-radius: 20px; 
            padding: 40px; 
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6); 
            width: 100%; 
            max-width: 400px; 
            z-index: 1; 
            animation: fadeIn 0.5s ease; 
        }
        #login-section h1 { 
            font-size: clamp(1.5rem, 5vw, 2.5rem); 
            font-weight: 700; 
            text-align: center; 
            margin-bottom: 30px; 
            background: linear-gradient(45deg, #007aff, #34c759); 
            -webkit-background-clip: text; 
            background-clip: text; 
            color: transparent; 
        }
        #login-section.hidden { 
            display: none; 
        }
        .user-item {
            background: #2c2c2e;
            padding: 20px;
            border-radius: 14px;
            margin-bottom: 15px;
            transition: transform 0.2s ease, box-shadow 0.2s ease;
            display: grid;
            grid-template-columns: 1fr auto;
            gap: 15px;
            align-items: center;
        }
        .user-item:hover {
            transform: translateY(-3px);
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
        }
        .user-details {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }
        .user-details h4 {
            margin: 0;
            font-size: clamp(1rem, 2.5vw, 1.25rem);
            font-weight: 600;
            color: #ffffff;
        }
        .user-details p {
            margin: 0;
            font-size: clamp(0.85rem, 2vw, 0.95rem);
            color: #d0d0d0;
            word-break: break-word;
        }
        .user-actions {
            display: flex;
            gap: 10px;
        }
        .dashboard-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
            gap: 20px;
            margin-bottom: 30px;
        }
        .dashboard-card {
            background: #2c2c2e;
            padding: 25px;
            border-radius: 16px;
            text-align: center;
            cursor: pointer;
            transition: all 0.3s ease;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            position: relative;
            overflow: hidden;
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.05);
        }
        .dashboard-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
        }
        .dashboard-card:after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 5px;
        }
        .dashboard-card.restaurants:after { 
            background: linear-gradient(90deg, #FF9500, #FF2D55); 
            box-shadow: 0 0 15px rgba(255, 149, 0, 0.3);
        }
        .dashboard-card.vendors:after { 
            background: linear-gradient(90deg, #5AC8FA, #007AFF); 
            box-shadow: 0 0 15px rgba(90, 200, 250, 0.3);
        }
        .dashboard-card.orders:after { 
            background: linear-gradient(90deg, #34C759, #32D74B); 
            box-shadow: 0 0 15px rgba(52, 199, 89, 0.3);
        }
        .dashboard-card.users:after { 
            background: linear-gradient(90deg, #AF52DE, #5E5CE6); 
            box-shadow: 0 0 15px rgba(175, 82, 222, 0.3);
        }
        .dashboard-card.deliveries:after { 
            background: linear-gradient(90deg, #FF2D55, #FF9500); 
            box-shadow: 0 0 15px rgba(255, 45, 85, 0.3);
        }
        .dashboard-card h3 {
            font-size: clamp(1.1rem, 2.5vw, 1.3rem);
            font-weight: 600;
            color: #ffffff;
            margin-bottom: 6px;
            position: relative;
            z-index: 1;
        }
        .dashboard-card .subtitle {
            font-size: 0.85rem;
            color: #a0a0a0;
            margin-bottom: 15px;
        }
        .dashboard-card p {
            font-size: clamp(1.8rem, 3.5vw, 2.5rem);
            font-weight: 700;
            margin: 0;
            position: relative;
            z-index: 1;
        }
        .dashboard-card.restaurants p { background: linear-gradient(45deg, #FF9500, #FF2D55); -webkit-background-clip: text; background-clip: text; color: transparent; }
        .dashboard-card.vendors p { background: linear-gradient(45deg, #5AC8FA, #007AFF); -webkit-background-clip: text; background-clip: text; color: transparent; }
        .dashboard-card.orders p { background: linear-gradient(45deg, #34C759, #32D74B); -webkit-background-clip: text; background-clip: text; color: transparent; }
        .dashboard-card.users p { background: linear-gradient(45deg, #AF52DE, #5E5CE6); -webkit-background-clip: text; background-clip: text; color: transparent; }
        .dashboard-card.deliveries p { background: linear-gradient(45deg, #FF2D55, #FF9500); -webkit-background-clip: text; background-clip: text; color: transparent; }
        .dashboard-card i {
            position: absolute;
            bottom: 10px;
            right: 10px;
            font-size: 1.5rem;
            opacity: 0.2;
            color: #ffffff;
        }
        .mini-chart {
            width: 100%;
            height: 15px !important;
            margin-top: 10px;
            margin-bottom: 5px;
            max-height: 15px !important;
            overflow: hidden;
            border-radius: 5px;
            box-shadow: inset 0 1px 3px rgba(0,0,0,0.2);
        }
        .tooltip {
            position: absolute;
            top: -40px;
            left: 50%;
            transform: translateX(-50%);
            background: rgba(0, 0, 0, 0.8);
            color: white;
            padding: 8px 12px;
            border-radius: 8px;
            font-size: 0.85rem;
            pointer-events: none;
            opacity: 0;
            transition: opacity 0.3s ease;
            z-index: 100;
            white-space: nowrap;
        }
        .tooltip:after {
            content: '';
            position: absolute;
            bottom: -5px;
            left: 50%;
            transform: translateX(-50%);
            border-left: 6px solid transparent;
            border-right: 6px solid transparent;
            border-top: 6px solid rgba(0, 0, 0, 0.8);
        }
        .dashboard-card:hover .tooltip {
            opacity: 1;
            top: -50px;
        }
        .welcome-message {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 25px;
            background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
            padding: 20px;
            border-radius: 16px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        }
        .welcome-text {
            flex: 1;
        }
        .welcome-text p {
            font-size: 0.95rem;
            color: #a0a0a0;
            margin: 0;
        }
        .date-display {
            font-size: 0.9rem;
            color: #a0a0a0;
            text-align: right;
            padding: 10px;
            background: rgba(255, 255, 255, 0.05);
            border-radius: 10px;
        }
        .password-wrapper {
            position: relative;
            width: 100%;
        }
        .password-toggle {
            position: absolute;
            right: 12px;
            top: 50%;
            transform: translateY(-50%);
            background: none;
            border: none;
            color: #a0a0a0;
            cursor: pointer;
            z-index: 10;
            padding: 8px;
        }
        .password-toggle:hover {
            color: #ffffff;
        }
        .personnel-table {
            width: 100%;
            border-collapse: collapse;
            font-size: clamp(0.85rem, 2vw, 0.95rem);
            color: #d0d0d0;
        }
        .personnel-table th,
        .personnel-table td {
            padding: 10px;
            text-align: left;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }
        .personnel-table th {
            color: #ffffff;
            font-weight: 600;
        }
        .personnel-table .btn-secondary {
            width: auto;
            padding: 6px 12px;
            font-size: 0.9rem;
        }
        .toggle-switch {
            position: relative;
            display: inline-block;
            width: 60px;
            height: 34px;
            margin: 10px 0;
        }
        .toggle-switch input {
            opacity: 0;
            width: 0;
            height: 0;
        }
        .slider {
            position: absolute;
            cursor: pointer;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-color: #ccc;
            transition: .4s;
            border-radius: 34px;
        }
        .slider:before {
            position: absolute;
            content: "";
            height: 26px;
            width: 26px;
            left: 4px;
            bottom: 4px;
            background-color: white;
            transition: .4s;
            border-radius: 50%;
        }
        input:checked + .slider {
            background-color: #34C759;
        }
        input:checked + .slider:before {
            transform: translateX(26px);
        }
        @media (max-width: 768px) {
            .container { 
                padding: 20px 15px; 
            }
            .section { padding: 25px; }
            .sidebar { width: 200px; }
            .sidebar-toggle { 
                padding: 8px; 
                font-size: 1rem; 
            }
            .sidebar button { 
                padding: 10px; 
                font-size: clamp(0.85rem, 2vw, 0.95rem); 
            }
            .sidebar button i { 
                font-size: clamp(1.1rem, 2vw, 1.3rem); 
            }
            #login-section .login-container { padding: 30px; }
            .user-item { grid-template-columns: 1fr; }
            .user-actions { margin-top: 10px; justify-content: flex-end; }
            .personnel-table { font-size: 0.8rem; }
            .personnel-table th, .personnel-table td { padding: 8px; }
        }
        @media (max-width: 480px) {
            .container { 
                padding: 15px 10px; 
            }
            .section { padding: 20px; }
            .sidebar { width: 180px; }
            .sidebar-toggle { 
                padding: 6px; 
                font-size: 0.9rem; 
            }
            .sidebar button { 
                padding: 20px; 
                font-size: clamp(0.9rem, 1.8vw, 0.9rem); 
            }
            .sidebar button i { 
                font-size: clamp(1rem, 2vw, 1.2rem); 
            }
            #login-section .login-container { 
                padding: 20px; 
                max-width: 90%; 
            }
            .personnel-table { font-size: 0.75rem; }
            .personnel-table th, .personnel-table td { padding: 6px; }
        }
        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(-20px); }
            to { opacity: 1; transform: translateY(0); }
        }
        @keyframes pulse {
            0% { transform: scale(1); opacity: 0.5; }
            50% { transform: scale(1.2); opacity: 0.3; }
            100% { transform: scale(1); opacity: 0.5; }
        }
        html, body {
            height: 100%;
            min-height: -webkit-fill-available;
            overscroll-behavior-y: none;
            overflow-x: hidden;
            scrollbar-width: none;
            -ms-overflow-style: none;
            touch-action: manipulation;
        }
        body::-webkit-scrollbar {
            display: none;
        }

        /* --- Remove unused CSS for deleted sections --- */
        .dashboard-card.deliveries:after { display: none !important; }
        .dashboard-card.deliveries p { color: inherit !important; background: none !important; }
        .mini-chart { display: none !important; }

        /* Delivery Personnel List Section (only this part updated) */
        h2.text-xl.font-semibold.mb-4 {
            margin-bottom: 16px;
            font-size: 1.5rem;
        }
        #personnel-list {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
            gap: 18px;
            min-height: 60px;
        }
        #personnel-list div {
            text-align: center;
            color: #aaa;
            padding: 20px 0;
        }
        /* Add or update these styles in your <style> tag */
        .personnel-list-btn {
            display: flex;
            align-items: center;
            gap: 16px;
            background: linear-gradient(120deg, #232325 80%, #232325 100%);
            border: none;
            border-radius: 18px;
            padding: 20px 22px;
            margin-bottom: 0;
            width: 100%;
            font-size: 1.08rem;
            color: #e0e0e0;
            font-weight: 600;
            box-shadow: 0 2px 12px rgba(0,0,0,0.10);
            transition: background 0.2s, box-shadow 0.2s, transform 0.1s;
            cursor: pointer;
            text-align: left;
            position: relative;
            min-height: 64px;
            border: 1.5px solid #232325;
            outline: none;
            border-color: #30c8ff;
        }
        .personnel-list-btn:hover, .personnel-list-btn:focus {
            background: linear-gradient(120deg, #2a2a2c 80%, #30c8ff 100%);
            color: #fff;
            transform: translateY(-2px) scale(1.01);
            box-shadow: 0 6px 18px rgba(0,122,255,0.10);
            border-color: #30c8ff;
        }
        .personnel-list-btn .fa-user {
            color: #30c8ff;
            font-size: 1.5rem;
            background: #18181a;
            border-radius: 50%;
            padding: 10px;
            box-shadow: 0 2px 8px rgba(48,200,255,0.10);
        }
        .personnel-list-btn .personnel-email {
            font-weight: 700;
            color: #fff;
            font-size: 1.08rem;
            letter-spacing: 0.01em;
            word-break: break-all;
        }
        .personnel-list-btn .personnel-label {
            background: #30c8ff;
            color: #fff;
            font-size: 0.85em;
            border-radius: 8px;
            padding: 2px 10px;
            margin-left: 10px;
            font-weight: 500;
            letter-spacing: 0.01em;
        }
        .personnel-list-btn .status-dot {
            margin-left: auto;
            width: 14px;
            height: 14px;
            border-radius: 50%;
            background: #34c759;
            display: inline-block;
            border: 2px solid #232325;
            box-shadow: 0 0 0 2px #232325;
        }
        .personnel-list-btn .status-dot.inactive {
            background: #ff3b30;
        }
        @media (max-width: 600px) {
            #personnel-list { grid-template-columns: 1fr !important; }
            .personnel-list-btn { padding: 14px 10px; font-size: 0.98rem; min-height: 54px; }
        }
        .group-toggle {
  width: 100%;
  padding: 12px 16px;
  font-size: 0.9rem;
  color: #aaa;
  background: transparent;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: background 0.2s;
}

.group-toggle:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.group-content {
  overflow: hidden;
  max-height: 500px;
  transition: max-height 0.3s ease;
  display: flex;
  flex-direction: column;
  margin-top: 4px;
}

.group.collapsed .group-content {
  max-height: 0;
  overflow: hidden;
}

.group.collapsed .group-toggle i.fa-chevron-down {
  transform: rotate(-90deg);
}
#hostel-overlay input[type="checkbox"] {
  transform: scale(1.2);
  margin-right: 8px;
}



    