* { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; background: transparent; overflow: hidden; } .hidden { display: none !important; } .hub-container { position: absolute; width: 300px; height: auto; background: #1a1a1abd; border-radius: 7px; overflow: hidden; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); user-select: none; } .hub-container.dragging { cursor: grabbing !important; transform: scale(1.02); z-index: 9999; } .hub-container.drag-enabled { border: 2px solid rgba(255, 215, 0, 0.6); cursor: grab; } .hub-container.drag-enabled:hover { border-color: rgba(255, 215, 0, 0.8); } .hub-header { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; background: rgba(0, 0, 0, 0.2); border-radius: 15px; } .hub-title { display: flex; align-items: center; gap: 8px; color: white; font-size: 16px; font-weight: 600; } .hub-title i { color: #37b4f8; } .hub-controls { display: flex; gap: 6px; } .control-btn { width: 30px; height: 30px; border: none; border-radius: 6px; background: rgba(255, 255, 255, 0.1); color: white; cursor: pointer; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); display: flex; align-items: center; justify-content: center; position: relative; font-size: 12px; } .control-btn:hover { background: rgba(255, 255, 255, 0.2); transform: scale(1.1); } .control-btn:active { transform: scale(0.95); } .control-btn:disabled { opacity: 0.5; cursor: not-allowed; pointer-events: none; } #move-btn { opacity: 0.5; pointer-events: none; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); } .hub-content { padding: 16px; max-height: 350px; overflow-y: auto; } .officers-section h3 { color: white; margin-bottom: 12px; font-size: 14px; display: flex; align-items: center; gap: 6px; } .officer-count { color: #37b4f8; padding: 2px 6px; border-radius: 8px; font-size: 14px; font-weight: 600; } .officers-list { display: flex; flex-direction: column; gap: 8px; } .officer-card { background: rgba(255, 255, 255, 0.1); border-radius: 12px; padding: 10px 12px; } .officer-card:hover { background: rgba(255, 255, 255, 0.15); } .officer-info { display: flex; justify-content: space-between; align-items: center; } .officer-status { display: flex; align-items: center; gap: 6px; } .status-text { color: white; font-size: 10px; font-weight: 600; opacity: 0.8; } .officer-name-callsign { display: flex; align-items: center; gap: 8px; flex: 1; } .officer-name { color: white; font-weight: 600; font-size: 13px; position: relative; cursor: pointer; transition: color 0.3s ease; } .officer-name.talking { color: #37b4f8 !important; text-shadow: 0 0 8px rgba(55, 180, 248, 0.5); } .officer-name .rank { position: absolute; top: 0; left: 0; opacity: 0; color: #00a0f7; } .officer-name:hover .name { opacity: 0; } .officer-name:hover .rank { opacity: 1; } .callsign { background: rgba(55, 180, 248, 0.2); color: #37b4f8; padding: 2px 6px; border-radius: 8px; font-weight: 600; font-size: 11px; } .status-indicator { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; background: transparent; } .status-indicator.status-on { background: #4ade80 !important; box-shadow: 0 0 6px rgba(74, 222, 128, 0.8) !important; border: 2px solid #4ade80 !important; } .status-indicator.status-off { background: #ef4444 !important; box-shadow: 0 0 6px rgba(239, 68, 68, 0.8) !important; border: 2px solid #ef4444 !important; } .status-indicator.status-break { background: #a855f7 !important; box-shadow: 0 0 6px rgba(168, 85, 247, 0.8) !important; border: 2px solid #a855f7 !important; } .status-indicator.status-dispatch { background: #3b82f6 !important; box-shadow: 0 0 6px rgba(59, 130, 246, 0.8) !important; border: 2px solid #3b82f6 !important; } /* Fallback for any unknown status */ .status-indicator:not(.status-on):not(.status-off):not(.status-break):not(.status-dispatch) { background: #3b82f6 !important; border: 2px solid #3b82f6 !important; box-shadow: 0 0 4px rgba(7, 54, 146, 0.5) !important; } /* Chat Section Styles */ .modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; z-index: 1000; pointer-events: none; } #chat-section { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 80%; max-width: 800px; border-radius: 8px; z-index: 1001; display: flex; align-items: center; justify-content: center; pointer-events: auto; } #chat-section.hidden { display: none; } #chat-section .modal-content.chat-modal { margin: 0 auto; box-shadow: 0 4px 32px rgba(0,0,0,0.25); background: rgba(15, 15, 15, 0.95); } .chat-messages { flex: 1; overflow-y: auto; padding: 15px; display: flex; flex-direction: column; gap: 10px; scroll-behavior: smooth; } .chat-message { padding: 10px 15px; border-radius: 6px; max-width: 80%; word-wrap: break-word; background: rgba(255, 255, 255, 0.1); border-left: 3px solid #60a5fa; color: #fff; } .chat-message .message-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 5px; font-size: 0.9em; } .chat-message .message-author { font-weight: bold; color: #007bff; } .chat-message .message-time { color: rgba(255, 255, 255, 0.5); font-size: 0.8em; } .chat-message .message-content { color: #fff; line-height: 1.4; } .chat-input-container { display: flex; gap: 10px; padding: 15px; background: rgba(0, 0, 0, 0.3); border-top: 1px solid rgba(255, 255, 255, 0.1); } #chat-input { flex: 1; padding: 12px 15px; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 6px; color: #fff; font-size: 14px; } #chat-input:focus { outline: none; border-color: #007bff; background: rgba(255, 255, 255, 0.15); } .send-btn { padding: 12px 20px; background: #007bff; border: none; border-radius: 6px; color: #fff; cursor: pointer; transition: background 0.2s; } .send-btn:hover { background: #0056b3; } .modal-content { background: #1a1a1a; border-radius: 12px; width: 300px; pointer-events: auto; } .modal-header { display: flex; justify-content: space-between; align-items: center; padding: 16px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); } .modal-header h3 { color: white; font-size: 16px; } .close-modal-btn { background: none; border: none; color: white; cursor: pointer; font-size: 16px; padding: 4px; border-radius: 4px; transition: all 0.3s ease; } .close-modal-btn:hover { background: rgba(255, 255, 255, 0.1); } .modal-body { padding: 16px; } .setting-item { margin-bottom: 12px; } .setting-btn { width: 100%; padding: 10px 12px; border: none; border-radius: 6px; background: rgba(255, 255, 255, 0.1); color: white; cursor: pointer; transition: all 0.3s ease; display: flex; align-items: center; gap: 8px; font-size: 13px; } .setting-btn:hover { background: rgba(255, 255, 255, 0.2); transform: translateY(-1px); } .callsign-input { display: flex; gap: 8px; align-items: center; } #callsign-input { flex: 1; padding: 8px 12px; border: none; border-radius: 6px; background: rgba(255, 255, 255, 0.1); color: white; font-size: 12px; outline: none; transition: all 0.3s ease; } #callsign-input::placeholder { color: rgba(255, 255, 255, 0.6); } #callsign-input:focus { background: rgba(255, 255, 255, 0.15); box-shadow: 0 0 0 2px rgba(96, 165, 250, 0.5); } /* Scrollbar Styles */ ::-webkit-scrollbar { width: 4px; } ::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.1); border-radius: 2px; } ::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.3); border-radius: 2px; } ::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.5); } /* Animations */ @keyframes fadeIn { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: scale(1); } } @keyframes slideIn { from { opacity: 0; transform: translateX(100%); } to { opacity: 1; transform: translateX(0); } } @keyframes slideOut { from { opacity: 1; transform: translateX(0); } to { opacity: 0; transform: translateX(100%); } } @keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.7; } } .hub-container { animation: fadeIn 0.3s ease; } /* Responsive Design */ @media (max-width: 480px) { .hub-container { width: 90vw; max-width: 280px; } .modal-content { width: 90vw; max-width: 260px; } } .officer-radio { margin: 0 8px; } .frequency-btn { background: rgba(55, 180, 248, 0.2); color: #37b4f8; border: none; border-radius: 8px; padding: 4px 8px; font-size: 11px; font-weight: 600; cursor: pointer; transition: all 0.3s ease; } .frequency-btn:hover { background: rgba(55, 180, 248, 0.3); transform: translateY(-1px); } .frequency-display { background: rgba(255, 193, 7, 0.2); color: #ffc107; border-radius: 8px; padding: 2px 6px; font-size: 11px; font-weight: 600; }