:root {
    --bg: #f4f6f9;
    --surface: #ffffff;
    --ink: #1f2933;
    --muted: #64748b;
    --line: #dbe1e8;
    --accent: #0f766e;
    --accent-soft: #d1fae5;
    --warning-bg: #fff7ed;
    --warning-border: #fdba74;
    --error-bg: #fef2f2;
    --error-border: #fca5a5;
    --success-bg: #ecfdf3;
    --success-border: #86efac;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Segoe UI", Tahoma, sans-serif;
    background: linear-gradient(180deg, #eef2ff 0%, var(--bg) 20%, var(--bg) 100%);
    color: var(--ink);
    min-height: 100vh;
}

.container {
    width: min(1180px, 92vw);
    margin: 0 auto;
}

.topbar {
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 4;
}

.topbar-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 1rem;
    padding: 1rem 0;
}

.topbar-left {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.9rem 1.2rem;
}

.topbar-left p {
    margin: 0.25rem 0 0;
}

.topbar-right {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}

h1 {
    font-size: 1.45rem;
    margin: 0;
}

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

.nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
}

.nav a {
    text-decoration: none;
    color: #334155;
    padding: 0.46rem 0.78rem;
    border-radius: 999px;
    border: 1px solid transparent;
    transition: background-color 120ms ease, border-color 120ms ease, color 120ms ease;
}

.nav a.active,
.nav a:hover {
    color: #0f172a;
    border-color: #99f6e4;
    background: #ccfbf1;
}

.nav-user {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0.42rem 0.72rem;
    font-size: 0.88rem;
    color: #334155;
    background: #fff;
}

.logout-form {
    margin: 0;
}

button {
    border: 1px solid #0f766e;
    border-radius: 10px;
    padding: 0.56rem 0.92rem;
    font: inherit;
    font-weight: 600;
    color: #ffffff;
    background: linear-gradient(135deg, #0f766e 0%, #0d9488 100%);
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(15, 118, 110, 0.16);
    transition: transform 120ms ease, box-shadow 120ms ease, filter 120ms ease;
}

button:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(15, 118, 110, 0.2);
    filter: brightness(1.02);
}

button:active {
    transform: translateY(0);
}

button:focus-visible {
    outline: 2px solid #0f766e;
    outline-offset: 2px;
}

button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

button.btn-danger {
    border-color: #b91c1c;
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    box-shadow: 0 8px 18px rgba(185, 28, 28, 0.16);
}

button.btn-danger:hover {
    box-shadow: 0 10px 20px rgba(185, 28, 28, 0.22);
}

button.btn-secondary {
    border-color: #94a3b8;
    color: #1e293b;
    background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 100%);
    box-shadow: 0 8px 18px rgba(71, 85, 105, 0.14);
}

button.btn-secondary:hover {
    box-shadow: 0 10px 20px rgba(71, 85, 105, 0.18);
}

button.btn-sm {
    padding: 0.45rem 0.74rem;
    font-size: 0.84rem;
}

.input-control {
    border: 1px solid #ccd8e6;
    border-radius: 10px;
    padding: 0.6rem 0.72rem;
    font: inherit;
    color: #0f172a;
    background: #ffffff;
    transition: border-color 120ms ease, box-shadow 120ms ease, background-color 120ms ease;
}

.input-control:focus-visible {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
    background: #fbfdff;
}

.main {
    padding: 1.5rem 0 2rem;
}

.app-shell {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
    padding: 1.15rem 0 2rem;
}

.app-main {
    min-width: 0;
    padding: 0;
}

.sidebar-nav {
    position: sticky;
    top: 84px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 0.78rem;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.06);
}

