:root {
    --green: #00e676;
    --blue: #2979ff;
    --red: #ff4444;
    --amber: #ffab00;
    --bg: #030303;
    --card: #0d0d0d;
    --card2: #141414;
    --border: #1e1e1e;
    --muted: #555;
    --text: #fff;
}

:root.light-mode {
    --green: #00b248;
    /* Darker green */
    --blue: #1a56d6;
    /* Darker blue */
    --red: #dc2626;
    /* Darker red */
    --amber: #d97706;
    /* Darker amber */
    --bg: #f3f4f6;
    /* Light gray background */
    --card: #ffffff;
    /* White cards */
    --card2: #f9fafb;
    /* Off-white */
    --border: #e5e7eb;
    /* Light border */
    --muted: #6b7280;
    /* Gray text */
    --text: #111827;
    /* Dark text */
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.hidden {
    display: none !important;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Nunito', sans-serif;
    min-height: 100vh;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: linear-gradient(rgba(0, 230, 118, 0.02) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 230, 118, 0.02) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: 0;
}

.page {
    position: relative;
    z-index: 1;
    display: none;
    flex-direction: column;
    min-height: 100vh;
}

.page.active {
    display: flex;
}

/* NAV */
.nav {
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
    background: rgba(3, 3, 3, 0.96);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 10;
}

.nav-logo {
    font-family: 'Teko', sans-serif;
    font-size: 22px;
    letter-spacing: 2px;
    color: var(--green);
    cursor: pointer;
}

.nav-logo span {
    color: var(--text);
}

.live-count {
    font-size: 12px;
    color: var(--red);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 5px;
}

.live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--red);
    animation: blink 1.2s infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1
    }

    50% {
        opacity: 0.2
    }
}

/* SEARCH */
.search-wrap {
    padding: 14px 20px;
    background: var(--card);
    border-bottom: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.search-row {
    display: flex;
    gap: 8px;
    align-items: stretch;
}

.search-input {
    flex: 1;
    padding: 11px 14px;
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: 10px;
    font-size: 14px;
    font-family: 'Nunito', sans-serif;
    outline: none;
    transition: border-color 0.2s;
    height: 44px;
}

.search-input:focus {
    border-color: var(--green);
}

.search-input::placeholder {
    color: var(--muted);
}

.btn-search {
    padding: 0 18px;
    background: var(--green);
    color: #000;
    border: none;
    border-radius: 10px;
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: 14px;
    cursor: pointer;
    white-space: nowrap;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-clear {
    padding: 11px 14px;
    background: var(--card2);
    border: 1px solid var(--border);
    color: var(--muted);
    border-radius: 10px;
    font-size: 14px;
    cursor: pointer;
    display: none;
}

.search-hint {
    font-size: 12px;
    color: var(--muted);
    padding: 0 2px;
}

.search-hint b {
    color: #555;
    font-family: 'Share Tech Mono', monospace;
}

/* MATCHES LIST */
.matches-body {
    flex: 1;
    padding: 20px;
    max-width: 760px;
    margin: 0 auto;
    width: 100%;
}

.page-title {
    font-family: 'Teko', sans-serif;
    font-size: 32px;
    letter-spacing: 2px;
    color: var(--text);
    margin-bottom: 2px;
}

.page-sub {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 20px;
}

.section-label {
    font-size: 11px;
    color: var(--muted);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 12px;
    display: block;
}

.match-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}

/* MATCH CARD */
.mc {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 16px;
    cursor: pointer;
    transition: transform 0.15s, border-color 0.2s, box-shadow 0.2s;
    position: relative;
    overflow: hidden;
}

.mc::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
}

.mc.live::before {
    background: linear-gradient(90deg, var(--red), var(--amber));
}

.mc.done::before {
    background: linear-gradient(90deg, #333, #222);
}

.mc:hover {
    transform: translateY(-3px);
    border-color: #333;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.mc-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.mc-teams {
    font-family: 'Teko', sans-serif;
    font-size: 20px;
    letter-spacing: 1px;
    color: white;
}

.mc-badge {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 3px 8px;
    border-radius: 10px;
    white-space: nowrap;
}

.badge-live {
    background: rgba(255, 68, 68, 0.15);
    color: var(--red);
    border: 1px solid rgba(255, 68, 68, 0.3);
}

.badge-done {
    background: rgba(100, 100, 100, 0.1);
    color: var(--muted);
    border: 1px solid #2a2a2a;
}

.mc-score {
    font-family: 'Share Tech Mono', monospace;
    font-size: 22px;
    color: var(--green);
    margin-bottom: 4px;
}

.mc-overs {
    font-size: 12px;
    color: var(--muted);
}

.mc-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--border);
    font-size: 11px;
    color: var(--muted);
}

