* {
    font-family: shabnam Farsi Font;
}
body {
    margin: 0;
    padding: 0;
    background-color: #f8fafc;
}
body.menu-open {
  overflow: hidden;
}
.container {
    display: flex;
    min-height: 100vh;
    flex-direction: row;
}
.main {
    display: flex;
    flex-direction: row-reverse;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 100%;
	margin-right: 20rem;
	min-height: 100vh;
}
div#uploadArea {
    text-align: center;
    padding: 3rem;
    cursor: pointer;
    border-color: #cbd5e1;
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, -webkit-text-decoration-color;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
    color: #09090b;
    background-color: #FFF;
    border-style: dashed;
    border-width: 2px;
    border-radius: 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}
input#fileInput {
    display: none;
}
.opt-header-mob {
    display: none;
}
button#openControls {
    display: flex;
    align-content: center;
    align-items: center;
    padding: 0.5rem;
    background-color: #00a4ff;
    color: #FFF;
    border: 1px solid #a2d6e5;
    border-radius: 5px;
    z-index: 2;
}
span.header-mob-text {
    color: #1e293b;
    font-size: 15px;
    font-weight: 600;
    width: 100%;
    text-align: center;
    position: fixed;
    right: 0;
}
.active-mnu {
	display: block !important;
transform: translateX(0) !important; 
}
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5); /* سیاه با شفافیت ۵۰٪ */
  z-index: 3; /* زیر منو، ولی بالای بقیه عناصر */
  opacity: 0; /* پیش‌فرض مخفی */
  visibility: hidden; /* عدم نمایش */
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.sidebar {
  position: fixed;
  top: 0;
  right: -300px; /* خارج از دید */
  width: 300px;
  height: 100vh;
  background: #fff;
  z-index: 1000; /* بالای overlay */
  transition: right 0.3s ease;
}

.sidebar.active-mnu {
  right: 0;
}
.img {
    height: auto;
    overflow: hidden;
}
@media only screen and (max-width: 1239px) {
.up-other {
    padding: 10px;
}	
.preview-box {
    margin: 5px;
	min-width: 300px;
	height: 38vh !important;
}
div#previewContainer {
    flex-wrap: wrap;
    justify-content: center;
}
.preview-box {
    margin: 5px !important;
	min-width: 45% !important;
    flex-grow: 1;
}
.preview-box {
    width: auto !important;
}
}
button#closeside {
 display: none;   
}
@media only screen and (max-width: 820px) {
.opt-header-mob {
    width: 100%;
    padding: 12px;
    display: flex;
    align-content: center;
    align-items: center;
    justify-content: flex-start;
    gap: 15%;
    background-color: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    position: fixed;
    z-index: 3;
}	
button#closeside {
    position: absolute;
    left: 4px;
    background-color: transparent;
    border: navajowhite;
    top: 7px;
    display: block !important;
}
.option {
	  transform: translateX(100%);
  transition: transform 0.3s ease;
  z-index: 1000;
  max-width: 90vw;
}

