:root {
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --bg-color: #f3f4f6;
    --card-bg: #ffffff;
    --text-main: #1f2937;
    --text-secondary: #6b7280;
    --text-color: #1f2937;
    --border-color: #e5e7eb;
    --success: #10b981;
    --error: #ef4444;
    --warning: #f59e0b;
    --danger: #dc3545;
    --secondary: #6b7280;
    /* Global UI zoom: Werte <1 machen alles kleiner (here default 0.95 = -5% zoom)
       Kann bei Bedarf per JS oder Einstellungen überschrieben werden. */
    --ui-zoom: 0.95;
}

/* Dark Mode Variables */
body.dark-mode {
    --primary-color: #60a5fa;
    --primary-hover: #3b82f6;
    --bg-color: #1f2937;
    --card-bg: #374151;
    --text-main: #f9fafb;
    --text-secondary: #d1d5db;
    --text-color: #f9fafb;
    --border-color: #4b5563;
    --success: #34d399;
    --error: #f87171;
    --warning: #fbbf24;
    --danger: #f87171;
    --secondary: #d1d5db;
}

/* Dark Mode specific styles */
body.dark-mode input[type="text"],
body.dark-mode input[type="number"],
body.dark-mode input[type="password"],
body.dark-mode textarea,
body.dark-mode select {
    background-color: #1f2937 !important;
    color: white !important;
    border-color: #4b5563 !important;
}

body.dark-mode input::placeholder,
body.dark-mode textarea::placeholder {
    color: rgba(255, 255, 255, 0.5) !important;
}

body.dark-mode #apiUrlInput {
    background-color: #1f2937 !important;
    color: white !important;
}

body.dark-mode #apiUrlInput::placeholder {
    color: white !important;
    opacity: 0.7 !important;
}

body.dark-mode #apiKeyInput {
    background-color: #1f2937 !important;
    color: white !important;
}

body.dark-mode #apiKeyInput::placeholder {
    color: white !important;
    opacity: 0.7 !important;
}

body.dark-mode .text-success {
    color: #60a5fa !important;
    /* Hellblau für bessere Lesbarkeit und Passung zum Dark Mode */
}

body.dark-mode #sourcesSelect {
    background-color: #1f2937 !important;
    color: white !important;
}

body.dark-mode #sourcesContentTextarea {
    background-color: #1f2937 !important;
    color: white !important;
}

body.dark-mode #urlInput {
    background-color: #1f2937 !important;
    color: white !important;
}

body.dark-mode #jobsTable thead {
    background-color: #1f2937 !important;
}

body.dark-mode #jobsTable thead th {
    background-color: #1f2937 !important;
    color: white !important;
}

body.dark-mode tr:hover {
    background-color: #1f2937 !important;
}

body.dark-mode .tab-nav {
    background-color: #1f2937 !important;
}

body.dark-mode .tab-btn {
    background-color: #1f2937 !important;
    color: white !important;
}

body.dark-mode .tab-btn.active {
    background-color: #2d3748 !important;
    color: white !important;
    border-bottom: none !important;
}

body.dark-mode .modal-header {
    background-color: transparent !important;
    color: white !important;
}

body.dark-mode .modal-content {
    background-color: #374151 !important;
    color: white !important;
}

body.dark-mode .json-viewer {
    background-color: #1f2937 !important;
    color: white !important;
}

body.dark-mode .json-viewer a {
    color: #60a5fa !important;
}

body.dark-mode .json-viewer a:hover {
    color: #3b82f6 !important;
}

/* Dark mode: Scheduler inputs use panel background to avoid white fields */
body.dark-mode #view-scheduler input,
body.dark-mode #view-scheduler select,
body.dark-mode #view-scheduler textarea {
    background-color: #1f2937 !important;
    color: #e6edf3 !important;
    border: 1px solid #4b5563 !important;
}

body.dark-mode #view-scheduler input::placeholder,
body.dark-mode #view-scheduler textarea::placeholder {
    color: #94a3b8 !important;
    opacity: 0.9 !important;
}

/* Ensure time/datetime inputs are readable in dark mode */
body.dark-mode #view-scheduler input[type="time"],
body.dark-mode #view-scheduler input[type="datetime-local"],
body.dark-mode #view-scheduler input[type="date"] {
    background-color: #1f2937 !important;
    color: #e6edf3 !important;
}

/* Dark mode: UI Zoom numeric input styling */
body.dark-mode #uiZoomInput,
body.dark-mode input[type="number"]#uiZoomInput {
    background-color: #1f2937 !important;
    color: #e6edf3 !important;
    border: 1px solid #4b5563 !important;
    border-radius: 6px !important;
    padding: 6px 8px !important;
}

body.dark-mode #uiZoomInput::placeholder {
    color: #94a3b8 !important;
    opacity: 0.9 !important;
}

body.dark-mode ::-webkit-scrollbar {
    background: transparent;
    /* dark panel */
}

