/* REFcss color scheme with clean design */
* { box-sizing: border-box; }

body {
    font-family: "Inter", Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.5;
    background: #e0e0e0;
    margin: 0;
    color: #111;
    font-weight: 400;
}

h2 {
    margin: 0 0 1rem 0;
    font-weight: 400;
    color: #fff;
}

h3 {
    margin: 0 0 1rem 0;
    font-weight: 400;
    color: #000;
}

.btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 0.5rem;
    background: #1e88e5;
    color: #fff;
    font-size: 1rem;
    font-weight: 400;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    font-family: inherit;
}

.btn:hover {
    background: #1565c0;
    transform: scale(1.05);
}

.btn-primary {
    background: #1e88e5;
    color: #fff;
}

.btn-primary:hover {
    background: #1565c0;
}

.btn-success {
    background: #43a047;
    color: #fff;
    margin-top: 1rem;
}

.btn-success:hover {
    background: #388e3c;
}

.input-field {
    width: 100%;
    max-width: 300px;
    padding: 0.5rem;
    margin: 0.5rem 0;
    border: 1px solid #888;
    border-radius: 0.5rem;
    font-size: 1rem;
    background: #fff;
    color: #111;
    font-family: inherit;
}

.input-field:focus {
    outline: none;
    border-color: #1e88e5;
    box-shadow: none;
}

.overlay {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 45%;
    height: 70%;
    max-width: 90vw;
    max-height: 80vh;
    transform: translate(-50%, -50%);
    background: rgba(30, 30, 30, 0.95);
    border-radius: 1rem;
    color: #fff;
    display: none;
    z-index: 1000;
}

.overlay.overlay-right {
    left: auto;
    right: 2rem;
    transform: translateY(-50%);
    width: 350px;
}

.overlay.active {
    display: block;
}

.panel {
    padding: 1.5rem;
    height: 100%;
    overflow: auto;
}

.content-container {
    max-height: 16em;
    overflow-y: auto;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 0.5rem;
    font-size: 13px;
}

.progress-bar {
    width: 0%;
    height: 1rem;
    background: #43a047;
    border-radius: 0.25rem;
    transition: width 0.3s ease;
    margin-bottom: 1rem;
}

.settings-btn {
    position: fixed;
    top: 1rem;
    right: 1rem;
    background: #ff7043;
    color: #fff;
    border: none;
    border-radius: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    font-weight: 400;
    cursor: pointer;
    z-index: 1100;
    transition: background 0.2s, transform 0.1s;
}

.settings-btn:hover {
    background: #e64a19;
    transform: scale(1.05);
}

dialog {
    border: none;
    border-radius: 0.75rem;
    padding: 0;
    background: #fff;
    color: #111;
    width: 400px;
    height: 200px;
    max-width: 90vw;
    overflow: hidden;
}

dialog::backdrop {
    background: rgba(0, 0, 0, 0.5);
}

.settings-content {
    padding: 1.5rem;
}

.settings-note {
    margin: 0 0 1.5rem 0;
    font-size: 0.8rem;
    color: #333;
}

.setting-group {
    margin-bottom: 1rem;
}

.setting-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 400;
    color: #111;
}

input[type="range"] {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #ddd;
    outline: none;
    -webkit-appearance: none;
    margin-bottom: 0.5rem;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #1e88e5;
    cursor: pointer;
}

input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #1e88e5;
    cursor: pointer;
    border: none;
}

.speed-display {
    font-size: 0.8rem;
    color: #333;
    text-align: center;
}

.checkbox-row {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.checkbox-row input[type="checkbox"] {
    margin: 0;
}

.checkbox-row label {
    margin: 0;
    font-size: 1rem;
    cursor: pointer;
    color: #fff;
}

.task {
    display: block;
    margin-bottom: 0.5rem;
    padding: 0.25rem 0;
}

.task input[type="checkbox"] {
    margin-right: 0.5rem;
}

.task label {
    cursor: pointer;
    font-size: 0.8rem;
    color: #fff;
}

.json-small {
    font-family: "Space Mono", monospace;
    font-size: 0.8rem;
    color: #333;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    margin: 0.25rem 0;
    word-break: break-all;
}