.main {
	margin: 0;
}
.up-other {
    padding: 7px !important;
	height: calc(var(--vh, 1vh) * 100 - 14px);
	display: flex;
    align-items: stretch;
    flex-direction: column;
    justify-content: center;
}
body {
 max-height:100vh !important; 
  overflow: hidden;
}
.main {
    align-items: flex-start;    
}
h3.hlp-upt {
    font-size: 14px !important;
}
div#uploadArea {
    padding: 22px;
}
div#previewContainer {
    flex-wrap: wrap;
    flex-direction: column;
	justify-content: center;
    margin-top: 60px;
	height: calc(100% - 60px);
}
.preview-box {
	width: auto !important;
    margin: 5px !important;
	min-width: auto !important;
	height: 40% !important;
}
div#compressedPlaceholder {
    height: calc(31vh - 80px);
    display: flex !important;
    align-items: center;
	justify-content: center;
}
div#mobileControls {
    padding-top: 15px !important;
    padding-bottom: 15px !important;
}
.overlay.active-mnu {
  opacity: 1;
  visibility: visible;
}
}
.option {
    background-color: #FFF;
    width: 20rem;
    position: fixed;
    top: 0px;
    bottom: 0px;
    border-left: 1px solid #e2e8f0;
    max-height: 100vh;
    overflow: auto;
    z-index: 4;
}
.up-other {
    padding: 1.3rem;
    width: 100%;
}
.upload-area svg {
    stroke: #00a4ff;
}
.upload-svg {
    padding: 10px;
    background-color: #00a4ff1a;
    border-radius: 100%;
    display: flex;
    align-content: center;
    align-items: center;
    justify-content: center;
    width: fit-content;
}
h3.hlp-upt {
    color: #1e293b;
    font-size: 18px;
}
p.upt-sup {
    color: #64748b;
	font-size: 13px;
}
button#selectFilesBtn {
	padding: 7px;
    width: 170px;
    background-color: #00a4ff;
    color: #fafafa;
    border: navajowhite;
    border-radius: 6px;
    height: 37px;
    font-size: 0.875rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    line-height: normal;
}
button#selectFilesBtn:hover {
    background-color: #0094e6;
}
div#uploadArea:hover {
    border-color: #00a4ff;
}
.svg-opt {
    background-color: #00a4ff;
    border-radius: 0.5rem;
    width: fit-content;
    padding: 0.5rem;
    height: fit-content;
}
.img-opt {
    display: flex;
	margin-bottom: 1rem;	
}
.svg-opt svg.lucide.lucide-image.h-6.w-6 {
    width: 1.5rem;
    height: 1.5rem;
    display: block;
    vertical-align: middle;
	stroke: #FFF;
}
div#mobileControls {
    padding: 1.5rem;
}
h1.text-xl {
    margin: 0;
    padding-right: 10px;
    color: #1e293b;
    font-size: 15px;
}
p.text-sm {
    margin: 0;
    text-align: right;
    color: #005a87;
    padding-right: 10px;
    font-size: 11px;
}
hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #e2e8f0;
    margin: 8px 0;
    padding: 0;
}
.option-header {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    gap: 10px;
	margin-bottom: 12px;
	align-items: center;
}
svg.lucide.lucide-settings.h-4.w-4 {
    stroke: #334155;
}
label.option-header-txt {
    line-height: 26px;
    font-weight: 600;
    color: #334155;
    font-size: 12px;
}
.range-container {
    display: flex;
    gap: 4px;
    align-items: center;
}
input#compressionLevel {
    width: 100%;
}
input[type="range"] {
  -webkit-appearance: none;
  height: 8px;
  border-radius: 16px;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width:19px;
  height: 19px;
  background: #FFF;
  border-radius: 100%;
  border: 2px solid #00a4ff;
  cursor: pointer;
}
span#compressionValue {
    min-width: 40px;
    color: #00a4ff;
    font-size: 13px;
    font-weight: 600;
    background-color: #00a4ff1a;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-right: 2px;
    padding-left: 2px;
    padding-top: 2px;
    border-radius: 999px;
}
p#resolutionInfo, p#qualityInfo {
    padding-top: 8px;
    padding-bottom: 6px;
    margin: 0;
    text-align: center;
    font-size: 12px;
    color: #2a759b;
}
input#compressionLevel:disabled{
    opacity: 0.5;
}
label {
    color: #334155;
    font-size: 13px;
    font-weight: 600;
}
select#outputFormatSelect, select#compressionMode, select#advancedSettings {
    width: 100%;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    height: 40px;
    border-radius: 5px;
    margin-top: 5px;
    border: 1px solid #e2e8f0;
    margin-bottom: 10px;
    color: #2b2b2b;
    cursor: pointer;
	font-size: 13px;
}
.container select {
  padding-right: 30px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 10px center;
  background-size: 15px;
}
select:focus {
  outline: none;
}
select:focus-visible {
  outline: 1px solid #00a7ff;
}
button#processBtn {
    width: 100%;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    height: 36px;
    border-radius: 5px;
    margin-top: 10px;
    margin-bottom: 8px;
    color: #ffffff;
    border: none;
    background-color: #00a4ff;
    font-size: 14px;
    cursor: pointer;
    justify-content: center;
    align-items: center;
    gap: 10px;
}
.info-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #005887;
    line-height: 18px;
    margin-top: 11px;
}
span#originalSize, span#compressedSize {
    border: 1px solid #00aaff;
    border-radius: 9999px;
    padding-right: 5px;
    padding-left: 5px;
    min-width: 45px;
    text-align: center;
}
span#reductionPercentage {
    border-radius: 9999px;
    padding-right: 8px;
    padding-left: 8px;
    background-color: #e5f6ff;
    color: #00a4ff;
    padding-top: 1px;
    padding-bottom: 0px;
    font-weight: 600;
    line-height: 18px;
    min-width: 30px;
    text-align: center;
}
.num2 {
	margin-top: -14px;
}
button#downloadBtn {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    width: 100%;
    height: 36px;
    background-color: #0090db;
    border: navajowhite;
    border-radius: 4px;
    color: #FFF;
    font-size: 13px;
    justify-content: center;
    gap: 11px;
    cursor: pointer;
}
div#singleActions {
    display: flex;
    gap: 7px;
	margin-top: 16px;
}
button#resetBtn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    border: 1px solid #00adff;
    border-radius: 5px;
    color: #016da5;
    cursor: pointer;
    background-color: #ffffff;
}
button#processBtn:hover {
    background-color: #0094e6;
}
button#downloadBtn:hover {
    background-color: #3b93c1;
}
button#resetBtn:hover {
    background-color: #f7fafc;
}
img#originalPreview {
    width: 100%;
    height: 100%;
    border-radius: 0.5rem;
    background-color: #f1f5f9;
    display: block;
    object-fit: contain;
    max-height: 40vh;
}
img#compressedPreview {
    width: 100%;
    height: 100%;
    border-radius: 0.5rem;
    background-color: #f0f5f9;
    display: block;
    object-fit: contain;
    max-height: 40vh;
}
.preview-box {
    width: 50%;
    margin: 0.8rem;
    background: #fff;
    padding: 15px;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    height: -webkit-fill-available;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.preview-header {
    color: #005887;
    display: flex;
    align-items: center;
    padding-bottom: 11px;
    gap: 6px;
    font-size: 14px;
}
span#originalSize2, span#compressedSize2 {
    direction: ltr;
    font-family: sans-serif;
    font-size: 12px;
    border: 1px solid #00a7ff;
    border-radius: 9999px;
    padding-right: 5px;
    padding-left: 5px;
    min-width: 45px;
    text-align: center;
    margin-bottom: 2px;
}
button#downloadBtn:disabled, button#downloadBtn:disabled:hover {
    opacity: 0.6;
    cursor: unset;
    background-color: #0090db !important;
}
@keyframes spinner
{
	0%{
		transform:rotate(0deg)
	}
	100%{
		transform:rotate(360deg)
	}
	}
