* {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #eef1f5;
    color: #333;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 20px;
}

header {
    background-color: #1e2a38;
    color: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 10px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
}

/* World Boost Banner Styles */
.boost-banner {
    background: linear-gradient(135deg, #1a1c2c 0%, #4a192c 100%);
    color: white;
    padding: 12px 24px;
    border-radius: 12px;
    margin-bottom: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 0 0 20px rgba(231, 76, 60, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: slideDown 0.5s ease-out, pulse-glow 3s infinite;
    overflow: hidden;
    position: relative;
}

.boost-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    animation: shine 4s infinite linear;
}

.boost-content {
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
    z-index: 1;
}

.boost-icon-wrapper {
    position: relative;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.boost-icon {
    font-size: 24px;
    color: #ff4757;
    filter: drop-shadow(0 0 8px rgba(255, 71, 87, 0.6));
    animation: rocket-float 2s infinite ease-in-out;
}

.boost-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(255, 71, 87, 0.2);
    border-radius: 50%;
    filter: blur(10px);
    animation: pulse-glow 2s infinite;
}

.boost-text-container {
    display: flex;
    flex-direction: column;
}

#boost-message {
    font-size: 1.1em;
    font-weight: 500;
    letter-spacing: 0.5px;
}

#boost-message strong {
    color: #ff4757;
    text-transform: uppercase;
}

.boost-timer {
    font-family: 'Orbitron', 'JetBrains Mono', monospace;
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 2px;
}

@keyframes slideDown {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }

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

@keyframes shine {
    to {
        left: 200%;
    }
}

@keyframes rocket-float {

    0%,
    100% {
        transform: translateY(0) rotate(-5deg);
    }

    50% {
        transform: translateY(-5px) rotate(5deg);
    }
}

@keyframes pulse-glow {

    0%,
    100% {
        opacity: 0.5;
    }

    50% {
        opacity: 0.8;
    }
}

header h1 {
    margin: 0;
    font-size: 28px;
    font-weight: 600;
}

.stats-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-3px);
}

.stat-card h3 {
    font-size: 16px;
    margin-bottom: 10px;
    color: #666;
}

.stat-value {
    font-size: 28px;
    font-weight: bold;
    color: #3498db;
}

.channels-container,
.users-container,
.characters-container,
.smobs-container,
.metins-container,
.achievements-container,
.dps-container,
.market-container {
    background-color: white;
    border-radius: 8px;
    border-top-left-radius: 0;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

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

.wave-timer {
    background-color: #34495e;
    color: #f1c40f;
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 18px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.mob-status-alive {
    background-color: #2ecc71;
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 12px;
}

.mob-status-dead {
    background-color: #e74c3c;
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 12px;
}

.respawn-timer {
    font-family: monospace;
    font-weight: bold;
    color: #2980b9;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

th,
td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
    border-right: 1px solid #f0f0f0;
    /* Subtle vertical separator */
    font-size: 14px;
}

th:last-child,
td:last-child {
    border-right: none;
}


th {
    background-color: #fafafa;
    font-weight: 600;
    color: #555;
}

/* Center-align all columns in characters table */
#characters-table th,
#characters-table td {
    text-align: center;
}

tr:hover {
    background-color: #f9f9f9;
}

.sortable {
    cursor: pointer;
    user-select: none;
    position: relative;
}

.sortable:hover {
    background-color: #f0f0f0 !important;
}

.sortable i {
    font-size: 0.8em;
    margin-left: 5px;
    color: #ccc;
}

.responsive-table {
    container-type: inline-size;
}

@media (max-width: 768px) {

    table,
    thead,
    tbody,
    th,
    td,
    tr {
        display: block;
    }

    thead {
        display: none;
    }

    tr {
        margin-bottom: 15px;
        border: 1px solid #ccc;
        border-radius: 6px;
        padding: 10px;
        background-color: white;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
    }

    td {
        position: relative;
        padding-left: 50%;
        text-align: left;
        border: none;
        border-bottom: 1px solid #eee;
        border-right: none;
        /* Remove vertical separator on mobile */
        font-size: 13px;
    }


    td::before {
        content: attr(data-label);
        position: absolute;
        left: 15px;
        top: 12px;
        font-weight: bold;
        color: #666;
        white-space: nowrap;
    }
}

.level-badge,
.vocation-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    color: white;
    text-transform: capitalize;
}