.mc-id {
    font-family: 'Share Tech Mono', monospace;
    font-size: 10px;
    color: #333;
    margin-top: 5px;
}

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

.empty-icon {
    font-size: 56px;
    margin-bottom: 16px;
}

.empty-title {
    font-family: 'Teko', sans-serif;
    font-size: 24px;
    color: var(--text);
    letter-spacing: 1px;
}

.no-results {
    text-align: center;
    padding: 40px 20px;
}

/* LIVE SCORE PAGE */
.live-body {
    flex: 1;
    padding: 12px 12px 40px;
    max-width: 520px;
    margin: 0 auto;
    width: 100%;
}

.back-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 4px;
    margin-bottom: 8px;
    cursor: pointer;
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
}

.back-bar:hover {
    color: white;
}

.live-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.live-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 68, 68, 0.1);
    border: 1px solid rgba(255, 68, 68, 0.3);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    color: var(--red);
}

.updated-tag {
    font-size: 11px;
    color: var(--muted);
}

/* HERO CARD */
.hero-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 10px;
    position: relative;
    overflow: hidden;
}

.hero-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--green), var(--blue));
}

.hero-team-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 6px;
}

.hero-team {
    font-family: 'Teko', sans-serif;
    font-size: 18px;
    letter-spacing: 2px;
    color: var(--amber);
}

.hero-inn {
    font-size: 11px;
    color: var(--muted);
    margin-top: 2px;
}

.hero-crr {
    font-family: 'Share Tech Mono', monospace;
    font-size: 12px;
    color: var(--muted);
    text-align: right;
}

.so-badge {
    background: rgba(255, 171, 0, 0.15);
    border: 1px solid rgba(255, 171, 0, 0.4);
    color: var(--amber);
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    display: inline-block;
    margin-top: 2px;
}

.big-score {
    font-family: 'Teko', sans-serif;
    font-size: 78px;
    font-weight: 600;
    line-height: 1;
    text-align: center;
    margin: 4px 0;
}

.big-score .wkts {
    font-size: 50px;
    color: var(--muted);
}

.overs-txt {
    text-align: center;
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 8px;
}

.freehit-bar {
    background: rgba(255, 171, 0, 0.12);
    border: 1px solid rgba(255, 171, 0, 0.4);
    color: var(--amber);
    text-align: center;
    padding: 7px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 8px;
    animation: fhp 1s infinite;
}

@keyframes fhp {

    0%,
    100% {
        opacity: 1
    }

    50% {
        opacity: 0.6
    }
}

.target-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(41, 121, 255, 0.08);
    border: 1px solid rgba(41, 121, 255, 0.25);
    border-radius: 10px;
    padding: 10px 14px;
    margin-top: 8px;
}

.t-need {
    font-family: 'Teko', sans-serif;
    font-size: 20px;
    color: white;
}

.t-rrr {
    font-family: 'Share Tech Mono', monospace;
    font-size: 12px;
    color: var(--red);
    text-align: right;
}

.part-row {
    display: flex;
    justify-content: center;
    gap: 24px;
    padding-top: 10px;
    margin-top: 10px;
    border-top: 1px solid var(--border);
    font-size: 13px;
    color: var(--muted);
}

.part-row b {
    color: white;
}

/* MATCH ID BADGE */
.match-id-bar {
    text-align: center;
    margin-bottom: 10px;
}

.match-id-chip {
    font-family: 'Share Tech Mono', monospace;
    font-size: 11px;
    color: #444;
    background: var(--card2);
    border: 1px solid var(--border);
    padding: 4px 12px;
    border-radius: 20px;
    display: inline-block;
}

/* TABS */
.view-tabs {
    display: flex;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 4px;
    gap: 4px;
    margin-bottom: 10px;
}

.view-tab {
    flex: 1;
    padding: 9px 4px;
    background: transparent;
    color: var(--muted);
    font-weight: 700;
    font-size: 12px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-family: 'Nunito', sans-serif;
    transition: all 0.15s;
}

.view-tab.active {
    background: var(--blue);
    color: white;
}

/* SEC CARDS */
.sec-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 10px;
}

.sec-title {
    padding: 10px 14px;
    font-size: 11px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--muted);
    border-bottom: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.015);
}

/* BATTING ROWS */
.bat-row {
    display: flex;
    align-items: center;
    padding: 12px 14px;
    border-bottom: 1px solid var(--border);
}

.bat-row:last-child {
    border-bottom: none;
}

.bat-active {
    background: rgba(0, 230, 118, 0.05);
    border-left: 3px solid var(--green);
}

.bat-arrow {
    width: 20px;
    font-size: 13px;
    flex-shrink: 0;
    color: var(--green);
}

