:root {
    --primary: #0f62fe;
    --bg: #f8fafc;
    --card: #ffffff;
    --text: #1e293b;
    --muted: #64748b;
    --border: #e2e8f0;
    --sidebar-w: 140px;
    --sidebar-collapsed: 50px;
}

* {
    box-sizing: border-box;
}

html, body {
    height: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
}

a {
    color: inherit;
    text-decoration: none;
}

*:focus, *:focus-visible {
    outline: none;
}

input, select, textarea, button {
    font: inherit;
}

input:focus, select:focus, textarea:focus, button:focus,
input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible {
    outline: none;
}

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: var(--bg);
}

.auth-page input,
.auth-page select {
    height: 42px;
}

.auth-page .input-group img[data-captcha-img] {
    height: 42px;
    display: block;
}

.auth-card {
    width: 100%;
    max-width: 400px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, .06);
}

.auth-card h1 {
    font-size: 24px;
    font-weight: 900;
    letter-spacing: -.02em;
    margin: 0 0 8px;
    text-align: center;
}

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

.error {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
    border-radius: 12px;
    padding: 10px 12px;
    margin: 14px 0;
}

.ui-modal-actions .btn {
    height: 42px; /* 匹配单行输入框高度 */
    padding: 0 24px;
}

.form-stack .btn {
    height: 42px; /* 匹配单行输入框高度 */
}

.form-stack {
    display: grid;
    gap: 16px;
}

.form-stack label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text);
}

.modal-form-grid {
    display: grid;
    gap: 16px;
}

.modal-form-grid.two-cols {
    grid-template-columns: 1fr 1fr;
}

/* 多行输入框后的按钮换行显示 */
.form-stack textarea + .btn,
.form-stack textarea + .ui-modal-actions .btn {
    margin-top: 12px;
    width: 100%;
}

input, select, textarea {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 10px 14px;
    background: #fff;
    transition: all .2s cubic-bezier(0.4, 0, 0.2, 1);
}

input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
select {
    height: 42px;
}

select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 16px;
    padding-right: 40px !important;
}

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

.input-group {
    display: flex;
    align-items: stretch;
    gap: 0;
    width: 100%;
}

.input-group input {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    flex: 1;
    min-width: 0; /* 防止溢出 */
}

.input-group .btn {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    white-space: nowrap;
    padding: 0 16px;
    height: auto;
    flex-shrink: 0; /* 确保按钮不缩放 */
}

.ui-modal-body {
    padding: 24px;
    max-height: calc(90vh - 120px);
    overflow-y: auto;
    scrollbar-gutter: stable; /* 预留滚动条位置防止抖动 */
}

/* 滚动条美化 */
.ui-modal-body::-webkit-scrollbar,
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.ui-modal-body::-webkit-scrollbar-thumb,
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

.ui-modal-body::-webkit-scrollbar-track,
::-webkit-scrollbar-track {
    background: transparent;
    margin: 4px 0; /* 让滚动条短一点，不贴顶贴底 */
}

input:focus, select:focus, textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(15, 98, 254, 0.10);
}

button, .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 12px;
    padding: 12px 16px;
    background: var(--primary);
    color: #fff;
    font-weight: 800;
    cursor: pointer;
    transition: background-color .15s, color .15s, border-color .15s, transform .15s, box-shadow .15s;
    font-size: 14px;
    white-space: nowrap;
}

button:hover, .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(15, 23, 42, .08);
}

.btn-soft {
    background: #f3f4f6;
    color: var(--text);
}

.btn:hover {
    background: #0b57df;
}

.btn-soft:hover {
    background: #e5e7eb;
    color: var(--text);
}

.btn-copy {
    background: var(--primary);
    color: #fff;
}

.btn-copy:hover {
    opacity: 0.9;
    color: #fff;
}

.layout {
    display: flex;
    min-height: 100vh;
    max-width: 100%;
    overflow-x: hidden;
}

.sidebar {
    width: var(--sidebar-w);
    background: #0f172a;
    color: #fff;
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    transition: all .3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    white-space: nowrap;
}

.sidebar.collapsed {
    width: 50px;
}

.brand {
    height: 56px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 12px;
    font-weight: 900;
    font-size: 15px;
    color: #fff;
}

