Files
calminer/static/css/main.css
zwitschi 1262a4a63f Refactor CSS styles and introduce theme variables
- Removed redundant CSS rules and consolidated styles across dashboard, forms, imports, projects, and scenarios.
- Introduced new color variables in theme-default.css for better maintainability and consistency.
- Updated existing styles to utilize new color variables, enhancing the overall design.
- Improved responsiveness and layout of various components, including tables and cards.
- Ensured consistent styling for buttons, links, and headers across the application.
2025-11-13 22:30:58 +01:00

1562 lines
27 KiB
CSS

:root {
/* Radii & layout */
--radius: 14px;
--radius-sm: 10px;
--panel-radius: var(--radius);
--table-radius: var(--radius-sm);
--container: 1180px;
/* Spacing & typography */
--space-2xs: 0.25rem;
--space-xs: 0.5rem;
--space-sm: 0.75rem;
--space-md: 1rem;
--space-lg: 1.5rem;
--space-xl: 2rem;
--space-2xl: 3rem;
--font-size-xs: 0.75rem;
--font-size-sm: 0.875rem;
--font-size-base: 1rem;
--font-size-lg: 1.25rem;
--font-size-xl: 1.5rem;
--font-size-2xl: 2rem;
}
html,
body {
height: 100%;
}
body {
margin: 0;
font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", "Roboto",
Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
color: var(--text);
background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
line-height: 1.45;
}
.header-actions {
display: flex;
gap: 0.75rem;
flex-wrap: wrap;
justify-content: flex-end;
}
h1,
h2,
h3,
h4,
h5,
h6 {
margin: 0 0 0.5rem 0;
font-weight: 700;
line-height: 1.2;
}
h1 {
font-size: var(--font-size-2xl);
}
h2 {
font-size: var(--font-size-xl);
}
h3 {
font-size: var(--font-size-lg);
}
p {
margin: 0 0 1rem 0;
}
a {
color: var(--brand);
}
.report-overview {
margin-bottom: 2.5rem;
}
.report-grid {
display: grid;
gap: 1.5rem;
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.report-card {
background: var(--card);
border-radius: var(--radius);
padding: 1.5rem;
border: 1px solid var(--color-border);
box-shadow: 0 12px 30px rgba(4, 7, 14, 0.35);
}
.report-card h2 {
margin-top: 0;
margin-bottom: 1rem;
}
.report-section + .report-section {
margin-top: 3rem;
}
.chart-container {
width: 100%;
height: 400px;
background: rgba(15, 20, 27, 0.8);
border-radius: var(--radius-sm);
border: 1px solid rgba(255, 255, 255, 0.05);
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
margin-bottom: 1rem;
}
.section-header {
margin-bottom: 1.25rem;
}
.section-header h2 {
margin: 0;
}
.section-subtitle {
margin: 0.35rem 0 0;
color: var(--muted);
}
.metric-list {
list-style: none;
margin: 0;
padding: 0;
display: flex;
flex-direction: column;
gap: 0.75rem;
}
.metric-list.compact {
gap: 0.35rem;
}
.metric-list li {
display: flex;
justify-content: space-between;
align-items: baseline;
font-size: 0.95rem;
color: var(--muted);
}
.metric-list strong {
font-size: 1.05rem;
color: var(--text);
}
.metric-card {
background: var(--color-surface-overlay);
border-radius: var(--radius);
padding: 1.5rem;
box-shadow: var(--shadow);
border: 1px solid var(--color-border);
display: flex;
flex-direction: column;
gap: 0.35rem;
}
.metric-card h2 {
margin: 0;
font-size: 1rem;
color: var(--color-text-muted);
text-transform: uppercase;
letter-spacing: 0.08em;
}
.metric-value {
font-size: 2rem;
font-weight: 700;
margin: 0;
}
.metric-caption {
color: var(--color-text-subtle);
font-size: 0.85rem;
}
.metrics-table {
width: 100%;
border-collapse: collapse;
background: rgba(21, 27, 35, 0.6);
border-radius: var(--radius-sm);
overflow: hidden;
}
.metrics-table th,
.metrics-table td {
padding: 0.65rem 0.9rem;
text-align: left;
border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.metrics-table th {
font-weight: 600;
color: var(--color-text-dark);
}
.metrics-table tr:last-child td,
.metrics-table tr:last-child th {
border-bottom: none;
}
.definition-list {
margin: 0;
display: grid;
gap: 1.25rem 2rem;
grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.definition-list div {
display: grid;
grid-template-columns: minmax(140px, 0.6fr) minmax(0, 1fr);
gap: 0.5rem;
align-items: baseline;
}
.definition-list dt {
margin: 0;
font-weight: 600;
color: var(--color-text-muted);
text-transform: uppercase;
font-size: 0.75rem;
letter-spacing: 0.08em;
}
.definition-list dd {
margin: 0;
font-size: 1rem;
color: var(--color-text-primary);
}
.scenario-card {
background: var(--card);
border-radius: var(--radius);
padding: 1.5rem;
border: 1px solid var(--color-border);
box-shadow: 0 16px 32px rgba(4, 7, 14, 0.42);
display: flex;
flex-direction: column;
gap: 1.25rem;
}
.scenario-card + .scenario-card {
margin-top: 1.75rem;
}
.scenario-card-header {
display: flex;
justify-content: space-between;
gap: 1rem;
align-items: flex-start;
}
.scenario-card h3 {
margin: 0;
}
.scenario-meta {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
gap: 1.25rem;
}
.scenario-card .scenario-meta {
display: block;
text-align: right;
}
.meta-label {
display: block;
color: var(--muted);
font-size: 0.8rem;
text-transform: uppercase;
letter-spacing: 0.08em;
}
.meta-value {
font-weight: 600;
}
.scenario-grid {
display: grid;
gap: 1.25rem;
grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.scenario-panel {
background: rgba(15, 20, 27, 0.8);
border-radius: var(--radius-sm);
padding: 1.1rem;
border: 1px solid rgba(255, 255, 255, 0.05);
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.scenario-panel h4,
.scenario-panel h5 {
margin-top: 0;
margin-bottom: 0.75rem;
}
.note-list {
padding-left: 1.1rem;
color: var(--muted);
font-size: 0.9rem;
}
.muted {
color: var(--muted);
}
.quick-link-list {
list-style: none;
margin: 0;
padding: 0;
display: flex;
flex-direction: column;
gap: 1rem;
}
.quick-link-list li a {
font-weight: 600;
color: var(--brand-2);
text-decoration: none;
}
.quick-link-list li a:hover,
.quick-link-list li a:focus {
text-decoration: underline;
}
.quick-link-list p {
margin: 0.25rem 0 0;
color: var(--color-text-subtle);
font-size: 0.9rem;
}
.scenario-list {
list-style: none;
margin: 0;
padding: 0;
display: flex;
flex-direction: column;
gap: 1rem;
}
.scenario-item {
background: rgba(21, 27, 35, 0.85);
background: color-mix(in srgb, var(--color-surface-default) 85%, transparent);
border: 1px solid var(--color-border);
border-radius: var(--radius);
padding: 1.25rem;
display: flex;
flex-direction: column;
gap: 1rem;
}
.scenario-item__body {
display: flex;
flex-direction: column;
gap: 1rem;
}
.scenario-item__header {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 0.75rem;
justify-content: space-between;
}
.scenario-item__header h3 {
margin: 0;
font-size: 1.1rem;
}
.scenario-item__header a {
color: inherit;
text-decoration: none;
}
.scenario-item__header a:hover,
.scenario-item__header a:focus {
text-decoration: underline;
}
.scenario-item__meta {
display: grid;
gap: 0.75rem;
grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}
.scenario-item__meta dt {
margin: 0;
font-size: 0.75rem;
color: var(--color-text-muted);
text-transform: uppercase;
letter-spacing: 0.08em;
}
.scenario-item__meta dd {
margin: 0;
font-size: 0.95rem;
}
.scenario-item__actions {
display: flex;
gap: 0.75rem;
flex-wrap: wrap;
}
.scenario-item__actions .btn--link {
padding: 0;
}
.status-pill {
display: inline-flex;
align-items: center;
gap: 0.35rem;
padding: 0.35rem 0.85rem;
border-radius: 999px;
font-size: 0.75rem;
text-transform: uppercase;
letter-spacing: 0.08em;
}
.status-pill--draft {
background: rgba(59, 130, 246, 0.15);
color: #93c5fd;
background: color-mix(in srgb, var(--color-info) 18%, transparent);
color: color-mix(in srgb, var(--color-info) 70%, white);
}
.status-pill--active {
background: rgba(34, 197, 94, 0.18);
color: #86efac;
background: color-mix(in srgb, var(--color-success) 18%, transparent);
color: color-mix(in srgb, var(--color-success) 70%, white);
}
.status-pill--archived {
background: rgba(148, 163, 184, 0.24);
color: #cbd5f5;
background: color-mix(in srgb, var(--color-text-muted) 24%, transparent);
color: color-mix(in srgb, var(--color-text-muted) 60%, white);
}
.empty-state {
color: var(--color-text-muted);
font-style: italic;
}
.table {
width: 100%;
border-collapse: collapse;
border-radius: var(--table-radius);
overflow: hidden;
box-shadow: var(--shadow);
}
.table th,
.table td {
padding: 0.75rem 1rem;
border-bottom: 1px solid var(--color-border);
background: rgba(21, 27, 35, 0.85);
background: color-mix(in srgb, var(--color-surface-default) 85%, transparent);
}
.table tbody tr:hover {
background: rgba(241, 178, 26, 0.12);
background: var(--color-highlight);
}
.table-link {
color: var(--brand-2);
text-decoration: none;
margin-left: 0.5rem;
}
.table-link:hover,
.table-link:focus {
text-decoration: underline;
}
.table-responsive {
width: 100%;
overflow-x: auto;
-webkit-overflow-scrolling: touch;
border-radius: var(--table-radius);
margin: 0;
}
.table-responsive .table {
min-width: 640px;
}
.table-responsive::-webkit-scrollbar {
height: 6px;
}
.table-responsive::-webkit-scrollbar-thumb {
background: rgba(255, 255, 255, 0.2);
background: color-mix(in srgb, var(--color-text-invert) 20%, transparent);
border-radius: 999px;
}
.page-actions .button {
text-decoration: none;
background: transparent;
border: 1px solid var(--color-border);
padding: 0.6rem 1rem;
border-radius: var(--radius-sm);
color: var(--text);
font-weight: 600;
transition: background 0.2s ease, border-color 0.2s ease;
}
.page-actions .button:hover,
.page-actions .button:focus {
background: rgba(241, 178, 26, 0.14);
border-color: var(--brand);
}
.breadcrumb {
display: flex;
align-items: center;
gap: 0.5rem;
font-size: 0.9rem;
color: var(--muted);
margin-bottom: 1.2rem;
}
.breadcrumb a {
color: var(--brand-2);
text-decoration: none;
}
.breadcrumb a::after {
content: ">";
margin-left: 0.5rem;
color: var(--muted);
}
.app-layout {
display: flex;
min-height: 100vh;
}
.app-sidebar {
width: 264px;
background-color: var(--card);
color: var(--color-text-invert);
display: flex;
flex-direction: column;
box-shadow: 4px 0 16px var(--color-panel-shadow-deep);
position: sticky;
top: 0;
height: 100vh;
border-right: 1px solid var(--color-border);
}
.sidebar-inner {
display: flex;
flex-direction: column;
height: 100%;
padding: 2.5rem 1.75rem 1.75rem;
gap: 2rem;
}
.sidebar-brand {
display: flex;
align-items: center;
gap: 1rem;
padding: 0.5rem 1rem;
border-radius: 0.75rem;
}
a.sidebar-brand {
text-decoration: none;
}
a.sidebar-brand:hover,
a.sidebar-brand:focus {
color: var(--color-text-invert);
background-color: rgba(148, 197, 255, 0.18);
}
.sidebar-nav-controls {
display: flex;
justify-content: center;
gap: 1rem;
margin: 0;
}
.nav-chevron {
width: 5rem;
height: 5rem;
border: none;
background: rgba(0, 0, 0, 0.5);
color: rgba(255, 255, 255, 0.88);
font-size: 4.5rem;
font-weight: bold;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
transition: background 0.2s ease, transform 0.2s ease;
}
.nav-chevron:hover,
.nav-chevron:focus {
background: rgba(0, 0, 0, 0.1);
color: rgba(255, 255, 255, 1);
transform: scale(0.9);
}
.nav-chevron:disabled {
opacity: 0.5;
cursor: not-allowed;
transform: none;
}
.brand-logo {
width: 44px;
height: 44px;
border-radius: 12px;
object-fit: cover;
}
.brand-text {
display: flex;
flex-direction: column;
gap: 0.15rem;
}
.brand-title {
font-size: 1.35rem;
font-weight: 700;
margin: 0;
}
.brand-subtitle {
font-size: 0.85rem;
font-weight: 500;
color: rgba(255, 255, 255, 0.78);
}
.sidebar-nav {
display: flex;
flex-direction: column;
gap: 0.5rem;
}
.sidebar-section {
display: flex;
flex-direction: column;
gap: 0.35rem;
}
.sidebar-section + .sidebar-section {
margin-top: 1.4rem;
}
.sidebar-section-label {
font-size: 0.75rem;
font-weight: 600;
letter-spacing: 0.06em;
text-transform: uppercase;
color: rgba(255, 255, 255, 0.52);
padding: 0 1rem;
}
.sidebar-section-links {
display: flex;
flex-direction: column;
gap: 0.25rem;
}
.sidebar-link-block {
display: flex;
flex-direction: column;
gap: 0.2rem;
}
.sidebar-link {
display: inline-flex;
align-items: center;
gap: 0.75rem;
padding: 0.75rem 1rem;
border-radius: 10px;
color: rgba(255, 255, 255, 0.88);
font-weight: 600;
text-decoration: none;
transition: background 0.2s ease, transform 0.2s ease, color 0.2s ease;
}
.sidebar-link:hover,
.sidebar-link:focus {
background: rgba(148, 197, 255, 0.28);
color: var(--color-text-invert);
transform: translateX(4px);
}
.sidebar-link.is-active {
background: rgba(148, 197, 255, 0.4);
color: var(--color-text-invert);
box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}
.sidebar-sublinks {
display: flex;
flex-direction: column;
gap: 0.2rem;
padding-left: 1.75rem;
}
.sidebar-sublink {
display: inline-flex;
align-items: center;
gap: 0.5rem;
color: rgba(255, 255, 255, 0.74);
font-weight: 500;
font-size: 0.9rem;
text-decoration: none;
padding: 0.35rem 0.75rem;
border-radius: 8px;
transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.sidebar-sublink:hover,
.sidebar-sublink:focus {
background: rgba(148, 197, 255, 0.18);
color: var(--color-text-invert);
transform: translateX(3px);
}
.sidebar-sublink.is-active {
background: rgba(148, 197, 255, 0.28);
color: var(--color-text-invert);
box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}
.app-main {
background-color: var(--bg);
display: flex;
flex-direction: column;
flex: 1;
min-height: 100vh;
}
.app-content {
flex: 1;
width: min(1120px, 92%);
margin: 0 auto;
padding: 2.5rem 0 2rem;
}
.container {
width: min(960px, 92%);
margin: 0 auto;
}
.app-content.container {
width: min(1120px, 92%);
}
.dashboard-header {
display: flex;
align-items: center;
justify-content: space-between;
gap: 1.5rem;
margin-bottom: 2rem;
}
.dashboard-subtitle {
margin: 0.35rem 0 0;
color: var(--muted);
}
.dashboard-actions {
display: flex;
gap: 0.75rem;
align-items: center;
}
.page-header {
display: flex;
align-items: flex-start;
justify-content: space-between;
gap: 1.5rem;
margin-bottom: 2rem;
}
.page-subtitle {
margin-top: 0.35rem;
color: var(--muted);
font-size: 0.95rem;
}
.settings-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
gap: 1.5rem;
margin-bottom: 2rem;
}
.settings-card {
background: var(--card);
border-radius: var(--radius);
padding: 1.5rem;
box-shadow: var(--shadow);
display: flex;
flex-direction: column;
gap: 0.75rem;
border: 1px solid var(--color-border);
}
.settings-card h2 {
margin: 0;
font-size: 1.2rem;
}
.settings-card p {
margin: 0;
color: var(--muted);
}
.settings-card-note {
font-size: 0.85rem;
color: var(--color-text-subtle);
}
.color-form-grid {
max-width: none;
grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.color-form-field {
background: var(--color-surface-alt);
border: 1px solid var(--color-border);
border-radius: 10px;
padding: var(--space-sm);
box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.08);
gap: var(--space-sm);
}
.color-form-field.is-env-override {
background: rgba(191, 248, 56, 0.12);
border-color: var(--accent);
}
.color-field-header {
display: flex;
justify-content: space-between;
gap: var(--space-sm);
font-weight: 600;
color: var(--text);
font-family: "Fira Code", "Consolas", "Courier New", monospace;
font-size: 0.85rem;
}
.color-field-default {
color: var(--muted);
font-weight: 500;
}
.color-field-helper {
font-size: 0.8rem;
color: var(--color-text-subtle);
}
.color-env-flag {
font-size: 0.78rem;
font-weight: 600;
color: var(--accent);
text-transform: uppercase;
letter-spacing: 0.04em;
}
.color-input-row {
display: flex;
align-items: center;
gap: var(--space-sm);
}
.color-value-input {
font-family: "Fira Code", "Consolas", "Courier New", monospace;
}
.color-value-input[disabled] {
background-color: rgba(148, 197, 255, 0.16);
cursor: not-allowed;
}
.color-preview {
width: 32px;
height: 32px;
border-radius: 8px;
border: 1px solid var(--color-border-strong);
box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.05);
}
.env-overrides-table table {
width: 100%;
border-collapse: collapse;
}
.env-overrides-table th,
.env-overrides-table td {
padding: 0.65rem 0.75rem;
text-align: left;
border-bottom: 1px solid var(--color-border);
}
.env-overrides-table code {
font-family: "Fira Code", "Consolas", "Courier New", monospace;
font-size: 0.85rem;
}
.button-link {
display: inline-flex;
align-items: center;
justify-content: center;
width: fit-content;
padding: 0.55rem 1.2rem;
border-radius: 999px;
font-weight: 600;
text-decoration: none;
background: var(--brand);
color: var(--color-text-invert);
transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.button-link:hover,
.button-link:focus {
transform: translateY(-1px);
box-shadow: 0 8px 18px var(--color-panel-shadow);
}
.dashboard-metrics-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
gap: 1rem;
margin-bottom: 1.5rem;
}
.metric-card {
background: var(--card);
border-radius: var(--radius);
padding: 1.2rem 1.4rem;
box-shadow: var(--shadow);
display: flex;
flex-direction: column;
gap: 0.35rem;
border: 1px solid var(--color-border);
}
.metric-label {
font-size: 0.82rem;
text-transform: uppercase;
letter-spacing: 0.04em;
color: var(--muted);
}
.metric-value {
font-size: 1.45rem;
font-weight: 700;
color: var(--muted);
}
.dashboard-charts {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
gap: 1.75rem;
margin-bottom: 2rem;
}
.chart-card {
min-height: 320px;
position: relative;
}
.chart-card canvas {
width: 100%;
height: 100%;
}
.panel-header {
display: flex;
align-items: flex-start;
justify-content: space-between;
gap: 0.75rem;
margin-bottom: 1.25rem;
}
.panel-header h3 {
margin: 0;
}
.chart-subtitle {
margin: 0.25rem 0 0;
color: var(--color-text-subtle);
font-size: 0.9rem;
}
.dashboard-panel {
margin-bottom: 2rem;
}
.dashboard-columns {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
gap: 1.75rem;
margin-bottom: 2rem;
}
.metric-list {
list-style: none;
margin: 0;
padding: 0;
display: flex;
flex-direction: column;
gap: 0.75rem;
}
.metric-list li {
display: flex;
align-items: center;
justify-content: space-between;
gap: 1rem;
}
.striped-list {
list-style: none;
margin: 0;
padding: 0;
display: flex;
flex-direction: column;
}
.striped-list li {
padding: 0.85rem 1rem;
border-radius: 10px;
background: var(--color-surface-alt);
box-shadow: inset 0 0 0 1px rgba(226, 232, 240, 0.6);
display: flex;
flex-direction: column;
gap: 0.4rem;
}
.striped-list li + li {
margin-top: 0.75rem;
}
.list-title {
font-weight: 600;
color: var(--color-text-dark);
}
.list-detail {
color: var(--muted);
font-size: 0.95rem;
}
.btn.is-loading {
opacity: 0.75;
pointer-events: none;
}
.btn.is-loading::after {
content: "";
width: 0.85rem;
height: 0.85rem;
border: 2px solid rgba(255, 255, 255, 0.6);
border-top-color: rgba(255, 255, 255, 1);
border-radius: 50%;
animation: spin 0.8s linear infinite;
display: inline-block;
margin-left: 0.6rem;
}
@keyframes spin {
to {
transform: rotate(360deg);
}
}
.panel {
background-color: var(--card);
border-radius: var(--panel-radius);
padding: var(--space-xl);
box-shadow: 0 2px 8px var(--color-panel-shadow);
margin-bottom: var(--space-2xl);
}
.panel h2,
.panel h3 {
font-weight: 700;
color: var(--text);
margin: 0 0 var(--space-sm);
}
.panel h2 {
font-size: var(--font-size-xl);
}
.panel h3 {
font-size: var(--font-size-lg);
}
.btn {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 0.5rem;
padding: 0.65rem 1.25rem;
border-radius: 999px;
border: 1px solid var(--btn-secondary-border);
cursor: pointer;
font-weight: 600;
background-color: var(--btn-secondary-bg);
color: var(--btn-secondary-color);
text-decoration: none;
transition: transform 0.15s ease, box-shadow 0.15s ease,
background-color 0.2s ease, border-color 0.2s ease;
}
.btn:hover,
.btn:focus {
transform: translateY(-1px);
box-shadow: 0 4px 10px var(--color-panel-shadow);
background-color: var(--btn-secondary-hover);
}
.btn--primary,
.btn.primary,
.btn.btn-primary {
background-color: var(--btn-primary-bg);
border-color: transparent;
color: var(--btn-primary-color);
}
.btn--primary:hover,
.btn--primary:focus,
.btn.primary:hover,
.btn.primary:focus,
.btn.btn-primary:hover,
.btn.btn-primary:focus {
background-color: var(--btn-primary-hover);
}
.btn--secondary,
.btn.secondary,
.btn.btn-secondary {
background-color: var(--btn-secondary-bg);
border-color: var(--btn-secondary-border);
color: var(--btn-secondary-color);
}
.btn--secondary:hover,
.btn--secondary:focus,
.btn.secondary:hover,
.btn.secondary:focus,
.btn.btn-secondary:hover,
.btn.btn-secondary:focus {
background-color: var(--btn-secondary-hover);
}
.btn--link,
.btn.btn-link,
.btn.link {
padding: 0.25rem 0;
border: none;
background: transparent;
color: var(--btn-link-color);
margin: 0;
box-shadow: none;
}
.btn--link:hover,
.btn--link:focus,
.btn.btn-link:hover,
.btn.btn-link:focus,
.btn.link:hover,
.btn.link:focus {
transform: none;
box-shadow: none;
color: var(--btn-link-hover);
text-decoration: underline;
}
.btn--ghost {
background: transparent;
border: 1px solid transparent;
color: var(--btn-ghost-color);
}
.btn--ghost:hover,
.btn--ghost:focus {
background: rgba(255, 255, 255, 0.1);
border-color: rgba(255, 255, 255, 0.2);
}
.btn--icon {
padding: 0.4rem;
border-radius: 50%;
line-height: 0;
}
.btn--icon:hover,
.btn--icon:focus {
transform: none;
}
.result-output {
background-color: var(--color-text-dark);
color: var(--color-surface-alt);
padding: 1rem;
border-radius: 8px;
font-family: "Fira Code", "Consolas", "Courier New", monospace;
overflow-x: auto;
margin-top: 1.5rem;
}
.monospace-input {
width: 100%;
font-family: "Fira Code", "Consolas", "Courier New", monospace;
min-height: 120px;
}
.button-row {
display: flex;
gap: 0.75rem;
flex-wrap: wrap;
margin-top: 1rem;
}
.table-container {
margin-top: 1.5rem;
overflow-x: auto;
}
table {
width: 100%;
border-collapse: collapse;
border-radius: 12px;
overflow: hidden;
background-color: var(--color-surface-alt);
}
thead {
background-color: var(--brand);
color: var(--color-text-invert);
}
th,
td {
padding: 0.75rem 1rem;
text-align: left;
border-bottom: 1px solid var(--color-border);
}
tbody tr:nth-child(even) {
background-color: var(--color-highlight);
}
.empty-state {
margin-top: 1.5rem;
color: var(--muted);
font-style: italic;
}
.hidden {
display: none;
}
.feedback {
margin-top: 1rem;
font-weight: 600;
}
.feedback.success {
color: var(--accent);
}
.feedback.error {
color: var(--danger);
}
.alert {
padding: 0.75rem 1rem;
border-radius: var(--radius-sm);
margin-bottom: 1rem;
}
.alert-error {
background: rgba(209, 75, 75, 0.2);
border: 1px solid rgba(209, 75, 75, 0.4);
color: var(--color-text-invert);
}
.alert-info {
background: rgba(43, 168, 143, 0.2);
border: 1px solid rgba(43, 168, 143, 0.4);
color: var(--color-text-invert);
}
.site-footer {
background-color: var(--brand);
color: var(--color-text-strong);
margin-top: 3rem;
}
.footer-inner {
display: flex;
align-items: center;
justify-content: center;
padding: 1rem 0;
font-size: 0.9rem;
gap: 1rem;
}
.footer-logo {
display: flex;
align-items: center;
}
.footer-logo-img {
width: 32px;
height: 32px;
border-radius: 8px;
object-fit: cover;
}
footer p {
margin: 0;
}
footer a {
font-weight: 600;
color: var(--color-text-dark);
text-decoration: underline;
}
footer a:hover,
footer a:focus {
color: var(--color-text-strong);
}
.sidebar-toggle {
display: none;
align-items: center;
gap: 0.6rem;
padding: 0.55rem 1rem;
border-radius: 999px;
border: none;
background: linear-gradient(135deg, var(--brand-2), var(--brand));
color: var(--color-text-dark);
font-weight: 600;
cursor: pointer;
box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.sidebar-toggle:hover,
.sidebar-toggle:focus-visible {
transform: translateY(-1px);
box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}
.sidebar-toggle:focus-visible {
outline: 2px solid rgba(255, 255, 255, 0.65);
outline-offset: 3px;
}
.sidebar-toggle-icon {
position: relative;
display: inline-block;
width: 18px;
height: 2px;
background-color: currentColor;
}
.sidebar-toggle-icon::before,
.sidebar-toggle-icon::after {
content: "";
position: absolute;
left: 0;
width: 18px;
height: 2px;
background-color: currentColor;
}
.sidebar-toggle-icon::before {
top: -6px;
}
.sidebar-toggle-icon::after {
top: 6px;
}
.sidebar-toggle-label {
font-size: 0.95rem;
}
.sidebar-overlay {
position: fixed;
inset: 0;
background: rgba(7, 11, 17, 0.6);
z-index: 800;
opacity: 0;
pointer-events: none;
transition: opacity 0.25s ease;
}
@media (min-width: 720px) {
.table-responsive .table {
min-width: 100%;
}
}
@media (max-width: 640px) {
.table th,
.table td {
padding: 0.55rem 0.65rem;
font-size: 0.9rem;
white-space: nowrap;
}
.table tbody tr {
border-radius: var(--radius-sm);
}
.metric-card {
padding: 1.25rem;
}
.metric-value {
font-size: 1.75rem;
}
.header-actions {
flex-direction: column;
align-items: stretch;
}
}
@media (min-width: 960px) {
.header-actions {
justify-content: flex-start;
}
.scenario-item {
flex-direction: row;
justify-content: space-between;
align-items: center;
}
.scenario-item__body {
max-width: 70%;
}
}
@media (max-width: 1024px) {
.app-sidebar {
width: 240px;
}
.header-actions {
justify-content: flex-start;
}
}
@media (max-width: 900px) {
.app-layout {
flex-direction: column;
}
.app-sidebar {
position: relative;
width: 100%;
height: auto;
box-shadow: 0 4px 12px rgba(15, 23, 42, 0.14);
}
.sidebar-inner {
padding: 1.5rem 1.25rem;
}
.sidebar-brand {
justify-content: center;
}
.sidebar-nav {
flex-direction: row;
flex-wrap: wrap;
gap: 0.75rem;
justify-content: center;
}
.sidebar-nav-controls {
display: none;
}
.sidebar-link-block {
align-items: center;
}
.sidebar-link {
flex: 1 1 40px;
justify-content: center;
}
.app-content {
width: min(100%, 94%);
padding-top: 2rem;
}
.dashboard-charts {
grid-template-columns: 1fr;
}
.dashboard-columns {
grid-template-columns: 1fr;
}
.sidebar-toggle {
display: inline-flex;
margin: 1rem auto 1.5rem;
}
body.sidebar-collapsed .app-sidebar {
display: none;
}
body.sidebar-open {
overflow: hidden;
}
body.sidebar-open .app-main {
position: relative;
z-index: 1;
}
body.sidebar-open .app-sidebar {
display: block;
position: fixed;
top: 0;
left: 0;
width: min(320px, 82vw);
height: 100vh;
overflow-y: auto;
z-index: 999;
box-shadow: 0 12px 30px rgba(8, 14, 25, 0.4);
}
body.sidebar-open .sidebar-overlay {
opacity: 1;
pointer-events: auto;
}
}