.elementor-22898 .elementor-element.elementor-element-8d633f4{--display:flex;--flex-direction:column;--container-widget-width:100%;--container-widget-height:initial;--container-widget-flex-grow:0;--container-widget-align-self:initial;--flex-wrap-mobile:wrap;--gap:30px 30px;--row-gap:30px;--column-gap:30px;--padding-top:20px;--padding-bottom:20px;--padding-left:20px;--padding-right:20px;}.elementor-22898 .elementor-element.elementor-element-fa96681{--display:flex;border-style:solid;--border-style:solid;border-width:1px 1px 1px 1px;--border-top-width:1px;--border-right-width:1px;--border-bottom-width:1px;--border-left-width:1px;border-color:#EDEDED;--border-color:#EDEDED;--border-radius:12px 12px 12px 12px;--padding-top:20px;--padding-bottom:20px;--padding-left:20px;--padding-right:20px;}.elementor-22898 .elementor-element.elementor-element-fa96681:not(.elementor-motion-effects-element-type-background), .elementor-22898 .elementor-element.elementor-element-fa96681 > .elementor-motion-effects-container > .elementor-motion-effects-layer{background-color:#FFFFFF;}.elementor-22898 .elementor-element.elementor-element-f35f26d{font-family:"iransans | ایران‌سنس", Sans-serif;font-size:15px;line-height:30px;}.elementor-22898 .elementor-element.elementor-element-06c2201{margin:50px 0px calc(var(--kit-widget-spacing, 0px) + -20px) 0px;text-align:center;}.elementor-22898 .elementor-element.elementor-element-06c2201 .elementor-heading-title{font-family:"iransans | ایران‌سنس", Sans-serif;font-weight:600;color:var( --e-global-color-primary );}:root{--page-title-display:none;}@media(max-width:767px){.elementor-22898 .elementor-element.elementor-element-8d633f4{--padding-top:10px;--padding-bottom:10px;--padding-left:10px;--padding-right:10px;}.elementor-22898 .elementor-element.elementor-element-aa52dab{padding:0px 0px 0px 0px;}.elementor-22898 .elementor-element.elementor-element-06c2201 .elementor-heading-title{font-size:25px;}}/* Start custom CSS for text-editor, class: .elementor-element-f35f26d */.elementor-22898 .elementor-element.elementor-element-f35f26d h2 {
    font-family: 'iransans | ایران‌سنس' !important;
    font-size: 28px !important;
    font-weight: 700;
}
.elementor-22898 .elementor-element.elementor-element-f35f26d h3 {
    font-family: 'iransans | ایران‌سنس' !important;
    font-size: 25px !important;
    font-weight: 600;
}/* End custom CSS */
/* Start custom CSS */#rangbin-app {
  font-family: 'iransans', 'ایران‌سنس', system-ui, -apple-system, sans-serif;
  color: #1f2937;
  max-width: 1280px;
  margin: 0 auto;
  padding: 20px;
  direction: rtl;
  box-sizing: border-box;
}

#rangbin-app * {
  box-sizing: border-box;
}

.rangbin-header {
  margin-bottom: 20px;
}

.rangbin-title {
  font-size: 22px;
  font-weight: 800;
  margin: 0;
  color: #111827;
}

.rangbin-title span {
  font-size: 14px;
  font-weight: 500;
  color: #6b7280;
  margin-right: 8px;
}

.rangbin-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 20px;
  align-items: start;
}

.rangbin-panel {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
}

.panel-info {
  position: sticky;
  top: 20px;
}

.panel-title {
  font-size: 15px;
  font-weight: 700;
  color: #111827;
  margin: 0 0 16px 0;
  padding-bottom: 10px;
  border-bottom: 1px solid #f3f4f6;
}

/* حل مشکل فاصله تیتر */
.palette-title {
  margin-top: 20px !important;
}

.color-preview-box {
  height: 90px;
  border-radius: 10px;
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  margin-bottom: 16px;
  transition: background-color 0.1s ease;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
}

.rangbin-controls {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.control-group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #4b5563;
  margin-bottom: 6px;
}

.color-input-wrapper {
  display: flex;
  gap: 8px;
}

.color-input-wrapper input {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 13px;
  direction: ltr;
  text-align: left;
  font-family: monospace;
  background: #f9fafb;
  color: #111827;
}