.sidebar-label {
    margin: 0 0 0.6rem;
    padding: 0 0.2rem;
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.sidebar-nav .nav {
    display: grid;
    gap: 0.42rem;
}

.sidebar-nav .nav a {
    display: block;
    border-radius: 10px;
    border: 1px solid #dbe1e8;
    background: #ffffff;
    padding: 0.58rem 0.72rem;
    font-weight: 600;
}

.sidebar-nav .nav a.active,
.sidebar-nav .nav a:hover {
    border-color: #5eead4;
    background: #ecfeff;
    color: #0f172a;
}

.alert {
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 0.85rem 1rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.warning {
    background: var(--warning-bg);
    border-color: var(--warning-border);
}

.error {
    background: var(--error-bg);
    border-color: var(--error-border);
}

.success {
    background: var(--success-bg);
    border-color: var(--success-border);
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.9rem;
    margin-bottom: 1rem;
}

.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 1rem;
}

.card h2 {
    margin: 0;
    font-size: 1.8rem;
}

.card p {
    margin: 0.4rem 0 0;
    color: var(--muted);
}

.panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.panel h3,
.panel h4 {
    margin: 0 0 0.9rem;
}

.journal-dashboard-grid {
    display: grid;
    gap: 0.7rem;
    margin-bottom: 1rem;
}

.journal-dashboard-grid.dashboard-five-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.journal-chart-card.chart-card-wide {
    grid-column: 1 / -1;
}

.journal-chart-card {
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 0.68rem;
    background: #fcfdff;
    overflow: hidden;
}

.journal-chart-card h4 {
    margin: 0 0 0.55rem;
    font-size: 0.83rem;
}

.chart-canvas-wrap {
    width: 100%;
    min-height: 168px;
    height: 168px;
}

.chart-card-compact .chart-canvas-wrap {
    min-height: 162px;
    height: 162px;
}

.chart-canvas-wrap.chart-canvas-wrap-wide {
    min-height: 196px;
    height: 196px;
}

.chart-canvas {
    width: 100%;
    height: 100%;
    display: block;
}

.chart-controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0.45rem;
    margin-bottom: 0.55rem;
}

.chart-controls > * {
    min-width: 0;
}

.chart-controls select {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 0.45rem 0.6rem;
    font: inherit;
    font-size: 0.86rem;
    background: #fff;
    width: 100%;
    max-width: 100%;
}

.pie-legend {
    display: grid;
    gap: 0.35rem;
    margin-top: 0.35rem;
    max-height: 132px;
    overflow: auto;
    padding-right: 0.25rem;
}

.pie-legend-item {
    display: grid;
    grid-template-columns: 12px 1fr auto;
    gap: 0.4rem;
    align-items: center;
    font-size: 0.76rem;
}

.pie-dot {
    width: 12px;
    height: 12px;
    border-radius: 999px;
}

.pie-name {
    color: #334155;
}

.pie-value {
    color: #0f172a;
    font-variant-numeric: tabular-nums;
}

.journal-bar-row {
    display: grid;
    grid-template-columns: minmax(120px, 230px) 1fr minmax(54px, auto);
    align-items: center;
    gap: 0.55rem;
}

.journal-bar-label {
    font-size: 0.88rem;
    color: #334155;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.journal-bar-track {
    height: 14px;
    border-radius: 999px;
    overflow: hidden;
    background: #e5ecf3;
}

