/* DNScope - Optimized Compact Theme */ /* Reset and Base */ * { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: 'Roboto Mono', monospace; background: linear-gradient(135deg, #1a1a1a 0%, #0f0f0f 100%); color: #e0e0e0; line-height: 1.4; letter-spacing: 0.3px; font-size: 0.85rem; min-height: 100vh; overflow-x: hidden; } .container { min-height: 100vh; display: flex; flex-direction: column; } /* Header */ .header { background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%); border-bottom: 1px solid #333; padding: 0.75rem 1rem; position: sticky; top: 0; z-index: 100; } .header-content { display: flex; justify-content: space-between; align-items: center; max-width: 2400px; margin: 0 auto; } .logo { display: flex; align-items: center; font-family: 'Special Elite', monospace; font-size: 1.3rem; font-weight: 700; gap: 0.3rem; } .logo-icon { color: #00ff41; text-shadow: 0 0 10px rgba(0, 255, 65, 0.5); } .logo-text { color: #c7c7c7; } .status-indicator { display: flex; align-items: center; gap: 0.5rem; padding: 0.3rem 0.75rem; background: rgba(42, 42, 42, 0.6); border-radius: 15px; border: 1px solid #333; } .status-dot { width: 8px; height: 8px; border-radius: 50%; background-color: #00ff41; box-shadow: 0 0 8px rgba(0, 255, 65, 0.6); animation: statusPulse 2s infinite; } @keyframes statusPulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.7; transform: scale(1.1); } } .status-indicator.scanning { animation: pulse 1.5s infinite; } .status-text { font-size: 0.8rem; color: #00ff41; } /* Main Layout - Graph-Centric */ .main-content { flex: 1; padding: 0.75rem; max-width: 2400px; margin: 0 auto; width: 100%; display: grid; grid-template-columns: 300px 1fr; grid-template-rows: auto 1fr auto; gap: 0.75rem; grid-template-areas: "control status" "visualization visualization" "providers providers"; } /* Unified Panel Styles */ section { background: linear-gradient(135deg, #2a2a2a 0%, #1e1e1e 100%); border: 1px solid #444; border-radius: 6px; overflow: hidden; box-shadow: 0 4px 15px rgba(0,0,0,0.2); } .panel-header { background: linear-gradient(90deg, #333 0%, #2a2a2a 100%); padding: 0.5rem 0.75rem; border-bottom: 1px solid #444; } .panel-header h2 { font-size: 1rem; color: #00ff41; font-weight: 600; margin: 0; } /* Controls */ .control-panel { grid-area: control; } .form-container { padding: 0.75rem; } .input-group { margin-bottom: 0.75rem; } .input-group label { display: block; margin-bottom: 0.4rem; color: #e0e0e0; font-size: 0.8rem; font-weight: 500; } input[type="text"], select { width: 100%; padding: 0.6rem; background: #1a1a1a; border: 1px solid #444; border-radius: 4px; color: #e0e0e0; font-family: 'Roboto Mono', monospace; font-size: 0.8rem; transition: border-color 0.3s ease; } input[type="text"]:focus, select:focus { outline: none; border-color: #00ff41; box-shadow: 0 0 8px rgba(0, 255, 65, 0.3); } .button-group { display: flex; flex-direction: column; gap: 0.5rem; } /* Unified Button Styles */ .btn { display: flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.6rem 1rem; font-family: 'Roboto Mono', monospace; font-size: 0.8rem; font-weight: 500; border: none; border-radius: 4px; cursor: pointer; transition: all 0.3s ease; text-transform: uppercase; } .btn-primary { background: linear-gradient(135deg, #2c5c34 0%, #1e4025 100%); color: #e0e0e0; border: 1px solid #3a7a48; } .btn-primary:hover:not(:disabled) { background: linear-gradient(135deg, #3d7d4e 0%, #2a5436 100%); transform: translateY(-1px); } .btn-secondary { background: linear-gradient(135deg, #4a4a4a 0%, #333 100%); color: #e0e0e0; border: 1px solid #555; } .btn-secondary:hover:not(:disabled) { background: linear-gradient(135deg, #5a5a5a 0%, #444 100%); transform: translateY(-1px); } .btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; } .btn.loading { opacity: 0.7; pointer-events: none; } .btn::before { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent); transition: left 0.5s; } .btn:hover:not(:disabled)::before { left: 100%; } .btn-icon { color: #00ff41; font-weight: 700; } /* Status Panel */ .status-panel { grid-area: status; } .status-content { padding: 0.75rem; } .status-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.6rem; padding: 0.4rem; background: rgba(255, 255, 255, 0.02); border-radius: 3px; border-left: 2px solid #333; } .status-label { color: #999; font-size: 0.75rem; font-weight: 500; } .status-value { color: #00ff41; font-weight: 600; font-size: 0.8rem; } .progress-container { padding: 0.75rem; background: rgba(0, 0, 0, 0.2); } .progress-info { display: flex; justify-content: space-between; font-size: 0.75rem; color: #999; margin-bottom: 0.5rem; } .progress-bar { height: 8px; background: #1a1a1a; border: 1px solid #444; border-radius: 4px; overflow: hidden; } .progress-fill { height: 100%; background: linear-gradient(90deg, #00ff41 0%, #00aa2e 100%); width: 0%; transition: width 0.5s ease; position: relative; } .progress-fill::after { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.3) 50%, transparent 100%); animation: progressShimmer 2s infinite; } .progress-bar.scanning { animation: progressGlow 2s ease-in-out infinite alternate; } @keyframes progressShimmer { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } } @keyframes progressGlow { from { box-shadow: inset 0 2px 4px rgba(0,0,0,0.5), 0 0 5px rgba(0, 255, 65, 0.3); } to { box-shadow: inset 0 2px 4px rgba(0,0,0,0.5), 0 0 15px rgba(0, 255, 65, 0.6); } } .placeholder-subtext { font-size: 0.75rem; color: #666; line-height: 1.3; } /* Graph Container - Main Focus */ .visualization-panel { grid-area: visualization; min-height: 600px; } .graph-container { height: 600px; position: relative; background: linear-gradient(135deg, #1a1a1a 0%, #0f0f0f 100%); border-top: 1px solid #444; } .graph-placeholder { display: flex; align-items: center; justify-content: center; height: 100%; color: #666; text-align: center; } .placeholder-content { max-width: 300px; } .placeholder-icon { font-size: 3rem; margin-bottom: 0.75rem; color: #333; } .placeholder-text { font-size: 1rem; margin-bottom: 0.5rem; color: #999; } /* Graph Controls */ .graph-controls { position: absolute; top: 8px; right: 8px; z-index: 10; display: flex; gap: 0.3rem; } .graph-control-btn, .btn-icon-small { background: rgba(42, 42, 42, 0.9); border: 1px solid #555; color: #c7c7c7; padding: 0.3rem 0.5rem; font-family: 'Roboto Mono', monospace; font-size: 0.7rem; cursor: pointer; transition: all 0.3s ease; } .graph-control-btn:hover, .btn-icon-small:hover { border-color: #00ff41; color: #00ff41; } .graph-filter-panel { position: absolute; bottom: 8px; left: 8px; z-index: 10; background: rgba(42, 42, 42, 0.9); border: 1px solid #555; padding: 0.5rem; font-size: 0.7rem; display: flex; gap: 1rem; } .filter-column h4 { color: #00ff41; margin-bottom: 0.3rem; font-size: 0.75rem; border-bottom: 1px solid #444; padding-bottom: 0.2rem; } .filter-column .checkbox-group { display: flex; flex-direction: column; gap: 0.2rem; } .filter-column label { display: flex; align-items: center; gap: 0.3rem; cursor: pointer; font-size: 0.7rem; } .filter-column input[type="checkbox"] { appearance: none; width: 10px; height: 10px; border: 1px solid #555; background: #1a1a1a; cursor: pointer; } .filter-column input[type="checkbox"]:checked { background: #00ff41; border-color: #00ff41; } .filter-column input[type="checkbox"]:checked::after { content: '✓'; position: absolute; color: #1a1a1a; font-size: 8px; line-height: 10px; text-align: center; width: 10px; } /* Legend */ .legend { background: #222; border-top: 1px solid #444; padding: 0.5rem 0.75rem; display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; max-height: 3rem; } .legend-item { display: flex; align-items: center; gap: 0.4rem; font-size: 0.7rem; color: #ccc; padding: 0.3rem; border-radius: 3px; background: rgba(255, 255, 255, 0.02); } .legend-color { width: 10px; height: 10px; border-radius: 50%; border: 1px solid #444; } .legend-edge { width: 16px; height: 2px; } .legend-edge.high-confidence { background: #00ff41; } .legend-edge.medium-confidence { background: #ff9900; } /* Provider Panel */ .provider-panel { grid-area: providers; } .provider-list { padding: 0.75rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 0.75rem; } .provider-item { background: linear-gradient(135deg, #2a2a2a 0%, #1e1e1e 100%); border: 1px solid #333; border-radius: 6px; padding: 0.75rem; transition: all 0.3s ease; } .provider-item:hover { border-color: #444; transform: translateY(-1px); } .provider-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.5rem; } .provider-name { font-weight: 600; color: #e0e0e0; font-size: 0.9rem; } .provider-status { font-size: 0.65rem; padding: 0.2rem 0.4rem; border-radius: 3px; font-weight: 600; text-transform: uppercase; } .provider-status.enabled { background: #2c5c34; color: #e0e0e0; border: 1px solid #3a7a48; } .provider-status.disabled { background: #5c2c2c; color: #e0e0e0; border: 1px solid #7a3a3a; } .provider-status.api-key-required { background: #5c4c2c; color: #e0e0e0; border: 1px solid #7a6a3a; } .provider-stats { font-size: 0.7rem; color: #999; display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; } .provider-stat { display: flex; flex-direction: column; gap: 0.1rem; } .provider-stat-label { color: #999; font-size: 0.65rem; } .provider-stat-value { color: #00ff41; font-weight: 600; font-size: 0.75rem; } /* Modal Styles - Simplified */ .modal { display: none; position: fixed; z-index: 1000; left: 0; top: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.7); } .modal-content { background: linear-gradient(135deg, #1e1e1e 0%, #252525 100%); margin: 5% auto; padding: 0; border: 1px solid #444; border-radius: 6px; width: 70%; max-width: 900px; max-height: 100vh; overflow: hidden; } .modal-header { background: #2a2a2a; border-bottom: 1px solid #444; padding: 0.75rem 1rem; display: flex; justify-content: space-between; align-items: center; } .modal-header h3 { font-size: 1rem; margin: 0; color: #00ff41; display: flex; align-items: center; } .modal-close { background: none; border: none; color: #c7c7c7; font-size: 18px; cursor: pointer; padding: 0 8px; } .modal-close:hover { color: #ff6b6b; } .modal-body { max-height: calc(90vh - 80px); overflow-y: auto; } .modal-details { padding: 0.75rem; display: flex; flex-direction: column; gap: 0.5rem; } /* Modal Content Styles */ .modal-section { border: 1px solid #333; border-radius: 4px; background: #2a2a2a; } .section-card { background: linear-gradient(135deg, #2a2a2a 0%, #1f1f1f 100%); border: 1px solid #333; border-radius: 6px; overflow: hidden; transition: all 0.3s ease; margin-bottom: 0.5rem; } .section-card:hover { border-color: #444; box-shadow: 0 4px 12px rgba(0,0,0,0.3); } .section-card.collapsed .metadata-content { display: none; } .section-header { display: flex; justify-content: space-between; align-items: center; padding: 0.5rem 0.75rem; background: rgba(0, 255, 65, 0.05); border-bottom: 1px solid #333; cursor: pointer; } .section-header h4 { margin: 0; font-size: 0.85rem; color: #00ff41; display: flex; align-items: center; gap: 0.4rem; pointer-events: none; } .section-icon { font-size: 0.9rem; } .toggle-section-btn { background: none; border: none; color: #999; cursor: pointer; padding: 0.2rem; transition: color 0.3s ease; font-size: 0.7rem; display: flex; align-items: center; justify-content: center; } .toggle-section-btn:hover { color: #00ff41; } .metadata-section { border: 1px solid #333; border-radius: 6px; overflow: hidden; background: #2a2a2a; } .metadata-content { padding: 0.75rem; background: #1e1e1e; font-size: 0.75rem; } /* Formatted Object HTML Styles */ .metadata-content ul { list-style: none; padding-left: 1rem; margin: 0; } .metadata-content li { margin-bottom: 0.4rem; padding: 0.2rem 0; border-bottom: 1px solid rgba(255,255,255,0.05); } .metadata-content li:last-child { border-bottom: none; margin-bottom: 0; } .metadata-content details { margin: 0.3rem 0; } .metadata-content summary { cursor: pointer; padding: 0.3rem; background: rgba(255,255,255,0.02); border-radius: 3px; margin-bottom: 0.3rem; font-weight: 500; } .metadata-content summary:hover { background: rgba(255,255,255,0.05); } .metadata-content strong { color: #00ff41; font-weight: 500; margin-right: 0.5rem; } .metadata-content .no-data { color: #666; font-style: italic; text-align: center; padding: 1rem; } .modal-section summary { padding: 0.5rem 0.75rem; background: rgba(0, 255, 65, 0.05); cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-weight: 500; color: #00ff41; font-size: 0.8rem; list-style: none; } .modal-section summary::-webkit-details-marker { display: none; } .modal-section summary::after { content: '▼'; transition: transform 0.3s ease; font-size: 0.7rem; } .modal-section[open] summary::after { transform: rotate(180deg); } .modal-section .count-badge { background: #444; color: #fff; padding: 0.15rem 0.4rem; border-radius: 2px; font-size: 0.65rem; font-weight: 600; min-width: 20px; text-align: center; } .modal-section-content { padding: 0.5rem 0.75rem; background: #1e1e1e; } /* Node Details */ .node-header { display: flex; align-items: center; gap: 0.5rem; padding: 0.5rem; background: #333; border-radius: 4px; } .node-type-badge { padding: 0.2rem 0.5rem; border-radius: 3px; font-size: 0.65rem; font-weight: 600; text-transform: uppercase; } .node-type-domain { background: #00ff41; color: #000; } .node-type-ip { background: #ff9900; color: #000; } .node-type-isp { background: #00aaff; color: #000; } .node-type-large_entity { background: #ff6b6b; color: #fff; } .node-type-correlation_object { background: #9620c0; color: #fff; } .node-id-display { font-size: 0.85rem; color: #e0e0e0; word-break: break-all; } .quick-stats { display: flex; gap: 0.5rem; padding: 0.4rem; background: rgba(42, 42, 42, 0.5); border-radius: 4px; } .stat-item { display: flex; align-items: center; gap: 0.3rem; flex: 1; text-align: center; } .stat-icon { font-size: 1rem; color: #00ff41; } .stat-value { font-size: 0.9rem; font-weight: 600; color: #fff; } .stat-label { font-size: 0.65rem; color: #999; } /* Attribute Lists */ .attribute-list { display: flex; flex-direction: column; gap: 0.3rem; max-height: 250px; overflow-y: auto; } .attribute-item-compact { display: grid; grid-template-columns: 1fr 2fr; gap: 0.4rem; padding: 0.3rem; background: rgba(255, 255, 255, 0.02); border-radius: 3px; font-size: 0.75rem; } .attribute-key-compact { color: #999; font-weight: 500; } .attribute-value-compact { color: #e0e0e0; word-break: break-word; } /* Relationship Lists */ .relationship-compact { display: flex; flex-direction: column; gap: 0.3rem; max-height: 180px; overflow-y: auto; } .relationship-compact-item { display: flex; justify-content: space-between; align-items: center; padding: 0.3rem; background: rgba(255, 255, 255, 0.02); border-radius: 3px; font-size: 0.75rem; } .relationship-list { display: flex; flex-direction: column; gap: 0.5rem; padding: 0.75rem; } .relationship-item { display: flex; justify-content: space-between; align-items: center; padding: 0.5rem; background: rgba(255, 255, 255, 0.02); border-radius: 3px; border-left: 2px solid #444; font-size: 0.75rem; } .relationship-item:hover { background: rgba(255, 255, 255, 0.05); border-left-color: #00ff41; } .relationship-source, .relationship-target { color: #e0e0e0; cursor: pointer; flex: 1; } .relationship-type { display: flex; flex-direction: column; align-items: flex-end; gap: 0.2rem; } .relation-label { font-size: 0.7rem; color: #999; background: #333; padding: 0.15rem 0.3rem; border-radius: 2px; } .confidence-indicator { font-size: 0.6rem; letter-spacing: 1px; } .node-link-compact { color: #00aaff; text-decoration: none; cursor: pointer; font-size: 0.75rem; } .node-link-compact:hover { color: #00ff41; text-decoration: underline; } .node-link { color: #00aaff; text-decoration: none; cursor: pointer; font-size: 0.75rem; position: relative; } .node-link:hover { color: #00ff41; text-decoration: underline; } .modal-title-icon { margin-right: 0.4rem; font-size: 1rem; } .modal-title-text { font-family: 'Special Elite', monospace; } .merge-badge, .count-badge { background: #444; color: #fff; padding: 0.15rem 0.3rem; border-radius: 2px; font-size: 0.65rem; font-weight: 600; } /* Footer */ .footer { background: #0a0a0a; border-top: 1px solid #333; padding: 0.75rem; text-align: center; font-size: 0.7rem; color: #999; } .footer-content { /*max-width: 1400px;*/ margin: 0 auto; display: flex; justify-content: center; align-items: center; gap: 0.75rem; flex-wrap: wrap; } .footer-separator { color: #555; } /* Message System */ .message-container { position: fixed; top: 15px; right: 15px; z-index: 1002; max-width: 350px; } .message-toast { margin-bottom: 8px; border-radius: 4px; font-size: 0.8rem; animation: slideInRight 0.3s ease-out; } .message-toast.success { background: #2c5c34; border-left: 3px solid #00ff41; } .message-toast.error { background: #5c2c2c; border-left: 3px solid #ff6b6b; } .message-toast.warning { background: #5c4c2c; border-left: 3px solid #ff9900; } .message-toast.info { background: #2c3e5c; border-left: 3px solid #00aaff; } /* Settings Modal Specific */ .provider-toggle { appearance: none !important; width: 12px !important; height: 12px !important; border: 1px solid #555 !important; background: #1a1a1a !important; cursor: pointer !important; border-radius: 2px !important; } .provider-toggle:checked { background: #00ff41 !important; border-color: #00ff41 !important; } .provider-toggle:checked::after { content: '✓' !important; position: absolute !important; top: -2px !important; left: 1px !important; color: #1a1a1a !important; font-size: 10px !important; font-weight: bold !important; } .api-key-status-row { padding: 0.5rem; border-radius: 3px; border: 1px solid; transition: all 0.3s ease; margin-top: 0.4rem; font-size: 0.75rem; } .clear-api-key-btn { font-size: 0.7rem !important; padding: 0.3rem 0.5rem !important; min-width: auto !important; background: none; border: 1px solid #555; color: #c7c7c7; border-radius: 2px; cursor: pointer; transition: all 0.3s ease; } .clear-api-key-btn:hover { border-color: #ff6b6b; color: #ff6b6b; } .clear-api-key-btn:disabled { opacity: 0.5 !important; cursor: not-allowed !important; } input[type="password"] { width: 100%; padding: 0.5rem; background: #1a1a1a; border: 1px solid #444; border-radius: 3px; color: #e0e0e0; font-family: 'Roboto Mono', monospace; font-size: 0.75rem; transition: border-color 0.3s ease; } input[type="password"]:focus { outline: none; border-color: #00ff41; box-shadow: 0 0 5px rgba(0, 255, 65, 0.3); } .apikey-help { font-size: 0.65rem; color: #666; margin-top: 0.3rem; font-style: italic; line-height: 1.3; } /* Context Menu */ .graph-context-menu { position: fixed; z-index: 1000; background: #2a2a2a; border: 1px solid #444; border-radius: 4px; display: none; font-size: 0.8rem; min-width: 160px; } .graph-context-menu ul { list-style: none; padding: 0.3rem 0; margin: 0; } .graph-context-menu ul li { padding: 0.5rem 0.75rem; cursor: pointer; display: flex; align-items: center; gap: 0.4rem; } .graph-context-menu ul li:hover { background: #3a3a3a; color: #00ff41; } .menu-icon { font-size: 0.8rem; width: 1rem; text-align: center; } /* Scrollbars */ ::-webkit-scrollbar { width: 6px; } ::-webkit-scrollbar-track { background: #1a1a1a; } ::-webkit-scrollbar-thumb { background: #444; border-radius: 3px; } ::-webkit-scrollbar-thumb:hover { background: #555; } /* Animations */ @keyframes slideInRight { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } } @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } } .fade-in { animation: fadeIn 0.3s ease-out; } /* Utility Classes */ .hidden { display: none !important; } .success { color: #00ff41 !important; } .error { color: #ff6b6b !important; border-color: #ff6b6b !important; } /* Status Value Animations */ .status-value.status-running { animation: pulse 1.5s infinite; } @keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.7; } } /* Graph Library Overrides */ .vis-network { background-color: #1a1a1a !important; } .vis-tooltip { background-color: #2a2a2a !important; border: 1px solid #444 !important; color: #c7c7c7 !important; font-family: 'Roboto Mono', monospace !important; font-size: 0.7rem !important; border-radius: 3px !important; } .node-info-popup { position: fixed; background: rgba(42, 42, 42, 0.95); border: 1px solid #555; padding: 0.75rem; border-radius: 4px; color: #c7c7c7; font-family: 'Roboto Mono', monospace; font-size: 0.7rem; max-width: 280px; z-index: 1001; box-shadow: 0 4px 6px rgba(0,0,0,0.3); } /* Responsive */ @media (max-width: 768px) { .main-content { grid-template-columns: 1fr; grid-template-areas: "control" "status" "visualization" "providers"; padding: 0.5rem; } .modal-content { width: 95%; margin: 2% auto; } .graph-container { height: 400px; } .provider-list { grid-template-columns: 1fr; } } .manual-refresh-btn { background: rgba(92, 76, 44, 0.9) !important; /* Orange/amber background */ border: 1px solid #7a6a3a !important; color: #ffcc00 !important; /* Bright yellow text */ } .manual-refresh-btn:hover { border-color: #ffcc00 !important; color: #fff !important; background: rgba(112, 96, 54, 0.9) !important; }