:root {
    --slider-height: 40px;
    --slider-bg: #ddd;
    --progress-bg: #4CAF50;
    --handle-bg: #333;
    --text-color: #666;
    --success-color: #4CAF50;
    --overlay-bg: rgba(0, 0, 0, 0.7);
    --notification-bg: #4CAF50;
}

* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html,
body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    display: flex;
    justify-content: center;
    align-items: center;
    touch-action: none;
    -webkit-user-select: none;
    user-select: none;
}

.overlay {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background: var(--overlay-bg);
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    width: 90%;
    max-width: 350px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
    text-align: center;
    position: relative;
}

.modal h2 {
    font-size: 16px;
    color: #333;
    margin-bottom: 20px;
}

.slider {
    width: 100%;
    position: relative;
    height: var(--slider-height);
    background: var(--slider-bg);
    border-radius: 20px;
    overflow: hidden;
    margin: 20px 0;
    cursor: pointer;
    touch-action: none;
}

.slider-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: var(--progress-bg);
    transition: width 0.1s ease;
    z-index: 1;
    pointer-events: none;
}

.slider-handle {
    position: absolute;
    left: 0;
    width: 50px;
    height: 40px;
    background: var(--handle-bg);
    color: #fff;
    border-radius: 20px;
    text-align: center;
    line-height: 40px;
    cursor: pointer;
    user-select: none;
    z-index: 3;
}

.slider-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--text-color);
    font-size: 14px;
    pointer-events: none;
    z-index: 2;
}

.slider-text.success {
    color: var(--success-color);
}

.notification {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--notification-bg);
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
    z-index: 10000;
    display: none;
}

.loading-overlay {
    position: fixed;
    inset: 0;
    background: var(--overlay-bg);
    display: none;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    z-index: 10000;
}