* { margin: 0; padding: 0; } body { font-family: 'Inter', sans-serif; line-height: 1.5; background: none; height: 100vh; user-select: none; } #vehicleUI { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 80vw; height: 80vh; } .app-container { background: var(--background-dark); box-shadow: 0 0 40px rgba(15, 23, 42, 0.3); border-radius: 16px; width: 100%; height: 100%; display: flex; flex-direction: column; overflow: hidden; } .app-header { display: flex; align-items: center; justify-content: space-between; padding: 20px 32px; background: rgba(255, 255, 255, 0.05); } .profile-section { display: flex; align-items: center; gap: 16px; } .profile-image { width: 48px; height: 48px; border-radius: 12px; border: 2px solid var(--primary-color); } .profile-info { color: var(--text-primary); } /* Header Right Styling */ .header-right { display: flex; align-items: center; } .header-actions { display: flex; align-items: center; gap: 16px; } .nav-tabs { display: flex; align-items: center; background: rgba(51, 65, 85, 0.1); border-radius: 12px; padding: 4px; gap: 4px; } .tab { display: flex; align-items: center; justify-content: center; gap: 8px; background: transparent; color: var(--text-secondary); border: none; padding: 8px 12px; border-radius: 8px; transition: all 0.2s ease; cursor: pointer; font-weight: 500; font-size: 0.9rem; } .tab i { font-size: 1rem; } .tab span { display: inline-block; } .tab:hover:not(.active) { background: rgba(51, 65, 85, 0.2); color: var(--text-primary); } .tab.active { background: var(--primary-color); color: white; } /* Close Button Styling */ .close-btn { display: flex; align-items: center; justify-content: center; width: 45px; height: 45px; background: rgba(51, 65, 85, 0.1); border: none; color: var(--danger-color); border-radius: 8px; cursor: pointer; transition: all 0.2s ease; } .close-btn:hover { background: var(--danger-color); color: white; } .close-btn i { font-size: 1.5rem; } /* Main Content Area */ .app-content { flex: 1; overflow: hidden; padding: 20px 32px; display: flex; flex-direction: column; } .section-header { text-align: center; margin-bottom: 20px; } .section-header h2 { color: var(--text-primary); font-size: 28px; margin-bottom: 8px; } .description { color: var(--text-secondary); font-size: 16px; } /* Vehicle Grid */ .vehicles-section { flex: 1; border-radius: 16px; padding: 20px; display: flex; flex-direction: column; overflow: hidden; } .vehicle-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding: 0; height: 100%; align-items: center; } /* Modern Card Design */ .vehicle-card { background: transparent; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 12px; overflow: hidden; transition: all 0.3s ease; position: relative; width: 100%; height: 280px; max-width: none; margin: 0; } .vehicle-card:hover { transform: none; } .vehicle-image-container { position: relative; width: 100%; height: 160px; overflow: hidden; } .vehicle-image { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; } .vehicle-card:hover .vehicle-image { transform: scale(1.05); } .vehicle-info { padding: 12px; background: rgba(15, 23, 42, 0.3); display: flex; flex-direction: column; gap: 8px; border-top: 1px solid rgba(255, 255, 255, 0.1); } .vehicle-name { font-size: 1rem; font-weight: 600; color: var(--text-primary); text-align: center; margin: 0; margin-bottom: 4px; } .vehicle-details { display: grid; gap: 12px; margin-bottom: 20px; } .vehicle-details p { display: flex; align-items: center; gap: 10px; color: var(--text-secondary); font-size: 0.85rem; padding: 5px 8px; background: rgba(255, 255, 255, 0.05); border-radius: 8px; } .vehicle-details p i { color: var(--primary-color); font-size: 1.1rem; } /* Action Button Styling */ .action-btn { width: 100%; padding: 10px; border: none; border-radius: 8px; font-weight: 600; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.5px; transition: all 0.3s ease; background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%); color: white; cursor: pointer; } .action-btn:not(:disabled):hover { transform: translateY(-2px); box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3); } .action-btn.disabled-btn { background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%); opacity: 0.8; } .action-btn.job-in-progress { background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%); } /* Level Badge */ .level-badge { position: absolute; top: 12px; right: 12px; background: rgba(15, 23, 42, 0.8); color: var(--text-primary); padding: 4px 10px; border-radius: 20px; font-size: 0.8rem; font-weight: 600; backdrop-filter: blur(4px); border: 1px solid var(--primary-color); } /* Tab Styles */ .tab { background: transparent; color: var(--text-secondary); border: none; padding: 12px 20px; border-radius: 8px; font-size: 1.1rem; transition: all 0.2s ease; cursor: pointer; } .tab.active { background: var(--primary-color); color: white; } /* Content Visibility */ .tab-content { display: none; } .tab-content.active { display: block; } /* Tables */ .history-container { background: rgba(30, 41, 59, 0.3); border-radius: 12px; padding: 24px; } .history-table, .top-list-table { width: 100%; border-collapse: separate; border-spacing: 0 8px; text-align: center; } /* Status Styles */ .status-in-progress { color: var(--warning-color); font-weight: 600; } .status-completed { color: var(--success-color); font-weight: 600; } .status-canceled { color: var(--danger-color); font-weight: 600; } /* Hide UI by default */ #vehicleUI { display: none; } /* Scrollbar Styling */ ::-webkit-scrollbar { width: 6px; } ::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.05); border-radius: 3px; } ::-webkit-scrollbar-thumb { background: var(--primary-color); border-radius: 3px; } ::-webkit-scrollbar-thumb:hover { background: var(--secondary-color); } /* Responsive Adjustments */ @media screen and (max-width: 1600px) { .vehicle-grid { grid-template-columns: repeat(3, 1fr); } } @media screen and (max-width: 1200px) { .vehicle-grid { grid-template-columns: repeat(2, 1fr); } } @media screen and (max-width: 800px) { .vehicle-grid { grid-template-columns: 1fr; } } .dot-indicators { display: none; } .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--text-secondary); cursor: pointer; transition: all 0.2s ease; } .dot.active { background: var(--primary-color); transform: scale(1.2); } /* Arrow buttons */ .arrow { display: none; } .left-arrow { left: 0; } .right-arrow { right: 0; } .arrow:hover { background: var(--secondary-color); transform: translateY(-50%) scale(1.1); } /* History Tab Styling */ .history-container { background: rgba(30, 41, 59, 0.3); border-radius: 16px; padding: 24px; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1); } .history-table thead th { color: var(--text-secondary); font-weight: 500; padding: 16px; text-align: center; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.5px; } .history-table tbody tr { background: rgba(51, 65, 85, 0.3); transition: all 0.2s ease; } .history-table tbody tr:hover { background: rgba(51, 65, 85, 0.5); transform: translateY(-2px); } .history-table tbody td { padding: 16px; color: var(--text-primary); font-size: 0.95rem; } .history-table tbody td:first-child { border-radius: 8px 0 0 8px; font-weight: 600; color: var(--primary-color); } .history-table tbody td:last-child { border-radius: 0 8px 8px 0; font-weight: 600; } /* Status Badge Styling */ .status-badge { padding: 6px 12px; border-radius: 20px; font-size: 0.85rem; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; } .status-badge i { font-size: 0.9rem; } .status-in-progress { background: rgba(245, 158, 11, 0.15); color: #f59e0b; } .status-completed { background: rgba(16, 185, 129, 0.15); color: #10b981; } .status-canceled { background: rgba(239, 68, 68, 0.15); color: #ef4444; } /* Earnings Column */ .earnings { color: var(--success-color) !important; font-weight: 600; } /* Top Players Styling */ .top-list-container { border-radius: 12px; padding: 24px; align-items: center; } .top-list-table thead th { color: var(--text-secondary); font-weight: 500; padding: 16px; text-align: center; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.5px; } .top-list-table thead th.player-toplist { text-align: left; } .top-list-table tbody { padding: 0 12px 0 0; display: block; } .top-list-table tbody tr { background: rgba(51, 65, 85, 0.3); transition: all 0.2s ease; border-radius: 12px; margin-bottom: 8px; display: table; width: 100%; } .top-list-table tbody tr:last-child { margin-bottom: 0; } .top-list-table tbody tr:hover { background: rgba(51, 65, 85, 0.5); transform: translateY(-1px); } .top-list-table tbody td { padding: 16px; color: var(--text-primary); font-size: 0.95rem; } .player-info-cell { display: flex; align-items: center; gap: 12px; } .top-player-image { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--primary-color); object-fit: cover; } .player-rank { font-size: 1.2rem; font-weight: 700; color: var(--primary-color); min-width: 30px; } .player-name { font-weight: 600; color: var(--text-primary); } .top-player-level { background: rgba(59, 130, 246, 0.15); color: var(--primary-color); padding: 4px 12px; border-radius: 20px; font-size: 0.85rem; font-weight: 600; } .deliveries-count { font-weight: 600; color: var(--success-color); } .rank-1 .player-rank { color: #ffd700; } .rank-2 .player-rank { color: #c0c0c0; } .rank-3 .player-rank { color: #cd7f32; } /* History Dropdown Styling */ .history-dropdown { position: relative; display: flex; align-items: center; } .history-btn { position: relative; z-index: 1; } .history-panel { position: absolute; top: calc(100% + 12px); right: 0; width: 480px; background: var(--background-dark); border-radius: 12px; box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2); z-index: 1000; opacity: 0; visibility: hidden; transform: translateY(-10px); transition: all 0.2s ease; } .history-panel.active { opacity: 1; visibility: visible; transform: translateY(0); } .history-panel-header { padding: 16px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); display: flex; justify-content: space-between; align-items: center; } .history-panel-title { color: var(--text-primary); font-size: 1.1rem; font-weight: 600; } /* History List Empty State */ .history-list { max-height: 400px; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; } .empty-history { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 40px 20px; color: var(--text-secondary); } .empty-history i { font-size: 3rem; margin-bottom: 16px; opacity: 0.5; } .history-item { padding: 12px; border-radius: 8px; background: rgba(51, 65, 85, 0.3); margin-bottom: 8px; transition: all 0.2s ease; } .history-item:hover { background: rgba(51, 65, 85, 0.5); transform: translateX(4px); } .history-item-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; } .history-item-id { color: var(--primary-color); font-weight: 600; } .history-item-time { color: var(--text-secondary); font-size: 0.85rem; } .history-item-details { display: flex; justify-content: space-between; align-items: center; } .history-item-deliveries { color: var(--text-secondary); font-size: 0.9rem; } .history-item-earnings { color: var(--success-color); font-weight: 600; } /* Refresh Button Styling */ .refresh-btn { background: transparent; border: none; color: var(--text-secondary); width: 32px; height: 32px; border-radius: 8px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.3s ease; } .refresh-btn i { font-size: 1.1rem; } .refresh-btn:hover { background: rgba(51, 65, 85, 0.5); color: var(--text-primary); transform: rotate(180deg); } .refresh-btn.spinning i { animation: spin 1s linear infinite; } @keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } } /* Remove all scrollbar styles */ .app-content::-webkit-scrollbar, .vehicles-section::-webkit-scrollbar, .vehicle-grid::-webkit-scrollbar { display: none; } /* Profile Name and Level Styling */ .profile-name-level { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; } .profile-name { font-weight: 600; color: var(--text-primary); font-size: 1.1rem; } .profile-level-badge { background: var(--primary-color); color: white; padding: 2px 8px; border-radius: 16px; font-size: 0.8rem; font-weight: 600; } /* XP Progress Bar */ .profile-xp-container { display: flex; align-items: center; gap: 12px; width: 300px; /* Increase the container width */ } .profile-xp-progress { flex: 1; height: 8px; background: rgba(255, 255, 255, 0.1); border-radius: 4px; overflow: hidden; width: 100%; /* Ensure it takes full width of the container */ } .profile-xp-bar { height: 100%; background: var(--secondary-color); width: 0%; transition: width 0.5s ease; } .profile-xp-text { color: var(--text-secondary); font-size: 0.8rem; font-weight: 500; min-width: 70px; text-align: right; } /* Locked Truck Styling */ .locked-truck .vehicle-image { filter: grayscale(100%) brightness(50%); opacity: 0.6; } .vehicle-image-container { position: relative; } .level-overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; background: rgba(0, 0, 0, 0.7); color: white; z-index: 10; } .level-overlay i { font-size: 2rem; margin-bottom: 8px; } .level-requirement { font-size: 1rem; font-weight: 600; color: var(--text-secondary); } /* Responsive adjustments */ @media screen and (max-width: 1200px) { .nav-tabs .tab span { display: none; } .nav-tabs .tab { padding: 8px; } } /* Top Players Scrollbar */ .top-list-table tbody { max-height: 500px; overflow-y: auto; display: block; } .top-list-table { display: block; } .top-list-table thead, .top-list-table tbody tr { display: table; width: 100%; table-layout: fixed; } .top-list-table tbody::-webkit-scrollbar { width: 6px; } .top-list-table tbody::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.05); border-radius: 3px; } .top-list-table tbody::-webkit-scrollbar-thumb { background: var(--primary-color); border-radius: 3px; } .top-list-table tbody::-webkit-scrollbar-thumb:hover { background: var(--secondary-color); } /* Profile Picture Modal Styling Improvements */ .modal-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.6); z-index: 2000; justify-content: center; align-items: center; } .modal-container { background: var(--background-dark); border-radius: 16px; width: 400px; max-width: 90%; box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3); overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.1); } .modal-header { display: flex; justify-content: space-between; align-items: center; padding: 16px; background: rgba(255, 255, 255, 0.05); border-bottom: 1px solid rgba(255, 255, 255, 0.1); } .modal-header h3 { color: var(--text-primary); font-size: 1.2rem; font-weight: 600; margin: 0; } .modal-close { background: none; border: none; color: var(--text-secondary); font-size: 1.5rem; cursor: pointer; transition: color 0.2s ease; line-height: 1; padding: 0; } .modal-close:hover { color: var(--danger-color); } .modal-content { padding: 24px; display: flex; flex-direction: column; gap: 16px; } .modal-content p { color: var(--text-secondary); font-size: 0.95rem; margin: 0; } .modal-content input { width: 100%; padding: 12px; background: rgba(51, 65, 85, 0.3); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 8px; color: var(--text-primary); font-size: 0.95rem; transition: all 0.2s ease; box-sizing: border-box; /* Ensure padding doesn't increase width */ margin-top: 12px; } .modal-content input:focus { outline: none; border-color: var(--primary-color); box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2); } .modal-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 16px; } .modal-actions button { padding: 10px 16px; border: none; border-radius: 8px; font-weight: 600; font-size: 0.9rem; cursor: pointer; transition: all 0.2s ease; } .btn-cancel { background: rgba(51, 65, 85, 0.3); color: var(--text-secondary); } .btn-cancel:hover { background: rgba(51, 65, 85, 0.5); } .btn-save { background: var(--primary-color); color: white; } .btn-save:hover { background: var(--secondary-color); }