* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; user-select: none; } #app { height: 100vh; width: 100vw; overflow: hidden; } .police-list { position: fixed !important; width: 320px; border: 1px solid rgba(255, 255, 255, 0.1); backdrop-filter: blur(12px); min-height: 150px; overflow: hidden; display: flex; flex-direction: column; --bg-opacity: 0.85; border-radius: 0; background: rgba(16, 18, 24, var(--bg-opacity)); transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); right: 20px; top: 20px; } .police-list.chat-view { height: 500px !important; } .police-list.settings-view { height: 540px !important; } .police-list.dragging { opacity: 0.8; transform: scale(0.98); } .police-list.resizing { opacity: 0.9; } .header { background: linear-gradient(to right, rgba(20, 22, 30, 0.7), rgba(30, 34, 46, 0.7)); padding: 10px 14px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid rgba(255, 255, 255, 0.05); cursor: move; height: 50px; } .header-content { display: flex; align-items: center; gap: 10px; color: #ffffff; font-size: 14px; font-weight: 500; flex: 1; } .departments-row { display: flex; gap: 4px; align-items: center; flex: 1; } .department-tab { display: flex; align-items: center; gap: 6px; padding: 6px 10px; background: rgba(255, 255, 255, 0.1); border-radius: 6px; color: var(--dept-color); font-size: 12px; font-weight: 500; cursor: pointer; transition: all 0.2s ease; flex: 1; justify-content: center; } .department-tab:hover { background: rgba(255, 255, 255, 0.15); transform: translateY(-1px); } .department-tab.active { background: rgba(0, 184, 255, 0.2); color: #00b8ff; box-shadow: 0 0 10px rgba(0, 184, 255, 0.3); } .count { background: rgba(0, 184, 255, 0.2); border: 1px solid rgba(0, 184, 255, 0.3); padding: 2px 8px; border-radius: 12px; font-size: 12px; min-width: 28px; text-align: center; color: #00b8ff; font-weight: 500; } .nav-bar { display: flex; align-items: center; background: rgba(20, 22, 30, 0.95); border-bottom: 1px solid rgba(255, 255, 255, 0.08); padding: 8px; gap: 4px; height: 40px; } .nav-item { display: flex; align-items: center; justify-content: center; color: #a0a0a0; padding: 6px 10px; border-radius: 8px; cursor: pointer; transition: all 0.2s ease; font-size: 12px; gap: 6px; flex: 1; position: relative; overflow: hidden; } .nav-item:hover { color: #ffffff; background: rgba(255, 255, 255, 0.1); } .nav-item.active { background: rgba(0, 184, 255, 0.15); color: #00b8ff; box-shadow: 0 0 10px rgba(0, 184, 255, 0.2); } .nav-item.active i { color: #00b8ff; } .nav-item i { font-size: 14px; transition: transform 0.2s ease; color: #a0a0a0; } .nav-item.has-unread::before { content: ''; position: absolute; top: 50%; left: 8px; width: 6px; height: 6px; background: #ef4444; border-radius: 50%; transform: translateY(-50%); animation: notificationPulse 2s infinite; } .settings-btn { width: 32px; height: 32px; border-radius: 8px; background: rgba(255, 255, 255, 0.05); border: none; color: #a0a0a0; cursor: pointer; transition: all 0.2s ease; display: flex; align-items: center; justify-content: center; } .settings-btn:hover { background: rgba(255, 255, 255, 0.1); color: #ffffff; transform: scale(1.05); } .settings-btn i { font-size: 16px; } .officers-list { flex: 1; overflow-y: auto; /* padding: 8px; */ padding: 8px 12px; margin: 4px 0; } .officer-row { display: flex; justify-content: space-between; align-items: center; /* padding: 10px 12px; */ /* margin: 6px 0; */ border-radius: 10px; background: linear-gradient(to right, rgba(40, 42, 47, 0.4), rgba(50, 52, 57, 0.4)); position: relative; border-left: 3px solid var(--status-color); transition: all 0.3s ease; padding: 8px 12px; margin: 4px 0; } .officer-row:hover { transform: translateX(5px); background: linear-gradient(to right, rgba(45, 47, 52, 0.5), rgba(55, 57, 62, 0.5)); } .officer-row.on-duty { --status-color: #10B981; } .officer-row.off-duty { --status-color: #EF4444; } .officer-row.on-break { --status-color: #F59E0B; } .officer-row.dispatch { --status-color: #00b8ff; } .officer-info { display: flex; align-items: center; gap: 12px; color: #ffffff; } .callsign { background: rgba(0, 184, 255, 0.15); color: #00b8ff; padding: 4px 8px; border-radius: 6px; font-weight: 500; font-size: 12px; min-width: 45px; text-align: center; text-shadow: 0 0 5px rgba(0, 184, 255, 0.7); } .officer-name { font-size: 13px; font-weight: 400; } .officer-grade { font-size: 11px; color: #a0a0a0; padding: 2px 6px; background: rgba(255, 255, 255, 0.1); border-radius: 3px; } .status-icons { display: flex; align-items: center; gap: 12px; color: #a0a0a0; } .radio-container { display: flex; align-items: center; gap: 6px; background: rgba(0, 184, 255, 0.15); padding: 4px 8px; border-radius: 6px; color: #00b8ff; transition: all 0.2s ease; } .radio-container:hover { background: rgba(0, 184, 255, 0.25); } .radio-container.disabled { opacity: 0.5; cursor: not-allowed; } .radio-channel { font-size: 12px; font-weight: 500; } .radio-icon, .location-icon { cursor: pointer; transition: all 0.2s ease; font-size: 14px; } .radio-icon:hover, .location-icon:hover { color: #ffffff; transform: scale(1.1); } .radio-icon.talking { color: #10B981; animation: pulse 1.5s infinite; } /* Toggle List */ .toggle-list { display: flex; flex-direction: column; gap: 10px; padding: 16px; background: rgba(22, 24, 29, 0.8); height: calc(100% - 50px); overflow-y: auto; } .toggle-row { background: rgba(28, 30, 35, 0.7); padding: 12px 16px; border-radius: 8px; display: flex; justify-content: space-between; align-items: center; border: 1px solid rgba(255, 255, 255, 0.05); transition: all 0.2s ease; color: #ffffff; } .toggle-row:hover { transform: translateY(-1px); background: rgba(28, 30, 35, 0.9); } .toggle-row.disabled { opacity: 0.5; cursor: not-allowed; } .toggle-switch { position: relative; display: inline-block; width: 44px; height: 22px; } .toggle-switch input { opacity: 0; width: 0; height: 0; } .toggle-slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: rgba(45, 47, 52, 0.8); transition: .3s; border-radius: 22px; border: 1px solid rgba(255, 255, 255, 0.1); } .toggle-slider:before { position: absolute; content: ""; height: 18px; width: 18px; left: 2px; bottom: 1px; background-color: #ffffff; transition: .3s; border-radius: 50%; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); } input:checked + .toggle-slider { background-color: #00b8ff; } input:checked + .toggle-slider:before { transform: translateX(22px); } .callsign-input-row { margin-top: 10px; padding: 10px; background: rgba(28, 30, 35, 0.6); border-radius: 8px; border: 1px solid rgba(255, 255, 255, 0.05); } .callsign-input { width: 100%; background: rgba(22, 24, 29, 0.8); border: 1px solid rgba(255, 255, 255, 0.1); padding: 12px; border-radius: 6px; color: #ffffff; font-size: 13px; margin-bottom: 12px; transition: all 0.2s ease; } .callsign-input:focus { outline: none; border-color: #00b8ff; box-shadow: 0 0 10px rgba(0, 184, 255, 0.3); } .submit-btn { width: 100%; padding: 12px; background: #00b8ff; border: none; border-radius: 6px; color: #ffffff; font-size: 13px; font-weight: 500; cursor: pointer; transition: all 0.2s ease; box-shadow: 0 0 15px rgba(0, 184, 255, 0.3); } .submit-btn:hover { background: #0099ff; transform: translateY(-2px); } .no-officers { text-align: center; padding: 20px; color: #a0a0a0; font-style: italic; font-size: 13px; } /* Chat */ .chat-container { border-radius: 0; background: rgba(22, 24, 29, 0.95); display: flex; flex-direction: column; height: 100%; overflow: hidden; } .chat-messages { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; } .chat-message { display: flex; flex-direction: column; max-width: 85%; padding: 12px 16px; border-radius: 12px; font-size: 12px; /* border: 1px solid rgba(255, 255, 255, 0.05); */ transition: transform 0.2s ease; /* background: rgba(28, 30, 35, 0.95); */ background: rgba(28, 30, 35, 0.7); border: 1px solid rgba(255, 255, 255, 0.05); box-shadow: none; } .chat-message:hover { transform: translateY(-2px); } .chat-message.incoming { border: 1px solid rgba(255, 255, 255, 0.05); background: rgba(28, 30, 35, 0.7); align-self: flex-start; border-bottom-left-radius: 2px; } .chat-message.outgoing { align-self: flex-end; border-bottom-right-radius: 2px; border: 1px solid rgba(0, 184, 255, 0.2); background: rgba(0, 184, 255, 0.1); } .message-header { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; } .message-sender { color: #00b8ff; font-size: 13px; font-weight: 600; } .message-time { color: #a0a0a0; font-size: 11px; } .message-content { color: #ffffff; line-height: 1.4; } .chat-input-container { background: rgba(28, 30, 35, 0.9); padding: 16px; border-top: 1px solid rgba(255, 255, 255, 0.05); } .chat-input-wrapper { display: flex; gap: 8px; } .chat-input { flex: 1; background: rgba(22, 24, 29, 0.95); border: 1px solid rgba(255, 255, 255, 0.1); padding: 12px; border-radius: 6px; color: #ffffff;font-size: 13px; } .chat-input:focus { outline: none; border-color: #00b8ff; box-shadow: 0 0 10px rgba(0, 184, 255, 0.3); } .send-message-btn { padding: 12px; background: rgb(0, 184, 255); border: none; border-radius: 6px; color: white; cursor: pointer; transition: all 0.2s ease; box-shadow: 0 0 10px rgba(0, 184, 255, 0.3); } .send-message-btn:hover { background: #0099ff; transform: translateY(-2px); } .send-message-btn i { font-size: 14px; } .no-messages { text-align: center; padding: 20px; color: #a0a0a0; font-style: italic; background: rgba(28, 30, 35, 0.6); border-radius: 8px; margin: 10px; } /* Animations */ @keyframes pulse { 0% { opacity: 1; } 50% { opacity: 0.6; } 100% { opacity: 1; } } @keyframes notificationPulse { 0% { transform: translateY(-50%) scale(1); opacity: 1; } 50% { transform: translateY(-50%) scale(1.2); opacity: 0.5; } 100% { transform: translateY(-50%) scale(1); opacity: 1; } } /* Scrollbar */ ::-webkit-scrollbar { width: 6px; } ::-webkit-scrollbar-track { background: transparent; } ::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.2); border-radius: 3px; } ::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.3); } /* UI Resizable */ .ui-resizable-handle { background: transparent; } .ui-resizable-se { width: 10px; height: 10px; right: 1px; bottom: 1px; background-color: rgba(255, 255, 255, 0.2); border-radius: 50%; } /* Container */ .list-container { display: flex; flex-direction: column; height: 100%; overflow: hidden; } .settings-container { display: flex; border-radius: 0; flex-direction: column; height: 100%; background: rgba(22, 24, 29, 0.95); } .department-badge { display: flex; align-items: center; gap: 8px; color: #ffffff; } .department-badge i { font-size: 14px; color: #00b8ff; }