@keyframes eye{
	0%
	{
		opacity:0
		}
		80%
		{
			opacity:1
			}
			100%
			{
				opacity:0
				}
				}
.spinner-loading {
	width:13px;
	height:13px;
	border:2px solid #fff;
	border-top:2px solid transparent;
	border-radius:50%;
    animation: spinner 0.4s linear infinite;
    display: none;
}
.dn-ico {
    width: 80px;
    height: 80px;
    fill: #00a7ff;
}
div#compressedPlaceholder {
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
div#compresseloading {
    position: fixed;
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: center;
    background-color: #048fb98a;
    z-index: 2;
    flex-direction: column;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 900;
    gap: 10px;
}
.dn-ico2 {
    width: 120px;
    height: auto;
    display: flex;
    fill: #ffffff;
    animation: eye 1.2s infinite;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
p#progressText {
    margin: 0;
    width: 400px;
    text-align: center;
    max-width: 80vw;
}
span.dn-crt {
    position: fixed;
    bottom: 0;
    font-size: 13px;
    color: #1a294d;
    text-align: center;
}
button#selectFilesBtn svg {
    stroke: #FFF;
}
.swal-icon:first-child {
    scale: 0.7;
    margin-top: 0;
    margin-bottom: 0;
}
.swal-title {
    padding: 0;
	font-size: 23px;
	color: #1a294d;
}
.swal-text {
    direction: rtl;
    text-align: justify;
    font-size: 14px;
	color: #1c3f51;
}
.swal-footer {
    margin: 0;
    padding-top: 5px;
    display: flex;
    justify-content: center;
}
.swal-button {
    height: 35px;
}
.swal-icon, .swal-icon span {
    border-color: #00a7ff !important;
    color: #00a7ff !important;
}
.swal-icon span {
 background-color: #00a7ff;
}
button.swal-button.swal-button--confirm.swal-button--danger {
    background-color: blue;
}
.swal-button--danger:focus {
    box-shadow: none !important;
}
.dn-com-switch {
    position: relative;
    display: inline-block;
    width: 52px;
}
.dn-com-switch input { 
  opacity: 0;
  width: 0;
  height: 0;
}

