@font-face {
  font-family: "IRANSansX";
  src: url("dist/font/IRANSansXFaNum-Regular.ttf") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(40px) scale(0.9);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family:
    iransansx,
    iransans,
    "Segoe UI",
    system-ui,
    -apple-system,
    "Roboto",
    Tahoma,
    sans-serif;
  direction: rtl;
  background: #f5f5f5;
  min-height: 100vh;
}
.scrollable-content {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
}
.sticky-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(90deg, #50325d 0%, #7a5198 100%);
  padding: 20px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.desktop-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  background: #f5f5f5;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.mobile-container {
  width: 100%;
  max-width: 720px;
  min-width: 320px;
  background: #f5f7fb;
  height: 100vh;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
  margin: 0 auto;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

@media (min-width: 431px) {
  .mobile-container {
        border-radius: 32px;
        margin: 0 auto;
        height: calc(100vh - 20px);
        top: 10px;
  }
}
.skeleton-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 18px 20px;
  border: 1px solid #c6c6c6;
  direction: rtl;
  margin-bottom: 12px;
}

.sk-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.sk-end {
  justify-content: flex-start;
  margin-top: 4px;
}

.sk-icon {
  width: 22px;
  height: 22px;
  border-radius: 4px;
  background: #ebeae6;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.sk-icon-sm {
  width: 16px;
  height: 16px;
}

.sk-bar {
  height: 12px;
  border-radius: 6px;
  background: #ebeae6;
  position: relative;
  overflow: hidden;
}

.sk-bar-xs {
  width: 70px;
}
.sk-bar-sm {
  width: 100px;
}
.sk-bar-md {
  width: 140px;
}
.sk-bar-lg {
  width: 100%;
}

.sk-divider {
  height: 1px;
  background: #f0eee9;
  margin: 14px 0;
}

.sk-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.sk-btn {
  height: 38px;
  border-radius: 12px;
  background: #ebeae6;
  position: relative;
  overflow: hidden;
}

.sk-icon::after,
.sk-bar::after,
.sk-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.85),
    transparent
  );
  transform: translateX(100%);
  animation: sk-shimmer 1.4s infinite;
}

@keyframes sk-shimmer {
  0% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(-100%);
  }
}

/* همه بچه‌های یه انتیتی که این کلاس داره، خودکار پشت سر هم انیمیشن می‌گیرن */
.anim-stagger > * {
  opacity: 0;
  animation: fadeInUp 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.anim-stagger > *:nth-child(1) {
  animation-delay: 0ms;
}
.anim-stagger > *:nth-child(2) {
  animation-delay: 100ms;
}
.anim-stagger > *:nth-child(3) {
  animation-delay: 200ms;
}
.anim-stagger > *:nth-child(4) {
  animation-delay: 300ms;
}
.anim-stagger > *:nth-child(5) {
  animation-delay: 400ms;
}
.anim-stagger > *:nth-child(6) {
  animation-delay: 500ms;
}
.anim-stagger > *:nth-child(7) {
  animation-delay: 600ms;
}
.anim-stagger > *:nth-child(8) {
  animation-delay: 700ms;
}
.anim-stagger > *:nth-child(9) {
  animation-delay: 800ms;
}
.anim-stagger > *:nth-child(10) {
  animation-delay: 900ms;
}
.anim-stagger > *:nth-child(11) {
  animation-delay: 1000ms;
}
.anim-stagger > *:nth-child(12) {
  animation-delay: 1100ms;
}
.anim-stagger > *:nth-child(13) {
  animation-delay: 1200ms;
}
.anim-stagger > *:nth-child(14) {
  animation-delay: 1300ms;
}
.anim-stagger > *:nth-child(15) {
  animation-delay: 1400ms;
}
.anim-stagger > *:nth-child(16) {
  animation-delay: 1500ms;
}
.anim-stagger > *:nth-child(17) {
  animation-delay: 1600ms;
}
.anim-stagger > *:nth-child(18) {
  animation-delay: 1700ms;
}
.anim-stagger > *:nth-child(19) {
  animation-delay: 1800ms;
}
.anim-stagger > *:nth-child(20) {
  animation-delay: 1900ms;
}
.anim-stagger > *:nth-child(n + 21) {
  animation-delay: 2000ms;
}

.bottom-modal-overlay {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  visibility: hidden;
  opacity: 0;
  transition: all 0.3s ease;
  height: 100%;
}

.bottom-modal-overlay.active {
  visibility: visible;
  opacity: 1;
}

.bottom-modal-container {
  background: white;
  width: 100%;
  max-width: 430px;
  border-radius: 28px 28px 0 0;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  box-shadow: 0 -20px 40px rgba(0, 0, 0, 0.1);
}

.bottom-modal-overlay.active .bottom-modal-container {
  transform: translateY(0);
}

.bottom-modal-header {
  padding: 20px;
  border-bottom: 1px solid #eee;
}

.bottom-modal-header h3 {
  font-size: 18px;
  font-weight: 600;
  color: #202124;
}

.bottom-modal-body {
  padding: 20px;
}
.bottom-modal-buttons {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}
.modal-btn {
  flex: 1;
  padding: 14px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.1s ease;
  border: none;
  font-family: inherit;
}

.modal-btn-cancel {
  background: #f0f0f0;
  color: #666;
}

.modal-btn-submit {
  background: #c62828;
  color: white;
  opacity: 0.5;
  cursor: not-allowed;
}

.modal-btn-submit.active {
  opacity: 1;
  cursor: pointer;
}

.modal-btn-cancel {
  background: #f0f0f0;
  color: #666;
}
.modal-btn-confirm {
  background: #2e7d32;
  color: white;
}
.modal-btn-danger {
  background: #c62828;
  color: white;
}
.dis-menuitem{
  background: #ffffff3b !important;
    cursor: no-drop !important;
    border: none !important;
}
.dis-menuitem .menu-content{
  opacity: 0.5 !important;
}
.back-btn {
  background: rgba(255,255,255,0.2);
  border: none;
  width: 100px;
  height: 50px;
  border-radius: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.1s ease;
  backdrop-filter: blur(5px);
  flex-shrink: 0;
}
.back-btn:active {
  transform: scale(0.95);
}

.back-btn svg {
  width: 22px;
  height: 22px;
  fill: white;
}
.edit-header {
  background: linear-gradient(90deg, #50325d 0%, #7a5198 100%);
  padding: 12px 20px;
  border-bottom: 1px solid #e8e8e8;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.edit-header h1 {
  font-size: 18px;
  font-weight: 600;
  color: #ffffff;
}
.header-title p {
  font-size: 15px;
  color: #cdbfd7;
  font-weight: 400;
}