body.dark-mode ::-webkit-scrollbar-track {
    background: #1f2937;
}

body.dark-mode ::-webkit-scrollbar-thumb {
    background: #4b5563;
    border-radius: 6px;
}

body.dark-mode ::-webkit-scrollbar-thumb:hover {
    background: #6b7280;
}

body.dark-mode .header h1 {
    color: white !important;
}

body.dark-mode .nav-menu {
    background-color: #1f2937 !important;
}

body.dark-mode .nav-item:hover {
    background-color: #374151 !important;
}

body.dark-mode .nav-item.active {
    background-color: #2d3748 !important;
    color: white !important;
}

body.dark-mode #filesTable thead,
body.dark-mode #logsTable thead {
    background-color: #1f2937 !important;
}

body.dark-mode #filesTable thead th,
body.dark-mode #logsTable thead th {
    color: white !important;
}

body.dark-mode th {
    background-color: #1f2937 !important;
    color: white !important;
}

body.dark-mode a {
    color: white !important;
    text-decoration: none !important;
}

body.dark-mode a:hover {
    color: #60a5fa !important;
    text-decoration: underline !important;
}

/* make sizing predictable and avoid horizontal overflow */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    margin: 0;
    padding: 0;
    line-height: 1.5;
    overflow-x: hidden;
}

.container {
    max-width: 100%;
    margin: 0 auto;
    padding: 40px;
    width: 100%;
}

/* Ensure systeminfo view has the same left/right padding as the main container
   (the view was placed outside the main .container in the HTML). */
#view-systeminfo {
    padding-left: 40px;
    padding-right: 40px;
}

/* Systeminfo bars & summary */
.sys-summary {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
}

.sys-metric {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sys-metric .label {
    width: 140px;
    min-width: 80px;
    font-family: monospace;
    color: var(--text-secondary);
}

.sys-bar-outer {
    flex: 1 1 auto;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.03), rgba(0, 0, 0, 0.02));
    border: 1px solid var(--border-color);
    border-radius: 6px;
    height: 18px;
    overflow: hidden;
}

.sys-bar-inner {
    height: 100%;
    transition: width 300ms ease;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-hover));
}

.sys-bar-inner.mem {
    background: linear-gradient(90deg, #f59e0b, #f97316);
}

.sys-metric .value {
    min-width: 120px;
    max-width: 240px;
    flex: 0 0 auto;
    text-align: right;
    font-family: monospace;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Responsive tweaks: reduce label/value widths on small screens so the bar has space */
@media (max-width: 700px) {
    .sys-metric .label {
        width: 100px;
    }

    .sys-metric .value {
        min-width: 90px;
        max-width: 160px;
        font-size: 0.95rem;
    }

    .percore-item {
        flex: 1 1 100px;
    }

    /* Make the memory/sys metric bar full-width on small screens */
    .sys-metric {
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
    }

    .sys-metric .label {
        width: auto;
        min-width: 0;
        font-size: 0.95rem;
    }

    .sys-bar-outer {
        width: 100%;
        flex: 1 1 auto;
    }

    .sys-metric .value {
        min-width: 0;
        max-width: 100%;
        text-align: right;
        align-self: flex-end;
    }
}

.sys-summary-small {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-family: monospace;
}

/* Per-core CPU grid */
.percore-grid {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.percore-item {
    flex: 1 1 120px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: stretch;
}

.percore-item .label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-family: monospace;
}

.sys-bar-outer.small {
    height: 10px;
    border-radius: 6px;
}

.percore-item .value {
    text-align: right;
    font-family: monospace;
    font-size: 0.85rem;
}

/* Center process table cell contents (only td cells, keep headers unchanged) */
#sys-proc-table td.pid-cell,
#sys-proc-table td.user-cell,
#sys-proc-table td.cpu-cell,
#sys-proc-table td.mem-cell {
    text-align: center;
    vertical-align: middle;
}

/* Ensure CMD column remains left-aligned for readability */
#sys-proc-table td.cmd-cell {
    text-align: left;
}

/* Responsive process table for small screens: stack rows and show field labels */
@media (max-width: 700px) {
    #sys-proc-table thead {
        display: none;
    }

    #sys-proc-table,
    #sys-proc-table tbody,
    #sys-proc-table tr {
        display: block;
        width: 100%;
    }

    #sys-proc-table tr {
        margin-bottom: 12px;
        padding: 8px 0;
        border-bottom: 1px solid var(--border-color);
    }

    #sys-proc-table td {
        display: flex;
        justify-content: space-between;
        padding: 6px 0;
        width: 100%;
    }

    #sys-proc-table td::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--text-secondary);
        margin-right: 12px;
    }

    #sys-proc-table td.cmd-cell {
        display: block;
        padding: 6px 0 0 0;
    }

    #sys-proc-table td.cmd-cell::before {
        content: "CMD";
        display: block;
        font-weight: 600;
        color: var(--text-secondary);
        margin-bottom: 6px;
    }

    #sys-proc-table td.cmd-cell {
        font-family: monospace;
        white-space: normal;
        overflow-wrap: anywhere;
    }
}

