web / static / css / professional.css
/**
* Professional Design System for Manatrix
*
* A modern, production-ready CSS framework for pentesting dashboards.
* Features: Dark/Light themes, glassmorphism, smooth animations,
* responsive grid, professional components.
*/
/* ============== Font Imports ============== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');
/* ============== CSS Custom Properties ============== */
:root {
/* === Color Palette === */
/* Primary Colors */
--color-primary: #6366f1;
--color-primary-hover: #818cf8;
--color-primary-active: #4f46e5;
--color-primary-light: rgba(99, 102, 241, 0.1);
--color-primary-dark: #4338ca;
/* Semantic Colors */
--color-success: #10b981;
--color-success-hover: #34d399;
--color-success-light: rgba(16, 185, 129, 0.1);
--color-warning: #f59e0b;
--color-warning-hover: #fbbf24;
--color-warning-light: rgba(245, 158, 11, 0.1);
--color-error: #ef4444;
--color-error-hover: #f87171;
--color-error-light: rgba(239, 68, 68, 0.1);
--color-info: #3b82f6;
--color-info-hover: #60a5fa;
--color-info-light: rgba(59, 130, 246, 0.1);
/* Severity Colors (for pentest) */
--color-critical: #dc2626;
--color-high: #ea580c;
--color-medium: #d97706;
--color-low: #65a30d;
--color-info-severity: #0891b2;
/* === Dark Theme (Default) === */
--bg-base: #0a0a0f;
--bg-surface: #12121a;
--bg-elevated: #1a1a24;
--bg-overlay: #22222e;
--bg-hover: #2a2a38;
--bg-active: #323240;
--border-default: #2a2a38;
--border-hover: #3a3a4a;
--border-focus: var(--color-primary);
--text-primary: #f0f0f5;
--text-secondary: #a0a0b0;
--text-tertiary: #6a6a7a;
--text-disabled: #4a4a5a;
--text-inverse: #0a0a0f;
/* === Spacing (4px base) === */
--space-0: 0;
--space-1: 0.25rem;
--space-2: 0.5rem;
--space-3: 0.75rem;
--space-4: 1rem;
--space-5: 1.25rem;
--space-6: 1.5rem;
--space-8: 2rem;
--space-10: 2.5rem;
--space-12: 3rem;
--space-16: 4rem;
--space-20: 5rem;
/* === Typography === */
--font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
--font-mono: 'JetBrains Mono', 'Consolas', 'Monaco', monospace;
--text-xs: 0.75rem;
--text-sm: 0.875rem;
--text-base: 1rem;
--text-lg: 1.125rem;
--text-xl: 1.25rem;
--text-2xl: 1.5rem;
--text-3xl: 1.875rem;
--text-4xl: 2.25rem;
--leading-none: 1;
--leading-tight: 1.25;
--leading-snug: 1.375;
--leading-normal: 1.5;
--leading-relaxed: 1.625;
/* === Border Radius === */
--radius-sm: 0.25rem;
--radius-md: 0.375rem;
--radius-lg: 0.5rem;
--radius-xl: 0.75rem;
--radius-2xl: 1rem;
--radius-full: 9999px;
/* === Shadows === */
--shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
--shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
--shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
--shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
--shadow-glow: 0 0 20px rgba(99, 102, 241, 0.3);
--shadow-glow-success: 0 0 20px rgba(16, 185, 129, 0.3);
--shadow-glow-error: 0 0 20px rgba(239, 68, 68, 0.3);
/* === Transitions === */
--transition-fast: 150ms ease;
--transition-base: 200ms ease;
--transition-slow: 300ms ease;
--transition-slower: 500ms ease;
/* === Z-Index Scale === */
--z-dropdown: 100;
--z-sticky: 200;
--z-fixed: 300;
--z-modal-backdrop: 400;
--z-modal: 500;
--z-popover: 600;
--z-tooltip: 700;
--z-toast: 800;
/* === Layout === */
--sidebar-width: 260px;
--sidebar-collapsed-width: 64px;
--header-height: 64px;
--footer-height: 48px;
--content-max-width: 1440px;
}
/* === Light Theme === */
[data-theme="light"] {
--bg-base: #f8fafc;
--bg-surface: #ffffff;
--bg-elevated: #f1f5f9;
--bg-overlay: #e2e8f0;
--bg-hover: #cbd5e1;
--bg-active: #94a3b8;
--border-default: #e2e8f0;
--border-hover: #cbd5e1;
--text-primary: #0f172a;
--text-secondary: #475569;
--text-tertiary: #64748b;
--text-disabled: #94a3b8;
--text-inverse: #ffffff;
--shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
--shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
--shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
}
/* ============== CSS Reset ============== */
*, *::before, *::after {
margin: 0;
padding: 0;
box-sizing: border-box;
}
html {
font-size: 16px;
scroll-behavior: smooth;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
body {
font-family: var(--font-sans);
font-size: var(--text-base);
line-height: var(--leading-normal);
color: var(--text-primary);
background: var(--bg-base);
min-height: 100vh;
overflow-x: hidden;
}
/* ============== Typography ============== */
h1, h2, h3, h4, h5, h6 {
font-weight: 600;
line-height: var(--leading-tight);
color: var(--text-primary);
}
h1 { font-size: var(--text-3xl); }
h2 { font-size: var(--text-2xl); }
h3 { font-size: var(--text-xl); }
h4 { font-size: var(--text-lg); }
h5 { font-size: var(--text-base); }
h6 { font-size: var(--text-sm); }
p { margin-bottom: var(--space-4); }
a {
color: var(--color-primary);
text-decoration: none;
transition: color var(--transition-fast);
}
a:hover { color: var(--color-primary-hover); }
code, pre {
font-family: var(--font-mono);
font-size: var(--text-sm);
}
code {
padding: var(--space-1) var(--space-2);
background: var(--bg-elevated);
border-radius: var(--radius-md);
color: var(--color-primary);
}
pre {
padding: var(--space-4);
background: var(--bg-surface);
border: 1px solid var(--border-default);
border-radius: var(--radius-lg);
overflow-x: auto;
}
pre code {
padding: 0;
background: none;
color: var(--text-primary);
}
/* ============== Layout Components ============== */
/* App Shell */
.app-shell {
display: grid;
grid-template-columns: var(--sidebar-width) 1fr;
grid-template-rows: var(--header-height) 1fr;
grid-template-areas:
"sidebar header"
"sidebar main";
min-height: 100vh;
transition: grid-template-columns var(--transition-slow);
}
.app-shell.sidebar-collapsed {
grid-template-columns: var(--sidebar-collapsed-width) 1fr;
}
@media (max-width: 1024px) {
.app-shell {
grid-template-columns: 1fr;
grid-template-areas:
"header"
"main";
}
}
/* Header */
.app-header {
grid-area: header;
display: flex;
align-items: center;
justify-content: space-between;
padding: 0 var(--space-6);
background: var(--bg-surface);
border-bottom: 1px solid var(--border-default);
position: sticky;
top: 0;
z-index: var(--z-sticky);
}
.header-left {
display: flex;
align-items: center;
gap: var(--space-4);
}
.header-center {
flex: 1;
display: flex;
justify-content: center;
}
.header-right {
display: flex;
align-items: center;
gap: var(--space-3);
}
/* Logo */
.logo {
display: flex;
align-items: center;
gap: var(--space-3);
}
.logo-icon {
width: 32px;
height: 32px;
color: var(--color-primary);
}
.logo-text {
font-size: var(--text-lg);
font-weight: 700;
color: var(--text-primary);
letter-spacing: -0.025em;
}
.logo-text span {
color: var(--color-primary);
}
/* Sidebar */
.app-sidebar {
grid-area: sidebar;
display: flex;
flex-direction: column;
background: var(--bg-surface);
border-right: 1px solid var(--border-default);
overflow-y: auto;
overflow-x: hidden;
transition: width var(--transition-slow);
}
@media (max-width: 1024px) {
.app-sidebar {
position: fixed;
left: -var(--sidebar-width);
top: 0;
bottom: 0;
width: var(--sidebar-width);
z-index: var(--z-fixed);
box-shadow: var(--shadow-xl);
}
.app-sidebar.open {
left: 0;
}
}
.sidebar-header {
padding: var(--space-4) var(--space-4);
border-bottom: 1px solid var(--border-default);
}
.sidebar-nav {
flex: 1;
padding: var(--space-4);
}
.sidebar-footer {
padding: var(--space-4);
border-top: 1px solid var(--border-default);
}
/* Navigation */
.nav-group {
margin-bottom: var(--space-6);
}
.nav-group-title {
font-size: var(--text-xs);
font-weight: 600;
color: var(--text-tertiary);
text-transform: uppercase;
letter-spacing: 0.05em;
padding: var(--space-2) var(--space-3);
margin-bottom: var(--space-1);
}
.nav-item {
display: flex;
align-items: center;
gap: var(--space-3);
padding: var(--space-3);
border-radius: var(--radius-lg);
color: var(--text-secondary);
cursor: pointer;
transition: all var(--transition-fast);
margin-bottom: var(--space-1);
}
.nav-item:hover {
background: var(--bg-hover);
color: var(--text-primary);
}
.nav-item.active {
background: var(--color-primary-light);
color: var(--color-primary);
}
.nav-item-icon {
width: 20px;
height: 20px;
flex-shrink: 0;
}
.nav-item-text {
font-size: var(--text-sm);
font-weight: 500;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.nav-item-badge {
margin-left: auto;
padding: var(--space-1) var(--space-2);
font-size: var(--text-xs);
font-weight: 600;
background: var(--color-primary);
color: white;
border-radius: var(--radius-full);
}
/* Main Content */
.app-main {
grid-area: main;
padding: var(--space-6);
overflow-y: auto;
background: var(--bg-base);
}
.page-header {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: var(--space-6);
}
.page-title {
font-size: var(--text-2xl);
font-weight: 700;
}
.page-subtitle {
font-size: var(--text-sm);
color: var(--text-secondary);
margin-top: var(--space-1);
}
.page-actions {
display: flex;
align-items: center;
gap: var(--space-3);
}
/* ============== Card System ============== */
.card {
background: var(--bg-surface);
border: 1px solid var(--border-default);
border-radius: var(--radius-xl);
overflow: hidden;
transition: all var(--transition-base);
}
.card:hover {
border-color: var(--border-hover);
}
.card-header {
display: flex;
align-items: center;
justify-content: space-between;
padding: var(--space-4) var(--space-5);
border-bottom: 1px solid var(--border-default);
}
.card-title {
display: flex;
align-items: center;
gap: var(--space-2);
font-size: var(--text-base);
font-weight: 600;
}
.card-title-icon {
width: 20px;
height: 20px;
color: var(--color-primary);
}
.card-body {
padding: var(--space-5);
}
.card-footer {
display: flex;
align-items: center;
justify-content: flex-end;
gap: var(--space-3);
padding: var(--space-4) var(--space-5);
border-top: 1px solid var(--border-default);
background: var(--bg-elevated);
}
/* Glass Card */
.card-glass {
background: rgba(26, 26, 36, 0.6);
backdrop-filter: blur(20px);
-webkit-backdrop-filter: blur(20px);
border: 1px solid rgba(255, 255, 255, 0.1);
}
[data-theme="light"] .card-glass {
background: rgba(255, 255, 255, 0.8);
border: 1px solid rgba(0, 0, 0, 0.1);
}
/* Stat Card */
.stat-card {
padding: var(--space-5);
background: var(--bg-surface);
border: 1px solid var(--border-default);
border-radius: var(--radius-xl);
}
.stat-card-header {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: var(--space-3);
}
.stat-card-icon {
width: 40px;
height: 40px;
display: flex;
align-items: center;
justify-content: center;
background: var(--color-primary-light);
border-radius: var(--radius-lg);
color: var(--color-primary);
}
.stat-card-value {
font-size: var(--text-3xl);
font-weight: 700;
color: var(--text-primary);
}
.stat-card-label {
font-size: var(--text-sm);
color: var(--text-secondary);
}
.stat-card-change {
display: inline-flex;
align-items: center;
gap: var(--space-1);
font-size: var(--text-sm);
font-weight: 500;
margin-top: var(--space-2);
}
.stat-card-change.positive { color: var(--color-success); }
.stat-card-change.negative { color: var(--color-error); }
/* ============== Buttons ============== */
.btn {
display: inline-flex;
align-items: center;
justify-content: center;
gap: var(--space-2);
padding: var(--space-2) var(--space-4);
font-family: var(--font-sans);
font-size: var(--text-sm);
font-weight: 500;
line-height: var(--leading-none);
border-radius: var(--radius-lg);
border: 1px solid transparent;
cursor: pointer;
transition: all var(--transition-fast);
text-decoration: none;
white-space: nowrap;
}
.btn:focus {
outline: none;
box-shadow: 0 0 0 3px var(--color-primary-light);
}
.btn:disabled {
opacity: 0.5;
cursor: not-allowed;
}
.btn-icon {
width: 18px;
height: 18px;
}
/* Button Variants */
.btn-primary {
background: var(--color-primary);
color: white;
border-color: var(--color-primary);
}
.btn-primary:hover:not(:disabled) {
background: var(--color-primary-hover);
border-color: var(--color-primary-hover);
transform: translateY(-1px);
box-shadow: var(--shadow-md), var(--shadow-glow);
}
.btn-secondary {
background: var(--bg-elevated);
color: var(--text-primary);
border-color: var(--border-default);
}
.btn-secondary:hover:not(:disabled) {
background: var(--bg-hover);
border-color: var(--border-hover);
}
.btn-ghost {
background: transparent;
color: var(--text-secondary);
}
.btn-ghost:hover:not(:disabled) {
background: var(--bg-hover);
color: var(--text-primary);
}
.btn-danger {
background: var(--color-error);
color: white;
border-color: var(--color-error);
}
.btn-danger:hover:not(:disabled) {
background: var(--color-error-hover);
border-color: var(--color-error-hover);
}
.btn-success {
background: var(--color-success);
color: white;
border-color: var(--color-success);
}
.btn-success:hover:not(:disabled) {
background: var(--color-success-hover);
border-color: var(--color-success-hover);
}
/* Button Sizes */
.btn-sm {
padding: var(--space-1) var(--space-3);
font-size: var(--text-xs);
}
.btn-lg {
padding: var(--space-3) var(--space-6);
font-size: var(--text-base);
}
.btn-block {
width: 100%;
}
/* Icon Button */
.btn-icon-only {
padding: var(--space-2);
}
.btn-icon-only.btn-sm {
padding: var(--space-1);
}
.btn-icon-only.btn-lg {
padding: var(--space-3);
}
/* ============== Form Elements ============== */
.form-group {
margin-bottom: var(--space-4);
}
.form-label {
display: block;
font-size: var(--text-sm);
font-weight: 500;
color: var(--text-secondary);
margin-bottom: var(--space-2);
}
.form-label-required::after {
content: '*';
color: var(--color-error);
margin-left: var(--space-1);
}
.form-input,
.form-select,
.form-textarea {
width: 100%;
padding: var(--space-2) var(--space-3);
font-family: var(--font-sans);
font-size: var(--text-sm);
color: var(--text-primary);
background: var(--bg-elevated);
border: 1px solid var(--border-default);
border-radius: var(--radius-lg);
transition: all var(--transition-fast);
outline: none;
}
.form-input:hover,
.form-select:hover,
.form-textarea:hover {
border-color: var(--border-hover);
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
border-color: var(--color-primary);
box-shadow: 0 0 0 3px var(--color-primary-light);
}
.form-input::placeholder,
.form-textarea::placeholder {
color: var(--text-tertiary);
}
.form-textarea {
resize: vertical;
min-height: 100px;
}
.form-select {
cursor: pointer;
appearance: none;
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M3 4.5L6 7.5L9 4.5' stroke='%236a6a7a' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
background-repeat: no-repeat;
background-position: right var(--space-3) center;
padding-right: var(--space-8);
}
/* Input with Icon */
.input-icon-wrapper {
position: relative;
}
.input-icon-wrapper .form-input {
padding-left: var(--space-10);
}
.input-icon-wrapper .input-icon {
position: absolute;
left: var(--space-3);
top: 50%;
transform: translateY(-50%);
width: 18px;
height: 18px;
color: var(--text-tertiary);
pointer-events: none;
}
/* Form Row */
.form-row {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: var(--space-4);
}
@media (max-width: 640px) {
.form-row {
grid-template-columns: 1fr;
}
}
/* Checkbox & Radio */
.form-check {
display: flex;
align-items: center;
gap: var(--space-2);
cursor: pointer;
}
.form-check-input {
width: 18px;
height: 18px;
accent-color: var(--color-primary);
cursor: pointer;
}
.form-check-label {
font-size: var(--text-sm);
color: var(--text-secondary);
}
/* Form Error */
.form-error {
font-size: var(--text-xs);
color: var(--color-error);
margin-top: var(--space-1);
}
/* ============== Tables ============== */
.table-container {
overflow-x: auto;
border-radius: var(--radius-lg);
border: 1px solid var(--border-default);
}
.table {
width: 100%;
border-collapse: collapse;
font-size: var(--text-sm);
}
.table th,
.table td {
padding: var(--space-3) var(--space-4);
text-align: left;
border-bottom: 1px solid var(--border-default);
}
.table th {
font-weight: 600;
color: var(--text-secondary);
background: var(--bg-elevated);
text-transform: uppercase;
font-size: var(--text-xs);
letter-spacing: 0.05em;
}
.table td {
color: var(--text-primary);
}
.table tbody tr:hover {
background: var(--bg-hover);
}
.table tbody tr:last-child td {
border-bottom: none;
}
/* ============== Badges ============== */
.badge {
display: inline-flex;
align-items: center;
justify-content: center;
padding: var(--space-1) var(--space-2);
font-size: var(--text-xs);
font-weight: 600;
border-radius: var(--radius-full);
white-space: nowrap;
}
.badge-primary {
background: var(--color-primary-light);
color: var(--color-primary);
}
.badge-success {
background: var(--color-success-light);
color: var(--color-success);
}
.badge-warning {
background: var(--color-warning-light);
color: var(--color-warning);
}
.badge-error {
background: var(--color-error-light);
color: var(--color-error);
}
.badge-info {
background: var(--color-info-light);
color: var(--color-info);
}
/* Severity Badges */
.badge-critical {
background: rgba(220, 38, 38, 0.15);
color: var(--color-critical);
}
.badge-high {
background: rgba(234, 88, 12, 0.15);
color: var(--color-high);
}
.badge-medium {
background: rgba(217, 119, 6, 0.15);
color: var(--color-medium);
}
.badge-low {
background: rgba(101, 163, 13, 0.15);
color: var(--color-low);
}
/* ============== Alerts ============== */
.alert {
display: flex;
align-items: flex-start;
gap: var(--space-3);
padding: var(--space-4);
border-radius: var(--radius-lg);
font-size: var(--text-sm);
}
.alert-icon {
width: 20px;
height: 20px;
flex-shrink: 0;
margin-top: 2px;
}
.alert-content {
flex: 1;
}
.alert-title {
font-weight: 600;
margin-bottom: var(--space-1);
}
.alert-message {
color: var(--text-secondary);
}
.alert-info {
background: var(--color-info-light);
border: 1px solid var(--color-info);
color: var(--color-info);
}
.alert-success {
background: var(--color-success-light);
border: 1px solid var(--color-success);
color: var(--color-success);
}
.alert-warning {
background: var(--color-warning-light);
border: 1px solid var(--color-warning);
color: var(--color-warning);
}
.alert-error {
background: var(--color-error-light);
border: 1px solid var(--color-error);
color: var(--color-error);
}
/* ============== Modal ============== */
.modal-backdrop {
position: fixed;
inset: 0;
background: rgba(0, 0, 0, 0.6);
backdrop-filter: blur(4px);
z-index: var(--z-modal-backdrop);
opacity: 0;
visibility: hidden;
transition: all var(--transition-base);
}
.modal-backdrop.active {
opacity: 1;
visibility: visible;
}
.modal {
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -50%) scale(0.95);
width: 90%;
max-width: 500px;
max-height: 90vh;
background: var(--bg-surface);
border: 1px solid var(--border-default);
border-radius: var(--radius-xl);
box-shadow: var(--shadow-xl);
z-index: var(--z-modal);
opacity: 0;
visibility: hidden;
transition: all var(--transition-base);
display: flex;
flex-direction: column;
}
.modal.active {
opacity: 1;
visibility: visible;
transform: translate(-50%, -50%) scale(1);
}
.modal-header {
display: flex;
align-items: center;
justify-content: space-between;
padding: var(--space-4) var(--space-5);
border-bottom: 1px solid var(--border-default);
}
.modal-title {
font-size: var(--text-lg);
font-weight: 600;
}
.modal-close {
width: 32px;
height: 32px;
display: flex;
align-items: center;
justify-content: center;
border-radius: var(--radius-lg);
color: var(--text-tertiary);
cursor: pointer;
transition: all var(--transition-fast);
}
.modal-close:hover {
background: var(--bg-hover);
color: var(--text-primary);
}
.modal-body {
padding: var(--space-5);
overflow-y: auto;
flex: 1;
}
.modal-footer {
display: flex;
align-items: center;
justify-content: flex-end;
gap: var(--space-3);
padding: var(--space-4) var(--space-5);
border-top: 1px solid var(--border-default);
background: var(--bg-elevated);
}
/* ============== Toast Notifications ============== */
.toast-container {
position: fixed;
top: var(--space-6);
right: var(--space-6);
z-index: var(--z-toast);
display: flex;
flex-direction: column;
gap: var(--space-3);
pointer-events: none;
}
.toast {
display: flex;
align-items: flex-start;
gap: var(--space-3);
padding: var(--space-4);
background: var(--bg-surface);
border: 1px solid var(--border-default);
border-radius: var(--radius-lg);
box-shadow: var(--shadow-lg);
min-width: 300px;
max-width: 420px;
pointer-events: all;
animation: toast-slide-in var(--transition-base) ease;
}
@keyframes toast-slide-in {
from {
opacity: 0;
transform: translateX(100%);
}
to {
opacity: 1;
transform: translateX(0);
}
}
.toast.hiding {
animation: toast-slide-out var(--transition-base) ease forwards;
}
@keyframes toast-slide-out {
from {
opacity: 1;
transform: translateX(0);
}
to {
opacity: 0;
transform: translateX(100%);
}
}
.toast-icon {
width: 20px;
height: 20px;
flex-shrink: 0;
}
.toast-content {
flex: 1;
}
.toast-title {
font-weight: 600;
margin-bottom: var(--space-1);
}
.toast-message {
font-size: var(--text-sm);
color: var(--text-secondary);
}
.toast-close {
width: 20px;
height: 20px;
color: var(--text-tertiary);
cursor: pointer;
transition: color var(--transition-fast);
}
.toast-close:hover {
color: var(--text-primary);
}
.toast.success { border-left: 3px solid var(--color-success); }
.toast.success .toast-icon { color: var(--color-success); }
.toast.error { border-left: 3px solid var(--color-error); }
.toast.error .toast-icon { color: var(--color-error); }
.toast.warning { border-left: 3px solid var(--color-warning); }
.toast.warning .toast-icon { color: var(--color-warning); }
.toast.info { border-left: 3px solid var(--color-info); }
.toast.info .toast-icon { color: var(--color-info); }
/* ============== Progress & Loading ============== */
.spinner {
width: 24px;
height: 24px;
border: 2px solid var(--border-default);
border-top-color: var(--color-primary);
border-radius: 50%;
animation: spin 0.8s linear infinite;
}
.spinner-lg {
width: 48px;
height: 48px;
border-width: 3px;
}
@keyframes spin {
to { transform: rotate(360deg); }
}
.progress-bar {
width: 100%;
height: 8px;
background: var(--bg-elevated);
border-radius: var(--radius-full);
overflow: hidden;
}
.progress-bar-fill {
height: 100%;
background: var(--color-primary);
border-radius: var(--radius-full);
transition: width var(--transition-base);
}
.progress-bar-fill.success { background: var(--color-success); }
.progress-bar-fill.error { background: var(--color-error); }
.progress-bar-fill.warning { background: var(--color-warning); }
/* Skeleton Loading */
.skeleton {
background: linear-gradient(
90deg,
var(--bg-elevated) 0%,
var(--bg-hover) 50%,
var(--bg-elevated) 100%
);
background-size: 200% 100%;
animation: skeleton-shimmer 1.5s ease-in-out infinite;
border-radius: var(--radius-md);
}
@keyframes skeleton-shimmer {
0% { background-position: 200% 0; }
100% { background-position: -200% 0; }
}
.skeleton-text {
height: 1em;
margin-bottom: var(--space-2);
}
.skeleton-text:last-child {
width: 80%;
}
.skeleton-avatar {
width: 40px;
height: 40px;
border-radius: 50%;
}
/* ============== Dropdown ============== */
.dropdown {
position: relative;
display: inline-block;
}
.dropdown-menu {
position: absolute;
top: 100%;
left: 0;
min-width: 200px;
padding: var(--space-2);
background: var(--bg-surface);
border: 1px solid var(--border-default);
border-radius: var(--radius-lg);
box-shadow: var(--shadow-lg);
z-index: var(--z-dropdown);
opacity: 0;
visibility: hidden;
transform: translateY(var(--space-2));
transition: all var(--transition-fast);
}
.dropdown.open .dropdown-menu {
opacity: 1;
visibility: visible;
transform: translateY(0);
}
.dropdown-item {
display: flex;
align-items: center;
gap: var(--space-3);
padding: var(--space-2) var(--space-3);
font-size: var(--text-sm);
color: var(--text-secondary);
border-radius: var(--radius-md);
cursor: pointer;
transition: all var(--transition-fast);
}
.dropdown-item:hover {
background: var(--bg-hover);
color: var(--text-primary);
}
.dropdown-item-icon {
width: 16px;
height: 16px;
}
.dropdown-divider {
height: 1px;
background: var(--border-default);
margin: var(--space-2) 0;
}
/* ============== Tabs ============== */
.tabs {
display: flex;
border-bottom: 1px solid var(--border-default);
gap: var(--space-1);
margin-bottom: var(--space-4);
}
.tab {
padding: var(--space-3) var(--space-4);
font-size: var(--text-sm);
font-weight: 500;
color: var(--text-secondary);
border-bottom: 2px solid transparent;
cursor: pointer;
transition: all var(--transition-fast);
}
.tab:hover {
color: var(--text-primary);
}
.tab.active {
color: var(--color-primary);
border-bottom-color: var(--color-primary);
}
.tab-content {
display: none;
}
.tab-content.active {
display: block;
}
/* ============== Tooltip ============== */
.tooltip {
position: relative;
}
.tooltip::after {
content: attr(data-tooltip);
position: absolute;
bottom: 100%;
left: 50%;
transform: translateX(-50%) translateY(var(--space-2));
padding: var(--space-2) var(--space-3);
font-size: var(--text-xs);
font-weight: 500;
color: white;
background: var(--bg-base);
border-radius: var(--radius-md);
white-space: nowrap;
opacity: 0;
visibility: hidden;
transition: all var(--transition-fast);
z-index: var(--z-tooltip);
}
.tooltip:hover::after {
opacity: 1;
visibility: visible;
transform: translateX(-50%) translateY(calc(var(--space-2) * -1));
}
/* ============== Utility Classes ============== */
/* Display */
.hidden { display: none !important; }
.block { display: block; }
.inline-block { display: inline-block; }
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }
/* Flex */
.flex-row { flex-direction: row; }
.flex-col { flex-direction: column; }
.items-start { align-items: flex-start; }
.items-center { align-items: center; }
.items-end { align-items: flex-end; }
.justify-start { justify-content: flex-start; }
.justify-center { justify-content: center; }
.justify-end { justify-content: flex-end; }
.justify-between { justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
.flex-1 { flex: 1; }
/* Gap */
.gap-1 { gap: var(--space-1); }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
/* Margin */
.m-0 { margin: 0; }
.mt-2 { margin-top: var(--space-2); }
.mt-4 { margin-top: var(--space-4); }
.mb-2 { margin-bottom: var(--space-2); }
.mb-4 { margin-bottom: var(--space-4); }
.ml-auto { margin-left: auto; }
.mr-auto { margin-right: auto; }
/* Padding */
.p-0 { padding: 0; }
.p-2 { padding: var(--space-2); }
.p-4 { padding: var(--space-4); }
.p-6 { padding: var(--space-6); }
/* Text */
.text-xs { font-size: var(--text-xs); }
.text-sm { font-size: var(--text-sm); }
.text-base { font-size: var(--text-base); }
.text-lg { font-size: var(--text-lg); }
.text-xl { font-size: var(--text-xl); }
.text-2xl { font-size: var(--text-2xl); }
.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.text-primary { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-tertiary { color: var(--text-tertiary); }
.text-center { text-align: center; }
.text-right { text-align: right; }
.truncate {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
/* Background */
.bg-surface { background: var(--bg-surface); }
.bg-elevated { background: var(--bg-elevated); }
/* Border */
.border { border: 1px solid var(--border-default); }
.border-t { border-top: 1px solid var(--border-default); }
.border-b { border-bottom: 1px solid var(--border-default); }
.rounded { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }
.rounded-full { border-radius: var(--radius-full); }
/* Width/Height */
.w-full { width: 100%; }
.h-full { height: 100%; }
.min-h-screen { min-height: 100vh; }
/* Overflow */
.overflow-hidden { overflow: hidden; }
.overflow-auto { overflow: auto; }
/* Position */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.sticky { position: sticky; }
/* Cursor */
.cursor-pointer { cursor: pointer; }
.cursor-not-allowed { cursor: not-allowed; }
/* Opacity */
.opacity-0 { opacity: 0; }
.opacity-50 { opacity: 0.5; }
.opacity-100 { opacity: 1; }
/* Transitions */
.transition { transition: all var(--transition-base); }
.transition-fast { transition: all var(--transition-fast); }
/* ============== Scrollbar ============== */
::-webkit-scrollbar {
width: 8px;
height: 8px;
}
::-webkit-scrollbar-track {
background: transparent;
}
::-webkit-scrollbar-thumb {
background: var(--border-default);
border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
background: var(--border-hover);
}
/* Firefox scrollbar */
* {
scrollbar-width: thin;
scrollbar-color: var(--border-default) transparent;
}
/* ============== Animations ============== */
@keyframes fadeIn {
from { opacity: 0; }
to { opacity: 1; }
}
@keyframes slideUp {
from {
opacity: 0;
transform: translateY(var(--space-4));
}
to {
opacity: 1;
transform: translateY(0);
}
}
@keyframes slideDown {
from {
opacity: 0;
transform: translateY(calc(var(--space-4) * -1));
}
to {
opacity: 1;
transform: translateY(0);
}
}
@keyframes scaleIn {
from {
opacity: 0;
transform: scale(0.95);
}
to {
opacity: 1;
transform: scale(1);
}
}
@keyframes pulse {
0%, 100% { opacity: 1; }
50% { opacity: 0.5; }
}
.animate-fadeIn { animation: fadeIn var(--transition-base) ease; }
.animate-slideUp { animation: slideUp var(--transition-base) ease; }
.animate-slideDown { animation: slideDown var(--transition-base) ease; }
.animate-scaleIn { animation: scaleIn var(--transition-base) ease; }
.animate-pulse { animation: pulse 2s ease-in-out infinite; }
/* ============== Responsive Grid ============== */
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1280px) {
.lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1024px) {
.md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
.sm\:grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
}
/* ============== Responsive Visibility ============== */
@media (max-width: 1024px) {
.lg\:hidden { display: none !important; }
}
@media (min-width: 1025px) {
.lg\:block { display: block !important; }
}
@media (max-width: 640px) {
.sm\:hidden { display: none !important; }
}
@media (min-width: 641px) {
.sm\:block { display: block !important; }
}
/* ============== Main Page: App Shell Overrides ============== */
/* Sidebar (index.html uses .sidebar, pentest uses .app-sidebar) */
.sidebar {
grid-area: sidebar;
display: flex;
flex-direction: column;
background: var(--bg-surface);
border-right: 1px solid var(--border-default);
overflow-y: auto;
overflow-x: hidden;
transition: width var(--transition-slow);
}
.sidebar .logo {
display: flex;
align-items: center;
gap: var(--space-3);
padding: 0;
}
.sidebar .logo-icon {
width: 28px;
height: 28px;
color: var(--color-primary);
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
}
.sidebar .logo-text {
display: flex;
flex-direction: column;
line-height: 1.1;
}
.sidebar .logo-title {
font-size: var(--text-base);
font-weight: 700;
color: var(--text-primary);
letter-spacing: -0.02em;
}
.sidebar .logo-subtitle {
font-size: var(--text-xs);
color: var(--text-tertiary);
font-weight: 400;
}
.sidebar.collapsed {
width: var(--sidebar-collapsed-width);
overflow: hidden;
}
.sidebar.collapsed .logo-text,
.sidebar.collapsed .nav-text {
display: none;
}
.sidebar.collapsed .nav-item {
justify-content: center;
padding: var(--space-3);
}
.sidebar.collapsed .sidebar-footer .theme-toggle {
width: 100%;
justify-content: center;
}
/* Main Wrapper & Content */
.main-wrapper {
display: flex;
flex-direction: column;
min-height: 100vh;
overflow: hidden;
}
.main-content {
flex: 1;
padding: var(--space-6);
overflow-y: auto;
background: var(--bg-base);
}
.content-grid {
display: grid;
grid-template-columns: 400px 1fr;
gap: var(--space-6);
max-width: var(--content-max-width);
margin: 0 auto;
}
@media (max-width: 1200px) {
.content-grid {
grid-template-columns: 1fr;
}
}
/* App Header overrides for index page */
.app-header {
min-height: var(--header-height);
}
.header-title h1 {
font-size: var(--text-lg);
font-weight: 600;
letter-spacing: -0.02em;
}
.header-subtitle {
font-size: var(--text-xs);
color: var(--text-tertiary);
}
.sidebar-toggle {
display: flex;
align-items: center;
justify-content: center;
width: 36px;
height: 36px;
border: none;
background: transparent;
color: var(--text-secondary);
cursor: pointer;
border-radius: var(--radius-lg);
transition: all var(--transition-fast);
}
.sidebar-toggle:hover {
background: var(--bg-hover);
color: var(--text-primary);
}
@media (min-width: 1025px) {
.sidebar-toggle {
display: none;
}
}
/* Status Badge */
.status-badge {
display: flex;
align-items: center;
gap: var(--space-2);
padding: var(--space-1) var(--space-3);
border-radius: var(--radius-full);
font-size: var(--text-xs);
font-weight: 500;
background: var(--bg-elevated);
border: 1px solid var(--border-default);
color: var(--text-secondary);
}
.status-badge .status-dot {
width: 6px;
height: 6px;
border-radius: 50%;
background: var(--text-tertiary);
}
.status-badge.connected .status-dot {
background: var(--color-success);
box-shadow: 0 0 6px var(--color-success);
}
.status-badge.connected .status-text {
color: var(--color-success);
}
.status-badge.error .status-dot {
background: var(--color-error);
box-shadow: 0 0 6px var(--color-error);
}
.status-badge.error .status-text {
color: var(--color-error);
}
/* Header Actions */
.header-actions {
display: flex;
align-items: center;
gap: var(--space-2);
}
/* ============== Collapsible Sections ============== */
.collapsible {
overflow: hidden;
}
.collapsible .section-header {
display: flex;
align-items: center;
justify-content: space-between;
width: 100%;
background: none;
border: none;
padding: 0;
margin-bottom: var(--space-4);
cursor: pointer;
color: inherit;
font: inherit;
text-align: left;
}
.collapsible .section-title {
display: flex;
align-items: center;
gap: var(--space-2);
font-size: var(--text-sm);
font-weight: 600;
color: var(--text-primary);
}
.collapsible .section-icon {
display: flex;
align-items: center;
color: var(--color-primary);
width: 18px;
height: 18px;
}
.collapse-icon {
display: flex;
align-items: center;
color: var(--text-tertiary);
transition: transform var(--transition-base);
}
.collapsible .section-content {
max-height: 0;
overflow: hidden;
opacity: 0;
transition: max-height var(--transition-slower) ease,
opacity var(--transition-base) ease,
margin var(--transition-base) ease;
margin-top: 0;
}
.collapsible.expanded .section-content {
max-height: 1000px;
opacity: 1;
margin-top: var(--space-2);
}
.collapsible.expanded .collapse-icon {
transform: rotate(180deg);
}
/* ============== Theme Toggle ============== */
.theme-toggle {
display: flex;
align-items: center;
justify-content: center;
gap: var(--space-2);
width: 100%;
padding: var(--space-2) var(--space-3);
background: var(--bg-elevated);
border: 1px solid var(--border-default);
border-radius: var(--radius-lg);
color: var(--text-secondary);
font-size: var(--text-sm);
cursor: pointer;
transition: all var(--transition-fast);
}
.theme-toggle:hover {
background: var(--bg-hover);
color: var(--text-primary);
border-color: var(--border-hover);
}
.theme-icon {
display: flex;
align-items: center;
}
/* ============== Empty State ============== */
.empty-state {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: var(--space-8) var(--space-4);
text-align: center;
}
.empty-icon {
color: var(--text-tertiary);
margin-bottom: var(--space-3);
opacity: 0.5;
}
.empty-text {
color: var(--text-tertiary);
font-size: var(--text-sm);
margin: 0;
}
/* ============== Keyboard Shortcuts Modal ============== */
.shortcuts-list {
display: flex;
flex-direction: column;
gap: var(--space-3);
}
.shortcut-item {
display: flex;
align-items: center;
gap: var(--space-3);
padding: var(--space-3);
background: var(--bg-elevated);
border-radius: var(--radius-lg);
font-size: var(--text-sm);
}
kbd {
display: inline-flex;
align-items: center;
justify-content: center;
min-width: 28px;
height: 28px;
padding: 0 var(--space-2);
background: var(--bg-surface);
border: 1px solid var(--border-default);
border-radius: var(--radius-md);
font-family: var(--font-mono);
font-size: var(--text-xs);
color: var(--text-secondary);
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}
.shortcut-desc {
color: var(--text-secondary);
margin-left: auto;
}
/* ============== Password Strength Bar ============== */
.pwd-strength {
height: 3px;
background: var(--bg-elevated);
border-radius: var(--radius-full);
margin-top: var(--space-2);
overflow: hidden;
}
.strength-bar {
height: 100%;
border-radius: var(--radius-full);
transition: width var(--transition-slow);
}
.pwd-header {
display: flex;
align-items: center;
justify-content: space-between;
gap: var(--space-2);
}
.pwd-copy {
display: flex;
align-items: center;
justify-content: center;
background: none;
border: none;
color: var(--text-tertiary);
cursor: pointer;
padding: var(--space-1);
border-radius: var(--radius-md);
opacity: 0;
transition: all var(--transition-fast);
}
.password-card:hover .pwd-copy {
opacity: 1;
}
.pwd-copy:hover {
color: var(--color-primary);
background: var(--color-primary-light);
}
/* ============== Generate Button ============== */
.generate-btn {
margin-top: var(--space-4);
font-size: var(--text-base);
letter-spacing: 0.01em;
}
.generate-btn .btn-icon {
display: flex;
align-items: center;
}
/* ============== Modal for Shortcuts ============== */
#shortcutsModal {
display: none;
position: fixed;
inset: 0;
z-index: var(--z-modal-backdrop);
background: rgba(0, 0, 0, 0.5);
backdrop-filter: blur(4px);
align-items: center;
justify-content: center;
}
#shortcutsModal.active {
display: flex;
}
#shortcutsModal .modal {
display: flex;
flex-direction: column;
background: var(--bg-surface);
border: 1px solid var(--border-default);
border-radius: var(--radius-2xl);
width: 90%;
max-width: 480px;
max-height: 80vh;
overflow: hidden;
box-shadow: var(--shadow-xl);
animation: scaleIn var(--transition-base) ease;
}
#shortcutsModal .modal-header {
display: flex;
align-items: center;
justify-content: space-between;
padding: var(--space-5);
border-bottom: 1px solid var(--border-default);
}
#shortcutsModal .modal-title {
display: flex;
align-items: center;
gap: var(--space-2);
font-size: var(--text-lg);
font-weight: 600;
}
.modal-icon {
color: var(--color-primary);
display: flex;
align-items: center;
}
#shortcutsModal .modal-close {
display: flex;
align-items: center;
justify-content: center;
width: 32px;
height: 32px;
background: none;
border: none;
color: var(--text-tertiary);
cursor: pointer;
border-radius: var(--radius-md);
transition: all var(--transition-fast);
}
#shortcutsModal .modal-close:hover {
background: var(--bg-hover);
color: var(--text-primary);
}
#shortcutsModal .modal-body {
padding: var(--space-5);
overflow-y: auto;
}
/* ============== Responsive Overrides ============== */
@media (max-width: 1024px) {
.sidebar {
position: fixed;
left: calc(var(--sidebar-width) * -1);
top: 0;
bottom: 0;
width: var(--sidebar-width);
z-index: var(--z-fixed);
box-shadow: var(--shadow-xl);
transition: left var(--transition-slow);
}
.sidebar.open,
.sidebar.expanded-mobile {
left: 0;
}
.app-shell {
grid-template-columns: 1fr;
grid-template-areas:
"header"
"main";
}
.content-grid {
grid-template-columns: 1fr;
}
}
/* ============== Checkbox text ============== */
.checkbox-text {
font-size: var(--text-sm);
color: var(--text-secondary);
}
/* ============== Print Styles ============== */
@media print {
.no-print { display: none !important; }
body {
background: white;
color: black;
}
.card {
break-inside: avoid;
box-shadow: none;
border: 1px solid #ddd;
}
}