- Change menu path from /admin/secubox/security/threat-analyst to /admin/services/threat-analyst for proper placement - Rewrite dashboard.css with dark theme colors matching SecuBox palette (#12121a, #1a1a24, #0a0a12 backgrounds; #00d4aa, #00a0ff accents) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
455 lines
7.7 KiB
CSS
455 lines
7.7 KiB
CSS
/* Threat Analyst Dashboard CSS - Dark Theme */
|
|
|
|
.ta-view {
|
|
max-width: 1400px;
|
|
margin: 0 auto;
|
|
padding: 20px;
|
|
}
|
|
|
|
/* Header */
|
|
.ta-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: 20px;
|
|
padding-bottom: 16px;
|
|
border-bottom: 1px solid rgba(255,255,255,0.1);
|
|
}
|
|
|
|
.ta-title {
|
|
font-size: 24px;
|
|
font-weight: 600;
|
|
background: linear-gradient(90deg, #00d4aa, #00a0ff);
|
|
-webkit-background-clip: text;
|
|
-webkit-text-fill-color: transparent;
|
|
}
|
|
|
|
.ta-status {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
font-size: 14px;
|
|
color: #a0a0b0;
|
|
}
|
|
|
|
.ta-dot {
|
|
width: 10px;
|
|
height: 10px;
|
|
border-radius: 50%;
|
|
background: #606070;
|
|
}
|
|
|
|
.ta-dot.online { background: #00d4aa; box-shadow: 0 0 8px #00d4aa; }
|
|
.ta-dot.offline { background: #ff4d4d; }
|
|
|
|
/* Stats */
|
|
.ta-stats {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
|
|
gap: 16px;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.ta-stat {
|
|
background: #12121a;
|
|
border: 1px solid rgba(255,255,255,0.05);
|
|
border-radius: 8px;
|
|
padding: 16px;
|
|
text-align: center;
|
|
}
|
|
|
|
.ta-stat-value {
|
|
font-size: 28px;
|
|
font-weight: 700;
|
|
color: #00d4aa;
|
|
font-family: monospace;
|
|
}
|
|
|
|
.ta-stat-label {
|
|
font-size: 11px;
|
|
color: #808090;
|
|
margin-top: 4px;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
.ta-stat.success .ta-stat-value { color: #00d4aa; }
|
|
.ta-stat.warning .ta-stat-value { color: #ffa500; }
|
|
.ta-stat.danger .ta-stat-value { color: #ff4d4d; }
|
|
|
|
/* Grid Layout */
|
|
.ta-grid-2 {
|
|
display: grid;
|
|
grid-template-columns: repeat(2, 1fr);
|
|
gap: 20px;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
@media (max-width: 900px) {
|
|
.ta-grid-2 { grid-template-columns: 1fr; }
|
|
}
|
|
|
|
/* Cards */
|
|
.ta-card {
|
|
background: #12121a;
|
|
border: 1px solid rgba(255,255,255,0.05);
|
|
border-radius: 8px;
|
|
overflow: hidden;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.ta-card-header {
|
|
padding: 12px 16px;
|
|
font-weight: 600;
|
|
font-size: 14px;
|
|
background: rgba(255,255,255,0.02);
|
|
border-bottom: 1px solid rgba(255,255,255,0.05);
|
|
color: #fff;
|
|
}
|
|
|
|
.ta-card-body {
|
|
padding: 16px;
|
|
}
|
|
|
|
/* Tables */
|
|
.ta-table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
}
|
|
|
|
.ta-table th,
|
|
.ta-table td {
|
|
padding: 10px 12px;
|
|
text-align: left;
|
|
border-bottom: 1px solid rgba(255,255,255,0.05);
|
|
}
|
|
|
|
.ta-table th {
|
|
font-size: 11px;
|
|
text-transform: uppercase;
|
|
color: #808090;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.ta-table tbody tr:hover {
|
|
background: rgba(255,255,255,0.02);
|
|
}
|
|
|
|
/* Badges */
|
|
.ta-badge {
|
|
display: inline-block;
|
|
padding: 3px 8px;
|
|
border-radius: 4px;
|
|
font-size: 11px;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.ta-badge.critical { background: rgba(255,77,77,0.2); color: #ff4d4d; }
|
|
.ta-badge.high { background: rgba(255,152,0,0.2); color: #ffa500; }
|
|
.ta-badge.medium { background: rgba(255,193,7,0.2); color: #ffc107; }
|
|
.ta-badge.low { background: rgba(0,212,170,0.2); color: #00d4aa; }
|
|
|
|
.ta-badge.crowdsec { background: rgba(92,107,192,0.2); color: #8c9eff; }
|
|
.ta-badge.mitmproxy { background: rgba(38,166,154,0.2); color: #64ffda; }
|
|
.ta-badge.waf { background: rgba(126,87,194,0.2); color: #b388ff; }
|
|
|
|
/* Buttons */
|
|
.ta-btn {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
padding: 8px 16px;
|
|
border: none;
|
|
border-radius: 6px;
|
|
font-size: 13px;
|
|
font-weight: 500;
|
|
cursor: pointer;
|
|
transition: all 0.2s;
|
|
background: #1a1a24;
|
|
color: #a0a0b0;
|
|
border: 1px solid rgba(255,255,255,0.1);
|
|
}
|
|
|
|
.ta-btn:hover { background: #2a2a3a; color: #fff; }
|
|
|
|
.ta-btn-primary { background: rgba(0,160,255,0.2); color: #00a0ff; border-color: rgba(0,160,255,0.3); }
|
|
.ta-btn-primary:hover { background: rgba(0,160,255,0.3); }
|
|
|
|
.ta-btn-success { background: rgba(0,212,170,0.2); color: #00d4aa; border-color: rgba(0,212,170,0.3); }
|
|
.ta-btn-success:hover { background: rgba(0,212,170,0.3); }
|
|
|
|
.ta-btn-warning { background: rgba(255,152,0,0.2); color: #ffa500; border-color: rgba(255,152,0,0.3); }
|
|
.ta-btn-warning:hover { background: rgba(255,152,0,0.3); }
|
|
|
|
.ta-btn-danger { background: rgba(255,77,77,0.2); color: #ff4d4d; border-color: rgba(255,77,77,0.3); }
|
|
.ta-btn-danger:hover { background: rgba(255,77,77,0.3); }
|
|
|
|
.ta-btn-sm { padding: 4px 10px; font-size: 12px; }
|
|
|
|
/* Actions Bar */
|
|
.ta-actions {
|
|
display: flex;
|
|
gap: 8px;
|
|
margin-top: 16px;
|
|
}
|
|
|
|
/* Pending Rules */
|
|
.ta-pending-list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
}
|
|
|
|
.ta-pending-item {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
padding: 12px;
|
|
background: #1a1a24;
|
|
border-radius: 6px;
|
|
}
|
|
|
|
.ta-pending-info {
|
|
flex: 1;
|
|
}
|
|
|
|
.ta-pending-type {
|
|
font-weight: 600;
|
|
margin-bottom: 4px;
|
|
}
|
|
|
|
.ta-pending-date {
|
|
font-size: 12px;
|
|
color: #808090;
|
|
}
|
|
|
|
.ta-pending-actions {
|
|
display: flex;
|
|
gap: 6px;
|
|
}
|
|
|
|
/* Chat */
|
|
.ta-chat {
|
|
display: flex;
|
|
flex-direction: column;
|
|
height: 400px;
|
|
}
|
|
|
|
.ta-chat-messages {
|
|
flex: 1;
|
|
overflow-y: auto;
|
|
padding: 12px;
|
|
background: #0a0a12;
|
|
border-radius: 6px;
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
.ta-message {
|
|
margin-bottom: 12px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.ta-message.user {
|
|
align-items: flex-end;
|
|
}
|
|
|
|
.ta-message-bubble {
|
|
max-width: 80%;
|
|
padding: 10px 14px;
|
|
border-radius: 12px;
|
|
font-size: 14px;
|
|
line-height: 1.4;
|
|
}
|
|
|
|
.ta-message.user .ta-message-bubble {
|
|
background: linear-gradient(135deg, #00a0ff, #0080cc);
|
|
color: white;
|
|
border-bottom-right-radius: 4px;
|
|
}
|
|
|
|
.ta-message.ai .ta-message-bubble {
|
|
background: #1a1a24;
|
|
border: 1px solid rgba(255,255,255,0.05);
|
|
color: #e0e0e0;
|
|
border-bottom-left-radius: 4px;
|
|
}
|
|
|
|
.ta-message-time {
|
|
font-size: 10px;
|
|
color: #606070;
|
|
margin-top: 4px;
|
|
}
|
|
|
|
.ta-chat-input {
|
|
display: flex;
|
|
gap: 8px;
|
|
}
|
|
|
|
.ta-chat-input input {
|
|
flex: 1;
|
|
padding: 12px;
|
|
border: 1px solid rgba(255,255,255,0.1);
|
|
border-radius: 6px;
|
|
font-size: 14px;
|
|
background: #1a1a24;
|
|
color: #fff;
|
|
}
|
|
|
|
.ta-chat-input input:focus {
|
|
outline: none;
|
|
border-color: #00a0ff;
|
|
}
|
|
|
|
.ta-chat-input input::placeholder {
|
|
color: #606070;
|
|
}
|
|
|
|
/* Empty State */
|
|
.ta-empty {
|
|
text-align: center;
|
|
padding: 24px;
|
|
color: #808090;
|
|
font-style: italic;
|
|
}
|
|
|
|
/* IP display */
|
|
.ta-ip {
|
|
font-family: monospace;
|
|
font-size: 13px;
|
|
color: #00a0ff;
|
|
}
|
|
|
|
/* Scenario display */
|
|
.ta-scenario {
|
|
font-size: 13px;
|
|
color: #e0e0e0;
|
|
}
|
|
|
|
/* Time display */
|
|
.ta-time {
|
|
font-size: 12px;
|
|
color: #808090;
|
|
}
|
|
|
|
/* Health Grid */
|
|
.ta-health {
|
|
display: grid;
|
|
grid-template-columns: repeat(2, 1fr);
|
|
gap: 12px;
|
|
}
|
|
|
|
.ta-health-item {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
padding: 10px;
|
|
background: #1a1a24;
|
|
border-radius: 6px;
|
|
}
|
|
|
|
.ta-health-icon {
|
|
width: 28px;
|
|
height: 28px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
border-radius: 50%;
|
|
font-size: 14px;
|
|
}
|
|
|
|
.ta-health-icon.ok {
|
|
background: rgba(0,212,170,0.15);
|
|
color: #00d4aa;
|
|
}
|
|
|
|
.ta-health-icon.error {
|
|
background: rgba(255,77,77,0.15);
|
|
color: #ff4d4d;
|
|
}
|
|
|
|
.ta-health-icon.warning {
|
|
background: rgba(255,152,0,0.15);
|
|
color: #ffa500;
|
|
}
|
|
|
|
.ta-health-label {
|
|
font-weight: 500;
|
|
font-size: 13px;
|
|
color: #e0e0e0;
|
|
}
|
|
|
|
.ta-health-value {
|
|
font-size: 12px;
|
|
color: #808090;
|
|
}
|
|
|
|
/* Targets Grid */
|
|
.ta-targets {
|
|
display: grid;
|
|
grid-template-columns: repeat(3, 1fr);
|
|
gap: 12px;
|
|
}
|
|
|
|
.ta-target {
|
|
padding: 16px;
|
|
text-align: center;
|
|
background: #1a1a24;
|
|
border-radius: 8px;
|
|
cursor: pointer;
|
|
transition: all 0.2s;
|
|
border: 2px solid transparent;
|
|
}
|
|
|
|
.ta-target:hover {
|
|
border-color: #00a0ff;
|
|
background: #2a2a3a;
|
|
}
|
|
|
|
.ta-target-icon {
|
|
font-size: 24px;
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.ta-target-name {
|
|
font-weight: 600;
|
|
font-size: 14px;
|
|
color: #fff;
|
|
}
|
|
|
|
.ta-target-desc {
|
|
font-size: 11px;
|
|
color: #808090;
|
|
margin-top: 4px;
|
|
}
|
|
|
|
/* CVE Styles */
|
|
.ta-cve-link {
|
|
display: inline-block;
|
|
padding: 2px 6px;
|
|
background: rgba(255,77,77,0.15);
|
|
color: #ff6b6b;
|
|
border-radius: 4px;
|
|
font-size: 11px;
|
|
font-weight: 600;
|
|
font-family: monospace;
|
|
text-decoration: none;
|
|
transition: background 0.2s;
|
|
}
|
|
|
|
.ta-cve-link:hover {
|
|
background: rgba(255,77,77,0.3);
|
|
text-decoration: none;
|
|
}
|
|
|
|
.ta-no-cve {
|
|
color: #606070;
|
|
}
|
|
|
|
.ta-cve-row {
|
|
background: rgba(255,77,77,0.05);
|
|
}
|
|
|
|
.ta-cve-row:hover {
|
|
background: rgba(255,77,77,0.1) !important;
|
|
}
|