/* Slider Container Styles */
.slider-container {
    margin: 20px 0;
}

.slider-group {
    margin-bottom: 30px;
    background: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.slider-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 10px;
    color: #333;
}

/* Slider With Labels Layout */
.slider-with-labels {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 5px;
}
.slider-with-labels img {
    width: 60px; /* Adjust width as needed */
    height: auto; /* Adjust height as needed */
    margin-right: 20px; /* Space between icon and slider */
}

.slider-with-labels span {
    font-size: 0.9em;
    color: #666;
    min-width: 100px;
}

.slider-emoticon {
    font-size: 50px !important; /* Adjust font size as needed */
    margin-left: 10px; /* Space between slider and emoticon */
}

.slider-title {
    font-weight: bold; /* Make the title bold */
    margin-bottom: 0px; /* Space below the title */
    display: block; /* Ensure it takes up the full width */
    text-align: center; /* Center the text */
    font-size: 1em !important; /* Increase the font size (adjust as needed) */
}

/* Slider Value Display */
.slider-value {
    text-align: center;
    font-weight: 500;
    color: #4CAF50;
}

/* Custom Slider Styling */
.slider {
    flex-grow: 1;
    height: 8px;
    -webkit-appearance: none;
    background: #ddd;
    border-radius: 4px;
    outline: none;
}

/* Slider Thumb Styles */
.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: #4CAF50;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s;
}

.slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: #4CAF50;
    border-radius: 50%;
    cursor: pointer;
    border: none;
    transition: background 0.2s;
}

/* Slider Hover and Focus States */
.slider:hover::-webkit-slider-thumb {
    background: #45a049;
}

.slider:hover::-moz-range-thumb {
    background: #45a049;
}

.slider:focus::-webkit-slider-thumb {
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.3);
}

.slider:focus::-moz-range-thumb {
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.3);
}

/* Track Styles */
.slider::-webkit-slider-runnable-track {
    width: 100%;
    height: 8px;
    cursor: pointer;
    background: #ddd;
    border-radius: 4px;
}

.slider::-moz-range-track {
    width: 100%;
    height: 8px;
    cursor: pointer;
    background: #ddd;
    border-radius: 4px;
}

/* Active State */
.slider:active::-webkit-slider-thumb {
    transform: scale(1.1);
}

.slider:active::-moz-range-thumb {
    transform: scale(1.1);
}

/* Media query for mobile devices */
@media screen and (max-width: 768px) {
    .slider-group {
        margin-bottom: 20px;
      /*  padding: 0 5px; /* Reduced padding */
       padding: 0 ; /* No padding */
    }

    .slider-with-labels {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 5px; /* Reduced gap */
        height: 40px;
        padding: 0 2px; /* Reduced padding */
    }

    /* Left label */
    .slider-with-labels span:first-child {
        flex: 0 0 10px; /* Even smaller width */
        text-align: right;
        font-size: 15px;
        line-height: 1.2;
        white-space: normal;
        padding-right: 2px; /* Minimal padding */
    }

    /* Right label */
    .slider-with-labels span:last-child {
        flex: 0 0 10px; /* Even smaller width */
        text-align: left;
        font-size: 15px;
        line-height: 1.2;
        white-space: normal;
        padding-left: 2px; /* Minimal padding */
    }
    /* The slider itself */
    .slider {
        flex: 1; /* Take remaining space */
        height: 20px;
        margin: 0;
        transform: rotate(0deg);
    }
}

/* Option 1: Larger Arrow with 3D effect */
.progress-needle.arrow-3d {
    width: 0;
    height: 0;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-bottom: 24px solid #ff4444;
    position: absolute;
    bottom: -10px;
    transform-origin: 50% 100%;
    filter: drop-shadow(2px 2px 2px rgba(0,0,0,0.3));
}

/* Option 2: Modern Pointer with Gradient */
.progress-needle.modern {
    width: 4px;
    height: 30px;
    background: linear-gradient(to bottom, #ff6b6b, #c92a2a);
    position: absolute;
    bottom: -15px;
    border-radius: 4px;
    transform-origin: 50% 100%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Option 3: Triangular Indicator */
.progress-needle.triangle {
    width: 20px;
    height: 20px;
    background: #e74c3c;
    position: absolute;
    bottom: -10px;
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    transform-origin: 50% 100%;
}

/* Option 4: Double-sided Arrow */
.progress-needle.double-arrow {
    width: 24px;
    height: 30px;
    position: absolute;
    bottom: -15px;
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    background: #e74c3c;
    transform-origin: 50% 50%;
}

.progress-needle {
    width: 4px;
    height: 25px;
    background: #ffffff;
    position: absolute;
    bottom: -15px;
    transform-origin: 50% 100%;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.8), 0 0 20px rgba(255, 255, 255, 0.6);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 10px rgba(255, 255, 255, 0.8), 0 0 20px rgba(255, 255, 255, 0.6); }
    50% { box-shadow: 0 0 15px rgba(255, 255, 255, 0.9), 0 0 30px rgba(255, 255, 255, 0.7); }
    100% { box-shadow: 0 0 10px rgba(255, 255, 255, 0.8), 0 0 20px rgba(255, 255, 255, 0.6); }
}

.points-display {
    position: fixed;
    top: 0px;  /* Align with top of progress bar */
    right: 10px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    padding: 5px 15px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    height: 30px;
    line-height: 30px;
    z-index: 1000;
    font-size: 14px;
    white-space: nowrap;
}