.dashboard-content {
    display: grid;
    grid-template-columns: 550px 1fr;
    gap: 20px;
    width: 100%;
}

/* Scheduler layout: similar to dashboard but with narrower sidebar by default */
.scheduler-content {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 20px;
    width: 100%;
}

/* Ensure scheduler sidebar cards don't expand too wide */
.scheduler-content .sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.scheduler-content .main-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.settings-content {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 20px;
    width: 100%;
}

.settings-content .sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.settings-content .sidebar>.card:first-child {
    flex: 0 0 auto;
}

.settings-content .sidebar>.card:last-child {
    flex: 0 0 auto;
}

.header {
    background: var(--card-bg);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.header h1 {
    margin: 0;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #ccc;
}

.status-dot.online {
    background-color: var(--success);
}

.status-dot.offline {
    background-color: var(--error);
}

.card {
    background: var(--card-bg);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.card h2 {
    margin-top: 0;
    font-size: 1.2rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
    margin-bottom: 15px;
    display: grid;
    grid-template-columns: auto auto 1fr auto;
    align-items: center;
    gap: 10px;
    position: relative;
    padding-left: 0;
    padding-right: 0;
}

.sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.main-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    font-size: 0.9rem;
}

select,
textarea,
input[type="text"],
input[type="password"],
input[type="number"] {
    width: 100%;
    padding: 8px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-family: inherit;
    box-sizing: border-box;
}

textarea {
    resize: vertical;
    min-height: 100px;
}

button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.2s;
    width: 100%;
}

button:hover {
    background-color: var(--primary-hover);
}

button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

button.secondary {
    background-color: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-main);
    width: auto;
    padding: 5px 10px;
    font-size: 0.8rem;
}

button.secondary:hover {
    background-color: var(--bg-color);
}

/* Highlight for active small secondary buttons (e.g., Jobs date filters) */
button.secondary.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

button.secondary.active:hover {
    background-color: var(--primary-hover);
}

button.danger {
    background-color: var(--error);
    width: auto;
    padding: 5px 10px;
}

button.danger:hover {
    background-color: #dc2626;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 0;
    table-layout: fixed;
}

th,
td {
    color: var(--text-main);
    border: none;
    font-size: 0.85rem;
    padding: 6px 8px;
}

/* Only round the outer corners of a table row to avoid inner rounded corners on hover */
th:first-child,
td:first-child {
    border-top-left-radius: 6px;
    border-bottom-left-radius: 6px;
}

th:last-child,
td:last-child {
    border-top-right-radius: 6px;
    border-bottom-right-radius: 6px;
}

/* Files Table Header Alignment */
#filesTable th {
    text-align: left;
}

/* Sortable Header Styles */
.sortable-header {
    cursor: pointer;
    user-select: none;
    padding: 6px 8px;
    transition: background-color 0.2s ease;
    white-space: nowrap;
    position: relative;
}

.sortable-header:hover {
    background-color: var(--border-color);
}

body.dark-mode .sortable-header:hover {
    background-color: #4b5563;
}

.sort-indicator {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    text-align: center;
    font-size: 0.75em;
    color: var(--text-secondary);
    margin-left: 4px;
    vertical-align: middle;
}

.sort-indicator.asc::after {
    content: '▲';
    color: var(--primary-color);
}

.sort-indicator.desc::after {
    content: '▼';
    color: var(--primary-color);
}

.sort-indicator:not(.asc):not(.desc)::after {
    content: '';
}

/* Table column width optimization */
#filesTable th:nth-child(1),
#filesTable td:nth-child(1) {
    width: 24px;
    padding: 6px 4px;
}

#filesTable th:nth-child(2),
#filesTable td:nth-child(2) {
    width: auto;
    flex: 1;
    min-width: 200px;
    word-break: break-word;
    overflow-wrap: break-word;
}

#filesTable th:nth-child(3),
#filesTable td:nth-child(3) {
    width: 90px;
    text-align: right;
}

#filesTable th:nth-child(4),
#filesTable td:nth-child(4) {
    width: 180px;
    font-size: 0.8rem;
}

#jobsTable th:nth-child(1),
#jobsTable td:nth-child(1) {
    width: 200px;
}

#jobsTable th:nth-child(2),
#jobsTable td:nth-child(2) {
    width: 90px;
}

#jobsTable th:nth-child(3),
#jobsTable td:nth-child(3) {
    width: 80px;
}

#jobsTable th:nth-child(4),
#jobsTable td:nth-child(4) {
    width: auto;
    font-size: 0.8rem;
}

/* Dark Mode Modal Button Styles */
body.dark-mode .modal-cancel-btn {
    background: #374151;
    color: #d1d5db;
    border-color: #4b5563;
}

body.dark-mode .modal-cancel-btn:hover {
    background: #4b5563;
}

