/* استایل کلی کارت‌های فیلتر */
.card {
    border-radius: 12px !important;
    overflow: hidden;
    margin-bottom: 15px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
}

.card-header {
    background-color: #fff !important;
    padding: 15px 20px !important;
    font-weight: bold;
    border: none !important;
    cursor: pointer;
}

.card-header h6 {
    font-size: 1rem;
    color: #333;
    margin: 0;
    font-weight: 600;
}

.card-header i {
    color: #888;
    transition: transform 0.3s;
}

.card-body {
    padding: 15px 20px !important;
}

/* استایل چک‌باکس‌ها و رادیو باتن‌ها */
.form-check {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
}

.form-check-input {
    margin-left: 5px;
    margin-right: 0;
    width: 18px;
    height: 18px;
}

.form-check-input:checked {
    background-color: #2ecc71;
    border-color: #2ecc71;
}

.form-check-label {
    margin-right: 10px;
    font-size: 0.9rem;
    color: #444;
    position: relative;
}

/* تعداد در کنار هر گزینه */
.form-check-label::after {
    content: attr(data-count);
    margin-right: 5px;
    color: #999;
    font-size: 0.8rem;
    position: absolute;
    left: calc(100% + 5px);
}

/* اسلایدر قیمت */
.range-slider .form-range {
    height: 5px;
    background: linear-gradient(to right, #ccc, #2ecc71);
    outline: none;
    border-radius: 10px;
    margin: 10px 0;
}

.range-slider .form-range::-webkit-slider-thumb {
    background: #fff;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid #2ecc71;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}

.range-slider .form-range::-moz-range-thumb {
    background: #fff;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid #2ecc71;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}

.price-inputs {
    margin-top: 25px;
}

.price-inputs .form-control {
    font-size: 0.9rem;
    text-align: center;
    height: 35px;
    border-radius: 5px;
    border: 1px solid #ddd;
}

.price-inputs .form-group {
    position: relative;
    width: 40%;
}

.price-unit {
    display: block;
    text-align: center;
    font-size: 0.8rem;
    color: #777;
    margin-top: 5px;
}

/* طول دوره - گزینه انتخاب شده */
.form-check-input:checked ~ .form-check-label {
    font-weight: 500;
    color: #2ecc71;
}

/* تیک سبز برای گزینه انتخاب شده */
.form-check-input[type="checkbox"]:checked {
    position: relative;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M6 10l3 3l6-6'/%3e%3c/svg%3e");
    background-color: #2ecc71;
    border-color: #2ecc71;
}

/* تنظیم فاصله اضافی میان بخش‌ها */
.card-header, .card-body {
    padding-right: 20px !important;
}

/* استایل دکمه اعمال فیلتر */
.btn-success {
    background-color: #2ecc71 !important;
    border: none;
    border-radius: 5px;
    padding: 8px 15px;
    font-weight: 500;
}

/* استایل هاور روی هدرها */
.card-header:hover {
    background-color: #f9f9f9 !important;
} 