manatrix/web/static/css/pentest.css

web / static / css / pentest.css

web/static/css/pentest.css · 34.6 KB

/* ============== Pentest Dashboard Styles ============== */

/* Empty State */
.empty-state {
    color: var(--text-muted);
    font-size: 12px;
    padding: 16px;
    text-align: center;
    line-height: 1.6;
}

/* Tab Icons */
.tab-icon {
    font-size: 12px;
    margin-right: 4px;
}

/* Pentest Layout */
.pentest-layout {
    display: grid;
    grid-template-columns: 260px 1fr 300px;
    gap: 12px;
    height: calc(100vh - 110px);
    padding: 0 16px 16px;
}

/* Navigation Tabs */
.pentest-tabs {
    display: flex;
    gap: 2px;
    padding: 0 16px;
    margin-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.pentest-tab {
    padding: 10px 16px;
    color: var(--text-secondary);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: var(--transition);
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
}

.pentest-tab:hover {
    color: var(--text-primary);
    background: var(--bg-hover);
}

.pentest-tab.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

/* ============== Sidebar ============== */
.pentest-sidebar {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 12px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-section h3 {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

/* Host Card */
.host-card {
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 10px;
    cursor: pointer;
    transition: var(--transition);
    margin-bottom: 4px;
}

.host-card:hover {
    border-color: var(--border-hover);
    background: var(--bg-hover);
}

.host-card.compromised {
    border-left: 3px solid var(--success);
}

.host-card .host-ip {
    font-family: 'Consolas', monospace;
    font-size: 13px;
    color: var(--text-primary);
    font-weight: 600;
}

.host-card .host-meta {
    font-size: 11px;
    color: var(--text-secondary);
    margin-top: 2px;
}

.host-card .host-badges {
    display: flex;
    gap: 4px;
    margin-top: 6px;
    flex-wrap: wrap;
}

.host-badge {
    font-size: 10px;
    padding: 1px 6px;
    border-radius: 8px;
    font-weight: 600;
}

.host-badge.os { background: var(--accent-bg); color: var(--accent); }
.host-badge.vuln { background: var(--error-bg); color: var(--error); }
.host-badge.compromised { background: var(--success-bg); color: var(--success); }
.host-badge.owned { background: var(--success-bg); color: var(--success); }

/* ============== Main Panel ============== */
.pentest-main {
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow: hidden;
    min-height: 0;
}

/* Attack Graph Canvas */
.graph-panel {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    flex: 1;
    min-height: 280px;
    position: relative;
    overflow: hidden;
}

.graph-toolbar {
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex;
    gap: 4px;
    z-index: 10;
}

.graph-btn {
    background: rgba(26, 29, 39, 0.9);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    padding: 5px 10px;
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 11px;
    transition: var(--transition);
}

.graph-btn:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.graph-btn.active {
    background: var(--accent-bg);
    color: var(--accent);
    border-color: var(--accent);
}

/* Console */
.console-panel {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    height: 180px;
    overflow-y: auto;
    padding: 10px;
    font-family: 'Consolas', monospace;
    font-size: 12px;
}

.console-line {
    display: flex;
    gap: 6px;
    padding: 2px 0;
    line-height: 1.4;
    align-items: baseline;
}

.console-line .timestamp { color: var(--text-muted); flex-shrink: 0; font-size: 11px; }
.console-line .action { color: var(--info); font-weight: 600; }
.console-line .success { color: var(--success); }
.console-line .failure { color: var(--error); }
.console-line .partial { color: var(--warning); }
.console-line .info { color: var(--text-secondary); }

/* ============== Right Panel ============== */
.pentest-right {
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow-y: auto;
    min-height: 0;
}

/* Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.stat-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 10px;
    text-align: center;
}

.stat-card .stat-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-card .stat-label {
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2px;
}

.stat-card.highlight .stat-value { color: var(--accent); }
.stat-card.success .stat-value { color: var(--success); }
.stat-card.warning .stat-value { color: var(--warning); }
.stat-card.danger .stat-value { color: var(--error); }

/* Progress Bar */
.progress-bar {
    width: 100%;
    height: 4px;
    background: var(--bg-tertiary);
    border-radius: 2px;
    overflow: hidden;
}

.progress-bar .progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--success));
    border-radius: 2px;
    transition: width 0.5s ease;
}