/* Modal OK Button Styles */
.modal-ok-btn {
    padding: 10px 20px;
    background: var(--success);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
}

.modal-ok-btn:hover {
    background: #1e7a59;
}

/* Modal Confirm Button Styles */
.modal-confirm-btn {
    padding: 10px 20px;
    background: var(--error);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
}

/* Modal Warning Button Styles */
.modal-warning-btn {
    padding: 10px 20px;
    background: var(--warning);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
}

/* Modal Primary Button Styles */
.modal-primary-btn {
    padding: 10px 20px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    width: 100%;
}

/* Dark Mode Modal Button Hover Styles */
body.dark-mode .modal-delete-btn:hover {
    background: #7f1d1d !important;
    /* Dunkel rot */
}

body.dark-mode .modal-confirm-btn:hover {
    background: #7f1d1d !important;
    /* Dunkleres Gelb */
}

body.dark-mode .modal-warning-btn:hover {
    background: #b17f00 !important;
    /* Dunkleres Gelb für Stopp-Info Button */
}

/* File Link Styles */
.file-link {
    color: #1f2937;
    text-decoration: none;
    cursor: pointer;
}

.file-link:hover {
    color: #374151;
    text-decoration: underline;
}

/* Dark Mode File Link Styles */
body.dark-mode .file-link {
    color: #f9fafb;
}

body.dark-mode .file-link:hover {
    color: #d1d5db;
}

