893 lines
15 KiB
CSS
893 lines
15 KiB
CSS
.security-container {
|
|
padding: 24px;
|
|
max-width: 1400px;
|
|
margin: 0 auto;
|
|
}
|
|
|
|
.security-header {
|
|
display: flex;
|
|
align-items: flex-start;
|
|
justify-content: space-between;
|
|
margin-bottom: 24px;
|
|
padding-bottom: 20px;
|
|
border-bottom: 1px solid var(--border-color);
|
|
}
|
|
|
|
.security-header-left {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 16px;
|
|
}
|
|
|
|
.security-back-btn {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 40px;
|
|
height: 40px;
|
|
background: var(--secondary-bg);
|
|
border: 1px solid var(--border-color);
|
|
border-radius: 8px;
|
|
color: var(--text-secondary);
|
|
cursor: pointer;
|
|
transition: all 0.2s;
|
|
text-decoration: none;
|
|
}
|
|
|
|
.security-back-btn:hover {
|
|
background: var(--bg-hover);
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.security-title {
|
|
font-size: 24px;
|
|
font-weight: 700;
|
|
color: var(--text-primary);
|
|
margin: 0 0 4px 0;
|
|
}
|
|
|
|
.security-subtitle {
|
|
font-size: 14px;
|
|
color: var(--text-secondary);
|
|
margin: 0;
|
|
}
|
|
|
|
.security-tabs {
|
|
display: flex;
|
|
gap: 4px;
|
|
margin-bottom: 24px;
|
|
background: var(--secondary-bg);
|
|
padding: 4px;
|
|
border-radius: 12px;
|
|
border: 1px solid var(--border-color);
|
|
}
|
|
|
|
.security-tab {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
padding: 12px 20px;
|
|
border: none;
|
|
background: transparent;
|
|
color: var(--text-secondary);
|
|
font-size: 14px;
|
|
font-weight: 500;
|
|
cursor: pointer;
|
|
border-radius: 8px;
|
|
transition: all 0.2s;
|
|
}
|
|
|
|
.security-tab:hover {
|
|
background: var(--bg-hover);
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.security-tab.active {
|
|
background: var(--accent-color);
|
|
color: white;
|
|
}
|
|
|
|
.security-tab svg {
|
|
width: 18px;
|
|
height: 18px;
|
|
}
|
|
|
|
.security-tab-content {
|
|
display: none;
|
|
}
|
|
|
|
.security-tab-content.active {
|
|
display: block;
|
|
}
|
|
|
|
.compliance-actions {
|
|
display: flex;
|
|
gap: 12px;
|
|
}
|
|
|
|
.security-btn {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
padding: 10px 16px;
|
|
border-radius: 8px;
|
|
font-size: 14px;
|
|
font-weight: 500;
|
|
cursor: pointer;
|
|
transition: all 0.2s;
|
|
border: 1px solid var(--border-color);
|
|
background: var(--secondary-bg);
|
|
color: var(--text-primary);
|
|
text-decoration: none;
|
|
}
|
|
|
|
.security-btn:hover {
|
|
background: var(--bg-hover);
|
|
}
|
|
|
|
.security-btn-primary {
|
|
background: var(--accent-color);
|
|
border-color: var(--accent-color);
|
|
color: white;
|
|
}
|
|
|
|
.security-btn-primary:hover {
|
|
background: var(--accent-hover);
|
|
border-color: var(--accent-hover);
|
|
}
|
|
|
|
.security-btn-success {
|
|
background: #10b981;
|
|
border-color: #10b981;
|
|
color: white;
|
|
}
|
|
|
|
.security-btn-success:hover {
|
|
background: #059669;
|
|
border-color: #059669;
|
|
}
|
|
|
|
.security-btn-danger {
|
|
background: #ef4444;
|
|
border-color: #ef4444;
|
|
color: white;
|
|
}
|
|
|
|
.security-btn-danger:hover {
|
|
background: #dc2626;
|
|
border-color: #dc2626;
|
|
}
|
|
|
|
.security-stats {
|
|
display: grid;
|
|
grid-template-columns: repeat(5, 1fr);
|
|
gap: 16px;
|
|
margin-bottom: 24px;
|
|
}
|
|
|
|
.security-stat-card {
|
|
background: var(--secondary-bg);
|
|
border: 1px solid var(--border-color);
|
|
border-radius: 12px;
|
|
padding: 16px;
|
|
position: relative;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.security-stat-card::before {
|
|
content: "";
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
height: 3px;
|
|
}
|
|
|
|
.security-stat-card.critical::before {
|
|
background: #dc2626;
|
|
}
|
|
|
|
.security-stat-card.high::before {
|
|
background: #ea580c;
|
|
}
|
|
|
|
.security-stat-card.medium::before {
|
|
background: #d97706;
|
|
}
|
|
|
|
.security-stat-card.low::before {
|
|
background: #65a30d;
|
|
}
|
|
|
|
.security-stat-card.info::before {
|
|
background: #0891b2;
|
|
}
|
|
|
|
.security-stat-label {
|
|
font-size: 12px;
|
|
color: var(--text-secondary);
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.5px;
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.security-stat-value {
|
|
font-size: 28px;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.security-stat-card.critical .security-stat-value {
|
|
color: #dc2626;
|
|
}
|
|
|
|
.security-stat-card.high .security-stat-value {
|
|
color: #ea580c;
|
|
}
|
|
|
|
.security-stat-card.medium .security-stat-value {
|
|
color: #d97706;
|
|
}
|
|
|
|
.security-stat-card.low .security-stat-value {
|
|
color: #65a30d;
|
|
}
|
|
|
|
.security-stat-card.info .security-stat-value {
|
|
color: #0891b2;
|
|
}
|
|
|
|
.security-stat-desc {
|
|
font-size: 11px;
|
|
color: var(--text-tertiary);
|
|
margin-top: 4px;
|
|
}
|
|
|
|
.security-filters {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 16px;
|
|
margin-bottom: 20px;
|
|
padding: 12px 16px;
|
|
background: var(--secondary-bg);
|
|
border-radius: 10px;
|
|
border: 1px solid var(--border-color);
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.security-filter-group {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
}
|
|
|
|
.security-filter-label {
|
|
font-size: 13px;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.security-filter-select {
|
|
padding: 8px 12px;
|
|
background: var(--primary-bg);
|
|
border: 1px solid var(--border-color);
|
|
border-radius: 6px;
|
|
color: var(--text-primary);
|
|
font-size: 13px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.security-filter-input {
|
|
padding: 8px 12px;
|
|
background: var(--primary-bg);
|
|
border: 1px solid var(--border-color);
|
|
border-radius: 6px;
|
|
color: var(--text-primary);
|
|
font-size: 13px;
|
|
width: 200px;
|
|
}
|
|
|
|
.security-filter-input::placeholder {
|
|
color: var(--text-tertiary);
|
|
}
|
|
|
|
.security-filter-input:focus {
|
|
outline: none;
|
|
border-color: var(--accent-color);
|
|
}
|
|
|
|
.security-filter-spacer {
|
|
flex: 1;
|
|
}
|
|
|
|
.security-results {
|
|
background: var(--secondary-bg);
|
|
border: 1px solid var(--border-color);
|
|
border-radius: 12px;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.security-results-header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 16px 20px;
|
|
border-bottom: 1px solid var(--border-color);
|
|
}
|
|
|
|
.security-results-title {
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.security-results-count {
|
|
font-size: 13px;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.security-table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
}
|
|
|
|
.security-table th {
|
|
text-align: left;
|
|
padding: 12px 16px;
|
|
font-size: 12px;
|
|
font-weight: 600;
|
|
color: var(--text-secondary);
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.5px;
|
|
background: var(--primary-bg);
|
|
border-bottom: 1px solid var(--border-color);
|
|
}
|
|
|
|
.security-table td {
|
|
padding: 16px;
|
|
font-size: 14px;
|
|
color: var(--text-primary);
|
|
border-bottom: 1px solid var(--border-color);
|
|
vertical-align: top;
|
|
}
|
|
|
|
.security-table tr:last-child td {
|
|
border-bottom: none;
|
|
}
|
|
|
|
.security-table tr:hover {
|
|
background: var(--bg-hover);
|
|
}
|
|
|
|
.security-severity {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
padding: 4px 10px;
|
|
border-radius: 6px;
|
|
font-size: 12px;
|
|
font-weight: 600;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
.security-severity.critical {
|
|
background: rgba(220, 38, 38, 0.1);
|
|
color: #dc2626;
|
|
}
|
|
|
|
.security-severity.high {
|
|
background: rgba(234, 88, 12, 0.1);
|
|
color: #ea580c;
|
|
}
|
|
|
|
.security-severity.medium {
|
|
background: rgba(217, 119, 6, 0.1);
|
|
color: #d97706;
|
|
}
|
|
|
|
.security-severity.low {
|
|
background: rgba(101, 163, 13, 0.1);
|
|
color: #65a30d;
|
|
}
|
|
|
|
.security-severity.info {
|
|
background: rgba(8, 145, 178, 0.1);
|
|
color: #0891b2;
|
|
}
|
|
|
|
.security-severity-dot {
|
|
width: 6px;
|
|
height: 6px;
|
|
border-radius: 50%;
|
|
background: currentColor;
|
|
}
|
|
|
|
.security-issue-type {
|
|
display: flex;
|
|
align-items: flex-start;
|
|
gap: 12px;
|
|
}
|
|
|
|
.security-issue-icon {
|
|
width: 36px;
|
|
height: 36px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
border-radius: 8px;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.security-issue-icon.password {
|
|
background: rgba(220, 38, 38, 0.1);
|
|
color: #dc2626;
|
|
}
|
|
|
|
.security-issue-icon.security {
|
|
background: rgba(234, 88, 12, 0.1);
|
|
color: #ea580c;
|
|
}
|
|
|
|
.security-issue-icon.deprecated {
|
|
background: rgba(217, 119, 6, 0.1);
|
|
color: #d97706;
|
|
}
|
|
|
|
.security-issue-icon.code {
|
|
background: rgba(101, 163, 13, 0.1);
|
|
color: #65a30d;
|
|
}
|
|
|
|
.security-issue-icon.config {
|
|
background: rgba(8, 145, 178, 0.1);
|
|
color: #0891b2;
|
|
}
|
|
|
|
.security-issue-title {
|
|
font-weight: 600;
|
|
color: var(--text-primary);
|
|
margin-bottom: 2px;
|
|
}
|
|
|
|
.security-issue-category {
|
|
font-size: 12px;
|
|
color: var(--text-tertiary);
|
|
}
|
|
|
|
.security-file-path {
|
|
font-family: "SF Mono", "Monaco", monospace;
|
|
font-size: 13px;
|
|
color: var(--accent-color);
|
|
word-break: break-all;
|
|
}
|
|
|
|
.security-file-line {
|
|
font-size: 12px;
|
|
color: var(--text-tertiary);
|
|
margin-top: 4px;
|
|
}
|
|
|
|
.security-description {
|
|
font-size: 13px;
|
|
color: var(--text-secondary);
|
|
line-height: 1.5;
|
|
}
|
|
|
|
.security-code-snippet {
|
|
margin-top: 8px;
|
|
padding: 8px 12px;
|
|
background: var(--primary-bg);
|
|
border-radius: 6px;
|
|
font-family: "SF Mono", "Monaco", monospace;
|
|
font-size: 12px;
|
|
color: var(--text-primary);
|
|
white-space: pre-wrap;
|
|
word-break: break-all;
|
|
}
|
|
|
|
.security-action-btn {
|
|
padding: 6px 14px;
|
|
background: var(--accent-color);
|
|
color: white;
|
|
border: none;
|
|
border-radius: 6px;
|
|
font-size: 13px;
|
|
font-weight: 500;
|
|
cursor: pointer;
|
|
transition: all 0.2s;
|
|
}
|
|
|
|
.security-action-btn:hover {
|
|
background: var(--accent-hover);
|
|
transform: translateY(-1px);
|
|
}
|
|
|
|
.protection-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
|
|
gap: 20px;
|
|
}
|
|
|
|
.protection-card {
|
|
background: var(--secondary-bg);
|
|
border: 1px solid var(--border-color);
|
|
border-radius: 12px;
|
|
overflow: hidden;
|
|
transition: all 0.2s;
|
|
}
|
|
|
|
.protection-card:hover {
|
|
border-color: var(--accent-color);
|
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
|
|
}
|
|
|
|
.protection-card-header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 16px 20px;
|
|
background: var(--primary-bg);
|
|
border-bottom: 1px solid var(--border-color);
|
|
}
|
|
|
|
.protection-card-title {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
}
|
|
|
|
.protection-card-icon {
|
|
width: 44px;
|
|
height: 44px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
border-radius: 10px;
|
|
font-size: 24px;
|
|
}
|
|
|
|
.protection-card-icon.lynis {
|
|
background: linear-gradient(135deg, #3b82f6, #1d4ed8);
|
|
color: white;
|
|
}
|
|
|
|
.protection-card-icon.rkhunter {
|
|
background: linear-gradient(135deg, #ef4444, #b91c1c);
|
|
color: white;
|
|
}
|
|
|
|
.protection-card-icon.chkrootkit {
|
|
background: linear-gradient(135deg, #f59e0b, #d97706);
|
|
color: white;
|
|
}
|
|
|
|
.protection-card-icon.suricata {
|
|
background: linear-gradient(135deg, #8b5cf6, #6d28d9);
|
|
color: white;
|
|
}
|
|
|
|
.protection-card-icon.lmd {
|
|
background: linear-gradient(135deg, #10b981, #059669);
|
|
color: white;
|
|
}
|
|
|
|
.protection-card-icon.clamav {
|
|
background: linear-gradient(135deg, #ec4899, #be185d);
|
|
color: white;
|
|
}
|
|
|
|
.protection-card-info h3 {
|
|
font-size: 16px;
|
|
font-weight: 600;
|
|
color: var(--text-primary);
|
|
margin: 0 0 4px 0;
|
|
}
|
|
|
|
.protection-card-info p {
|
|
font-size: 13px;
|
|
color: var(--text-secondary);
|
|
margin: 0;
|
|
}
|
|
|
|
.protection-card-status {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
padding: 6px 12px;
|
|
border-radius: 20px;
|
|
font-size: 12px;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.protection-card-status.running {
|
|
background: rgba(16, 185, 129, 0.1);
|
|
color: #10b981;
|
|
}
|
|
|
|
.protection-card-status.stopped {
|
|
background: rgba(107, 114, 128, 0.1);
|
|
color: #6b7280;
|
|
}
|
|
|
|
.protection-card-status.not-installed {
|
|
background: rgba(239, 68, 68, 0.1);
|
|
color: #ef4444;
|
|
}
|
|
|
|
.protection-card-status.updating {
|
|
background: rgba(59, 130, 246, 0.1);
|
|
color: #3b82f6;
|
|
}
|
|
|
|
.protection-status-dot {
|
|
width: 8px;
|
|
height: 8px;
|
|
border-radius: 50%;
|
|
background: currentColor;
|
|
}
|
|
|
|
.protection-status-dot.running {
|
|
animation: pulse-green 2s infinite;
|
|
}
|
|
|
|
@keyframes pulse-green {
|
|
0%,
|
|
100% {
|
|
opacity: 1;
|
|
}
|
|
50% {
|
|
opacity: 0.5;
|
|
}
|
|
}
|
|
|
|
.protection-card-body {
|
|
padding: 16px 20px;
|
|
}
|
|
|
|
.protection-card-meta {
|
|
display: grid;
|
|
grid-template-columns: repeat(2, 1fr);
|
|
gap: 12px;
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
.protection-meta-item {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 4px;
|
|
}
|
|
|
|
.protection-meta-label {
|
|
font-size: 11px;
|
|
color: var(--text-tertiary);
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.5px;
|
|
}
|
|
|
|
.protection-meta-value {
|
|
font-size: 13px;
|
|
font-weight: 500;
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.protection-meta-value.success {
|
|
color: #10b981;
|
|
}
|
|
|
|
.protection-meta-value.warning {
|
|
color: #f59e0b;
|
|
}
|
|
|
|
.protection-meta-value.error {
|
|
color: #ef4444;
|
|
}
|
|
|
|
.protection-card-actions {
|
|
display: flex;
|
|
gap: 8px;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.protection-card-actions .security-btn {
|
|
flex: 1;
|
|
min-width: 100px;
|
|
justify-content: center;
|
|
padding: 8px 12px;
|
|
font-size: 13px;
|
|
}
|
|
|
|
.protection-card-footer {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 12px 20px;
|
|
background: var(--primary-bg);
|
|
border-top: 1px solid var(--border-color);
|
|
}
|
|
|
|
.protection-footer-actions {
|
|
display: flex;
|
|
gap: 8px;
|
|
}
|
|
|
|
.protection-icon-btn {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 32px;
|
|
height: 32px;
|
|
background: var(--secondary-bg);
|
|
border: 1px solid var(--border-color);
|
|
border-radius: 6px;
|
|
color: var(--text-secondary);
|
|
cursor: pointer;
|
|
transition: all 0.2s;
|
|
}
|
|
|
|
.protection-icon-btn:hover {
|
|
background: var(--bg-hover);
|
|
color: var(--text-primary);
|
|
border-color: var(--accent-color);
|
|
}
|
|
|
|
.protection-icon-btn.danger:hover {
|
|
color: #ef4444;
|
|
border-color: #ef4444;
|
|
}
|
|
|
|
.protection-auto-update {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
font-size: 12px;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.protection-toggle {
|
|
position: relative;
|
|
width: 36px;
|
|
height: 20px;
|
|
background: var(--border-color);
|
|
border-radius: 10px;
|
|
cursor: pointer;
|
|
transition: all 0.2s;
|
|
}
|
|
|
|
.protection-toggle.active {
|
|
background: #10b981;
|
|
}
|
|
|
|
.protection-toggle::after {
|
|
content: "";
|
|
position: absolute;
|
|
top: 2px;
|
|
left: 2px;
|
|
width: 16px;
|
|
height: 16px;
|
|
background: white;
|
|
border-radius: 50%;
|
|
transition: all 0.2s;
|
|
}
|
|
|
|
.protection-toggle.active::after {
|
|
left: 18px;
|
|
}
|
|
|
|
.report-modal {
|
|
display: none;
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
background: rgba(0, 0, 0, 0.5);
|
|
z-index: 1000;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.report-modal.active {
|
|
display: flex;
|
|
}
|
|
|
|
.report-modal-content {
|
|
background: var(--secondary-bg);
|
|
border-radius: 16px;
|
|
width: 90%;
|
|
max-width: 900px;
|
|
max-height: 80vh;
|
|
overflow: hidden;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.report-modal-header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 20px 24px;
|
|
border-bottom: 1px solid var(--border-color);
|
|
}
|
|
|
|
.report-modal-title {
|
|
font-size: 18px;
|
|
font-weight: 600;
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.report-modal-close {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 32px;
|
|
height: 32px;
|
|
background: transparent;
|
|
border: none;
|
|
color: var(--text-secondary);
|
|
cursor: pointer;
|
|
border-radius: 6px;
|
|
transition: all 0.2s;
|
|
}
|
|
|
|
.report-modal-close:hover {
|
|
background: var(--bg-hover);
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.report-modal-body {
|
|
flex: 1;
|
|
padding: 24px;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
.report-content {
|
|
font-family: "SF Mono", "Monaco", monospace;
|
|
font-size: 13px;
|
|
line-height: 1.6;
|
|
color: var(--text-primary);
|
|
white-space: pre-wrap;
|
|
background: var(--primary-bg);
|
|
padding: 16px;
|
|
border-radius: 8px;
|
|
}
|
|
|
|
@media (max-width: 1200px) {
|
|
.security-stats {
|
|
grid-template-columns: repeat(3, 1fr);
|
|
}
|
|
|
|
.protection-grid {
|
|
grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
|
|
}
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
.security-stats {
|
|
grid-template-columns: repeat(2, 1fr);
|
|
}
|
|
|
|
.security-header {
|
|
flex-direction: column;
|
|
gap: 16px;
|
|
}
|
|
|
|
.security-filters {
|
|
flex-direction: column;
|
|
align-items: stretch;
|
|
}
|
|
|
|
.security-filter-input {
|
|
width: 100%;
|
|
}
|
|
|
|
.security-table {
|
|
display: block;
|
|
overflow-x: auto;
|
|
}
|
|
|
|
.security-tabs {
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.protection-grid {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
}
|