/* DNSRecon - Tactical/Cybersecurity Theme */ /* Reset and Base Styles */ * { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: 'Roboto Mono', 'Courier New', monospace; background-color: #1a1a1a; color: #c7c7c7; line-height: 1.6; min-height: 100vh; overflow-x: hidden; } /* Container and Layout */ .container { min-height: 100vh; display: flex; flex-direction: column; } /* Header */ .header { background-color: #0a0a0a; border-bottom: 2px solid #444; padding: 1rem 2rem; box-shadow: inset 0 0 15px rgba(0,0,0,0.5); } .header-content { display: flex; justify-content: space-between; align-items: center; max-width: 1400px; margin: 0 auto; } .logo { display: flex; align-items: center; font-family: 'Special Elite', 'Courier New', monospace; font-size: 1.5rem; font-weight: 700; } .logo-icon { color: #00ff41; margin-right: 0.5rem; text-shadow: 0 0 5px rgba(0, 255, 65, 0.5); } .logo-text { color: #c7c7c7; text-shadow: 0 0 5px rgba(199, 199, 199, 0.3); } .status-indicator { display: flex; align-items: center; gap: 0.5rem; } .status-indicator.scanning { animation: pulse 1.5s infinite; } .status-indicator.completed { background-color: #00ff41; } .status-indicator.error { background-color: #ff6b6b; } .status-dot { width: 8px; height: 8px; border-radius: 50%; background-color: #00ff41; box-shadow: 0 0 5px rgba(0, 255, 65, 0.5); animation: pulse 2s infinite; } @keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } } .status-text { font-size: 0.9rem; color: #00ff41; } /* Main Content */ .main-content { flex: 1; padding: 2rem; max-width: 1400px; margin: 0 auto; width: 100%; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto auto 1fr auto; gap: 1.5rem; grid-template-areas: "control status" "visualization visualization" "visualization visualization" "providers providers"; } /* Panel Base Styles */ .panel-header { background-color: #2a2a2a; padding: 1rem; border-bottom: 1px solid #444; display: flex; justify-content: space-between; align-items: center; } .panel-header h2 { font-size: 1.1rem; color: #00ff41; text-shadow: 0 0 5px rgba(0, 255, 65, 0.5); font-weight: 500; } section { background-color: #2a2a2a; border: 1px solid #444; box-shadow: inset 0 0 15px rgba(0,0,0,0.5); } /* Control Panel */ .control-panel { grid-area: control; } .form-container { padding: 1.5rem; } .input-group { margin-bottom: 1.5rem; } .input-group label { display: block; margin-bottom: 0.5rem; color: #c7c7c7; font-size: 0.9rem; font-weight: 500; } input[type="text"], select { width: 100%; padding: 0.75rem; background-color: #1a1a1a; border: 1px solid #555; color: #c7c7c7; font-family: 'Roboto Mono', monospace; font-size: 0.9rem; transition: border-color 0.3s ease, box-shadow 0.3s ease; } input[type="text"]:focus, select:focus { outline: none; border-color: #00ff41; box-shadow: 0 0 5px rgba(0, 255, 65, 0.5); } .button-group { display: flex; flex-direction: column; gap: 0.75rem; } /* Buttons */ .btn { display: flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.75rem 1rem; font-family: 'Roboto Mono', monospace; font-size: 0.9rem; border: none; cursor: pointer; transition: all 0.3s ease; text-transform: uppercase; } .btn-primary { background-color: #2c5c34; color: #e0e0e0; } .btn-primary:hover:not(:disabled) { background-color: #3b7b46; box-shadow: 0 0 5px rgba(0, 255, 65, 0.5); } .btn-secondary { background-color: #4a4a4a; color: #c7c7c7; } .btn-secondary:hover:not(:disabled) { background-color: #5a5a5a; } .btn-secondary:active { background-color: #6a4f2a; } .btn:disabled { opacity: 0.5; cursor: not-allowed; } .btn-icon { color: #00ff41; font-weight: 700; } .btn-icon-small { background: transparent; border: 1px solid #555; color: #c7c7c7; padding: 0.25rem 0.5rem; font-family: 'Roboto Mono', monospace; font-size: 0.8rem; cursor: pointer; transition: all 0.3s ease; } .btn-icon-small:hover { border-color: #00ff41; color: #00ff41; } /* Status Panel */ .status-panel { grid-area: status; } .status-content { padding: 1.5rem; } .status-row { display: flex; justify-content: space-between; margin-bottom: 0.75rem; padding-bottom: 0.25rem; border-bottom: 1px solid #333; } .status-label { color: #999; font-size: 0.9rem; } .status-value { color: #00ff41; font-weight: 500; text-shadow: 0 0 3px rgba(0, 255, 65, 0.3); } .progress-bar { margin: 1rem 1.5rem; height: 8px; background-color: #1a1a1a; border: 1px solid #444; overflow: hidden; position: relative; } .progress-fill { height: 100%; background: linear-gradient(90deg, #00ff41, #00aa2e); width: 0%; transition: width 0.3s ease; box-shadow: 0 0 5px rgba(0, 255, 65, 0.5); position: relative; } .progress-fill::after { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent); animation: shimmer 2s infinite; } @keyframes shimmer { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } } /* Visualization Panel */ .visualization-panel { grid-area: visualization; min-height: 500px; } .view-controls { display: flex; gap: 1.5rem; align-items: center; } .filter-group { display: flex; align-items: center; gap: 0.5rem; } .filter-group label { font-size: 0.9rem; color: #999; } .filter-group select, .filter-group input[type="range"] { background-color: #1a1a1a; border: 1px solid #555; color: #c7c7c7; padding: 0.25rem 0.5rem; } .filter-group select { max-width: 150px; } #confidence-value { min-width: 30px; text-align: center; color: #00ff41; } .graph-container { height: 800px; position: relative; background-color: #1a1a1a; border-top: 1px solid #444; transition: height 0.3s ease; } .graph-controls { position: absolute; top: 10px; right: 10px; z-index: 10; display: flex; gap: 0.5rem; } .graph-control-btn { background: rgba(42, 42, 42, 0.9); border: 1px solid #555; color: #c7c7c7; padding: 0.5rem; font-family: 'Roboto Mono', monospace; font-size: 0.8rem; cursor: pointer; transition: all 0.3s ease; } .graph-control-btn:hover { border-color: #00ff41; color: #00ff41; background: rgba(42, 42, 42, 1); } .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: 1rem; color: #444; } .placeholder-text { font-size: 1.1rem; margin-bottom: 0.5rem; color: #999; } .placeholder-subtext { font-size: 0.9rem; color: #666; } .legend { display: flex; flex-wrap: wrap; gap: 1rem; padding: 1rem 1.5rem; background-color: #222; border-top: 1px solid #444; } .legend-section { display: flex; flex-direction: column; gap: 0.5rem; } .legend-title { font-size: 0.7rem; color: #00ff41; text-transform: uppercase; font-weight: 500; margin-bottom: 0.25rem; } .legend-item { display: flex; align-items: center; gap: 0.5rem; font-size: 0.8rem; } .legend-color { width: 12px; height: 12px; border-radius: 50%; border: 1px solid #444; } .legend-edge { width: 20px; height: 2px; } .legend-edge.high-confidence { background-color: #00ff41; box-shadow: 0 0 3px rgba(0, 255, 65, 0.5); } .legend-edge.medium-confidence { background-color: #ff9900; box-shadow: 0 0 3px rgba(255, 153, 0, 0.5); } .legend-edge.low-confidence { background-color: #666666; } /* Provider Panel */ .provider-panel { grid-area: providers; } .provider-list { padding: 1.5rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1rem; } .provider-item { background-color: #1a1a1a; border: 1px solid #444; padding: 1rem; transition: border-color 0.3s ease; } .provider-item:hover { border-color: #555; } .provider-name { font-weight: 500; color: #c7c7c7; } .provider-status { font-size: 0.8rem; padding: 0.25rem 0.5rem; border-radius: 3px; font-weight: 500; } .provider-status.enabled { background-color: #2c5c34; color: #e0e0e0; } .provider-status.disabled { background-color: #5c2c2c; color: #e0e0e0; } .provider-status.api-key-required { background-color: #5c4c2c; color: #e0e0e0; } .provider-stats, .provider-task-stats { font-size: 0.8rem; color: #999; display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; margin-top: 0.5rem; } .provider-task-stats { border-top: 1px solid #333; padding-top: 0.5rem; margin-top: 0.5rem; } .provider-stat { display: flex; justify-content: space-between; } .provider-stat-label { color: #666; } .provider-stat-value { color: #00ff41; font-weight: 500; } .provider-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.5rem; } .node-info-popup { position: fixed; background: rgba(42, 42, 42, 0.95); border: 1px solid #555; padding: 1rem; border-radius: 4px; color: #c7c7c7; font-family: 'Roboto Mono', monospace; font-size: 0.8rem; max-width: 300px; z-index: 1001; box-shadow: 0 4px 6px rgba(0,0,0,0.3); } /* Footer */ .footer { background-color: #0a0a0a; border-top: 1px solid #444; padding: 1rem 2rem; text-align: center; font-size: 0.8rem; color: #999; } .footer-content { max-width: 1400px; margin: 0 auto; } .footer-separator { margin: 0 1rem; color: #555; } @keyframes slideInDown { from { opacity: 0; transform: translateY(-50px); } to { opacity: 1; transform: translateY(0); } } .detail-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.75rem; padding-bottom: 0.25rem; border-bottom: 1px solid #333; } .detail-label { color: #999; font-weight: 500; } .detail-value { color: #c7c7c7; word-break: break-word; } .detail-section-header { font-size: 1rem; color: #00ff41; font-weight: 500; margin-top: 1.5rem; margin-bottom: 0.75rem; padding-bottom: 0.5rem; border-bottom: 1px solid #444; } .detail-section-header:first-of-type { margin-top: 0; } .copy-btn { background: none; border: none; color: #666; cursor: pointer; font-size: 1rem; margin-left: 10px; } .copy-btn:hover { color: #00ff41; } .status-icon { margin-left: 5px; } /* Responsive Design */ @media (max-width: 768px) { .main-content { grid-template-columns: 1fr; grid-template-areas: "control" "status" "visualization" "providers"; padding: 1rem; } .header { padding: 1rem; } .header-content { flex-direction: column; gap: 1rem; text-align: center; } .button-group { flex-direction: column; } .legend { flex-direction: column; align-items: flex-start; } .provider-list { grid-template-columns: 1fr; } } /* Graph specific styles */ .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.8rem !important; } /* Loading and Error States */ .loading { opacity: 0.6; pointer-events: none; } .loading-overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(26, 26, 26, 0.8); display: flex; align-items: center; justify-content: center; z-index: 100; } .loading-spinner { width: 40px; height: 40px; border: 3px solid #444; border-top: 3px solid #00ff41; border-radius: 50%; animation: spin 1s linear infinite; } @keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } } .loading-text { margin-top: 1rem; color: #999; font-family: 'Roboto Mono', monospace; font-size: 0.9rem; } .error { color: #ff6b6b !important; border-color: #ff6b6b !important; } .success { color: #00ff41 !important; } .fade-in { animation: fadeIn 0.3s ease-out; } /* Utility Classes */ .hidden { display: none !important; } .text-center { text-align: center; } .text-success { color: #00ff41; } .text-warning { color: #ff9900; } .text-error { color: #ff6b6b; } .glow { text-shadow: 0 0 5px rgba(0, 255, 65, 0.5); } .amber { color: #ff9900; } .apikey-section { margin-bottom: 1.5rem; } .apikey-section label { display: block; margin-bottom: 0.5rem; color: #c7c7c7; font-size: 0.9rem; font-weight: 500; } .apikey-section input[type="password"] { width: 100%; padding: 0.75rem; background-color: #1a1a1a; border: 1px solid #555; color: #c7c7c7; font-family: 'Roboto Mono', monospace; font-size: 0.9rem; transition: border-color 0.3s ease, box-shadow 0.3s ease; } .apikey-section input[type="password"]:focus { outline: none; border-color: #00ff41; box-shadow: 0 0 5px rgba(0, 255, 65, 0.5); } .apikey-help { font-size: 0.8rem; color: #666; margin-top: 0.25rem; font-style: italic; } .message-container { position: fixed; top: 20px; right: 20px; z-index: 1002; max-width: 400px; } .message-toast { margin-bottom: 10px; border-radius: 4px; font-family: 'Roboto Mono', monospace; font-size: 0.9rem; box-shadow: 0 4px 6px rgba(0,0,0,0.3); animation: slideInRight 0.3s ease-out; } .message-toast.success { background: #2c5c34; border-left: 4px solid #00ff41; } .message-toast.error { background: #5c2c2c; border-left: 4px solid #ff6b6b; } .message-toast.warning { background: #5c4c2c; border-left: 4px solid #ff9900; } .message-toast.info { background: #2c3e5c; border-left: 4px solid #00aaff; } @keyframes slideInRight { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } } @keyframes slideOutRight { from { transform: translateX(0); opacity: 1; } to { transform: translateX(100%); opacity: 0; } } /* dnsrecon/static/css/main.css */ /* ... (at the end of the file) */ .large-entity-nodes-list { margin-top: 1rem; } .large-entity-node-details { margin-bottom: 0.5rem; border: 1px solid #333; border-radius: 3px; } .large-entity-node-details summary { padding: 0.5rem; background-color: #3a3a3a; cursor: pointer; outline: none; } .large-entity-node-details summary:hover { background-color: #4a4a4a; } .large-entity-node-details .detail-row { margin-left: 1rem; margin-right: 1rem; } .large-entity-node-details .detail-section-header { margin-left: 1rem; margin-right: 1rem; } /* dnsrecon/static/css/main.css */ /* --- Add these styles for the modal --- */ .modal { display: none; /* Hidden by default */ position: fixed; /* Stay in place */ z-index: 1000; /* Sit on top */ left: 0; top: 0; width: 100%; height: 100%; overflow: auto; /* Enable scroll if needed */ background-color: rgba(0,0,0,0.6); /* Black w/ opacity */ backdrop-filter: blur(5px); } .modal-content { background-color: #1e1e1e; margin: 10% auto; padding: 20px; border: 1px solid #444; width: 60%; max-width: 800px; border-radius: 5px; box-shadow: 0 5px 15px rgba(0,0,0,0.5); animation: fadeIn 0.3s; } .modal-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #444; padding-bottom: 10px; margin-bottom: 20px; } .modal-header h3 { margin: 0; font-family: 'Special Elite', monospace; color: #00ff41; } .modal-close { background: none; border: none; color: #c7c7c7; font-size: 24px; cursor: pointer; padding: 0 10px; } .modal-close:hover { color: #ff6b6b; } .modal-body { max-height: 60vh; overflow-y: auto; } /* Styles for the new data model display */ .modal-details-grid { display: grid; grid-template-columns: 1fr; gap: 20px; } .modal-section h4 { font-family: 'Special Elite', monospace; color: #ff9900; border-bottom: 1px dashed #555; padding-bottom: 5px; margin-top: 0; } .modal-section ul { list-style-type: none; padding-left: 15px; } .modal-section li { margin-bottom: 8px; } .modal-section li > ul { padding-left: 20px; margin-top: 5px; } .description-text, .no-data { color: #aaa; font-style: italic; } .correlation-values-list { margin-top: 1rem; } .correlation-value-details { margin-bottom: 0.5rem; border: 1px solid #333; border-radius: 3px; } .correlation-value-details summary { padding: 0.5rem; background-color: #3a3a3a; cursor: pointer; outline: none; color: #c7c7c7; } .correlation-value-details summary:hover { background-color: #4a4a4a; } .correlation-value-details .detail-row { margin-left: 1rem; margin-right: 1rem; padding: 0.5rem 0; } .correlation-value-details .detail-label { color: #999; font-weight: 500; } .correlation-value-details .detail-value { color: #c7c7c7; word-break: break-all; font-family: 'Roboto Mono', monospace; font-size: 0.9em; } @keyframes fadeIn { from {opacity: 0; transform: scale(0.95);} to {opacity: 1; transform: scale(1);} }