body {
  font-family: "IRANSans";
  direction: rtl;
}
* {
    direction: rtl;
    font-family: 'IRANSans';
}
.primary-color {
  color: #2f9245;
}

.font-size-small {
  font-size: 13px;
}

a {
  text-decoration: none;
}

.radius {
  border-radius: 0.75rem;
}
.rounded-medium {
  border-radius: 10px;
}

.shadow-sm {
  box-shadow: 0 1px 0.2rem 0px #cbcbcb !important;
}

.btn {
  color: #fff;
  background-color: #2f9245;
  border-color: #2f9245;
}

.btn:focus,
.btn:hover {
  color: #fff;
  background-color: #2f9245;
  border-color: #2f9245;
}

label {
  font-size: 14px;
  color: #23243b;
}

input {
  box-sizing: border-box;
  margin: 0;
  font-variant: tabular-nums;
  list-style: none;
  font-feature-settings: "tnum";
  position: relative;
  display: inline-block;
  width: 100%;
  height: 2.5rem;
  padding: 4px 11px;
  color: rgba(0, 0, 0) !important;
  font-size: 15px !important;
  line-height: 1.5;
  background-color: #fff;
  background-image: none;
  border: 2px solid #2f9245;
  border-radius: 4px;
  transition: all 0.3s;
}

input:focus {
  border-color: #2f9245 !important;
  border-right-width: 1px !important;
  outline: 0 !important;
  box-shadow: 0 0 0 2px rgba(0, 122, 163, 0.2) !important;
}

input:hover {
  border-color: #2f9245;
  border-right-width: 1px !important;
}
input::placeholder {
  font-size: 15px;
}

/* Custom Radio Group */
.custom-radio-group {
  display: flex;
  align-items: center;
  gap: 8px;
}
.custom-radio-group input[type="radio"] {
  display: none;
}
.custom-radio-label {
  position: relative;
  padding-right: 32px;
  cursor: pointer;
  user-select: none;
  font-size: 15px;
}
.custom-radio-indicator {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  border: 2px solid #2f9245;
  border-radius: 50%;
  background: #fff;
  transition: border-color 0.2s;
}
.custom-radio-label
  input[type="radio"]:checked
  ~ .custom-radio-indicator:after {
  content: "";
  position: absolute;
  right: 2.5px;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  background: #2f9245;
  border-radius: 50%;
  transition: background 0.2s;
}

/* Custom Checkbox - کلاس‌های جداگانه */
.custom-checkbox-input {
  display: none;
}
.custom-checkbox-group {
  display: flex;
  align-items: center;
  gap: 8px;
}
.custom-checkbox-label {
  position: relative;
  padding-right: 32px;
  cursor: pointer;
  user-select: none;
  font-size: 15px;
}
.custom-checkbox-label:before {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  border: 2px solid #2f9245;
  border-radius: 6px;
  background: #fff;
  transition: border-color 0.2s;
}
.custom-checkbox-input:checked + .custom-checkbox-label:after {
  content: "";
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%) scale(1);
  width: 10px;
  height: 10px;
  background: #2f9245;
  border-radius: 3px;
  transition: background 0.2s;
}
.custom-checkbox-input:focus + .custom-checkbox-label:before {
  border-color: #2f9245;
}

.page-item {
    margin: 0 7px;
    font-size: 15px;
}

@media (min-width: 300px) and (max-width: 767px) {
    .page-item {
        margin: 0 3px;
        font-size: 15px;
    }
}

.page-link {
    padding: 5px 10px;
    border-radius: 5px;
    color: #000;
    font-size: 14px;
    border: 2px solid #000;
}

    .page-link:hover {
        z-index: 2;
        color: #fff;
        text-decoration: none;
        background-color: #000;
        border-color: #000;
    }

.page-item.active .page-link {
    z-index: 3;
    color: #fff;
    background-color: #000;
    border-color: #000;
}

.page-link:focus {
    z-index: 3;
    outline: 0;
    box-shadow: none;
}