.terminal {
    background-color: #1e1e1e;
    color: #d4d4d4;
    padding: 15px;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    height: 300px;
    overflow-y: auto;
    overflow-x: hidden;
    white-space: pre-wrap;
    word-wrap: break-word;
    word-break: break-word;
    font-size: 0.9rem;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.modal-content {
    background-color: white;
    margin: 2% auto 15% auto;
    padding: 20px;
    width: 85%;
    max-height: 85vh;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.close {
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.json-viewer {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    overflow: auto;
    flex-grow: 1;
    font-family: monospace;
    white-space: pre-wrap;
    word-break: break-word;
}

.json-viewer a {
    color: #2563eb;
    text-decoration: underline;
    cursor: pointer;
}

.json-viewer a:hover {
    color: #1d4ed8;
}

/* File viewer with line numbers */
.file-viewer {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.file-viewer .gutter {
    flex: 0 0 60px;
    background: #f1f5f9;
    border-radius: 4px;
    padding: 10px 8px;
    color: #6b7280;
    font-family: monospace;
    font-size: 0.9rem;
    line-height: 1.4;
    text-align: right;
    user-select: none;
    overflow: hidden;
}

.file-viewer .gutter pre {
    margin: 0;
    white-space: pre-wrap;
}

.file-viewer .code {
    flex: 1 1 auto;
    background: #ffffff;

    padding: 10px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.9rem;
    line-height: 1.4;
    overflow: auto;
    white-space: pre-wrap;
    word-break: break-word;
}

.file-viewer .code pre {
    margin: 0;
    white-space: pre-wrap;
    word-break: break-word;
    overflow-wrap: break-word;
}

/* Dark mode overrides for file viewer */
body.dark-mode .file-viewer .gutter {
    background: #0f1724;
    /* slightly lighter than page background */
    color: #94a3b8;
}

body.dark-mode .file-viewer .code {
    background: #1f2937;
    /* dark panel */
    color: #e6edf3;
}

body.dark-mode .file-viewer .code a {
    color: #7cc0ff;
}

.hidden {
    display: none;
}

.mt-2 {
    margin-top: 10px;
}

.text-sm {
    font-size: 0.85rem;
}

.text-muted {
    color: var(--text-secondary);
}

code {
    background-color: #f3f4f6;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: monospace;
}

.overflow-wrapper {
    overflow-x: auto;
    min-width: 0;
    -webkit-overflow-scrolling: touch;
}

.card h2 {
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: flex-start;
}

.card h2>span:first-child {
    display: inline-block;
    min-width: 15px;
    transition: transform 0.3s ease;
    font-size: 0.9rem;
}



/* Files header: arrow, tile-icon, title, refresh button (button sits right next to the title) */

.card h2.files-header>span:first-child {
    position: static;
    transition: transform 0.3s ease;
    flex: none;
}

.card h2.files-header>span:nth-child(3) {
    flex: none !important;
    margin-left: 0;
    display: inline;
}

/* tile-icon styles */
.card h2 .tile-icon {
    display: inline-flex;
    align-items: center;
    font-size: 1.05rem;
    margin-left: 6px;
    margin-right: 6px;
}

.card h2.files-header>button {
    position: static;
    margin-left: 0;
    width: auto;
    padding: 4px 8px;
    font-size: 0.8rem;
}

.card-content {
    max-height: 2000px;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.collapsible {
    max-height: 2000px;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.collapsible.collapsed {
    max-height: 0;
}

.card-content.collapsed {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.3s ease, opacity 0.2s ease;
}

.tab-nav.collapsed {
    display: none;
    opacity: 0;
}

.collapse-hint {
    /* Basis: zuvor 0.9em; +5px wie vom Designer gewünscht */
    font-size: calc(0.9em + 5px);
    color: var(--text-secondary);
    margin: 5px 0;
    padding: 5px 10px;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    cursor: pointer;
}

/* Utility classes */
.small-note {
    margin: 5px 0;
}

.flex-gap {
    display: flex;
    gap: 10px;
}

.flex-gap-center {
    display: flex;
    gap: 10px;
    align-items: center;
}

.btn-auto {
    width: auto;
}

.text-success {
    color: var(--success);
}

.input-small {
    width: 120px;
    padding: 5px;
}

body.dark-mode .input-small {
    background-color: #1f2937 !important;
    color: white !important;
}

.modal-title {
    margin: 0;
    border: none;
}

.linkified {

    color: #2563eb;
    text-decoration: underline;

}


.linkified:hover {
    color: #1d4ed8;
}

.mono {
    font-family: monospace;
}

.mt-3 {
    margin-top: 30px;
}

.panel {
    margin: 20px 0;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background: #fff;
}

.pre-box {
    background: #f5f5f5;
    padding: 10px;
    overflow-x: auto;
}

.text-error {
    color: var(--error);
}

/* ==========================================
   BURGER MENU & NAVIGATION
   ========================================== */
.burger-menu {
    font-size: 1.5rem;
    cursor: pointer;
    margin-right: 15px;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 5px;
    transition: background-color 0.2s;
}

.burger-menu:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s;
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

.nav-menu {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100%;
    background-color: var(--card-bg);
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: left 0.3s ease;
    display: flex;
    flex-direction: column;
}

.nav-menu.active {
    left: 0;
}

.nav-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-header h2 {
    margin: 0;
    font-size: 1.2rem;
    color: var(--primary-color);
}

.nav-close {
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-secondary);
}

.nav-items {
    padding: 20px 0;
    flex-grow: 1;
}

.nav-item {
    padding: 15px 20px;
    cursor: pointer;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    color: var(--text-main);
}

.nav-item:hover {
    background-color: var(--bg-color);
}

.nav-item.active {
    background-color: #eff6ff;
    color: var(--primary-color);
    border-right: 3px solid var(--primary-color);
}

/* ==========================================
   VIEW SWITCHING
   ========================================== */
.view-container {
    display: block;
    width: 100%;
}

.view-hidden {
    display: none !important;
}

/* Mobile Responsive Design */
@media (max-width: 768px) {
    body {
        padding: 0;
    }

    .container {
        padding: 12px;
    }

    .dashboard-content {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    /* On smaller screens the scheduler should collapse like dashboard */
    .scheduler-content {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 10px !important;
        width: 100% !important;
    }

    /* Ensure any tile/grid containers become single-column stacks on tablet */
    .tiles,
    .tiles-grid,
    .cards-grid,
    .job-tiles,
    .jobs-tiles-container,
    #jobsTilesContainer,
    .job-tile,
    .tile {
        display: block !important;
        width: 100% !important;
        margin: 0 0 12px 0 !important;
    }

    /* If tile containers use grid or flex, force one-column behaviour */
    .tiles-grid,
    .cards-grid,
    .job-tiles,
    .jobs-tiles-container,
    #jobsTilesContainer {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }

    .settings-content {
        grid-template-columns: 1fr;
    }

    .header {
        padding: 15px;
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .header h1 {
        font-size: 1.3rem;
        margin: 0;
    }

    .status-indicator {
        justify-content: center;
    }

    .sidebar {
        gap: 10px;
    }

    .main-content {
        gap: 10px;
    }

    .card {
        padding: 15px;
        margin-bottom: 10px;
        border-radius: 8px;
    }

    .card h2 {
        font-size: 1rem;
        gap: 10px;
        margin-bottom: 10px;
        display: grid;
        grid-template-columns: auto auto 1fr auto;
        align-items: center;
        position: relative;
        padding-left: 0;
        padding-right: 0;
    }

    /* Files header remains responsive and places refresh button to the right of the title */

    button {
        padding: 8px 12px;
        font-size: 0.9rem;
    }

    button.secondary {
        padding: 4px 8px;
        font-size: 0.8rem;
    }

    input[type="text"],
    select,
    textarea {
        font-size: 16px;
    }

    textarea {
        min-height: 80px;
    }

    table {
        font-size: 0.85rem;
    }

    th,
    td {
        padding: 8px;
    }

    /* Mobile table column optimization */
    #filesTable th:nth-child(1),
    #filesTable td:nth-child(1) {
        width: 20px;
        padding: 4px 2px;
    }

    #filesTable th:nth-child(2),
    #filesTable td:nth-child(2) {
        width: auto;
        min-width: 120px;
    }

    #filesTable th:nth-child(3),
    #filesTable td:nth-child(3) {
        width: 60px;
        font-size: 0.75rem;
    }

    #filesTable th:nth-child(4),
    #filesTable td:nth-child(4) {
        width: 100px;
        font-size: 0.7rem;
    }

    #jobsTable th:nth-child(1),
    #jobsTable td:nth-child(1) {
        width: 100px;
        font-size: 0.75rem;
    }

    #jobsTable th:nth-child(2),
    #jobsTable td:nth-child(2) {
        width: 70px;
        font-size: 0.75rem;
    }

    #jobsTable th:nth-child(3),
    #jobsTable td:nth-child(3) {
        width: 60px;
        font-size: 0.75rem;
    }

    #jobsTable th:nth-child(4),
    #jobsTable td:nth-child(4) {
        width: auto;
        font-size: 0.7rem;
    }

    .sort-indicator {
        width: 12px;
        height: 12px;
        font-size: 0.65em;
        margin-left: 2px;
    }

    .overflow-wrapper {
        border-radius: 6px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .terminal {
        height: 200px;
        font-size: 0.8rem;
        overflow-x: hidden;
    }

    .terminal pre,
    .terminal code,
    .terminal .log-line {
        white-space: pre-wrap;
        word-break: break-word;
        overflow-wrap: anywhere;
    }

    table {
        width: 100%;
        table-layout: fixed;
    }

    th,
    td {
        word-break: break-word;
        overflow-wrap: anywhere;
    }

    .modal-content {
        width: 90%;
        max-height: 90vh;
        margin: 2% auto 15% auto;
        overflow-y: auto;
    }

    .json-viewer {
        font-size: 0.8rem;
        padding: 10px;
    }

    .form-group {
        margin-bottom: 10px;
    }

    /* Make the scheduler weekday checkboxes wrap nicely on small screens */
    .weekdays {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }

    .weekdays label {
        padding: 6px 8px;
        background: var(--card-bg);
        border: 1px solid var(--border-color);
        border-radius: 6px;
        font-size: 0.85rem;
    }

    label {
        font-size: 0.85rem;
        margin-bottom: 4px;
    }

    .text-sm {
        font-size: 0.75rem;
    }

    code {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 8px;
    }

    .header h1 {
        font-size: 1.1rem;
    }

    .card {
        padding: 12px;
    }

    /* Force scheduler to single column on very small screens */
    .scheduler-content {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 8px !important;
        width: 100% !important;
    }

    /* Extra small screens: scheduler inputs get larger touch targets */
    .scheduler-content .sidebar input,
    .scheduler-content .sidebar select,
    .scheduler-content .sidebar textarea,
    .scheduler-content .sidebar button {
        font-size: 16px;
        padding: 10px;
    }

    .weekdays label {
        padding: 6px 10px;
        font-size: 0.8rem;
    }

    /* Extra small screens: table optimization */
    th,
    td {
        padding: 4px;
        font-size: 0.75rem;
    }

    #filesTable th:nth-child(1),
    #filesTable td:nth-child(1) {
        width: 16px;
        padding: 2px 1px;
    }

    #filesTable th:nth-child(2),
    #filesTable td:nth-child(2) {
        width: auto;
        min-width: 100px;
        font-size: 0.7rem;
    }

    #filesTable th:nth-child(3),
    #filesTable td:nth-child(3) {
        width: 50px;
        font-size: 0.65rem;
        text-align: right;
    }

    #filesTable th:nth-child(4),
    #filesTable td:nth-child(4) {
        width: 80px;
        font-size: 0.6rem;
    }

    #jobsTable th:nth-child(1),
    #jobsTable td:nth-child(1) {
        width: 80px;
        font-size: 0.7rem;
    }

    #jobsTable th:nth-child(2),
    #jobsTable td:nth-child(2) {
        width: 60px;
        font-size: 0.7rem;
    }

    #jobsTable th:nth-child(3),
    #jobsTable td:nth-child(3) {
        width: 50px;
        font-size: 0.7rem;
    }

    #jobsTable th:nth-child(4),
    #jobsTable td:nth-child(4) {
        width: auto;
        font-size: 0.6rem;
    }

    .sort-indicator {
        width: 10px;
        height: 10px;
        font-size: 0.6em;
        margin-left: 2px;
    }

    .sortable-header {
        padding: 4px 4px;
    }

    /* On very small screens: force tiles and job cards to stack vertically */
    .tiles,
    .tiles-grid,
    .cards-grid,
    .job-tiles,
    .jobs-tiles-container,
    #jobsTilesContainer,
    .job-tile,
    .tile {
        display: block !important;
        width: 100% !important;
        margin: 0 0 10px 0 !important;
    }

    .tiles-grid,
    .cards-grid,
    .job-tiles,
    .jobs-tiles-container,
    #jobsTilesContainer {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }

    .card h2 {
        font-size: 0.95rem;
    }

    button {
        padding: 6px 10px;
        font-size: 0.85rem;
    }

    table {
        font-size: 0.75rem;
    }

    /* Settings page mobile */
    #sourcesContentTextarea {
        font-size: 14px;
    }

    th,
    td {
        padding: 6px;
    }

    .terminal {
        height: 150px;
        font-size: 0.75rem;
    }

    .modal-content {
        width: 92%;
        padding: 15px;
    }

    .json-viewer {
        font-size: 0.7rem;
    }

    .form-group {
        margin-bottom: 8px;
    }

    label {
        font-size: 0.8rem;
    }

    input[type="text"],
    select,
    textarea {
        font-size: 16px;
        padding: 6px;
    }
}