/* Action Panel */
.action-panel {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 12px;
}

.action-panel h3 {
    font-size: 13px;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.action-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
}

.action-btn {
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    padding: 7px 8px;
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 11px;
    text-align: left;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
}

.action-btn:hover {
    background: var(--bg-hover);
    border-color: var(--border-hover);
    color: var(--text-primary);
}

.action-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.action-btn .action-icon {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    flex-shrink: 0;
}

.action-icon.scan { background: var(--info-bg); color: var(--info); }
.action-icon.exploit { background: var(--error-bg); color: var(--error); }
.action-icon.brute { background: var(--warning-bg); color: var(--warning); }
.action-icon.lateral { background: var(--accent-bg); color: var(--accent); }
.action-icon.privesc { background: rgba(155, 89, 182, 0.15); color: #9b59b6; }
.action-icon.creds { background: rgba(241, 196, 15, 0.15); color: #f1c40f; }
.action-icon.exfil { background: rgba(0, 206, 209, 0.15); color: #00ced1; }

/* LLM Suggestion */
.llm-suggestion {
    background: var(--accent-bg);
    border: 1px solid rgba(108, 92, 231, 0.3);
    border-radius: var(--radius);
    padding: 10px;
    margin-top: 8px;
}

.llm-suggestion .llm-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent);
    margin-bottom: 4px;
}

.llm-suggestion .llm-text {
    font-size: 12px;
    color: var(--text-primary);
}

/* Reflection Panel */
.reflection-panel {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 12px;
}

.reflection-panel h3 {
    font-size: 13px;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.reflection-item {
    background: var(--bg-tertiary);
    border-radius: var(--radius);
    padding: 8px;
    margin-bottom: 6px;
    border-left: 3px solid var(--warning);
}

.reflection-item .reflection-step {
    font-size: 10px;
    color: var(--text-muted);
}

.reflection-item .reflection-obs {
    font-size: 12px;
    color: var(--text-secondary);
    margin: 4px 0;
}

.reflection-item .reflection-lesson {
    font-size: 11px;
    color: var(--warning);
    margin-top: 2px;
}

/* Vulnerability List */
.vuln-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.vuln-item {
    background: var(--bg-tertiary);
    border-radius: var(--radius);
    padding: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.vuln-severity {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 11px;
    flex-shrink: 0;
}

.vuln-severity.critical { background: var(--error-bg); color: var(--error); }
.vuln-severity.high { background: rgba(255, 165, 0, 0.15); color: #ffa500; }
.vuln-severity.medium { background: var(--warning-bg); color: var(--warning); }
.vuln-severity.low { background: var(--info-bg); color: var(--info); }

.vuln-info { flex: 1; min-width: 0; }
.vuln-name { font-size: 12px; color: var(--text-primary); font-weight: 500; }
.vuln-cve { font-size: 10px; color: var(--text-muted); font-family: monospace; }

/* Credential Item */
.cred-item {
    background: var(--bg-tertiary);
    border-radius: var(--radius);
    padding: 6px 10px;
    margin-bottom: 4px;
    font-size: 12px;
}

.cred-service {
    color: var(--info);
    font-weight: 600;
    font-family: monospace;
}

.cred-value {
    color: var(--text-muted);
    font-family: monospace;
}

/* ============== New Test Form ============== */
.new-test-form {
    padding: 24px;
    max-width: 780px;
    margin: 0 auto;
}

.new-test-form h2 {
    color: var(--text-primary);
    margin-bottom: 20px;
}

.code-editor {
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.5;
}

.templates-section {
    margin-top: 24px;
    padding: 16px;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
}

.templates-section h3 {
    font-size: 14px;
    color: var(--accent);
    margin-bottom: 10px;
}

.template-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.template-buttons .btn-secondary {
    font-size: 12px;
    padding: 8px 14px;
}

/* ============== Interactive View ============== */
.interactive-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    padding: 16px;
    height: calc(100vh - 110px);
}

.interactive-left {
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow-y: auto;
}

.interactive-right {
    overflow-y: auto;
}

.interactive-panel {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 16px;
}

.interactive-panel h3 {
    font-size: 14px;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.result-box {
    background: var(--bg-tertiary);
    border-radius: var(--radius);
    padding: 12px;
    max-height: 300px;
    overflow-y: auto;
    font-family: 'Consolas', monospace;
    font-size: 12px;
    line-height: 1.5;
}

.result-box .result-success { color: var(--success); }
.result-box .result-error { color: var(--error); }
.result-box .result-info { color: var(--info); }
.result-box .result-key { color: var(--accent); }

/* Available Actions List */
.action-list {
    max-height: calc(100vh - 200px);
    overflow-y: auto;
}

.action-list-item {
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 10px;
    margin-bottom: 6px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 10px;
}

.action-list-item:hover {
    border-color: var(--accent);
    background: var(--accent-bg);
}

.action-list-item .action-type {
    font-size: 11px;
    font-weight: 600;
    color: var(--info);
    text-transform: uppercase;
    min-width: 100px;
}

.action-list-item .action-target {
    font-size: 12px;
    color: var(--text-primary);
    font-family: monospace;
    flex: 1;
}

.action-list-item .action-tags {
    display: flex;
    gap: 4px;
}

.action-list-item .action-tag {
    font-size: 10px;
    padding: 1px 5px;
    border-radius: 4px;
    background: var(--bg-secondary);
    color: var(--text-muted);
}

/* ============== Graph Fullscreen ============== */
.graph-fullscreen {
    position: relative;
    height: calc(100vh - 110px);
    margin: 0 16px;
}

.graph-viewport {
    width: 100%;
    height: 100%;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.graph-legend {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 16px;
    background: rgba(15, 17, 23, 0.9);
    padding: 8px 20px;
    border-radius: 20px;
    border: 1px solid var(--border);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-secondary);
}

.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

/* SVG Graph Styles */
.graph-node {
    cursor: pointer;
    transition: opacity 0.2s;
}

.graph-node:hover { opacity: 0.85; }
.graph-node text {
    font-family: 'Consolas', monospace;
    pointer-events: none;
}

.graph-link {
    fill: none;
    stroke-width: 1.5;
    opacity: 0.6;
}

.graph-link.animated {
    stroke-dasharray: 5 3;
    animation: dashFlow 1s linear infinite;
}

@keyframes dashFlow {
    to { stroke-dashoffset: -8; }
}

/* ============== Knowledge Layout ============== */
.knowledge-layout {
    padding: 16px;
    max-width: 1200px;
    margin: 0 auto;
}

.knowledge-layout h2 {
    color: var(--text-primary);
    margin-bottom: 16px;
}

.knowledge-section {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 16px;
    margin-bottom: 12px;
}

.knowledge-section h3 {
    color: var(--accent);
    margin-bottom: 12px;
    font-size: 14px;
}

.technique-filter {
    display: flex;
    gap: 4px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.filter-btn {
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    padding: 4px 10px;
    border-radius: 16px;
    cursor: pointer;
    font-size: 11px;
    transition: var(--transition);
}

.filter-btn:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.filter-btn.active {
    background: var(--accent-bg);
    color: var(--accent);
    border-color: var(--accent);
}

.technique-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 6px;
}

.technique-card {
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 10px;
    transition: var(--transition);
}

.technique-card:hover {
    border-color: var(--border-hover);
}

.technique-card .tech-id {
    font-size: 11px;
    font-weight: 700;
    color: var(--accent);
    font-family: monospace;
}

.technique-card .tech-name {
    font-size: 13px;
    color: var(--text-primary);
    margin-top: 2px;
}

.technique-card .tech-tactics {
    font-size: 10px;
    color: var(--text-muted);
    margin-top: 4px;
}

.cve-search-row {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.cve-search-row .form-input {
    flex: 1;
}

.cve-result-card {
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px;
    margin-bottom: 8px;
}

.cve-result-card .cve-id {
    font-size: 14px;
    font-weight: 700;
    color: var(--error);
    font-family: monospace;
}

.cve-result-card .cve-desc {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 4px;
}

.cve-result-card .cve-meta {
    display: flex;
    gap: 12px;
    margin-top: 6px;
    font-size: 11px;
    color: var(--text-muted);
}

/* ============== Report View ============== */
.report-container {
    padding: 24px;
    max-width: 900px;
    margin: 0 auto;
}

.report-container h1 { color: var(--text-primary); margin-bottom: 20px; }
.report-container h2 { color: var(--accent); margin: 20px 0 10px; font-size: 18px; }
.report-container h3 { color: var(--text-primary); margin: 16px 0 8px; font-size: 15px; }
.report-container table {
    width: 100%;
    border-collapse: collapse;
    margin: 10px 0;
    font-size: 13px;
}

.report-container th, .report-container td {
    border: 1px solid var(--border);
    padding: 8px 12px;
    text-align: left;
}

.report-container th {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    font-weight: 600;
}

.report-container td { color: var(--text-secondary); }

.report-actions {
    display: flex;
    gap: 8px;
    margin-top: 20px;
}

/* ============== Settings Layout ============== */
.settings-layout {
    padding: 24px;
    max-width: 800px;
    margin: 0 auto;
}

.settings-section {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 16px;
}

.settings-section h3 {
    color: var(--accent);
    margin-bottom: 16px;
    font-size: 15px;
}

.status-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.status-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 12px;
    background: var(--bg-tertiary);
    border-radius: var(--radius);
}

.status-label {
    color: var(--text-muted);
    font-size: 12px;
}

.status-value {
    color: var(--text-primary);
    font-size: 12px;
    font-weight: 500;
}

/* ============== Form Elements (shared) ============== */
.form-group {
    margin-bottom: 12px;
}

.form-group label {
    display: block;
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 4px;
    font-weight: 500;
}

.form-input {
    width: 100%;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 8px 12px;
    color: var(--text-primary);
    font-size: 13px;
    transition: var(--transition);
}

.form-input:focus {
    outline: none;
    border-color: var(--accent);
}

textarea.form-input {
    min-height: 100px;
    font-family: 'Consolas', monospace;
    resize: vertical;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.btn-primary {
    background: var(--accent);
    color: white;
    border: none;
    padding: 9px 20px;
    border-radius: var(--radius);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary:hover {
    background: var(--accent-hover);
}

.btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    border: 1px solid var(--border);
    padding: 9px 20px;
    border-radius: var(--radius);
    font-size: 13px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-secondary:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.btn-large {
    width: 100%;
    padding: 12px;
    font-size: 14px;
}

.checkbox-group {
    display: flex;
    gap: 16px;
    margin-bottom: 8px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-secondary);
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    accent-color: var(--accent);
    width: 15px;
    height: 15px;
}

/* Header Right */
.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-right .nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13px;
    padding: 6px 12px;
    border-radius: var(--radius);
    transition: var(--transition);
}

.header-right .nav-link:hover {
    color: var(--text-primary);
    background: var(--bg-hover);
}

.header-right .nav-link.active {
    color: var(--accent);
}

.status-dot {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-muted);
}

.status-dot::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-muted);
}

.status-dot.connected::before {
    background: var(--success);
    box-shadow: 0 0 8px var(--success);
}

.status-dot.running::before {
    background: var(--info);
    box-shadow: 0 0 8px var(--info);
    animation: pulse 1.5s ease infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ============== Responsive ============== */
@media (max-width: 1200px) {
    .pentest-layout {
        grid-template-columns: 1fr;
        height: auto;
    }
    .pentest-sidebar, .pentest-right {
        max-height: 400px;
    }
    .interactive-layout {
        grid-template-columns: 1fr;
        height: auto;
    }
}

/* ============== Team & Experts Views ============== */

.team-container,
.experts-container {
    padding: 24px;
    max-width: 1400px;
    margin: 0 auto;
}

.team-header,
.experts-header {
    margin-bottom: 24px;
}

.team-header h2,
.experts-header h2 {
    font-size: 28px;
    color: #e2e8f0;
    margin-bottom: 8px;
}

.team-header p,
.experts-header p {
    color: #8892a6;
}

.team-actions,
.experts-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.team-layout,
.experts-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.team-section,
.experts-main,
.experts-sidebar {
    background: rgba(30, 35, 50, 0.6);
    border-radius: 12px;
    padding: 20px;
}

.team-section h3,
.experts-main h3,
.experts-sidebar h3 {
    font-size: 16px;
    color: #e2e8f0;
    margin-bottom: 16px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 12px;
}

.team-members {
    min-height: 200px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
}

.team-member {
    background: rgba(60, 70, 100, 0.4);
    border-radius: 8px;
    padding: 12px;
    text-align: center;
}

.team-member h4 {
    color: #e2e8f0;
    font-size: 14px;
    margin-bottom: 4px;
}

.team-member .role {
    color: #8892a6;
    font-size: 12px;
}

.team-member .stats {
    margin-top: 8px;
    font-size: 11px;
    color: #6b7280;
}

.team-memory {
    grid-column: 1 / -1;
    background: rgba(60, 70, 100, 0.3);
    border-radius: 8px;
    padding: 12px;
    text-align: center;
    margin-top: 12px;
}

.team-memory h4 {
    color: #e2e8f0;
    font-size: 14px;
    margin-bottom: 8px;
}

.team-memory span {
    margin: 0 8px;
    color: #8892a6;
    font-size: 12px;
}

.meeting-results {
    min-height: 200px;
}

.meeting-result h4 {
    color: #e2e8f0;
    font-size: 15px;
    margin-bottom: 8px;
}

.meeting-result p {
    color: #8892a6;
    font-size: 13px;
    margin-bottom: 8px;
}

.action-plan {
    margin-top: 12px;
}

.plan-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    background: rgba(60, 70, 100, 0.3);
    border-radius: 6px;
    margin-bottom: 6px;
    font-size: 13px;
    color: #e2e8f0;
}

.plan-item .priority {
    background: #6c5ce7;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: bold;
}

.plan-item .assigned {
    color: #8892a6;
    font-size: 12px;
}

.tools-section {
    margin-top: 24px;
    background: rgba(30, 35, 50, 0.6);
    border-radius: 12px;
    padding: 20px;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.tool-card {
    background: rgba(60, 70, 100, 0.4);
    border-radius: 8px;
    padding: 12px;
}

.tool-card h4 {
    color: #e2e8f0;
    font-size: 14px;
    margin-bottom: 4px;
}

.tool-card .category {
    color: #6c5ce7;
    font-size: 11px;
    text-transform: uppercase;
}

.tool-card p {
    color: #8892a6;
    font-size: 12px;
    margin: 8px 0;
}

.tool-card .reliability {
    color: #00b894;
    font-size: 11px;
}

/* Expert Advice Styles */

.advice-container {
    min-height: 300px;
}

.expert-result .routing-info {
    background: rgba(60, 70, 100, 0.4);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
}

.expert-result .routing-info h4 {
    color: #6c5ce7;
    font-size: 18px;
}

.expert-result .advice-content {
    margin-bottom: 16px;
}

.expert-result .advice-content h4 {
    color: #e2e8f0;
    font-size: 15px;
    margin-bottom: 8px;
}

.expert-result .warnings .warning {
    background: rgba(237, 137, 54, 0.2);
    border-left: 3px solid #ed8936;
    padding: 8px 12px;
    margin: 4px 0;
    font-size: 13px;
    color: #ed8936;
}

.actions-list .action-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px;
    background: rgba(60, 70, 100, 0.3);
    border-radius: 6px;
    margin-bottom: 6px;
}

.action-item .action-type {
    background: #6c5ce7;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
}

.action-item .action-desc {
    color: #e2e8f0;
    font-size: 13px;
}

/* Knowledge Results */

.knowledge-results {
    min-height: 200px;
    max-height: 500px;
    overflow-y: auto;
}

.knowledge-list .knowledge-item {
    background: rgba(60, 70, 100, 0.3);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 8px;
}

.knowledge-item .doc-type {
    background: #00b894;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 10px;
    text-transform: uppercase;
}

.knowledge-item .doc-id {
    color: #8892a6;
    font-size: 11px;
    margin-left: 8px;
}

.knowledge-item p {
    color: #e2e8f0;
    font-size: 13px;
    margin-top: 8px;
}

.sources {
    color: #8892a6;
    font-size: 12px;
    margin-top: 12px;
}

.search-form {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.search-form .form-input {
    flex: 1;
}

@media (max-width: 900px) {
    .team-layout,
    .experts-layout {
        grid-template-columns: 1fr;
    }
}

/* ============== Professional Pentest Overrides ============== */

/* Pentest content area */
.pentest-content {
    padding: var(--space-4) var(--space-6);
}

/* Tabs */
.pentest-tabs {
    display: flex;
    gap: var(--space-1);
    padding: 0;
    margin-bottom: var(--space-4);
    border-bottom: 1px solid var(--border-default);
    overflow-x: auto;
}

.pentest-tab {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-4);
    color: var(--text-secondary);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all var(--transition-fast);
    font-size: var(--text-sm);
    font-weight: 500;
    white-space: nowrap;
}

.pentest-tab:hover {
    color: var(--text-primary);
    background: var(--bg-hover);
}

.pentest-tab.active {
    color: var(--color-primary);
    border-bottom-color: var(--color-primary);
}

.pentest-tab svg {
    flex-shrink: 0;
}

/* Views */
.pentest-view {
    animation: fadeIn var(--transition-base) ease;
}

/* Layout */
.pentest-layout {
    display: grid;
    grid-template-columns: 260px 1fr 300px;
    gap: var(--space-4);
    height: calc(100vh - 200px);
}

/* Sidebar */
.pentest-sidebar {
    background: var(--bg-surface);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-xl);
    padding: var(--space-4);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.sidebar-section h3 {
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-tertiary);
    margin-bottom: var(--space-3);
    font-weight: 600;
}

