﻿#ddlsubcategory .active {
    color: red;
}

.ui-autocomplete {
    max-height: 300px;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 9999;
}

.ui-menu-item {
    padding: 8px 10px;
    border-bottom: 1px solid #f0f0f0;
}

    .ui-menu-item:hover {
        background-color: #f8f9fa;
    }


/* registration  modal styles */
.registration-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.registration-form {
    background: white;
    border-radius: 12px;
    padding: 40px;
    width: 100%;
    max-width: 400px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .close-btn:hover {
        background-color: #f0f0f0;
    }

.form-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 30px;
    color: #333;
}

.user-type {
    margin-bottom: 25px;
}

    .user-type label {
        font-weight: 500;
        margin-bottom: 0px;
        display: block;
        color: #333;
    }

.radio-group {
    display: flex;
    gap: 20px;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 8px;
}

    .radio-option input[type="radio"] {
        width: 18px;
        height: 18px;
        accent-color: #007bff;
    }

.form-group {
    margin-bottom: 20px;
}

    .form-group label {
        font-weight: 500;
        margin-bottom: 8px;
        display: block;
        color: #333;
    }

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s;
}

    .form-control:focus {
        outline: none;
        border-color: #007bff;
        box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
    }

    .form-control.is-invalid {
        border-color: #dc3545;
        box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
    }

    .form-control.is-valid {
        border-color: #28a745;
        box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1);
    }

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 25px;
}

    .checkbox-group input[type="checkbox"] {
        width: 18px;
        height: 18px;
        margin-top: 2px;
        accent-color: #007bff;
    }

    .checkbox-group label {
        font-size: 14px;
        color: #666;
        line-height: 1.4;
    }

    .checkbox-group a {
        color: #007bff;
        text-decoration: none;
    }

        .checkbox-group a:hover {
            text-decoration: underline;
        }

.register-btn {
    width: 100%;
    padding: 12px;
    background-color: #4c3bce;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
}

    .register-btn:hover {
        background-color: #3d2ba3;
    }

.login-link {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: #666;
}

    .login-link a {
        color: #007bff;
        text-decoration: none;
    }

        .login-link a:hover {
            text-decoration: underline;
        }

.user-img {
    width: 20px;
    height: 20px;
    background-color: #007bff;
    border-radius: 50%;
    display: inline-block;
}

/* Otp Modal Styles */
.otp-modal {
    background: white;
    border-radius: 12px;
    padding: 40px;
    width: 100%;
    max-width: 400px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: none;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .close-btn:hover {
        background-color: #f0f0f0;
    }

.form-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 30px;
    color: #333;
}

.otp-label {
    font-weight: 500;
    margin-bottom: 20px;
    display: block;
    color: #333;
    font-size: 16px;
}

.otp-inputs {
    display: flex;
    gap: 12px;
    margin-bottom: 25px;
    justify-content: center;
}

.otp-input {
    width: 50px;
    height: 50px;
    border: 1px solid #ddd;
    border-radius: 8px;
    text-align: center;
    font-size: 18px;
    font-weight: 500;
    transition: all 0.3s;
    outline: none;
}

    .otp-input:focus {
        border-color: #007bff;
        box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
    }

    .otp-input:hover {
        border-color: #007bff;
    }

    .otp-input.filled {
        background-color: #f8f9ff;
        border-color: #007bff;
    }

.resend-otp {
    color: #20c997;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    margin-bottom: 25px;
    display: inline-block;
}

    .resend-otp:hover {
        text-decoration: underline;
        color: #17a085;
    }

.submit-btn {
    width: 100%;
    padding: 12px;
    background-color: #4c3bce;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
}

    .submit-btn:hover {
        background-color: #3d2ba3;
    }

    .submit-btn:disabled {
        background-color: #cccccc;
        cursor: not-allowed;
    }

.error-message {
    color: #dc3545;
    font-size: 14px;
    margin-top: 10px;
    text-align: center;
    display: none;
}

.success-message {
    color: #28a745;
    font-size: 14px;
    margin-top: 10px;
    text-align: center;
    display: none;
}

.timer {
    color: #666;
    font-size: 14px;
    margin-left: 10px;
}


/* Login Style */

.login-modal {
    background: white;
    border-radius: 12px;
    padding: 40px;
    width: 100%;
    max-width: 400px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .close-btn:hover {
        background-color: #f0f0f0;
    }

.form-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 0px;
    color: #333;
}

.form-group {
    margin-bottom: 18px;
}

    .form-group label {
        font-weight: 500;
        margin-bottom: 8px;
        display: block;
        color: #333;
        font-size: 16px;
    }

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s;
    background-color: #fff;
}

    .form-control:focus {
        outline: none;
        border-color: #007bff;
        box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
    }

    .form-control::placeholder {
        color: #999;
    }

    .form-control.is-invalid {
        border-color: #dc3545;
        box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
    }

    .form-control.is-valid {
        border-color: #28a745;
        box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1);
    }

.login-btn {
    width: 100%;
    padding: 12px;
    background-color: #4c3bce;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-bottom: 20px;
}

    .login-btn:hover {
        background-color: #3d2ba3;
    }

    .login-btn:disabled {
        background-color: #cccccc;
        cursor: not-allowed;
    }

.signup-link {
    text-align: center;
    font-size: 14px;
    color: #666;
}

    .signup-link a {
        color: #20c997;
        text-decoration: none;
        font-weight: 500;
    }

        .signup-link a:hover {
            text-decoration: underline;
            color: #17a085;
        }

.error-message {
    color: #dc3545;
    font-size: 14px;
    margin-top: 10px;
    text-align: center;
    display: none;
}

.success-message {
    color: #28a745;
    font-size: 14px;
    margin-top: 10px;
    text-align: center;
    display: none;
}

.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Price Range Slider Styles */
.range-slider {
    position: relative;
    width: 100%;
    height: 30px;
}

    .range-slider input[type="range"] {
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        height: 6px;
        background: transparent;
        pointer-events: none;
    }

        .range-slider input[type="range"]::-webkit-slider-thumb {
            -webkit-appearance: none;
            appearance: none;
            width: 18px;
            height: 18px;
            border-radius: 50%;
            background: #007bff;
            cursor: pointer;
            margin-top: -6px;
            pointer-events: auto;
            z-index: 3;
            position: relative;
            box-shadow: 0 1px 4px rgba(0,0,0,0.3);
        }

        .range-slider input[type="range"]:-moz-range-thumb {
            width: 18px;
            height: 18px;
            border-radius: 50%;
            background: #007bff;
            cursor: pointer;
            pointer-events: auto;
            z-index: 3;
            position: relative;
            box-shadow: 0 1px 4px rgba(0,0,0,0.3);
            border: none;
        }

    .range-slider .track {
        position: absolute;
        width: 100%;
        height: 6px;
        background-color: #e9ecef;
        top: 50%;
        transform: translateY(-50%);
        border-radius: 3px;
    }

    .range-slider .range {
        position: absolute;
        height: 6px;
        background-color: #007bff;
        top: 50%;
        transform: translateY(-50%);
        border-radius: 3px;
    }

.price-filter-container {
    padding: 15px;
    min-width: 300px;
}

.price-input .form-control {
    height: 32px;
    font-size: 12px;
    padding: 0.25rem 0.5rem;
}

.price-input .input-group-text {
    font-size: 12px;
    padding: 0.25rem 0.5rem;
}
