.nipi-container {
    margin: 20px 0;
    padding: 25px;
    background: #f9f9f9;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.nipi-input-wrapper {
    margin-bottom: 20px;
}

.nipi-label {
    display: block;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #333;
}

.nipi-input-group {
    position: relative;
    display: flex;
    align-items: center;
    background: white;
    border: 2px solid #ddd;
    border-radius: 8px;
    padding: 8px 12px;
    transition: all 0.3s ease;
    margin-bottom: 15px;
}

.nipi-input-group:focus-within {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Slider styles */
.nipi-slider-container {
    margin-bottom: 20px;
}

.nipi-slider {
    width: 100%;
    height: 6px;
    -webkit-appearance: none;
    background: linear-gradient(90deg,
        #fee2e2 0%,
        #fef3c7 33%,
        #d9f99d 66%,
        #86efac 100%);
    border-radius: 3px;
    outline: none;
    margin: 10px 0;
}

.nipi-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: white;
    border: 2px solid #2563eb;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.2);
    transition: all 0.3s ease;
}

.nipi-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.nipi-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: white;
    border: 2px solid #2563eb;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.2);
    transition: all 0.3s ease;
}

.nipi-slider::-moz-range-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.nipi-slider-labels {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #666;
    margin-top: 5px;
}

.nipi-slider-min,
.nipi-slider-max {
    padding: 2px 8px;
    background: #f3f4f6;
    border-radius: 4px;
    font-weight: 600;
}

.nipi-currency-symbol {
    font-size: 20px;
    font-weight: 600;
    color: #666;
    margin-right: 8px;
}

.nipi-price-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 24px;
    font-weight: 700;
    color: #333;
    padding: 8px 0;
    background: transparent;
}

.nipi-price-input::-webkit-inner-spin-button,
.nipi-price-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.nipi-suggested-price {
    margin-top: 8px;
    font-size: 14px;
    color: #666;
    font-style: italic;
}

/* Feedback Bar */
.nipi-feedback-bar {
    margin-top: 20px;
}

.nipi-progress-track {
    position: relative;
    width: 100%;
    height: 12px;
    background: linear-gradient(90deg,
        #fee2e2 0%,
        #fef3c7 33%,
        #d9f99d 66%,
        #86efac 100%);
    border-radius: 20px;
    overflow: visible;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.1s ease;
}

.nipi-progress-track:hover {
    transform: scaleY(1.2);
}

.nipi-progress-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0%;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    transition: all 0.5s cubic-bezier(0.4, 0.0, 0.2, 1);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.nipi-progress-fill::after {
    content: '';
    position: absolute;
    right: -10px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nipi-progress-fill.active::after {
    opacity: 1;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    }

    50% {
        box-shadow: 0 2px 15px rgba(0, 0, 0, 0.4);
    }
}

.nipi-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 12px;
    padding: 0 5px;
}

.nipi-label-item {
    display: flex;
    align-items: center;
    font-size: 13px;
    font-weight: 600;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.nipi-label-item.active {
    opacity: 1;
    transform: scale(1.1);
}

.nipi-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 6px;
    transition: all 0.3s ease;
}

.nipi-label-item.nipi-low .nipi-dot {
    background: #ef4444;
}

.nipi-label-item.nipi-average .nipi-dot {
    background: #eab308;
}

.nipi-label-item.nipi-generous .nipi-dot {
    background: #22c55e;
}

.nipi-label-item.active .nipi-dot {
    box-shadow: 0 0 10px currentColor;
    animation: glow 1s infinite;
}

@keyframes glow {

    0%,
    100% {
        box-shadow: 0 0 5px currentColor;
    }

    50% {
        box-shadow: 0 0 15px currentColor;
    }
}

/* Status Message */
.nipi-status-message {
    margin-top: 15px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.nipi-status-message.show {
    opacity: 1;
    transform: translateY(0);
}

.nipi-status-message.low {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.nipi-status-message.average {
    background: #fef3c7;
    color: #854d0e;
    border: 1px solid #fcd34d;
}

.nipi-status-message.generous {
    background: #d9f99d;
    color: #365314;
    border: 1px solid #a3e635;
}

/* Responsive */
@media (max-width: 768px) {
    .nipi-container {
        padding: 20px;
    }

    .nipi-price-input {
        font-size: 20px;
    }

    .nipi-labels {
        flex-wrap: wrap;
        gap: 8px;
    }

    .nipi-label-item {
        font-size: 12px;
    }
}

/* Animation for initial load */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.nipi-container {
    animation: fadeInUp 0.5s ease;
}