.kills-badge {
    background-color: #f39c12;
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: bold;
    display: inline-block;
}

.vocation-knight {
    background-color: #c0392b;
}

.vocation-paladin {
    background-color: #27ae60;
}

.vocation-sorcerer {
    background-color: #8e44ad;
}

.vocation-druid {
    background-color: #2980b9;
}

.vocation-none {
    background-color: #7f8c8d;
}

.refresh-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 10px;
}

#refresh-interval {
    width: 60px;
    padding: 6px;
    text-align: center;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.refresh-btn {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

.refresh-btn:hover {
    background-color: #2980b9;
}

.hard-refresh-btn {
    background-color: #e74c3c;
    margin-left: 5px;
}

.hard-refresh-btn:hover {
    background-color: #c0392b;
}

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

.filter-btn {
    padding: 8px 16px;
    border: 1px solid #3498db;
    background-color: transparent;
    color: #3498db;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
    font-size: 13px;
}

.filter-btn.active {
    background-color: #3498db;
    color: white;
}

.filter-btn:hover {
    background-color: #2980b9;
    border-color: #2980b9;
    color: white;
}

.info-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    font-size: 14px;
    margin-top: 10px;
    padding: 5px 10px;
    border-top: 1px solid #444;
    color: #888;
}

.info-left,
.info-right {
    white-space: nowrap;
}

@media (max-width: 500px) {
    .info-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .info-left,
    .info-right {
        width: 100%;
    }
}

.ws-uptime {
    cursor: help;
}

.last-updated {
    font-size: 13px;
    text-align: right;
    margin-bottom: 20px;
}

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

.tab {
    padding: 10px 20px;
    background-color: #e1e5ea;
    border-radius: 6px 6px 0 0;
    cursor: pointer;
    font-weight: 500;
}

.tab.active {
    background-color: white;
    border-bottom: 2px solid white;
}

@media (max-width: 500px) {
    .tabs {
        flex-direction: column;
        gap: 10px;
        margin-bottom: 10px;
    }

    .tab {
        border-radius: 6px;
        text-align: center;
    }
}

.tab-content {
    display: none;
}

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

.hp-bar,
.mana-bar,
.exp-bar {
    height: 8px;
    width: 100%;
    background-color: #ecf0f1;
    border-radius: 4px;
    overflow: hidden;
    margin-top: 5px;
}

.hp-bar-fill {
    background-color: #e74c3c;
    height: 100%;
}

.mana-bar-fill {
    background-color: #3498db;
    height: 100%;
}

.exp-bar-fill {
    background-color: #f39c12;
    height: 100%;
}

.progress-container {
    width: 160px;
    margin: 0 auto;
    /* Center stats bars */
}

.progress-label {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    margin-top: 2px;
    color: #666;
}

h2 {
    margin: 6px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.collapsible-header {
    cursor: pointer;
    user-select: none;
    transition: color 0.2s;
}

.collapsible-header:hover {
    color: #3498db;
}

.collapsible-header::after {
    content: '\f078';
    /* fa-chevron-down */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.6em;
    transition: transform 0.3s ease;
    margin-left: auto;
}

.collapsible-header.collapsed::after {
    transform: rotate(-90deg);
}

.collapsible-content {
    max-height: 5000px;
    /* Large enough for any section */
    overflow: hidden;
    transition: max-height 0.4s ease-out, opacity 0.3s, margin 0.3s;
    opacity: 1;
}

.collapsible-content.collapsed {
    max-height: 0;
    opacity: 0;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    pointer-events: none;
}

.status-on {
    background-color: #2ecc71;
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: bold;
}

.status-off {
    background-color: #95a5a6;
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
}

.bots-container {
    display: flex;
    gap: 4px;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    /* Center bots badges */
    min-width: 185px;
}

.target-cell {
    min-width: 160px;
    color: #c0392b;
    font-weight: bold;
    max-width: 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    line-height: 1.2;
}

.target-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.target-hp {
    color: #7f8c8d;
    font-size: 0.85em;
    font-weight: normal;
}

.status-on,
.status-off {
    white-space: nowrap;
    display: inline-block;
    text-align: center;
    min-width: 45px;
}

.pz-icon {
    color: #3498db;
    font-weight: bold;
    font-size: 12px;
}

.skull-icon {
    font-size: 12px;
    margin-left: 5px;
}

.bless-icon {
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: bold;
    margin-left: 5px;
    display: inline-block;
}

.bless-icon.full-bless {
    color: #f1c40f;
    background-color: rgba(241, 196, 15, 0.1);
    border: 1px solid rgba(241, 196, 15, 0.3);
}

.bless-icon.no-bless {
    color: #e74c3c;
    background-color: rgba(231, 76, 60, 0.1);
    border: 1px solid rgba(231, 76, 60, 0.3);
}

.vocation-badge {
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 11px;
    color: white;
    font-weight: 600;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.2);
    display: inline-block;
    min-width: 60px;
    text-align: center;
    background-color: #34495e;
    /* Default dark background for unknown vocs */
}