.btn {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-secondary {
  background: #CFDDF2!important;
  color: #0051ba!important;
  border: 1px solid transparent!important;
}

.btn-secondary:hover {
  border: 1px solid #0051ba!important;
}

.btn-secondary.copied {
  background: #10b981;
  color: #0051ba!important;
  border-color: #10b981;
}

.rangbin-divider {
  border: 0;
  height: 1px;
  background: #f3f4f6;
  margin: 20px 0;
}

.color-history-container {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  min-height: 36px;
  align-items: center;
}

.history-empty-text {
  font-size: 12px;
  color: #9ca3af;
}

.color-history-item {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  cursor: pointer;
  border: 1px solid rgba(0,0,0,0.15);
  transition: transform 0.15s ease;
}

.color-history-item:hover {
  transform: scale(1.15);
}

.file-upload-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  background-color: #0051ba;
  color: #ffffff;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  transition: background-color 0.2s ease;
  width: 100%;
  margin-bottom: 16px;
  text-align: center;
}

.file-upload-btn:hover {
  background-color: #003d8f;
}

.upload-icon {
  width: 18px;
  height: 18px;
}

.file-input-hidden {
  display: none !important;
}

.panel-preview.dragover {
  border-color: #0051ba;
  background-color: #f0f5ff;
}

.image-viewport {
  position: relative;
  width: 100%;
  max-height: 75vh; 
  overflow: auto;
  background-color: #f8fafc;
  border: 2px dashed #e5e7eb;
  border-radius: 10px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 350px;
}

.upload-prompt {
  margin: auto;
  text-align: center;
  color: #6b7280;
  padding: 40px 20px;
  pointer-events: none;
}

.upload-prompt p {
  margin: 0 0 6px 0;
  font-size: 14px;
}

.upload-prompt small {
  font-size: 12px;
  color: #9ca3af;
}

#imageCanvas {
  display: none;
  max-width: 100%;
  height: auto;
  cursor: crosshair;
  margin: 0 auto;
}

/* تغییر پوزیشن به fixed برای دنبال کردن دقیق موس */
.loupe-lens {
  position: fixed; /* حل مشکل اسکرول و آفست */
  width: 120px;
  height: 120px;
  border: 3px solid #ffffff;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25), inset 0 0 0 1px rgba(0, 0, 0, 0.1);
  pointer-events: none;
  display: none;
  background-repeat: no-repeat;
  z-index: 9999;
  background-color: #ffffff;
  transform: translate(-50%, -50%); /* مرکزیت دقیق */
}

.loupe-lens::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 6px;
  height: 6px;
  transform: translate(-50%, -50%);
  border: 1px solid #ef4444;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.4);
}

@media (max-width: 900px) {
  .rangbin-layout {
    grid-template-columns: 1fr;
  }
  
  .panel-info {
    position: static;
  }

  .image-viewport {
    max-height: 50vh;
  }
}/* End custom CSS */
/* Start Custom Fonts CSS */@font-face {
	font-family: 'iransans | ایران‌سنس';
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url('https://mazhan-f.ir/wp-content/uploads/2026/01/IRANSansXV.woff2') format('woff2'),
		url('https://mazhan-f.ir/wp-content/uploads/2026/01/IRANSansXV.woff') format('woff');
}
@font-face {
	font-family: 'iransans | ایران‌سنس';
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url('https://mazhan-f.ir/wp-content/uploads/2026/01/IRANSansXV.woff2') format('woff2'),
		url('https://mazhan-f.ir/wp-content/uploads/2026/01/IRANSansXV.woff') format('woff');
}
@font-face {
	font-family: 'iransans | ایران‌سنس';
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url('https://mazhan-f.ir/wp-content/uploads/2026/01/IRANSansXV.woff2') format('woff2'),
		url('https://mazhan-f.ir/wp-content/uploads/2026/01/IRANSansXV.woff') format('woff');
}
@font-face {
	font-family: 'iransans | ایران‌سنس';
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url('https://mazhan-f.ir/wp-content/uploads/2026/01/IRANSansXV.woff2') format('woff2'),
		url('https://mazhan-f.ir/wp-content/uploads/2026/01/IRANSansXV.woff') format('woff');
}
@font-face {
	font-family: 'iransans | ایران‌سنس';
	font-style: normal;
	font-weight: 800;
	font-display: swap;
	src: url('https://mazhan-f.ir/wp-content/uploads/2026/01/IRANSansXV.woff2') format('woff2'),
		url('https://mazhan-f.ir/wp-content/uploads/2026/01/IRANSansXV.woff') format('woff');
}
@font-face {
	font-family: 'iransans | ایران‌سنس';
	font-style: normal;
	font-weight: 900;
	font-display: swap;
	src: url('https://mazhan-f.ir/wp-content/uploads/2026/01/IRANSansXV.woff2') format('woff2'),
		url('https://mazhan-f.ir/wp-content/uploads/2026/01/IRANSansXV.woff') format('woff');
}
/* End Custom Fonts CSS */