@keyframes spin { 0% { transform: translate(-50%, -50%) rotate(0deg); } 100% { transform: translate(-50%, -50%) rotate(360deg); } } /* General Styles */ body { font-family: Arial, sans-serif; margin: 0; padding: 0; user-select: none; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; } h2 { color: #fff; font-size: 35px; margin-bottom: 15px; text-align: center; } .description { color: #ccc; font-size: 16px; text-align: center; margin-bottom: 10px; } /* Vehicle UI Styles */ #vehicleUI { display: none; position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background-color: rgba(0, 0, 0, 0); z-index: 1000; display: flex; justify-content: center; align-items: center; } /* Modal Styles */ .modal { background-color: #2d3748; background-image: url('./images/background.png'); background-size: cover; background-position: center; border-radius: 10px; width: 90%; max-width: 1200px; padding: 20px; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); overflow-y: auto; max-height: 80%; position: relative; } /* Loading Spinner Styles */ .spinner { width: 50px; height: 50px; border-radius: 50%; border: 5px solid #09f; border-top-color: transparent; animation: spin 1s linear infinite; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); display: none; } /* Header Styles */ .header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; padding: 10px; } /* Profile Styles */ .profile-container { display: flex; align-items: center; margin-right: auto; } .profile-image { width: 50px; height: 50px; border-radius: 50%; margin-right: 10px; } .profile-info { color: #fff; text-align: left; } .profile-name { font-size: 16px; font-weight: bold; } .profile-level { font-size: 12px; } /* Tab Container Styles */ .tab-container { display: flex; align-items: center; margin-left: auto; } .tab { background-color: transparent; color: #fff; border: none; border-radius: 5px; padding: 15px; cursor: pointer; flex: 0; margin-right: 15px; transition: background-color 0.3s ease; font-size: 20px; } .tab.active { background-color: #4299e1; } .tab:hover { background-color: rgba(255, 255, 255, 0.1); } /* Tab Content Styles */ .tab-content { padding: 15px; border-radius: 8px; background-color: #2d374800; color: #fff; height: 530px; overflow-y: auto; } /* Close Button Styles */ .close-btn { background-color: transparent; border: none; color: #fff; font-size: 30px; cursor: pointer; padding: 15px; } .close-btn:hover { color: #ccc; } .history-container { background-color: rgba(255, 255, 255, 0.1); border-radius: 8px; padding: 15px; margin-bottom: 15px; max-height: 300px; /* Set a max height for the container */ overflow-y: auto; } .history-table { width: 100%; border-collapse: collapse; background-color: rgba(0, 0, 0, 0.2); border-radius: 8px; } .history-table th, .history-table td { min-width: 150px; } .history-table th { background-color: rgba(0, 0, 0, 0.4); color: #fff; padding: 10px; text-align: center; font-size: 16px; } .history-table td { color: #fff; padding: 10px; text-align: center; font-size: 14px; } /* Custom Scrollbar for .history-container */ .history-container::-webkit-scrollbar { width: 8px; } .history-container::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.5); border-radius: 4px; } .history-container::-webkit-scrollbar-track { background: rgba(0, 0, 0, 0.3); } /* Updated Status Styles */ .status-in-progress { color: #ffcc00; font-weight: bold; text-transform: uppercase; } .status-completed { color: #28a745; font-weight: bold; text-transform: uppercase; } .status-canceled { color: #dc3545; /* Red for canceled */ font-weight: bold; text-transform: uppercase; } .history-table tr:nth-child(even) { background-color: rgba(255, 255, 255, 0.1); } .top-list-container{ background-color: rgba(255, 255, 255, 0.1); border-radius: 8px; padding: 15px; margin-bottom: 15px; max-height: 300px; /* Set a max height for the container */ overflow-y: auto; } .top-list-table { width: 100%; border-collapse: collapse; background-color: rgba(0, 0, 0, 0.2); border-radius: 8px; } .top-list-table th, .top-list-table td { min-width: 150px; } .top-list-table th { background-color: rgba(0, 0, 0, 0.4); color: #fff; padding: 10px; text-align: center; font-size: 16px; } .top-list-table td { color: #fff; padding: 15px; text-align: center; font-size: 14px; vertical-align: middle; } .player-info-cell { display: flex; align-items: center; justify-content: flex-start; padding: 5px 15px; gap: 10px; } .top-player-image { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; } .player-name { text-align: left; color: #fff; } /* Vehicle Grid Styles */ .vehicle-grid { display: flex; justify-content: center; align-items: center; overflow: hidden; width: 100%; scroll-behavior: smooth; padding: 20px 0; } .vehicle-card { pointer-events: auto; flex: 0 0 30%; margin: 0 10px; transition: transform 0.3s ease-in-out; box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); border-radius: 8px; background-color: #1a202c; } .vehicle-card img { width: 100%; height: 180px; object-fit: cover; border-radius: 8px 8px 0 0; } .vehicle-image { width: 100%; height: 180px; object-fit: cover; } .vehicle-info { padding: 15px; text-align: center; } .vehicle-name { font-size: 20px; font-weight: bold; margin-bottom: 10px; } .vehicle-details p { margin: 5px 0; font-size: 15px; } /* Carousel Container Styles */ .carousel-container { position: relative; display: flex; justify-content: center; align-items: center; margin-top: 20px; } .arrow { background-color: rgba(0, 0, 0, 0.5); color: white; border: none; font-size: 30px; cursor: pointer; padding: 10px; position: absolute; top: 50%; transform: translateY(-50%); z-index: 1; } .left-arrow { left: -5px; } .right-arrow { right: -5px; } /* Dot Indicators Styles */ .dot-indicators { display: flex; justify-content: center; margin-top: 20px; } .dot { width: 12px; height: 12px; border-radius: 50%; background-color: #ddd; margin: 0 5px; cursor: pointer; transition: background-color 0.3s ease; } .dot.active { background-color: #4299e1; } /* Action Button Styles */ .action-btn { width: 100%; padding: 12px; border: none; border-radius: 4px; color: white; font-weight: bold; cursor: pointer; margin-top: 10px; background-color: #48bb78; } .action-btn:hover { background-color: #38a169; } .job-in-progress { background-color: orange; color: white; cursor: not-allowed; opacity: 0.8; } .job-in-progress:hover { background-color: orange; } .disabled-btn { background-color: red; color: white; cursor: not-allowed; opacity: 0.6; } .disabled-btn:hover { background-color: red; } /* Indicator Styles */ .indicator { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: 5px; }