.journal-bar-fill {
    width: 0;
    height: 100%;
    border-radius: 999px;
    transition: width 1050ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.submissions-fill {
    background: linear-gradient(90deg, #0f766e 0%, #14b8a6 100%);
}

.metrics-fill {
    background: linear-gradient(90deg, #2563eb 0%, #22c55e 100%);
}

.journal-bar-value {
    text-align: right;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.journal-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.85rem;
}

.journal-summary-card {
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 0.9rem;
    background: #ffffff;
}

.journal-summary-card h4 {
    margin: 0;
    font-size: 1rem;
}

.journal-stat-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 0.45rem;
    font-size: 0.93rem;
}

.journal-progress-track {
    height: 10px;
    border-radius: 999px;
    overflow: hidden;
    background: #edf2f7;
    margin-top: 0.8rem;
}

.journal-progress-fill {
    width: 0;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #f59e0b 0%, #ef4444 100%);
    transition: width 1050ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.code-muted {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 0.82rem;
}

.title {
    font-size: 1.2rem;
    margin: 0 0 1rem;
}

.filters {
    display: flex;
    gap: 0.6rem;
    margin-bottom: 0.9rem;
    flex-wrap: wrap;
}

.filters input,
.filters select {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 0.55rem 0.7rem;
    font: inherit;
}

.filters .input-control {
    border-color: #ccd8e6;
    border-radius: 10px;
    padding: 0.6rem 0.72rem;
}

.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    text-align: left;
    border-bottom: 1px solid var(--line);
    padding: 0.65rem 0.6rem;
    vertical-align: top;
}

th {
    white-space: nowrap;
    background: #f8fafc;
}

a {
    color: #0f4c81;
}

.grid-two {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 0.8rem 1rem;
}

.abstract {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 0.8rem;
    background: #fafafa;
    line-height: 1.5;
}

.meta {
    color: var(--muted);
    margin: 0.3rem 0 0.9rem;
}

.badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.16rem 0.56rem;
    font-size: 0.78rem;
    font-weight: 600;
    border: 1px solid transparent;
}

.badge-success {
    color: #065f46;
    background: #d1fae5;
    border-color: #6ee7b7;
}

.badge-muted {
    color: #475569;
    background: #e2e8f0;
    border-color: #cbd5e1;
}

.pagination {
    margin-top: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    flex-wrap: wrap;
}

.pagination a {
    text-decoration: none;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 0.4rem 0.7rem;
    background: #fff;
}

.cell-wrap {
    min-width: 220px;
    max-width: 520px;
    line-height: 1.35;
    white-space: normal;
}

.bulk-actions {
    display: flex;
    justify-content: flex-end;
    margin: 0.75rem 0;
}

.bulk-actions button {
    min-width: 210px;
}

.users-bulk-form {
    display: grid;
    gap: 0.85rem;
}

.users-bulk-toolbar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.9rem;
    flex-wrap: wrap;
    padding: 0.9rem 1rem;
    border: 1px solid #d9e5ef;
    border-radius: 14px;
    background: linear-gradient(180deg, #fbfdff 0%, #f3f8fc 100%);
}

.users-bulk-meta {
    margin-bottom: 0.35rem;
}

.users-selection-count {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 700;
    color: #0f4c81;
}

.users-select-col {
    width: 54px;
    text-align: center;
}

.users-checkbox {
    width: 18px;
    height: 18px;
    accent-color: #0f766e;
    cursor: pointer;
}

.users-bulk-toolbar .btn-danger {
    min-width: 210px;
}

.issue-detail-icon-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid #b6d7f0;
    border-radius: 10px;
    background: #f0f9ff;
    text-decoration: none;
    font-size: 1rem;
    line-height: 1;
}

.issue-detail-icon-link:hover {
    background: #dff2ff;
    border-color: #7fb8df;
}

.issue-summary-box {
    border: 1px solid #d9e5ef;
    border-radius: 12px;
    background: linear-gradient(180deg, #fbfdff 0%, #f3f8fc 100%);
    padding: 0.75rem 0.9rem;
    margin: 0 0 0.85rem;
}

.issue-summary-box p {
    margin: 0.25rem 0;
}

.logs-search-panel {
    border-color: #d6e0ea;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.logs-filter {
    display: grid;
    grid-template-columns: minmax(240px, 360px) auto;
    align-items: end;
    gap: 0.65rem;
}

.logs-filter button {
    min-height: 42px;
}

.logs-article-panel {
    border-color: #dce6f0;
    background: #ffffff;
}

.log-article-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.6rem;
    margin-top: 0.75rem;
}

.log-article-meta-item {
    border: 1px solid #d9e3ef;
    border-radius: 12px;
    padding: 0.58rem 0.65rem;
    background: #f8fbff;
    display: grid;
    gap: 0.22rem;
}

.meta-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
}