/* ==========================================
   MODERN TAB STYLES
   ========================================== */

.tab-nav {
    display: flex;
    gap: 20px;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 20px;
    background: #f9fafb;
    border-radius: 10px 10px 0 0;
    padding: 0;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    max-height: 100px;
    overflow: hidden;
}

.tab-nav.collapsed {
    display: none;
}

.tab-btn {
    flex: none;
    background: transparent;
    border: none;
    padding: 12px 16px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    border-radius: 8px 8px 0 0;
    position: relative;
    width: auto;
}

.tab-btn:hover {
    background-color: #f0f0f0;
    color: var(--text-main);
}

.tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    background: white;
}

.tab-content {
    display: none;
    animation: fadeIn 0.2s ease-in;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Tab Design */
@media (max-width: 768px) {
    .tab-btn {
        padding: 10px 12px;
        font-size: 0.85rem;
    }

    .tab-nav {
        gap: 5px;
    }
}

@media (max-width: 480px) {
    .tab-btn {
        padding: 8px 10px;
        font-size: 0.75rem;
    }

    .tab-nav {
        gap: 2px;
    }
}

/* Brand Selection Styles */
.brand-selection {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-color);
    max-height: 300px;
    overflow-y: auto;
}

.brand-select-all-fixed {
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    border-radius: 8px;
    margin-bottom: 8px;
}

