cairn/web/static/css/cairn.css

543 lines
13 KiB
CSS

@import url('https://fonts.googleapis.com/css2?family=Cinzel+Decorative:wght@400;700&family=Fira+Code:wght@400;500&display=swap');
:root {
--bg: #080508;
--bg-surface: #100b10;
--bg-hover: #1a1018;
--border: #301828;
--border-glow: #501838;
--text: #c8b8be;
--text-muted: #6a545e;
--accent: #e02848;
--accent-hover: #ff3860;
--accent-glow: rgba(224, 40, 72, 0.5);
--accent-glow-soft: rgba(224, 40, 72, 0.2);
--danger: #ff2233;
--warning: #b8862e;
--success: #3d7a4a;
--bone: #b8a890;
--bone-dim: #685848;
--ember: #cc3040;
--sidebar-width: 220px;
--radius: 2px;
--font-heading: 'Cinzel Decorative', 'Georgia', serif;
--font-mono: 'Fira Code', 'Courier New', monospace;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
font-family: 'Georgia', 'Times New Roman', serif;
font-size: 14px;
background: var(--bg);
background-image:
repeating-linear-gradient(
0deg,
transparent,
transparent 2px,
rgba(100, 20, 40, 0.015) 2px,
rgba(100, 20, 40, 0.015) 4px
);
color: var(--text);
display: flex;
min-height: 100vh;
}
/* ======= SIDEBAR ======= */
.sidebar {
width: var(--sidebar-width);
background: var(--bg-surface);
border-right: 2px ridge #3a1828;
padding: 0;
position: fixed;
top: 0;
bottom: 0;
overflow-y: auto;
display: flex;
flex-direction: column;
}
.sidebar-header {
padding: 1.25rem 1rem 1rem;
border-bottom: 2px groove #3a1828;
text-align: center;
}
.logo {
font-family: var(--font-heading);
font-size: 1.4rem;
font-weight: 700;
color: var(--accent);
text-shadow:
0 0 10px var(--accent-glow),
0 0 30px rgba(224, 40, 72, 0.3),
0 0 60px rgba(224, 40, 72, 0.1);
letter-spacing: 0.2em;
text-transform: uppercase;
animation: logo-pulse 4s ease-in-out infinite;
}
@keyframes logo-pulse {
0%, 100% { text-shadow: 0 0 10px var(--accent-glow), 0 0 30px rgba(224, 40, 72, 0.3); }
50% { text-shadow: 0 0 15px var(--accent-glow), 0 0 40px rgba(224, 40, 72, 0.45), 0 0 70px rgba(224, 40, 72, 0.15); }
}
.logo-sigil {
display: block;
font-size: 1.8rem;
line-height: 1;
margin-bottom: 0.35rem;
color: var(--accent);
filter: drop-shadow(0 0 6px var(--accent-glow));
letter-spacing: 0.3em;
}
.nav-links { list-style: none; padding: 0.5rem 0; flex: 1; }
.nav-links li { position: relative; }
.nav-links a {
display: flex;
align-items: center;
gap: 0.6rem;
padding: 0.55rem 1rem;
color: var(--text-muted);
text-decoration: none;
font-size: 0.82rem;
font-family: 'Georgia', serif;
transition: all 0.15s;
border-left: 3px solid transparent;
}
.nav-links a:hover {
color: var(--accent-hover);
background: linear-gradient(90deg, rgba(224, 40, 72, 0.1) 0%, transparent 100%);
border-left-color: var(--accent);
text-shadow: 0 0 10px var(--accent-glow);
}
.nav-icon {
font-size: 0.95rem;
width: 1.2rem;
text-align: center;
color: var(--bone-dim);
}
.nav-links a:hover .nav-icon {
color: var(--accent);
filter: drop-shadow(0 0 4px var(--accent-glow));
}
.sidebar-divider {
border: none;
border-top: 1px dashed var(--border);
margin: 0.4rem 0.8rem;
opacity: 0.6;
}
.sidebar-footer {
padding: 0.8rem 1rem;
border-top: 2px groove #3a1828;
font-size: 0.65rem;
color: var(--bone-dim);
font-family: var(--font-heading);
letter-spacing: 0.12em;
text-align: center;
text-transform: lowercase;
}
/* ======= MAIN CONTENT ======= */
.content {
margin-left: var(--sidebar-width);
flex: 1;
padding: 1.5rem 2rem;
max-width: 1200px;
}
.page-header {
margin-bottom: 1.25rem;
padding-bottom: 0.75rem;
border-bottom: 2px groove #3a1828;
}
.page-header h2 {
font-family: var(--font-heading);
font-size: 1.2rem;
font-weight: 700;
color: var(--bone);
letter-spacing: 0.08em;
text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}
/* ======= STATS ======= */
.stats-row {
display: flex;
gap: 0.75rem;
margin-bottom: 1.5rem;
}
.stat-card {
background: var(--bg-surface);
border: 2px ridge #3a1828;
border-radius: var(--radius);
padding: 1rem 1.25rem;
display: flex;
flex-direction: column;
min-width: 150px;
position: relative;
transition: border-color 0.3s, box-shadow 0.3s;
}
.stat-card:hover {
border-color: var(--border-glow);
box-shadow:
0 0 12px var(--accent-glow-soft),
inset 0 0 20px rgba(224, 40, 72, 0.06);
}
.stat-value {
font-family: var(--font-heading);
font-size: 1.75rem;
font-weight: 700;
color: var(--accent);
text-shadow: 0 0 12px var(--accent-glow), 0 0 25px rgba(224, 40, 72, 0.2);
}
.stat-label {
font-size: 0.7rem;
color: var(--text-muted);
margin-top: 0.2rem;
text-transform: uppercase;
letter-spacing: 0.1em;
font-family: 'Georgia', serif;
}
/* ======= TABLES ======= */
.table {
width: 100%;
border-collapse: collapse;
font-size: 0.82rem;
border: 1px solid var(--border);
}
.table th {
text-align: left;
padding: 0.6rem 0.75rem;
border-bottom: 2px solid var(--border-glow);
border-right: 1px solid rgba(48, 24, 40, 0.3);
background: rgba(16, 8, 14, 0.6);
color: var(--bone-dim);
font-family: var(--font-heading);
font-weight: 700;
font-size: 0.65rem;
text-transform: uppercase;
letter-spacing: 0.12em;
}
.table th:last-child { border-right: none; }
.table td {
padding: 0.55rem 0.75rem;
border-bottom: 1px solid rgba(48, 24, 40, 0.4);
border-right: 1px solid rgba(48, 24, 40, 0.15);
}
.table td:last-child { border-right: none; }
.table tr:hover td {
background: var(--bg-hover);
box-shadow: inset 3px 0 0 var(--ember);
}
/* ======= BADGES ======= */
.badge {
display: inline-block;
padding: 0.15rem 0.45rem;
border-radius: var(--radius);
font-size: 0.7rem;
font-weight: 600;
font-family: var(--font-mono);
border: 1px solid;
text-transform: uppercase;
letter-spacing: 0.04em;
}
.badge-coredump {
background: rgba(255, 34, 51, 0.1);
color: var(--danger);
border-color: rgba(255, 34, 51, 0.3);
text-shadow: 0 0 6px rgba(255, 34, 51, 0.4);
}
.badge-fuzz {
background: rgba(61, 122, 74, 0.1);
color: var(--success);
border-color: rgba(61, 122, 74, 0.3);
}
.badge-sanitizer {
background: rgba(184, 134, 46, 0.1);
color: var(--warning);
border-color: rgba(184, 134, 46, 0.3);
}
.badge-simulation {
background: rgba(224, 40, 72, 0.08);
color: var(--accent-hover);
border-color: rgba(224, 40, 72, 0.25);
}
/* ======= BUTTONS ======= */
.btn {
display: inline-block;
padding: 0.4rem 0.9rem;
background: var(--bg-surface);
color: var(--bone);
border: 2px ridge #3a1828;
border-radius: var(--radius);
font-size: 0.8rem;
text-decoration: none;
cursor: pointer;
transition: all 0.15s;
font-family: 'Georgia', serif;
letter-spacing: 0.03em;
}
.btn:hover {
background: var(--bg-hover);
border-color: var(--accent);
color: var(--accent-hover);
box-shadow: 0 0 10px var(--accent-glow-soft);
text-shadow: 0 0 6px var(--accent-glow);
}
.btn-sm { padding: 0.2rem 0.5rem; font-size: 0.75rem; }
/* ======= CODE ======= */
code {
font-family: var(--font-mono);
font-size: 0.82em;
background: rgba(16, 8, 14, 0.8);
padding: 0.1rem 0.3rem;
border: 1px solid var(--border);
border-radius: var(--radius);
color: var(--accent-hover);
}
.code-block {
background: #0a060a;
border: 2px ridge #3a1828;
border-left: 4px solid var(--ember);
border-radius: var(--radius);
padding: 0.8rem;
overflow-x: auto;
font-family: var(--font-mono);
font-size: 0.78rem;
line-height: 1.5;
white-space: pre-wrap;
word-break: break-all;
box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.6);
}
/* ======= DETAIL PAGES ======= */
.detail-header {
display: flex;
align-items: center;
gap: 0.75rem;
margin-bottom: 1.25rem;
}
.detail-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
gap: 0.75rem;
margin-bottom: 1.5rem;
}
.detail-item {
background: var(--bg-surface);
border: 1px solid var(--border);
border-radius: var(--radius);
padding: 0.75rem;
transition: border-color 0.2s;
}
.detail-item:hover {
border-color: var(--border-glow);
box-shadow: 0 0 8px rgba(224, 40, 72, 0.08);
}
.detail-item label {
display: block;
font-family: var(--font-heading);
font-size: 0.6rem;
color: var(--bone-dim);
text-transform: uppercase;
letter-spacing: 0.1em;
margin-bottom: 0.3rem;
}
.detail-actions { margin-top: 1.5rem; }
/* ======= SECTIONS ======= */
.section { margin-bottom: 1.5rem; }
.section h3 {
margin-bottom: 0.6rem;
font-family: var(--font-heading);
font-size: 0.95rem;
color: var(--bone);
letter-spacing: 0.06em;
text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}
/* ======= UTILITIES ======= */
.empty-state {
color: var(--text-muted);
padding: 2.5rem;
text-align: center;
font-size: 0.85rem;
font-style: italic;
border: 1px dashed var(--border);
}
.toolbar {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 0.75rem;
}
.result-count { color: var(--text-muted); font-size: 0.82rem; }
.pagination {
display: flex;
gap: 0.4rem;
justify-content: center;
margin-top: 1.25rem;
}
/* ======= STATUS BADGES ======= */
.badge-status-open {
background: rgba(255, 34, 51, 0.1);
color: var(--danger);
border-color: rgba(255, 34, 51, 0.35);
text-shadow: 0 0 6px rgba(255, 34, 51, 0.5);
}
.badge-status-resolved {
background: rgba(61, 122, 74, 0.1);
color: var(--success);
border-color: rgba(61, 122, 74, 0.3);
}
/* ======= RUN BADGES ======= */
.badge-run-running {
background: rgba(224, 40, 72, 0.08);
color: var(--accent-hover);
border-color: rgba(224, 40, 72, 0.25);
text-shadow: 0 0 6px var(--accent-glow);
}
.badge-run-finished {
background: rgba(61, 122, 74, 0.1);
color: var(--success);
border-color: rgba(61, 122, 74, 0.3);
}
.badge-run-failed {
background: rgba(255, 34, 51, 0.1);
color: var(--danger);
border-color: rgba(255, 34, 51, 0.3);
}
/* ======= SEARCH ======= */
.search-form {
display: flex;
gap: 0.6rem;
margin-bottom: 1.25rem;
}
.search-input {
flex: 1;
padding: 0.5rem 0.8rem;
background: #0a060a;
border: 2px ridge #3a1828;
border-radius: var(--radius);
color: var(--text);
font-size: 0.85rem;
font-family: var(--font-mono);
transition: all 0.15s;
}
.search-input:focus {
outline: none;
border-color: var(--accent);
box-shadow: 0 0 10px var(--accent-glow-soft);
}
/* ======= CRASH GROUP LIST ======= */
.crashgroup-row { cursor: pointer; }
.trace-row td { padding: 0 !important; border-bottom: 1px solid var(--border); }
.trace-row .code-block { margin: 0.5rem 0.75rem; max-height: 300px; overflow-y: auto; }
.trace-row:hover td { background: none; box-shadow: none; }
/* ======= CRASH GROUP DETAIL ======= */
.crashgroup-title {
font-family: var(--font-heading);
font-size: 1.1rem;
margin-bottom: 1.25rem;
color: var(--bone);
}
/* ======= REGRESSION ======= */
.form-row {
display: flex;
gap: 0.6rem;
align-items: flex-end;
}
.form-group { display: flex; flex-direction: column; gap: 0.3rem; flex: 1; }
.form-group label {
font-family: var(--font-heading);
font-size: 0.6rem;
color: var(--bone-dim);
text-transform: uppercase;
letter-spacing: 0.1em;
}
.form-group input {
padding: 0.5rem 0.8rem;
background: #0a060a;
border: 2px ridge #3a1828;
border-radius: var(--radius);
color: var(--text);
font-size: 0.85rem;
font-family: var(--font-mono);
transition: all 0.15s;
}
.form-group input:focus {
outline: none;
border-color: var(--accent);
box-shadow: 0 0 10px var(--accent-glow-soft);
}
.regression-result {
border: 2px ridge #3a1828;
border-radius: var(--radius);
padding: 1.25rem;
margin-top: 1.25rem;
}
.regression-pass { border-color: var(--success); }
.regression-fail {
border-color: var(--danger);
box-shadow: 0 0 15px rgba(255, 34, 51, 0.2);
}
.regression-verdict {
font-family: var(--font-heading);
font-size: 1rem;
margin-bottom: 0.75rem;
letter-spacing: 0.05em;
}
.regression-fail .regression-verdict {
color: var(--danger);
text-shadow: 0 0 12px rgba(255, 34, 51, 0.5);
}
.regression-pass .regression-verdict { color: var(--success); }
.fingerprint-list { list-style: none; padding: 0; }
.fingerprint-list li {
padding: 0.3rem 0;
font-family: var(--font-mono);
font-size: 0.78rem;
}
/* ======= LINKS ======= */
a { color: var(--accent); text-decoration: none; transition: all 0.15s; }
a:hover {
color: var(--accent-hover);
text-shadow: 0 0 8px var(--accent-glow);
text-decoration: underline;
}
/* ======= SCROLLBAR ======= */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
background: #2a1420;
border: 1px solid #3a1828;
}
::-webkit-scrollbar-thumb:hover { background: var(--border-glow); }
/* ======= SELECTION ======= */
::selection {
background: rgba(224, 40, 72, 0.35);
color: #fff;
}