.logs-workspace-panel {
    border-color: #d9e3ed;
    background: linear-gradient(180deg, #ffffff 0%, #f9fbfe 100%);
}

.process-summary-table-wrap {
    margin-bottom: 0.95rem;
    border: 1px solid #dce7f3;
    border-radius: 12px;
    overflow: hidden;
    background: #ffffff;
}

.process-summary-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.process-summary-table thead th {
    background: #eff6ff;
}

.process-summary-table tbody tr:nth-child(even) td {
    background: #fbfdff;
}

.process-summary-table th:nth-child(1),
.process-summary-table td:nth-child(1) {
    width: 56px;
    text-align: center;
}

.process-summary-table td:nth-child(3) {
    font-weight: 600;
    color: #0f172a;
    white-space: nowrap;
}

.log-simulation-panel {
    border: 1px solid #cfe4f5;
    border-radius: 14px;
    background: linear-gradient(180deg, #f8fdff 0%, #f3f9ff 100%);
    padding: 0.9rem;
    margin-bottom: 1rem;
    box-shadow: 0 10px 24px rgba(14, 116, 144, 0.08);
}

.log-sim-header {
    margin-bottom: 0.7rem;
}

.log-sim-header h5 {
    margin: 0;
    font-size: 0.98rem;
    color: #0f172a;
}

.log-sim-header p {
    margin: 0.28rem 0 0;
    font-size: 0.86rem;
    color: #475569;
}

.log-timeline-card {
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #ffffff;
    padding: 0.75rem;
    margin-bottom: 0.9rem;
}

.log-timeline-card h5 {
    margin: 0 0 0.35rem;
    font-size: 0.98rem;
}

.log-timeline-canvas-wrap {
    min-height: 230px;
    height: 230px;
}

.log-sim-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
}

.log-sim-grid label {
    font-weight: 600;
    font-size: 0.88rem;
    color: #334155;
    display: grid;
    gap: 0.35rem;
}

.log-sim-field {
    border: 1px solid #d5e4ef;
    border-radius: 12px;
    background: #ffffff;
    padding: 0.6rem 0.65rem;
}

.log-sim-grid .log-sim-field input[type="datetime-local"] {
    width: 100%;
    background: #fbfdff;
}

.log-sim-grid .log-sim-field input[type="datetime-local"]:focus-visible {
    border-color: #0f766e;
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.15);
}

.log-sim-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.62rem;
    margin-top: 0.8rem;
}

.log-sim-actions button {
    min-width: 196px;
    padding: 0.56rem 0.95rem;
}

.log-sim-actions .btn-sim-primary {
    border-color: #0e8f78;
    background: linear-gradient(135deg, #0f766e 0%, #14b8a6 100%);
}

.log-sim-actions .btn-sim-secondary {
    border-color: #9fb4c9;
    color: #1e293b;
    background: linear-gradient(135deg, #ffffff 0%, #e2ebf5 100%);
    box-shadow: 0 8px 18px rgba(71, 85, 105, 0.14);
}

.sim-summary-error {
    color: #b91c1c;
}

.sim-summary-ok {
    color: #0f766e;
}

.log-date-row.log-date-row-changed td {
    background: #fffbeb;
}

.log-date-table th,
.log-date-table td {
    padding: 0.8rem 0.7rem;
}

.log-date-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid #d7e2ee;
    border-radius: 12px;
    overflow: hidden;
    background: #ffffff;
}

.log-date-table thead th {
    background: #eff6ff;
}

.log-date-table tbody tr:nth-child(even) td {
    background-color: #fcfdff;
}

.log-date-table th.col-before,
.log-date-table td.col-before {
    min-width: 190px;
    background: #f8fafc;
}

.log-date-table th.col-after,
.log-date-table td.col-after {
    min-width: 250px;
    background: #f0fdf4;
    border-left: 3px solid #bfdbfe;
    padding-left: 1rem;
}

.log-date-input-cell input.log-new-value {
    min-width: 220px;
}

.table-wrap input[type="date"],
.table-wrap input[type="datetime-local"] {
    min-width: 210px;
}

@media (max-width: 640px) {
    .topbar-inner {
        align-items: flex-start;
    }

    .topbar-left {
        width: 100%;
    }

    .topbar-right {
        width: 100%;
        margin-left: 0;
        justify-content: space-between;
    }

    .log-sim-grid {
        grid-template-columns: 1fr;
    }

    .log-sim-actions button {
        width: 100%;
        min-width: 0;
    }

    .logs-filter {
        grid-template-columns: 1fr;
    }

    .log-date-table th.col-before,
    .log-date-table td.col-before,
    .log-date-table th.col-after,
    .log-date-table td.col-after {
        min-width: 170px;
    }

    th,
    td {
        font-size: 0.9rem;
    }
}

@media (max-width: 900px) {
    .topbar-left {
        gap: 0.7rem 0.9rem;
    }

    .nav a {
        padding: 0.42rem 0.65rem;
    }

    .app-shell {
        grid-template-columns: 1fr;
        gap: 0.82rem;
        padding-top: 0.9rem;
    }

    .sidebar-nav {
        position: static;
    }

    .sidebar-nav .nav {
        grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    }
}

@media (max-width: 760px) {
    .journal-dashboard-grid.dashboard-five-grid {
        grid-template-columns: 1fr;
    }

    .journal-chart-card.chart-card-wide {
        grid-column: auto;
    }

    .chart-canvas-wrap,
    .chart-card-compact .chart-canvas-wrap {
        min-height: 172px;
        height: 172px;
    }

    .chart-canvas-wrap.chart-canvas-wrap-wide {
        min-height: 180px;
        height: 180px;
    }

    .chart-controls {
        grid-template-columns: 1fr;
    }

    .journal-bar-row {
        grid-template-columns: minmax(90px, 160px) 1fr minmax(44px, auto);
    }

    .users-bulk-toolbar {
        padding: 0.82rem 0.85rem;
    }

    .users-bulk-toolbar .btn-danger {
        width: 100%;
        min-width: 0;
    }

}

body.ojs-dashboard-body {
    background: #f5f7fb;
}

.ojs-shell-background {
    background: linear-gradient(135deg, #3046c9 0%, #5e72e4 45%, #11cdef 100%) !important;
    min-height: 270px;
}

.ojs-brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 0.75rem;
    background: linear-gradient(135deg, #5e72e4 0%, #11cdef 100%);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    box-shadow: 0 10px 25px rgba(94, 114, 228, 0.28);
}

.sidenav .nav-link.active {
    background: linear-gradient(135deg, rgba(94, 114, 228, 0.14) 0%, rgba(17, 205, 239, 0.1) 100%);
}

.sidenav .nav-link.active .icon {
    background: #ffffff;
    border-radius: 0.75rem;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
}

.sidenav .icon.icon-shape.icon-sm {
    width: 2.6rem;
    height: 2.6rem;
    min-width: 2.6rem;
    min-height: 2.6rem;
    border-radius: 0.85rem;
}

.ojs-menu-icon-svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ojs-page-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.2rem 1.35rem;
    border-radius: 1.25rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.96) 0%, rgba(245, 248, 255, 0.92) 100%);
    border: 1px solid rgba(255, 255, 255, 0.75);
    box-shadow: 0 20px 35px rgba(15, 23, 42, 0.08);
}