.brand-select-individual {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    background: var(--card-bg);
    border-radius: 8px 8px 0 0;
    cursor: pointer;
}

.brand-toggle-header {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.toggle-arrow {
    margin-right: 8px;
    font-size: 14px;
    display: inline-block;
    transform-origin: center;
    transition: transform 0.18s ease;
}

.toggle-arrow.open {
    transform: rotate(90deg);
}

.brand-list.collapsed {
    display: none;
}

.brand-list {
    padding: 8px;
}

.brand-item {
    margin-bottom: 4px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    font-size: 0.9rem;
}

.checkbox-label:hover {
    background-color: rgba(37, 99, 235, 0.05);
}

.checkbox-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: relative;
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-right: 10px;
    border: 2px solid var(--border-color);
    border-radius: 3px;
    background: white;
    transition: all 0.2s ease;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"]:checked+.checkmark {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.checkbox-label input[type="checkbox"]:checked+.checkmark::after {
    content: '✓';
    position: absolute;
    top: -2px;
    left: 2px;
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.checkbox-label input[type="checkbox"]:checked+.checkmark {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.checkbox-label input[type="checkbox"]:checked+.checkmark::after {
    content: '✓';
    position: absolute;
    top: -2px;
    left: 2px;
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.loading-brands {
    text-align: center;
    padding: 20px;
    color: var(--text-secondary);
    font-style: italic;
}

.brand-count {
    background: var(--primary-color);
    color: white;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 0.7rem;
    margin-left: 8px;
}

/* Dark Mode Toggle Switch */
.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--border-color);
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked+.slider {
    background-color: var(--primary-color);
}

/* Responsive Tab Design */
@media (max-width: 768px) {
    .tab-btn {
        padding: 10px 12px;
        font-size: 0.85rem;
    }

    .tab-nav {
        gap: 5px;
    }
}

@media (max-width: 480px) {
    .tab-btn {
        padding: 8px 10px;
        font-size: 0.75rem;
    }

    .tab-nav {
        gap: 2px;
    }
}

/* Brand Selection Styles */
.brand-selection {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-color);
    max-height: 300px;
    overflow-y: auto;
}

.brand-select-all-fixed {
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    border-radius: 8px;
    margin-bottom: 8px;
}

.brand-select-individual {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    background: var(--card-bg);
    border-radius: 8px 8px 0 0;
    cursor: pointer;
}

.brand-toggle-header {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.toggle-arrow {
    margin-right: 8px;
    font-size: 14px;
    display: inline-block;
    transform-origin: center;
    transition: transform 0.18s ease;
}

.toggle-arrow.open {
    transform: rotate(90deg);
}

.brand-list.collapsed {
    display: none;
}

.brand-list {
    padding: 8px;
}

.brand-item {
    margin-bottom: 4px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    font-size: 0.9rem;
}

.checkbox-label:hover {
    background-color: rgba(37, 99, 235, 0.05);
}

.checkbox-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: relative;
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-right: 10px;
    border: 2px solid var(--border-color);
    border-radius: 3px;
    background: white;
    transition: all 0.2s ease;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"]:checked+.checkmark {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.checkbox-label input[type="checkbox"]:checked+.checkmark::after {
    content: '✓';
    position: absolute;
    top: -2px;
    left: 2px;
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.checkbox-label input[type="checkbox"]:checked+.checkmark {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.checkbox-label input[type="checkbox"]:checked+.checkmark::after {
    content: '✓';
    position: absolute;
    top: -2px;
    left: 2px;
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.loading-brands {
    text-align: center;
    padding: 20px;
    color: var(--text-secondary);
    font-style: italic;
}

.brand-count {
    background: var(--primary-color);
    color: white;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 0.7rem;
    margin-left: 8px;
}

/* Dark Mode Toggle Switch */
.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--border-color);
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked+.slider {
    background-color: var(--primary-color);
}

input:focus+.slider {
    box-shadow: 0 0 1px var(--primary-color);
}

input:checked+.slider:before {
    transform: translateX(26px);
}

/* Badge Styles */
.badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.badge.running {
    background-color: #dbeafe;
    color: #1e40af;
}

.badge.completed {
    background-color: #d1fae5;
    color: #065f46;
}

.badge.failed {
    background-color: #fee2e2;
    color: #991b1b;
}

.badge.cancelled {
    background-color: #fef3c7;
    color: #92400e;
}

.badge.scheduled {
    background-color: #fce7f3;
    color: #831843;
}

/* Dark Mode Badge Styles */
body.dark-mode .badge.running {
    background-color: #1e3a8a;
    color: #93c5fd;
}

body.dark-mode .badge.completed {
    background-color: #064e3b;
    color: #6ee7b7;
}

body.dark-mode .badge.failed {
    background-color: #7f1d1d;
    color: #fca5a5;
}

body.dark-mode .badge.cancelled {
    background-color: #a16207;
    color: #fef3c7;
}

body.dark-mode .badge.scheduled {
    background-color: #701a75;
    color: #f0abfc;
}

/* ==========================================
   SCHEDULER STYLES
   ========================================== */

.scheduler-content {
    display: flex;
    gap: 20px;
    height: calc(100vh - 80px);
}

.scheduler-content .sidebar {
    width: 350px;
    flex-shrink: 0;
}

.scheduler-content .main-content {
    flex: 1;
    min-width: 0;
}

.weekdays {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.weekdays label {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    cursor: pointer;
}

.weekdays input[type="checkbox"] {
    margin: 0;
}

.schedule-field {
    margin-bottom: 15px;
}

#scheduledJobsTable {
    width: 100%;
    border-collapse: collapse;
}

#scheduledJobsTable th,
#scheduledJobsTable td {
    padding: 8px 12px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

#scheduledJobsTable th {
    background-color: var(--bg-color);
    font-weight: 600;
    font-size: 14px;
}

#scheduledJobsTable .small {
    padding: 4px 8px;
    font-size: 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
}

#scheduledJobsTable .danger.small {
    background-color: var(--error);
    color: white;
}