.dn-com-slider {
    position: absolute;
    cursor: pointer;
    top: -3px;
    left: 0px;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    -webkit-transition: .4s;
    transition: .4s;
    height: 24px;
    width: 46px;
}

.dn-com-slider:before {
    position: absolute;
    content: "";
    left: 2px;
    bottom: 2px;
    background-color: white;
    -webkit-transition: .4s;
    transition: .4s;
    height: 20px;
    width: 20px;
}

input:checked + .dn-com-slider {
  background-color: #00a4ff;
}

input:focus + .dn-com-slider {
  box-shadow: 0 0 1px #2196F3;
}

input:checked + .dn-com-slider:before {
  -webkit-transform: translateX(22px);
  -ms-transform: translateX(22px);
  transform: translateX(22px);
}
.dn-com-slider.round {
  border-radius: 34px;
}

.dn-com-slider.round:before {
  border-radius: 50%;
}
div#artiOptions {
    margin-bottom: 5px;
    margin-top: 7px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 34px;
    border: 1px solid #e2e8f0;
    padding-right: 12px;
    padding-top: 2px;
    padding-bottom: 2px;
    border-radius: 5px;
}
div#artiOptions label {
    font-weight: 100;
    color: #2b2b2b;
    font-size: 13px;
}
.dncominfo {
    padding: 0;
    height: 0;
    background-color: #ffffff;
    border: none;
	color: #2e4155;
	height: 17px;
}
.dncominfo:hover {
    color: #00a7ff;
    transition: all 0.3s;
}
.dncominfo {
  position: relative;
}

.dncominfo .dncominfotext {
  visibility: hidden;
  width: 120px;
  background-color: #00a7ff;
  color: #ffffff;
  text-align: center;
  border-radius: 6px;
  padding: 5px;
  position: absolute;
  z-index: 1;
  bottom: 150%;
  left: 350%;
  margin-left: -60px;
  font-size: 12px;
  opacity: 0;
  font-weight: 100;
}

.dncominfo .dncominfotext::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 9%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: #00aaff transparent transparent transparent;
}

.dncominfo:hover .dncominfotext {
  visibility: visible;
  z-index: 9999;
  opacity: 1;
  transition: all 0.3s;
}
 @media (min-width: 821px) {
    .mobile-tour {
      display: none !important;
    }
  }

  .mobile-tour-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
	-webkit-mask-image: radial-gradient(circle 31px at calc(100% - 30px) 30px, transparent 27px, black 28px);
  }

  .mobile-tour-box {
    position: absolute;
    background: #fff;
    padding: 16px;
    border-radius: 12px;
    max-width: 80%;
    font-size: 14px;
    box-shadow: 0 0 12px rgba(0,0,0,0.3);
  }

  .mobile-tour-arrow {
    width: 0; 
    height: 0; 
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid white;
    position: absolute;
    top: -10px;
  }
  .mobile-tour-ok {
    background: #3498db;
    color: #fff;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    margin-top: 8px;
  }