.sidebar.collapsed .brand span {
    display: none;
}

.nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 8px 6px;
    height: calc(100vh - 56px);
}

.nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 38px;
    padding: 0 10px;
    color: #94a3b8;
    border-radius: 10px;
    transition: background .15s, color .15s;
    font-size: 13px;
}

.nav a svg {
    min-width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.sidebar.collapsed .nav a span {
    display: none;
}

.nav a:hover, .nav a.active {
    background: rgba(255, 255, 255, .10);
    color: #fff;
}

.nav-footer-link {
    margin-top: auto;
    padding-top: 20px;
}

.danger-link {
    color: #f87171;
}

.main {
    margin-left: 140px;
    flex: 1;
    min-width: 0;
    max-width: 100%;
    padding: 22px;
    min-height: 100vh;
    overflow-x: hidden;
    transition: margin-left .3s cubic-bezier(0.4, 0, 0.2, 1);
}

.main.expanded {
    margin-left: 50px;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 24px;
}

.topbar-left, .topbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.page-heading {
    margin: 0;
    font-size: 18px;
}

#sidebar-toggle {
    background: #fff;
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: 10px;
    padding: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

#sidebar-toggle:hover {
    background: #f8fafc;
}

.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 14px;
    box-shadow: 0 10px 28px rgba(17, 24, 39, .04);
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
}

.card h3 {
    margin: 0 0 14px;
    font-size: 17px;
    font-weight: 800;
}

.search-bar,
.list-toolbar,
.table-toolbar,
.section-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.search-bar select {
    height: 42px;
    line-height: 42px;
    padding-top: 0;
    padding-bottom: 0;
    font-size: 15px;
}

.search-bar,
.table-toolbar,
.section-toolbar {
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #fff;
}

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

.toolbar-meta {
    color: var(--muted);
    font-size: 13px;
}

.time-range {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
}

.time-range input[type="date"],
.time-range input[type="datetime-local"] {
    height: 42px;
    padding: 0 12px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--text);
    font-size: 14px;
    font-family: inherit;
    font-weight: 500;
    min-width: 150px;
}

.time-range-sep {
    color: var(--muted);
    font-size: 13px;
    white-space: nowrap;
    line-height: 42px;
}

.btn-sm {
    padding: 8px 12px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 800;
}

.btn-danger-soft {
    background: #fff1f2;
    color: #e11d48;
}

.btn-danger-soft:hover {
    background: #ffe4e6;
    color: #be123c;
}

.batch-bar {
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 14px;
    padding: 12px 14px;
    border: 1px solid var(--border);
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .05);
}

.batch-bar strong {
    font-size: 14px;
}

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

.check-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
}

.table-wrap {
    width: 100%;
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #fff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9);
}

.grid {
    display: grid;
    gap: 20px;
}

.grid.two {
    grid-template-columns: repeat(2, 1fr);
}

.grid.three {
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 768px) {
    .grid.two, .grid.three {
        grid-template-columns: 1fr;
    }
}

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

.stat {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 24px;
    position: relative;
    overflow: hidden;
    transition: border-color .15s, box-shadow .15s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.stat:hover {
    border-color: #cbd5e1;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.stat span {
    display: block;
    color: var(--muted);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat strong {
    font-size: 32px;
    font-weight: 800;
    color: var(--text);
    display: block;
}

.stat-note {
    margin-top: 10px;
    font-size: 12px;
    color: var(--muted);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 24px 20px;
    margin-bottom: 24px;
}

@media (min-width: 1400px) {
    .dashboard-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.amount-badge {
    font-family: Consolas, monospace;
    font-weight: 700;
    color: #059669;
}

.activity-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 0;
    overflow: hidden;
}

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

.activity-card-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 800;
}

.activity-card-body {
    padding: 12px;
}

.activity-card-body .table-wrap {
    border: 0;
    border-radius: 14px;
    box-shadow: none;
}

.activity-card-body .table-wrap table {
    min-width: unset;
}

.activity-card-body .table-wrap th,
.activity-card-body .table-wrap td {
    padding: 10px 12px;
}

.activity-card-body .table-wrap th {
    background: #fbfdff;
}

.quick-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
}

.quick-links .btn {
    justify-content: flex-start;
    gap: 8px;
}