.level-badge {
    padding: 3px 6px;
    border-radius: 4px;
    color: white;
    font-weight: bold;
    font-size: 12px;
    display: inline-block;
}

/* Vocation specific colors - matching DBKO vibes */
.vocation-goku {
    background-color: #e67e22;
}

.vocation-vegeta {
    background-color: #2980b9;
}

.vocation-gohan {
    background-color: #8e44ad;
}

.vocation-trunks {
    background-color: #9b59b6;
}

.vocation-cell {
    background-color: #27ae60;
}

.vocation-frieza {
    background-color: #7f8c8d;
}

.vocation-piccolo {
    background-color: #2ecc71;
}

.vocation-buu {
    background-color: #ff9ff3;
}

.vocation-brolly {
    background-color: #16a085;
}

.vocation-uub {
    background-color: #d35400;
}

.vocation-reacoom {
    background-color: #e74c3c;
}

.vocation-kuririn {
    background-color: #f1c40f;
    color: #2c3e50;
}

/* Expanded DBKO Vocations */
.vocation-beerus {
    background-color: #5d3fd3;
}

.vocation-bardock {
    background-color: #2f4f4f;
}

.vocation-jiren {
    background-color: #c0392b;
}

.vocation-wis {
    background-color: #87ceeb;
    color: #2c3e50;
}

.vocation-usopp {
    background-color: #f1c40f;
    color: #2c3e50;
}

.vocation-vegetto {
    background-color: #2980b9;
}

.vocation-janemba {
    background-color: #e91e63;
}

.vocation-cooler {
    background-color: #4b0082;
}

.vocation-baby {
    background-color: #f39c12;
}

.vocation-gotenks {
    background-color: #f1c40f;
    color: #2c3e50;
}

.vocation-shenron {
    background-color: #006400;
}

.vocation-none {
    background-color: #7f8c8d;
}

.exp-speed {
    font-size: 11px;
    color: #27ae60;
    font-weight: bold;
}

.tnl {
    font-size: 10px;
    color: #7f8c8d;
    display: block;
}

.progress-label span:last-child {
    font-weight: bold;
}

.dps-value {
    font-size: 14px;
    margin-bottom: 2px;
}

.dps-avg {
    color: #666;
}

.max-hit {
    font-weight: 500;
    margin-top: 2px;
}

/* Statistics Section */
.statistics-section {
    background: #2a2a2a;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.statistics-section .tracker-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.filters {
    display: flex;
    gap: 15px;
}

.filters select,
.filters input {
    background: #333;
    color: #eee;
    border: 1px solid #444;
    padding: 8px 12px;
    border-radius: 4px;
    outline: none;
}