/* Main area */
.pentest-main {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    min-height: 0;
}

/* Graph panel */
.graph-panel {
    flex: 1;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.graph-toolbar {
    display: flex;
    gap: var(--space-2);
    padding: var(--space-3);
    border-bottom: 1px solid var(--border-default);
    background: var(--bg-elevated);
}

.graph-btn {
    padding: var(--space-2) var(--space-3);
    background: transparent;
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: var(--text-xs);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.graph-btn:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.graph-btn.active {
    background: var(--color-primary-light);
    border-color: var(--color-primary);
    color: var(--color-primary);
}

#graph-canvas,
.graph-canvas-full {
    flex: 1;
    overflow: hidden;
    background: var(--bg-elevated);
}

/* Console panel */
.console-panel {
    height: 180px;
    overflow-y: auto;
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    padding: var(--space-3);
}

.console-line {
    padding: var(--space-1) 0;
    color: var(--text-secondary);
}

.console-line .info {
    color: var(--color-info);
}

.console-line .success {
    color: var(--color-success);
}

.console-line .error {
    color: var(--color-error);
}

.console-line .warning {
    color: var(--color-warning);
}

/* Right panel */
.pentest-right {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    overflow-y: auto;
}

/* Stats grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-3);
}

.stat-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
    padding: var(--space-3);
    text-align: center;
}

.stat-card .stat-value {
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--text-primary);
}

.stat-card .stat-label {
    font-size: var(--text-xs);
    color: var(--text-tertiary);
    margin-top: var(--space-1);
}

.stat-card.highlight .stat-value {
    color: var(--color-primary);
}

.stat-card.success .stat-value {
    color: var(--color-success);
}

.stat-card.warning .stat-value {
    color: var(--color-warning);
}

/* Progress bar */
.progress-bar {
    height: 6px;
    background: var(--bg-elevated);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--color-primary), var(--color-success));
    border-radius: var(--radius-full);
    transition: width var(--transition-slow);
}