.bat-name {
    flex: 1;
    font-size: 15px;
    font-weight: 600;
    color: #ddd;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

.bat-stats {
    font-family: 'Share Tech Mono', monospace;
    text-align: right;
}

.bat-runs {
    font-size: 22px;
    font-weight: 700;
    color: white;
}

.bat-balls {
    font-size: 11px;
    color: var(--muted);
}

.bat-extra {
    font-size: 11px;
    color: var(--amber);
    margin-top: 1px;
}

.bowl-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
    border-bottom: 1px solid var(--border);
}

.bowl-row:last-child {
    border-bottom: none;
}

.bowl-name {
    font-size: 15px;
    font-weight: 600;
    color: #ddd;
}

.bowl-sub {
    font-size: 11px;
    color: var(--muted);
    margin-top: 2px;
}

.bowl-fig {
    font-family: 'Share Tech Mono', monospace;
    font-size: 18px;
    font-weight: 700;
    color: white;
}

/* BALL DISPLAY */
.log-inner {
    display: flex;
    flex-direction: row-reverse;
    gap: 6px;
    padding: 12px;
    overflow-x: auto;
    scrollbar-width: none;
}

.log-inner::-webkit-scrollbar {
    display: none;
}

.ball {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Share Tech Mono', monospace;
    font-size: 11px;
    font-weight: 700;
    flex-shrink: 0;
    border: 1px solid #222;
    background: #0a0a0a;
    color: #444;
}

.b-4 {
    background: rgba(41, 121, 255, 0.2);
    border-color: var(--blue);
    color: #7ab4ff;
}

.b-6 {
    background: rgba(0, 230, 118, 0.15);
    border-color: var(--green);
    color: var(--green);
}

.b-wkt {
    background: rgba(255, 68, 68, 0.2);
    border-color: var(--red);
    color: var(--red);
}

.b-ext {
    background: rgba(255, 171, 0, 0.12);
    border-color: var(--amber);
    color: var(--amber);
}

.b-run {
    color: white;
}

.ext-row {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 10px 14px;
    flex-wrap: wrap;
    border-top: 1px solid var(--border);
}

.ext-chip {
    font-family: 'Share Tech Mono', monospace;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 6px;
    background: #0a0a0a;
    border: 1px solid var(--border);
    color: var(--muted);
}

.ext-chip b {
    color: white;
}

.fow-list {
    padding: 10px 14px;
    font-size: 12px;
    color: var(--muted);
    line-height: 2;
}

/* TIMELINE */
.timeline {
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 400px;
    overflow-y: auto;
}

.tl-over {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.tl-over-hdr {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: var(--muted);
    letter-spacing: 1px;
    text-transform: uppercase;
    font-family: 'Share Tech Mono', monospace;
    padding: 6px 0 4px;
    border-top: 1px solid var(--border);
    margin-top: 2px;
}

.tl-over-hdr:first-child {
    border-top: none;
}

.tl-over-sum {
    font-size: 11px;
    color: #444;
}

.tl-balls {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

/* SCORECARD TABLE */
.sc-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.sc-table th {
    color: var(--muted);
    font-size: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 8px 10px;
    text-align: left;
    border-bottom: 1px solid var(--border);
    font-weight: 400;
}

.sc-table th.r {
    text-align: right;
}

.sc-table td {
    padding: 10px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    color: #ccc;
}

.sc-table td.r {
    text-align: right;
    font-family: 'Share Tech Mono', monospace;
    color: white;
}

.sc-table tr:last-child td {
    border-bottom: none;
}

.sc-batting .bat-nm {
    font-weight: 700;
    color: white;
}

.sc-batting .dismissal {
    font-size: 11px;
    color: var(--muted);
    margin-top: 2px;
}

.sc-highlight td {
    background: rgba(0, 230, 118, 0.04);
}

.sc-total {
    font-family: 'Share Tech Mono', monospace;
    font-size: 13px;
    color: var(--green);
    padding: 10px 14px;
    border-top: 1px solid var(--border);
}

/* STATUS SCREENS */
.status-screen {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
    gap: 16px;
    flex: 1;
}

.status-screen.active {
    display: flex;
}

.status-icon {
    font-size: 60px;
    animation: bounce 1.5s infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0)
    }

    50% {
        transform: translateY(-10px)
    }
}

.status-title {
    font-family: 'Teko', sans-serif;
    font-size: 26px;
    color: white;
    letter-spacing: 2px;
}

.status-sub {
    font-size: 13px;
    color: var(--muted);
    max-width: 260px;
    line-height: 1.7;
}

.result-banner {
    font-family: 'Teko', sans-serif;
    font-size: 32px;
    color: var(--green);
    letter-spacing: 2px;
}

/* SHARE BTN */
.share-btn {
    background: rgba(37, 211, 102, 0.1);
    border: 1px solid rgba(37, 211, 102, 0.3);
    color: #25d366;
    padding: 12px 20px;
    border-radius: 10px;
    font-family: 'Nunito', sans-serif;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-top: 8px;
}