.filters select {
    cursor: pointer;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.stat-mob-card {
    background: #333;
    border-radius: 6px;
    padding: 15px;
    border-left: 4px solid #f1c40f;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.stat-mob-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    border-bottom: 1px solid #444;
    padding-bottom: 8px;
}

.stat-mob-name {
    font-weight: bold;
    color: #f1c40f;
    font-size: 1.1em;
}

.stat-mob-count {
    background: #222;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 0.9em;
    color: #eee;
    font-weight: bold;
}

.loot-list {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.9em;
}

.loot-item {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px dashed #3a3a3a;
}

.loot-item:last-child {
    border-bottom: none;
}

.loot-name {
    color: #ccc;
}

.loot-count {
    color: #3498db;
    font-weight: bold;
}

.no-data-msg {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    color: #7f8c8d;
    font-style: italic;
    background: #222;
    border-radius: 6px;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.modal-content {
    background-color: #2c3e50;
    color: white;
    margin: 5vh auto;
    padding: 0;
    border-radius: 12px;
    width: 50%;
    max-width: 500px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    /* This covers both x and y, but mostly helps with x here */
}

.modal-header {
    padding: 15px 20px;
    background-color: #1a252f;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #34495e;
}

.modal-header h2 {
    margin: 0 !important;
    font-size: 1.25rem;
}

.modal-search {
    padding: 10px 20px;
    background-color: #1a252f;
    border-bottom: 1px solid #34495e;
}

#config-search {
    width: 100%;
    padding: 10px 15px;
    background: #34495e;
    border: 1px solid #2c3e50;
    border-radius: 6px;
    color: white;
    font-family: inherit;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s;
}

#config-search:focus {
    border-color: #3498db;
}

.close-modal {
    cursor: pointer;
    font-size: 1.5rem;
    font-weight: bold;
    color: #95a5a6;
    transition: color 0.2s;
}

.close-modal:hover {
    color: white;
}

.modal-body {
    padding: 20px;
    max-height: 85vh;
    overflow-y: auto;
    overflow-x: hidden;
    /* No more horizontal scroll */
}

.config-item {
    background: #34495e;
    padding: 12px 15px;
    margin-bottom: 8px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.config-item:hover {
    background: #3e5871;
}

.config-item-name {
    font-weight: 500;
}

.config-item-size {
    font-size: 0.8rem;
    color: #bdc3c7;
}

.clickable {
    cursor: pointer;
    transition: filter 0.2s;
}

.clickable:hover {
    filter: brightness(1.2);
}

.config-item.hidden {
    display: none;
}

.current-config-info {
    background: #1a252f;
    padding: 10px 15px;
    margin-bottom: 15px;
    border-radius: 6px;
    font-size: 0.9rem;
    color: #bdc3c7;
    border-left: 4px solid #3498db;
}

.current-config-name {
    color: #3498db;
    font-weight: bold;
}

.config-item.active-config {
    border: 1px solid #3498db;
    background: #2c3e50;
}

.config-item.active-config .config-item-name {
    color: #3498db;
}

.config-item.active-config small {
    color: #27ae60;
    margin-left: 5px;
}

/* Context Menu */
.context-menu {
    position: absolute;
    background-color: #2c3e50;
    color: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    z-index: 2000;
    min-width: 180px;
    padding: 5px 0;
    border: 1px solid #3e5871;
    animation: contextMenuFadeIn 0.1s ease-out;
}

@keyframes contextMenuFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.context-menu-item {
    padding: 10px 15px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 12px;
}

.context-menu-item:hover {
    background-color: #3498db;
    color: white;
}

.context-menu-separator {
    height: 1px;
    background-color: #3e5871;
    margin: 4px 0;
}

.clickable-name {
    cursor: pointer;
    color: #3498db;
    transition: color 0.2s;
}

.clickable-name:hover {
    color: #ddf;
    text-decoration: underline;
}

/* Scripts Modal */
.scripts-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 20px;
    margin-top: 10px;
}

.scripts-list-container,
.script-upload-container {
    background: #111;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #333;
}

.scripts-list {
    flex-grow: 1;
    overflow-y: auto;
    margin-top: 10px;
    padding-right: 5px;
}

.script-item {
    background: #222;
    padding: 10px;
    margin-bottom: 8px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-left: 3px solid transparent;
}

.script-item:hover {
    background: #333;
    border-left: 3px solid #f1c40f;
    transform: translateX(5px);
}

.script-item-name {
    font-weight: bold;
    color: #f1fa8c;
}

.script-item-size {
    font-size: 0.8em;
    color: #7f8c8d;
}