/* Action panel */
.action-panel {
    padding: var(--space-4);
}

.action-panel h3 {
    font-size: var(--text-sm);
    font-weight: 600;
    margin-bottom: var(--space-3);
    color: var(--text-primary);
}

.action-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-2);
}

.action-btn {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-3);
    background: var(--bg-elevated);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: var(--text-xs);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.action-btn:hover {
    background: var(--bg-hover);
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.action-btn svg {
    flex-shrink: 0;
}

/* LLM suggestion */
.llm-suggestion {
    margin-top: var(--space-4);
    padding: var(--space-3);
    background: var(--color-primary-light);
    border: 1px solid var(--color-primary);
    border-radius: var(--radius-lg);
}

.llm-label {
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: var(--space-2);
}

.llm-text {
    font-size: var(--text-sm);
    color: var(--text-primary);
    line-height: 1.5;
}

/* Reflection panel */
.reflection-panel {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: var(--space-4);
}

.reflection-panel h3 {
    font-size: var(--text-sm);
    font-weight: 600;
    margin-bottom: var(--space-3);
    color: var(--text-primary);
}

/* Card improvements */
.pentest-right .card {
    background: var(--bg-surface);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-xl);
}

/* New Test form */
.new-test-form {
    max-width: 800px;
    margin: 0 auto;
    padding: var(--space-6);
}