.share-btn:hover {
    background: rgba(37, 211, 102, 0.2);
}

/* ══════════════ DESKTOP OPTIMIZATIONS ══════════════ */
@media(min-width: 900px) {

    /* Matches Page */
    .matches-body {
        max-width: 1000px;
        /* Wider for 3 columns */
    }

    .match-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        /* Works perfectly for 3 cols on 1000px */
    }

    /* Live Score Page */
    .live-body {
        max-width: 760px;
        /* Wider live scorecard */
    }

    #viewLive {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
        align-items: start;
    }

    /* Target the specific cards using the new classes */
    .bat-card {
        grid-column: 1 / 2;
        margin-bottom: 0;
    }

    .bowl-card {
        grid-column: 2 / 3;
        margin-bottom: 0;
    }

    .over-card,
    .fow-card {
        grid-column: 1 / -1;
        margin-bottom: 0;
    }
}

/* ══════════════════════════════════════════
   ANALYTICS SECTION
   ══════════════════════════════════════════ */

.analytics-section {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 12px;
}

.analytics-title {
    padding: 12px 14px 4px;
    font-family: 'Teko', sans-serif;
    font-size: 18px;
    letter-spacing: 1px;
    color: white;
}

.analytics-subtitle {
    padding: 0 14px 10px;
    font-size: 11px;
    color: var(--muted);
    border-bottom: 1px solid var(--border);
}

.chart-container {
    padding: 12px;
    width: 100%;
}

.chart-container canvas {
    width: 100% !important;
    display: block;
}

/* ── Win Predictor ── */
.wp-card {
    padding: 16px;
}

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

.wp-label {
    font-family: 'Teko', sans-serif;
    font-size: 18px;
    letter-spacing: 2px;
    color: white;
}

.wp-live {
    font-size: 10px;
    font-weight: 700;
    color: var(--red);
    animation: blink 1.2s infinite;
}

.wp-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.wp-team {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.wp-team-name {
    font-family: 'Teko', sans-serif;
    font-size: 16px;
    letter-spacing: 1px;
    color: #ccc;
}

.wp-pct {
    font-family: 'Share Tech Mono', monospace;
    font-size: 28px;
    font-weight: 700;
}

.wp-bar-track {
    width: 100%;
    height: 10px;
    background: rgba(41, 121, 255, 0.2);
    border-radius: 5px;
    overflow: hidden;
    position: relative;
}

.wp-bar-fill {
    height: 100%;
    border-radius: 5px;
    transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.wp-bar-bat {
    background: linear-gradient(90deg, #00e676, #00c853);
    box-shadow: 0 0 12px rgba(0, 230, 118, 0.4);
}

.wp-factors {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid var(--border);
    font-family: 'Share Tech Mono', monospace;
    font-size: 11px;
    color: var(--muted);
}

.wp-inactive {
    text-align: center;
    padding: 28px 16px;
}

/* ── Responsive Analytics ── */
@media (min-width: 900px) {
    #viewAnalytics {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    #viewAnalytics>*:first-child {
        grid-column: 1 / -1;
    }
}

/* ── Theme Switch ── */
.theme-switch {
    display: inline-block;
    position: relative;
    width: 60px;
    height: 32px;
    margin: 0 4px;
    vertical-align: middle;
}

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

.theme-switch .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #2a2a2a;
    transition: .4s;
    border-radius: 32px;
    border: 1px solid #444;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 6px;
    box-sizing: border-box;
}

.theme-switch:hover .slider {
    border-color: var(--blue);
}

.theme-switch .slider:before {
    position: absolute;
    content: "";
    height: 24px;
    width: 24px;
    left: 3px;
    bottom: 3px;
    background-color: #e0e0e0;
    transition: .4s;
    border-radius: 50%;
    z-index: 2;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.theme-switch input:checked + .slider {
    background-color: #e5e7eb;
    border-color: #ccc;
}

.theme-switch input:checked + .slider:before {
    transform: translateX(28px);
    background-color: #2a2a2a;
}

.theme-switch .icon {
    font-size: 14px;
    z-index: 1;
    user-select: none;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
}

@media (max-width: 420px) {
    .nav {
        padding: 10px 12px;
    }
    .nav-logo {
        font-size: 20px;
    }
    .nav-right {
        gap: 8px !important;
    }
    .theme-switch {
        width: 50px;
        height: 28px;
    }
    .theme-switch .slider:before {
        height: 20px;
        width: 20px;
    }
    .theme-switch input:checked + .slider:before {
        transform: translateX(24px);
    }
    .theme-switch .icon {
        font-size: 12px;
        width: 16px;
    }
}