.script-upload-container h3,
.scripts-list-container h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.1em;
    color: #8be9fd;
    border-bottom: 1px solid #333;
    padding-bottom: 5px;
}

@media (max-width: 600px) {
    .scripts-grid {
        grid-template-columns: 1fr;
    }
}

.script-tag {
    background: #44475a;
    color: #f8f8f2;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75em;
    border: 1px solid #6272a4;
}

.active-script-item {
    border-left: 4px solid #50fa7b;
    background: rgba(80, 250, 123, 0.05);
    cursor: default;
}

.active-script-item:hover {
    transform: none;
    background: rgba(80, 250, 123, 0.08);
    border-color: rgba(80, 250, 123, 0.3);
}

.scripts-info-row td {
    border-bottom: 2px solid #34495e !important;
}

.remove-script-btn {
    padding: 5px 8px;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s;
    font-size: 0.9em;
}

.clickable:hover {
    filter: brightness(1.2);
}

.config-item.hidden {
    display: none;
}

.current-config-info {
    background: #1a252f;
    padding: 10px 15px;
    margin-bottom: 15px;
    border-radius: 6px;
    font-size: 0.9rem;
    color: #bdc3c7;
    border-left: 4px solid #3498db;
}

.current-config-name {
    color: #3498db;
    font-weight: bold;
}

.config-item.active-config {
    border: 1px solid #3498db;
    background: #2c3e50;
}

.config-item.active-config .config-item-name {
    color: #3498db;
}

.config-item.active-config small {
    color: #27ae60;
    margin-left: 5px;
}

/* Context Menu Premium Styling */
.context-menu {
    position: absolute;
    background: rgba(30, 41, 59, 0.95);
    backdrop-filter: blur(10px);
    color: white;
    border-radius: 12px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.4), 0 8px 10px -6px rgba(0, 0, 0, 0.4);
    z-index: 2000;
    min-width: 200px;
    padding: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: contextMenuFadeIn 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

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

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

.context-menu-header {
    padding: 12px 14px;
    font-weight: 700;
    font-size: 0.9em;
    color: #f1c40f;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: 0.02em;
}

.context-menu-header i {
    font-size: 1.2em;
    opacity: 0.9;
}

.context-menu-item {
    padding: 10px 14px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    color: #cbd5e1;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 12px;
    border-radius: 8px;
    margin: 1px 0;
}

.context-menu-item i {
    width: 16px;
    text-align: center;
    font-size: 1.1em;
    color: #94a3b8;
    transition: all 0.2s ease;
}

.context-menu-item:hover {
    background-color: rgba(241, 196, 15, 0.1);
    color: #f1c40f;
}

.context-menu-item:hover i {
    color: #f1c40f;
    transform: scale(1.1);
}

.context-menu-separator {
    height: 1px;
    background-color: rgba(255, 255, 255, 0.08);
    margin: 6px 4px;
}

.clickable-name {
    cursor: pointer;
    color: #3498db;
    transition: color 0.2s;
}

.clickable-name:hover {
    color: #ddf;
    text-decoration: underline;
}

/* Scripts Modal */
.scripts-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 20px;
    margin-top: 10px;
}

.scripts-list-container,
.script-upload-container {
    background: #111;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #333;
}

.scripts-list {
    flex-grow: 1;
    overflow-y: auto;
    margin-top: 10px;
    padding-right: 5px;
}

.script-item {
    background: #222;
    padding: 10px;
    margin-bottom: 8px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-left: 3px solid transparent;
}

.script-item:hover {
    background: #333;
    border-left: 3px solid #f1c40f;
    transform: translateX(5px);
}

.script-item-name {
    font-weight: bold;
    color: #f1fa8c;
}

.script-item-size {
    font-size: 0.8em;
    color: #7f8c8d;
}

.script-upload-container h3,
.scripts-list-container h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.1em;
    color: #8be9fd;
    border-bottom: 1px solid #333;
    padding-bottom: 5px;
}

@media (max-width: 600px) {
    .scripts-grid {
        grid-template-columns: 1fr;
    }
}

.script-tag {
    background: #44475a;
    color: #f8f8f2;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75em;
    border: 1px solid #6272a4;
}