.new-test-form h2 {
    font-size: var(--text-xl);
    font-weight: 700;
    margin-bottom: var(--space-6);
}

.form-actions {
    display: flex;
    gap: var(--space-3);
    margin-top: var(--space-6);
}

.templates-section {
    margin-top: var(--space-8);
    padding-top: var(--space-6);
    border-top: 1px solid var(--border-default);
}

.templates-section h3 {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: var(--space-3);
}

.template-buttons {
    display: flex;
    gap: var(--space-3);
    flex-wrap: wrap;
}

/* Interactive layout */
.interactive-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
    height: calc(100vh - 200px);
}

.interactive-left,
.interactive-right {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.interactive-panel {
    padding: var(--space-4);
}

.interactive-panel h3 {
    font-size: var(--text-sm);
    font-weight: 600;
    margin-bottom: var(--space-3);
    color: var(--text-primary);
}

.result-box,
.state-display,
.history-list {
    background: var(--bg-elevated);
    border-radius: var(--radius-lg);
    padding: var(--space-3);
    min-height: 150px;
    overflow-y: auto;
    font-family: var(--font-mono);
    font-size: var(--text-xs);
}

/* Experts layout */
.experts-layout {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--space-4);
    height: calc(100vh - 200px);
}

.experts-panel {
    overflow-y: auto;
    padding: var(--space-4);
}

.expert-details {
    overflow-y: auto;
    padding: var(--space-4);
}

/* Graph fullscreen */
.graph-fullscreen {
    height: calc(100vh - 200px);
    display: flex;
    flex-direction: column;
}

.graph-canvas-full {
    flex: 1;
    background: var(--bg-elevated);
}

/* Report layout */
.report-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: var(--space-4);
    height: calc(100vh - 200px);
}

.report-panel {
    padding: var(--space-4);
}

.report-preview {
    overflow-y: auto;
    padding: var(--space-4);
}

/* Responsive */
@media (max-width: 1200px) {
    .pentest-layout {
        grid-template-columns: 220px 1fr 250px;
    }
}

@media (max-width: 1024px) {
    .pentest-layout {
        grid-template-columns: 1fr;
        height: auto;
    }

    .interactive-layout {
        grid-template-columns: 1fr;
    }

    .experts-layout {
        grid-template-columns: 1fr;
    }

    .report-layout {
        grid-template-columns: 1fr;
    }
}

← 返回文件树 · 在 GitHub 上查看