.topbar { height: 64px; background-color: var(--bg-card); border-bottom: 1px solid var(--border-subtle); display: flex; align-items: center; justify-content: space-between; padding: 0 40px; position: sticky; top: 0; z-index: 90; transition: all 0.3s ease; } @media (max-width: 1100px) { .topbar { padding: 0 20px; height: 60px; } } .left { display: flex; flex-direction: column; min-width: 0; /* Allow title to shrink if needed */ flex: 1; } .title { font-size: clamp(16px, 2.5vw, 24px); font-weight: 800; color: #0f172a; letter-spacing: -0.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .subtitle { font-size: clamp(9px, 1.2vw, 11px); font-weight: 700; color: #64748b; letter-spacing: 0.1em; text-transform: uppercase; margin-top: -2px; opacity: 0.8; } @media (max-width: 900px) { .subtitle { display: none; } } .right { display: flex; align-items: center; gap: 24px; } @media (max-width: 1000px) { .right { gap: 12px; } } /* Search */ .searchWrapper { position: relative; width: 280px; transition: width 0.3s ease; } @media (max-width: 1200px) { .searchWrapper { width: 200px; } } @media (max-width: 900px) { .searchWrapper { display: none; /* Hide search in topbar on mobile/very small tablet, use master agent instead */ } } .searchIcon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: #94a3b8; font-size: 14px; } .searchInput { width: 100%; background: white; border: 1px solid #e2e8f0; border-radius: 8px; padding: 8px 12px 8px 32px; font-size: 13px; color: #1e293b; outline: none; transition: all 0.2s; } .searchInput:focus { border-color: #3b82f6; box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1); } .resultsDropdown { position: absolute; top: calc(100% + 8px); left: 0; right: 0; background: white; border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1); max-height: 400px; overflow-y: auto; z-index: 1000; animation: slideDown 0.2s ease-out; } @keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } } .resultItem { padding: 14px 20px; border-bottom: 1px solid var(--border); cursor: pointer; transition: all 0.2s; } .resultItem:last-child { border-bottom: none; } .resultItem:hover { background: var(--bg2); } .resultMeta { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; } .resultMetaLeft { display: flex; align-items: center; gap: 8px; } .resultId { font-size: 10px; font-weight: 800; color: #64748b; background: #f1f5f9; padding: 2px 6px; border-radius: 4px; } .resultScore { font-size: 10px; font-weight: 800; color: #3b82f6; background: rgba(59, 130, 246, 0.1); padding: 2px 6px; border-radius: 4px; } .resultStatus { font-size: 9px; font-weight: 900; text-transform: uppercase; padding: 2px 8px; border-radius: 5px; } .resultStatus[data-status="OPEN"] { color: #10b981; background: rgba(16, 185, 129, 0.1); } .resultStatus[data-status="IN_PROGRESS"] { color: #6366f1; background: rgba(99, 102, 241, 0.1); } .resultStatus[data-status="RESOLVED"] { color: #94a3b8; background: #f8fafc; } .resultTitle { font-size: 13px; font-weight: 700; color: #1e293b; margin-bottom: 6px; } .resultFooter { display: flex; justify-content: flex-end; font-size: 10px; color: #94a3b8; font-weight: 600; } .searchLoader { position: absolute; top: calc(100% + 8px); left: 0; right: 0; padding: 12px; background: white; border: 1px solid var(--border); border-radius: 12px; font-size: 11px; font-weight: 700; text-align: center; color: var(--accent); box-shadow: 0 10px 30px rgba(0,0,0,0.1); z-index: 1001; } .searchHint { position: absolute; top: calc(100% + 8px); left: 0; right: 0; padding: 10px; background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(8px); border: 1px solid #e2e8f0; border-radius: 10px; font-size: 10px; font-weight: 800; text-align: center; color: #64748b; text-transform: uppercase; letter-spacing: 0.05em; z-index: 1000; animation: slideDown 0.2s ease-out; } .noResults { padding: 32px 20px; text-align: center; color: #94a3b8; font-size: 12px; font-weight: 600; } /* Live Indicator */ .statusIndicator { display: flex; align-items: center; gap: 8px; background: #f1f5f9; padding: 6px 12px; border-radius: 20px; border: 1px solid #e2e8f0; } .dot { width: 8px; height: 8px; background-color: #10b981; border-radius: 50%; box-shadow: 0 0 8px rgba(16, 185, 129, 0.5); animation: pulse 2s infinite; } @keyframes pulse { 0% { opacity: 1; } 50% { opacity: 0.5; } 100% { opacity: 1; } } .statusText { font-size: 10px; font-weight: 900; color: #0f172a; letter-spacing: 0.05em; } .timeText { font-size: 11px; font-weight: 600; color: #64748b; border-left: 1px solid #cbd5e1; padding-left: 8px; margin-left: 4px; } /* Notifications */ .notificationWrapper { position: relative; } .iconButton { background: white; border: 1px solid #e2e8f0; width: 38px; height: 38px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 16px; cursor: pointer; transition: all 0.2s; } .iconButton:hover { background: #f8fafc; border-color: #cbd5e1; } .notificationBadge { position: absolute; top: -4px; right: -4px; width: 8px; height: 8px; background-color: #ef4444; border-radius: 50%; border: 2px solid white; } /* Logout */ .logoutBtn { background-color: #ef4444; color: white; border: none; padding: 8px 20px; border-radius: 8px; font-size: 13px; font-weight: 700; cursor: pointer; transition: all 0.2s; box-shadow: 0 4px 10px rgba(239, 68, 68, 0.2); } .logoutBtn:hover { background-color: #dc2626; transform: translateY(-1px); box-shadow: 0 6px 15px rgba(239, 68, 68, 0.3); } /* Notifications Dropdown */ .notifDropdown { position: absolute; top: calc(100% + 12px); right: 0; width: 320px; background: white; border: 1px solid var(--border); border-radius: 16px; box-shadow: 0 20px 50px rgba(0,0,0,0.15); padding: 20px; z-index: 1000; animation: slideDown 0.2s ease-out; } .notifHeader { font-size: 14px; font-weight: 800; color: var(--text1); margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--border); } .notifEmpty { font-size: 12px; color: var(--text3); text-align: center; padding: 20px 0; font-style: italic; } .notifList { display: flex; flex-direction: column; gap: 8px; max-height: 400px; overflow-y: auto; padding-top: 10px; } .notifItem { padding: 12px; border-radius: 12px; background: var(--bg2); border-left: 3px solid transparent; transition: all 0.2s; } .notifItem[data-read="false"] { background: rgba(59, 130, 246, 0.05); border-left-color: #3b82f6; } .notifTitle { font-size: 13px; font-weight: 700; color: var(--text1); margin-bottom: 2px; } .notifMsg { font-size: 12px; color: var(--text2); line-height: 1.4; margin-bottom: 4px; } .notifTime { font-size: 10px; color: var(--text3); font-weight: 600; } /* Logout Confirmation */ .logoutWrapper { position: relative; } .logoutConfirm { position: absolute; top: calc(100% + 12px); right: 0; width: 280px; background: white; border-radius: 20px; padding: 24px; box-shadow: 0 30px 60px rgba(0,0,0,0.2); border: 1px solid rgba(0,0,0,0.05); z-index: 1000; text-align: center; } .logoutText { font-size: 18px; font-weight: 800; color: #1e293b; margin-bottom: 24px; } .logoutActions { display: flex; gap: 12px; } .cancelBtn { flex: 1; background: #f1f5f9; border: none; padding: 10px; border-radius: 10px; font-size: 13px; font-weight: 700; color: #64748b; cursor: pointer; transition: all 0.2s; } .cancelBtn:hover { background: #e2e8f0; } .confirmBtn { flex: 1; background: #ef4444; border: none; padding: 10px; border-radius: 10px; font-size: 13px; font-weight: 700; color: white; cursor: pointer; transition: all 0.2s; } .confirmBtn:hover { background: #dc2626; transform: translateY(-1px); }