.active-script-item {
    border-left: 4px solid #50fa7b;
    background: rgba(80, 250, 123, 0.05);
    cursor: default;
}

.active-script-item:hover {
    transform: none;
    background: rgba(80, 250, 123, 0.08);
    border-color: rgba(80, 250, 123, 0.3);
}

.scripts-info-row td {
    border-bottom: 2px solid #34495e !important;
}

.remove-script-btn {
    padding: 5px 8px;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s;
    font-size: 0.9em;
}

.remove-script-btn:hover {
    background: rgba(231, 76, 60, 0.2);
    transform: scale(1.1);
}

/* Logs Modal Styles */
.modal-tabs {
    display: flex;
    gap: 8px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 15px;
    padding: 0 5px;
}

.modal-tab {
    padding: 12px 20px;
    cursor: pointer;
    background: transparent;
    color: #94a3b8;
    border-radius: 8px 8px 0 0;
    font-weight: 600;
    font-size: 0.9em;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
}

.modal-tab i {
    font-size: 1.1em;
    opacity: 0.7;
}

.modal-tab:hover {
    color: #f1f5f9;
    background: rgba(255, 255, 255, 0.03);
}

.modal-tab.active {
    color: #f1c40f;
    background: rgba(241, 196, 15, 0.05);
    border-bottom: 2px solid #f1c40f;
}

.modal-tab.active i {
    opacity: 1;
    color: #f1c40f;
}

.logs-filter {
    padding: 0 5px 15px 5px;
}

#logs-search {
    width: 100%;
    padding: 12px 18px;
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #f8fafc;
    font-size: 0.9em;
    outline: none;
    transition: all 0.2s ease;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

#logs-search:focus {
    border-color: #3498db;
    background: #1e293b;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2), inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.modal-tab-content {
    display: none;
    animation: fadeIn 0.3s ease-out;
}

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

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

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

#logs-modal .modal-body {
    max-height: none;
    overflow: hidden !important;
    padding-top: 5px;
    display: flex;
    flex-direction: column;
}

#logs-modal .modal-content {
    margin: 5vh auto;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden !important;
}

#logs-modal .modal-tab-content.active {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.logs-table-container {
    max-height: 65vh;
    /* Use viewport height for better responsiveness */
    overflow-y: auto;
    overflow-x: hidden;
    /* Prevent horizontal scrollbar unless absolutely necessary */
    border-radius: 12px;
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Custom Scrollbar for Logs */
.logs-table-container::-webkit-scrollbar {
    width: 8px;
}

.logs-table-container::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

.logs-table-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.logs-table-container::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

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

.logs-table th {
    position: sticky;
    top: 0;
    background: #0f172a;
    color: #94a3b8;
    padding: 14px 16px;
    text-align: left;
    font-size: 0.75em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    z-index: 10;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logs-table td {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    font-size: 0.9em;
    color: #e2e8f0;
    vertical-align: middle;
    word-break: break-word;
    /* Prevent long names from stretching the table */
}

/* Specific column widths for better balance */
.logs-table th:nth-child(1),
.logs-table td:nth-child(1) {
    width: 100px;
}

/* Time */
.logs-table th:nth-child(2),
.logs-table td:nth-child(2) {
    width: 180px;
}

/* Name/Monster */

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

.logs-table tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.log-loot-container {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.log-loot-tag {
    background: rgba(52, 152, 219, 0.1);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.2);
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.75em;
    font-weight: 600;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.log-loot-tag:hover {
    background: rgba(52, 152, 219, 0.2);
    border-color: rgba(56, 189, 248, 0.4);
    transform: translateY(-1px);
}

.logs-quick-link {
    cursor: pointer;
    margin-left: 8px;
    opacity: 0.5;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
}

.logs-quick-link:hover {
    opacity: 1;
    background: rgba(241, 196, 15, 0.1);
    color: #f1c40f;
    transform: scale(1.1) rotate(5deg);
}

/* Premium Scripts Management Styles */
#more-scripts-modal .modal-content {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border-radius: 16px;
    color: #e2e8f0;
    max-width: 1000px !important;
    width: 90% !important;
    margin: 3vh auto;
}

.scripts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-top: 10px;
}

