html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin: 0;
  padding: 0;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

/* دکمه‌های ویرایش Inline */
.inline-edit-btn {
  position: absolute;
  top: 20px;
  left: 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
  transition: all 0.3s ease;
  z-index: 10;
  font-size: 18px;
}

.inline-edit-btn:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
  background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.inline-edit-btn:active {
  transform: translateY(0) scale(0.98);
}

.inline-edit-btn-small {
  position: absolute;
  top: 12px;
  left: 12px;
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  color: white;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(240, 147, 251, 0.4);
  transition: all 0.3s ease;
  z-index: 10;
  font-size: 14px;
  opacity: 0;
}

.service-block:hover .inline-edit-btn-small {
  opacity: 1;
}

.inline-edit-btn-small:hover {
  transform: translateY(-2px) scale(1.08);
  box-shadow: 0 5px 16px rgba(240, 147, 251, 0.6);
  background: linear-gradient(135deg, #f5576c 0%, #f093fb 100%);
}

.inline-edit-btn-small:active {
  transform: translateY(0) scale(0.95);
}

/* انیمیشن برای ظاهر شدن دکمه‌ها */
@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.inline-edit-btn, .inline-edit-btn-small {
  animation: fadeInScale 0.3s ease-out;
}

/* استایل برای بخش‌های قابل ویرایش */
#service-section {
  position: relative;
}

/* رنگ‌های مختلف برای دکمه‌های ویرایش */
.inline-edit-btn-purple {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.inline-edit-btn-purple:hover {
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
  background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.inline-edit-btn-pink {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  box-shadow: 0 4px 12px rgba(240, 147, 251, 0.4);
}

.inline-edit-btn-pink:hover {
  box-shadow: 0 6px 20px rgba(240, 147, 251, 0.6);
  background: linear-gradient(135deg, #f5576c 0%, #f093fb 100%);
}

.inline-edit-btn-blue {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  box-shadow: 0 4px 12px rgba(79, 172, 254, 0.4);
}

.inline-edit-btn-blue:hover {
  box-shadow: 0 6px 20px rgba(79, 172, 254, 0.6);
  background: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
}

.inline-edit-btn-red {
  background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
  box-shadow: 0 4px 12px rgba(250, 112, 154, 0.4);
}

.inline-edit-btn-red:hover {
  box-shadow: 0 6px 20px rgba(250, 112, 154, 0.6);
  background: linear-gradient(135deg, #fee140 0%, #fa709a 100%);
}

.service-block {
  position: relative;
  transition: all 0.3s ease;
}

.service-block:hover {
  transform: translateY(-3px);
}

/* اصلاح z-index برای modal و backdrop */
.modal {
  z-index: 1200 !important;
}

.modal-backdrop {
  z-index: 1150 !important;
}