#scheduledJobsTable .danger.small:hover {
    background-color: #c82333;
}

/* Apply global zoom for the entire UI (works well in Chromium-based browsers) */
html {
    zoom: var(--ui-zoom);
}

/* Jobs table: responsive card layout for small screens */
@media (max-width: 600px) {

    /* Stack sidebar and main in dashboard already handled above; ensure jobs cards look good */
    #jobsTable {
        border: none;
        display: block !important;
        width: auto !important;
        max-width: 420px;
        margin: 0 auto;
    }

    #jobsTable thead {
        display: none !important;
        /* hide header */
    }

    #jobsTable tbody {
        display: block !important;
        width: 100% !important;
    }

    #jobsTable tr {
        margin-bottom: 10px;
        border: 1px solid var(--border-color);
        border-radius: 6px;
        padding: 0;
        background: var(--card-bg);
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
        display: grid !important;
        grid-template-columns: 1fr;
        gap: 0;
        width: 100% !important;
    }

    #jobsTable td {
        padding: 6px 10px;
        display: grid !important;
        grid-template-columns: 80px 1fr;
        align-items: center;
        gap: 6px;
        border-bottom: 1px solid var(--border-color);
        word-break: break-word;
        width: 100% !important;
    }

    #jobsTable td:last-child {
        border-bottom: none;
    }

    /* Show label on the left and value on the right */
    #jobsTable td::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--text-secondary);
        font-size: 0.75rem;
    }

    /* Make IDs monospace smaller */
    #jobsTable td.mono {
        font-family: monospace;
        font-size: 0.75rem;
    }

    /* Badges should remain visible and not wrap awkwardly */
    #jobsTable .badge {
        white-space: nowrap;
        display: inline-block;
        font-size: 0.7rem;
        padding: 2px 6px;
    }

    /* Status badge needs its own handling */
    #jobsTable td:nth-child(3) {
        grid-template-columns: 70px 1fr;
    }
}