.activity-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 12px;
    border-radius: 12px;
    transition: background 0.2s;
}

.activity-item:hover {
    background: #f8fafc;
}

.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #f1f5f9;
    color: #334155;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

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

.activity-title {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 2px;
    display: block;
}

.activity-meta {
    font-size: 12px;
    color: var(--muted);
    display: flex;
    gap: 12px;
}

.activity-time {
    color: var(--muted);
    font-size: 12px;
    white-space: nowrap;
}

.table-wrap table {
    width: 100%;
    border-collapse: collapse;
    min-width: 720px;
}

.table-wrap th, .table-wrap td {
    padding: 12px;
    border-bottom: 1px solid #f1f5f9;
    text-align: left;
    vertical-align: middle;
}

.table-wrap th {
    background: #f9fafb;
    color: #64748b;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .04em;
    position: sticky;
    top: 0;
    z-index: 1;
}

.table-wrap tbody tr {
    transition: background .15s ease;
}

.table-wrap tbody tr:hover {
    background: #f8fbff;
}

.table-wrap tbody tr:last-child td {
    border-bottom: 0;
}

/* 操作记录表：标签不换行，过长内容省略，不产生页面横向滚动条 */
.table-wrap.table-logs-nowrap {
    max-width: 100%;
    overflow-x: hidden;
}

.table-logs-nowrap table {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
}

.table-logs-nowrap th,
.table-logs-nowrap td {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: middle;
}

.table-logs-nowrap code,
.table-logs-nowrap .badge {
    white-space: nowrap;
    flex-shrink: 0;
}

.table-logs-nowrap .log-cell-inline {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
}

.table-logs-nowrap .log-cell-inline .muted {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
    flex: 1;
}

.table-logs-nowrap td.col-detail {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 审计日志 7 列宽度分配 */
.table-audit-logs th:nth-child(1),
.table-audit-logs td:nth-child(1) { width: 52px; }
.table-audit-logs th:nth-child(2),
.table-audit-logs td:nth-child(2) { width: 108px; }
.table-audit-logs th:nth-child(3),
.table-audit-logs td:nth-child(3) { width: 16%; }
.table-audit-logs th:nth-child(4),
.table-audit-logs td:nth-child(4) { width: 16%; }
.table-audit-logs th:nth-child(5),
.table-audit-logs td:nth-child(5) { width: 118px; }
.table-audit-logs th:nth-child(6),
.table-audit-logs td:nth-child(6) { width: 148px; }
.table-audit-logs th:nth-child(7),
.table-audit-logs td:nth-child(7) { width: 28%; }

.badge {
    display: inline-flex;
    padding: 3px 9px;
    border-radius: 999px;
    background: #f3f4f6;
    color: #374151;
    font-size: 12px;
    font-weight: 900;
}

.badge-success {
    background: #ecfdf5;
    color: #059669;
}

.badge-danger {
    background: #fff1f2;
    color: #e11d48;
}

.actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

code {
    display: inline-flex;
    align-items: center;
    padding: 5px 8px;
    border-radius: 8px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #0f172a;
    font-family: Consolas, "SFMono-Regular", monospace;
    font-size: 12px;
}

input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--primary);
}

.table-empty {
    text-align: center;
    color: var(--muted);
    padding: 36px 20px;
}

.pagination,
.pager {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px dashed var(--border);
}

.pagination-links,
.pager-links {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.pagination a,
.pagination span,
.pager a,
.pager span {
    min-width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--text);
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.pagination a:hover,
.pager a:hover {
    background: #eff6ff;
    border-color: #bfdbfe;
}

.pagination .active,
.pager .active {
background: var(--primary);
border-color: var(--primary);
color: #fff;
}

.pagination {
display: flex;
align-items: center;
justify-content: space-between;
margin-top: 24px;
padding-top: 16px;
border-top: 1px dashed var(--border);
flex-wrap: wrap;
gap: 16px;
}

.pagination-info {
font-size: 13px;
color: var(--muted);
}

.pagination-links {
display: flex;
align-items: center;
gap: 6px;
}

.pagination-item {
min-width: 32px;
height: 32px;
display: inline-flex;
align-items: center;
justify-content: center;
padding: 0 10px;
border-radius: 8px;
border: 1px solid var(--border);
background: #fff;
color: var(--text);
font-size: 13px;
font-weight: 600;
transition: all .2s;
text-decoration: none;
}

.pagination-item:hover {
border-color: var(--primary);
color: var(--primary);
background: #eff6ff;
}

.pagination-item.active {
background: var(--primary);
border-color: var(--primary);
color: #fff;
}

.pagination-ellipsis {
color: var(--muted);
padding: 0 4px;
}

.sidebar-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.4); z-index: 999; }
.sidebar-overlay.active { display: block; }