.scripts-list-container {
    background: rgba(15, 23, 42, 0.4);
    border-radius: 16px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    height: 750px;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.2);
}

.scripts-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 12px;
}

.header-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-title h3 {
    margin: 0 !important;
    font-size: 0.9em !important;
    color: #94a3b8 !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.server-icon {
    color: #38bdf8;
    font-size: 1.1em;
    filter: drop-shadow(0 0 5px rgba(56, 189, 248, 0.3));
}

.active-icon {
    color: #50fa7b;
    font-size: 1.1em;
    filter: drop-shadow(0 0 5px rgba(80, 250, 123, 0.3));
}

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

.refresh-scripts-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.refresh-scripts-btn:hover {
    background: rgba(56, 189, 248, 0.1);
    color: #38bdf8;
    border-color: #38bdf8;
    transform: rotate(180deg);
}

.script-search-input {
    width: 140px;
    padding: 6px 10px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #f8fafc;
    border-radius: 8px;
    font-size: 0.8em;
    outline: none;
    transition: all 0.2s;
}

.script-search-input:focus {
    width: 180px;
    background: rgba(15, 23, 42, 0.8);
    border-color: #38bdf8;
}

.scripts-list {
    overflow-y: auto;
    flex-grow: 1;
    padding-right: 5px;
}

.scripts-list::-webkit-scrollbar {
    width: 6px;
}

.scripts-list::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
}

.scripts-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.script-item {
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: default;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.script-item:hover {
    background: rgba(30, 41, 59, 0.7);
    border-color: rgba(56, 189, 248, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
}

.script-item-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.script-item-name {
    font-weight: 700;
    font-size: 1em;
    color: #f1fa8c;
    letter-spacing: 0.01em;
    word-break: break-all;
}

.script-item-size {
    font-size: 0.7em;
    color: #64748b;
    font-family: 'JetBrains Mono', monospace;
    background: rgba(0, 0, 0, 0.2);
    padding: 2px 6px;
    border-radius: 4px;
}

.script-item-description {
    font-size: 0.82em;
    color: #94a3b8;
    line-height: 1.5;
    margin-top: 4px;
    padding-left: 4px;
    border-left: 2px solid rgba(255, 255, 255, 0.05);
}

.script-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 10px;
    opacity: 0.8;
}

.script-action-btn {
    flex: 1;
    font-size: 0.75em;
    font-weight: 600;
    padding: 6px 10px;
    border-radius: 6px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #94a3b8;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.script-action-btn i {
    font-size: 0.9em;
}

.script-action-btn:hover {
    background: rgba(56, 189, 248, 0.1);
    color: #f8fafc;
    border-color: rgba(56, 189, 248, 0.4);
}

.script-action-btn.edit-btn:hover {
    color: #38bdf8;
    border-color: rgba(56, 189, 248, 0.4);
}

.script-action-btn.load-btn {
    background: rgba(80, 250, 123, 0.05);
}

.script-action-btn.load-btn:hover {
    background: rgba(80, 250, 123, 0.15);
    color: #50fa7b;
    border-color: rgba(80, 250, 123, 0.4);
}

/* Script Editor Modal */
#script-editor-modal .modal-content {
    background: #0f172a;
    max-width: 900px !important;
    width: 90% !important;
}