.ojs-page-hero h2 {
    margin: 0;
    color: #344767;
    font-size: 1.4rem;
}

.ojs-page-hero p {
    margin: 0.35rem 0 0;
    color: #67748e;
}

.alert {
    border: 0;
    border-radius: 1rem;
    padding: 1rem 1.1rem;
    margin-bottom: 1rem;
    line-height: 1.5;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
}

.warning {
    background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
    border-left: 4px solid #fb923c;
}

.error {
    background: linear-gradient(135deg, #fff1f2 0%, #ffe4e6 100%);
    border-left: 4px solid #f43f5e;
}

.success {
    background: linear-gradient(135deg, #ecfdf3 0%, #dcfce7 100%);
    border-left: 4px solid #22c55e;
}

.cards {
    gap: 1rem;
}

.cards .card,
.panel,
.journal-chart-card,
.journal-summary-card,
.users-bulk-toolbar,
.issue-summary-box,
.log-simulation-panel,
.log-timeline-card,
.log-article-meta-item {
    border: 1px solid rgba(228, 232, 240, 0.95);
    border-radius: 1rem;
    background: #ffffff;
    box-shadow: 0 20px 27px 0 rgba(0, 0, 0, 0.05);
}

.cards .card {
    padding: 1.1rem 1rem;
}

.cards .card h2 {
    color: #344767;
    font-weight: 700;
}

.panel {
    padding: 1.15rem;
}

.panel h3,
.panel h4,
.journal-chart-card h4,
.log-timeline-card h5,
.log-sim-header h5 {
    color: #344767;
    font-weight: 700;
}

.filters {
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.filters input,
.filters select,
.filters .input-control,
.table-wrap input[type="date"],
.table-wrap input[type="datetime-local"],
.input-control,
.form-control {
    border: 1px solid #d2d6da;
    border-radius: 0.75rem;
    background: #fff;
    color: #344767;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.filters input:focus,
.filters select:focus,
.filters .input-control:focus,
.table-wrap input[type="date"]:focus,
.table-wrap input[type="datetime-local"]:focus,
.input-control:focus,
.form-control:focus {
    border-color: #5e72e4;
    box-shadow: 0 0 0 0.2rem rgba(94, 114, 228, 0.16);
}

button.btn,
a.btn,
.bulk-actions button,
.log-sim-actions button,
.login-submit {
    border: 0;
    border-radius: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    box-shadow: 0 10px 20px rgba(94, 114, 228, 0.16);
}

.bulk-actions button,
.log-sim-actions .btn-sim-primary {
    background: linear-gradient(135deg, #5e72e4 0%, #324cdd 100%);
}

.log-sim-actions .btn-sim-secondary {
    color: #344767;
    background: linear-gradient(135deg, #ffffff 0%, #eef2f7 100%);
    box-shadow: 0 10px 20px rgba(131, 146, 171, 0.18);
}

.table-wrap {
    border-radius: 1rem;
    border: 1px solid #e9ecef;
    background: #fff;
    box-shadow: 0 20px 27px 0 rgba(0, 0, 0, 0.05);
}

table {
    margin-bottom: 0;
}

th,
td {
    padding: 0.82rem 0.8rem;
    border-bottom: 1px solid #edf2f7;
}

th {
    color: #8392ab;
    background: #f8f9fa;
    font-size: 0.73rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

td {
    color: #344767;
}

tbody tr:hover td {
    background: #fbfcff;
}

.badge {
    border: 0;
    font-weight: 700;
}

.badge-muted {
    color: #344767;
    background: #edf2f7;
}

.pagination a {
    border-radius: 0.7rem;
    padding: 0.48rem 0.82rem;
    border: 1px solid #e5eaf1;
    color: #344767;
    box-shadow: 0 8px 16px rgba(15, 23, 42, 0.04);
}

.issue-detail-icon-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 0.85rem;
    background: linear-gradient(135deg, rgba(94, 114, 228, 0.15) 0%, rgba(17, 205, 239, 0.18) 100%);
    color: #324cdd;
    box-shadow: 0 8px 16px rgba(94, 114, 228, 0.12);
}

.issue-detail-icon-link:hover {
    background: linear-gradient(135deg, rgba(94, 114, 228, 0.22) 0%, rgba(17, 205, 239, 0.24) 100%);
}

.issue-detail-icon-svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.users-bulk-toolbar,
.issue-summary-box,
.log-simulation-panel {
    padding: 1rem 1.05rem;
}

.log-article-meta-grid {
    gap: 0.8rem;
}

.log-article-meta-item {
    padding: 0.8rem 0.85rem;
    background: linear-gradient(135deg, #ffffff 0%, #f9fbff 100%);
}

.process-summary-table-wrap,
.log-date-table {
    border: 1px solid #e9ecef;
    border-radius: 1rem;
    box-shadow: 0 20px 27px 0 rgba(0, 0, 0, 0.04);
}

.process-summary-table thead th,
.log-date-table thead th {
    background: #f8f9fa;
}

.log-date-row.log-date-row-changed td {
    background: #fff8e6;
}

body.ojs-login-body {
    background: #f8f9fa;
}

.login-page-header {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(rgba(52, 71, 103, 0.52), rgba(52, 71, 103, 0.64)),
        radial-gradient(circle at top left, rgba(94, 114, 228, 0.2), transparent 30%),
        linear-gradient(135deg, #5e72e4 0%, #324cdd 42%, #11cdef 100%);
}

.login-card-template {
    border: 0;
    border-radius: 1.25rem;
    box-shadow: 0 20px 27px 0 rgba(0, 0, 0, 0.08);
}

.login-card-template .card-header,
.login-card-template .card-body,
.login-card-template .card-footer {
    background: #ffffff;
}

.login-card-template .card-header {
    border-radius: 1.25rem 1.25rem 0 0;
}

.login-card-template .card-footer {
    border-radius: 0 0 1.25rem 1.25rem;
}

body.ojs-login-body .alert {
    box-shadow: none;
}

body.ojs-login-body .form-label {
    color: #344767;
    font-weight: 600;
    margin-bottom: 0.45rem;
}

body.ojs-login-body .form-control {
    min-height: 46px;
}

body.ojs-login-body .btn.bg-gradient-primary {
    box-shadow: 0 12px 22px rgba(94, 114, 228, 0.24);
}

@media (max-width: 1199px) {
    .ojs-page-hero {
        padding: 1rem 1.05rem;
    }
}

@media (max-width: 991px) {
    .ojs-page-hero {
        margin-top: 0.5rem;
    }
}

@media (max-width: 640px) {
    .ojs-page-hero h2 {
        font-size: 1.15rem;
    }

    .table-wrap {
        border-radius: 0.85rem;
    }
}