@media (max-width: 768px) {
    body {
        overflow-x: hidden;
    }

    .table-wrap table {
        min-width: 600px;
    }

    .table-wrap.table-logs-nowrap table {
        min-width: 0;
    }

    .sidebar {
        transform: translateX(-100%);
        width: 172px;
        position: fixed;
        inset: 0 auto 0 0;
        z-index: 1000;
        transition: transform .3s ease;
        box-shadow: none;
    }

    .sidebar.open {
        transform: translateX(0);
        box-shadow: 4px 0 24px rgba(0,0,0,0.15);
    }

    .sidebar.collapsed {
        width: 172px;
    }

    .sidebar.collapsed .nav a span,
    .sidebar.collapsed .brand span {
        display: inline;
    }

    .main {
        margin-left: 0 !important;
        padding: 16px;
        min-width: 0;
    }

    .main.expanded {
        margin-left: 0 !important;
    }

    .table-wrap {
        max-width: 100%;
    }

    .search-bar,
    .list-toolbar,
    .table-toolbar,
    .section-toolbar,
    .batch-bar,
    .pagination,
    .pager {
        align-items: stretch;
    }

    .search-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .search-bar > form {
        width: 100%;
        flex: 1 1 auto;
        flex-wrap: wrap !important;
        min-width: 0 !important;
    }

    .search-bar input,
    .search-bar select {
        width: 100% !important;
        min-width: 0 !important;
        flex: 1 1 100%;
    }

    .search-bar button,
    .search-bar a.btn {
        flex: 0 0 auto;
    }

    .time-range {
        width: 100%;
        flex-wrap: wrap;
    }

    .time-range input[type="date"],
    .time-range input[type="datetime-local"] {
        width: 100% !important;
        min-width: 0 !important;
        flex: 1 1 100%;
    }

    .time-range-sep {
        line-height: 1.2;
        padding: 2px 0;
    }
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px 20px;
    margin-bottom: 24px;
}
.stat-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    transition: all 0.2s;
}
.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 20px -10px rgba(0,0,0,0.1);
}
.stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.stat-content {
    flex: 1;
    min-width: 0;
}
.stat-label {
    display: block;
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 4px;
    font-weight: 600;
}
.stat-value {
    display: block;
    font-size: 24px;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.2;
}
.stat-delta {
    margin-top: 8px;
    font-size: 12px;
    color: var(--muted);
}
@media (max-width: 1200px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .stats-grid { grid-template-columns: 1fr; }
}

.settings-section h3 { font-weight: 600; }
.selectable-option {
    cursor: pointer;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 16px;
    transition: all 0.2s;
    background: var(--bg-white);
}
.selectable-option:hover { border-color: var(--primary); background: var(--primary-light); }
.selectable-option.active {
    border-color: var(--primary);
    background: var(--primary-light);
    box-shadow: 0 0 0 2px rgba(var(--primary-rgb), 0.1);
}
.option-title { font-weight: 600; margin-bottom: 6px; color: var(--text-dark); }
.option-desc { font-size: 12px; color: var(--text-muted); line-height: 1.5; }

.switch-toggle { position: relative; display: inline-block; width: 46px; height: 24px; }
.switch-toggle input { opacity: 0; width: 0; height: 0; }
.switch-slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #e2e8f0; transition: .3s; border-radius: 24px; }
.switch-slider:before { position: absolute; content: ""; height: 18px; width: 18px; left: 3px; bottom: 3px; background-color: white; transition: .3s; border-radius: 50%; box-shadow: 0 1px 3px rgba(0,0,0,0.1); }
input:checked + .switch-slider { background-color: var(--primary); }
input:checked + .switch-slider:before { transform: translateX(22px); }