.editor-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.editor-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.editor-field label {
    font-size: 0.85em;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.editor-input {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 6px;
    color: #f1f5f9;
    padding: 10px 12px;
    font-size: 0.95em;
    outline: none;
    transition: border-color 0.2s;
}

.editor-input:focus {
    border-color: #38bdf8;
}

.editor-textarea {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 6px;
    color: #50fa7b;
    padding: 15px;
    font-family: 'Fira Code', 'Cascadia Code', 'JetBrains Mono', 'Consolas', monospace;
    font-size: 0.9em;
    line-height: 1.6;
    min-height: 400px;
    resize: vertical;
    outline: none;
    tab-size: 4;
}

.editor-textarea:focus {
    border-color: #38bdf8;
    background: #0f172a;
}

.editor-footer {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 10px;
}

.btn-primary {
    background: #38bdf8;
    color: #0f172a;
    border: none;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary:hover {
    background: #7dd3fc;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(56, 189, 248, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: #f1f5f9;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

.remove-script-btn {
    opacity: 0.4;
    transition: all 0.2s;
    cursor: pointer;
}

.script-item:hover .remove-script-btn {
    opacity: 1;
    transform: scale(1.2);
}

.remove-script-btn:hover {
    color: #ff5555;
    text-shadow: 0 0 10px rgba(255, 85, 85, 0.4);
}

/* --- SYSTEM TAB PREMIUM STYLES --- */
.system-container {
    padding: 20px 0;
    animation: fadeIn 0.4s ease-out;
}

.system-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 35px;
    padding: 0 10px;
}

.system-header-icon {
    font-size: 2.5em;
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.1);
    padding: 15px;
    border-radius: 12px;
    border: 1px solid rgba(56, 189, 248, 0.2);
}

.system-header-text h2 {
    margin: 0;
    font-size: 1.8em;
    color: #1e293b;
    font-weight: 800;
}

.system-header-text p {
    margin: 5px 0 0 0;
    color: #64748b;
    font-size: 1em;
}

.system-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 30px;
}

.system-card {
    position: relative;
    background: #ffffff;
    border-radius: 24px;
    padding: 2px;
    /* For the gradient border effect */
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.system-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.card-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, transparent 100%);
    pointer-events: none;
}

.system-card.restart-card:hover {
    border-color: rgba(239, 68, 68, 0.3);
}

.system-card.reload-card:hover {
    border-color: rgba(56, 189, 248, 0.3);
}

.system-card-content {
    background: #ffffff;
    border-radius: 22px;
    padding: 30px;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.card-icon-wrapper {
    width: 70px;
    height: 70px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8em;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.restart-card .card-icon-wrapper {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.reload-card .card-icon-wrapper {
    background: rgba(56, 189, 248, 0.1);
    color: #38bdf8;
}

.system-card:hover .card-icon-wrapper {
    transform: scale(1.1) rotate(5deg);
}

.system-card h3 {
    margin: 0 0 12px 0;
    font-size: 1.4em;
    font-weight: 700;
    color: #0f172a;
}

.system-card p {
    margin: 0 0 20px 0;
    color: #64748b;
    font-size: 0.95em;
    line-height: 1.6;
}

.card-features {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.card-features li {
    font-size: 0.85em;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: left;
}

.card-features li i {
    font-size: 0.9em;
    color: #10b981;
}

.system-btn {
    width: 100%;
    padding: 14px;
    border-radius: 14px;
    border: none;
    font-weight: 700;
    font-size: 0.95em;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.2s ease;
    margin-top: auto;
}

.danger-glass {
    background: #ef4444;
    color: white;
    box-shadow: 0 4px 14px 0 rgba(239, 68, 68, 0.39);
}

.danger-glass:hover {
    background: #dc2626;
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.23);
    transform: translateY(-2px);
}

.primary-glass {
    background: #38bdf8;
    color: #0f172a;
    box-shadow: 0 4px 14px 0 rgba(56, 189, 248, 0.39);
}

.primary-glass:hover {
    background: #0ea5e9;
    box-shadow: 0 6px 20px rgba(56, 189, 248, 0.23);
    transform: translateY(-2px);
}

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

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

@media (max-width: 640px) {
    .system-grid {
        grid-template-columns: 1fr;
    }

    .system-header {
        flex-direction: column;
        text-align: center;
    }
}

/* Settings Modal Styles */
.settings-grid-rows {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.setting-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    transition: all 0.2s ease;
}

.setting-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
}

.setting-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.setting-name {
    font-weight: 600;
    color: #f1f5f9;
    font-size: 0.95em;
}

.setting-desc {
    font-size: 0.8em;
    color: #94a3b8;
}

/* Toggle Switch Styles */
.switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 22px;
    flex-shrink: 0;
}

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

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #334155;
    transition: .4s;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 2px;
    background-color: white;
    transition: .4s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

input:checked + .slider {
    background-color: #38bdf8;
    border-color: #0ea5e9;
}

input:focus + .slider {
    box-shadow: 0 0 1px #38bdf8;
}

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

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}
