/* ========================================== */
/* ۱. ریست و بیس (پایه)                       */
/* ========================================== */
*,
:after,
:before {
  border: 0 solid #e5e7eb;
  box-sizing: border-box;
}
body {
  font-family: Vazirmatn, sans-serif;
  line-height: 1.6;
  margin: 0;
  font-size: 1.15em;
  background: #0f172a;
  color: #fff;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
  margin: 0;
  padding: 0;
  background: transparent;
  color: inherit;
}
button {
  cursor: pointer;
  transition: all 0.3s ease;
}
img,
video {
  max-width: 100%;
  height: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
}

/* ========================================== */
/* ۲. کلاس‌های پایه (بجای Tailwind)           */
/* ========================================== */
/* .hidden { display: none; }
.block { display: block; }
.inline { display: inline; }
.flex { display: flex; } */
/* .grid { display: grid; }
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.sticky { position: sticky; }
.inset-0 { inset: 0; }
.w-full { width: 100%; }
.h-full { height: 100%; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mr-auto { margin-right: auto; }
.ml-auto { margin-left: auto; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-3xl { border-radius: 1.5rem; }
.shadow-lg { box-shadow: 0 10px 25px -5px rgba(0,0,0,0.3); }
.shadow-xl { box-shadow: 0 20px 30px -10px rgba(0,0,0,0.4); }
.transition-all { transition: all 0.3s ease !important; }
.transition-opacity { transition: opacity 0.3s ease; }
.opacity-0 { opacity: 0; }
.opacity-100 { opacity: 1; }
.pointer-events-none { pointer-events: none; }
.overflow-auto { overflow: auto; }
.overflow-hidden { overflow: hidden; }
.overflow-x-auto { overflow-x: auto; }
.overflow-y-auto { overflow-y: auto; }
.whitespace-nowrap { white-space: nowrap; }
.border { border-width: 1px; }
.border-t { border-top-width: 1px; }
.border-b { border-bottom-width: 1px; }
.border-l { border-left-width: 1px; }
.border-r { border-right-width: 1px; }
.border-white\/20 { border-color: rgba(255,255,255,0.2); }
.border-white\/30 { border-color: rgba(255,255,255,0.3); }
.border-amber-400 { border-color: #f59e0b; }
.border-amber-400\/50 { border-color: rgba(245,158,11,0.5); }
.border-emerald-400\/30 { border-color: rgba(52,211,153,0.3); }
.border-sky-400\/30 { border-color: rgba(56,189,248,0.3); }
.border-rose-400\/30 { border-color: rgba(251,113,133,0.3); } */

/* ========================================== */
/* ۳. انیمیشن‌های عمومی                       */
/* ========================================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
@keyframes slideDown {
  from {
    max-height: 0;
    opacity: 0;
  }
  to {
    max-height: 500px;
    opacity: 1;
  }
}
@keyframes slideUp {
  from {
    max-height: 500px;
    opacity: 1;
  }
  to {
    max-height: 0;
    opacity: 0;
  }
}
@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-5px);
  }
  75% {
    transform: translateX(5px);
  }
}
@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.animate-fadeInUp {
  animation: fadeInUp 0.5s ease forwards;
}
.animate-fadeInLeft {
  animation: fadeInLeft 0.4s ease forwards;
}
.animate-scaleIn {
  animation: scaleIn 0.3s ease forwards;
}

/* ========================================== */
/* ۴. رنگ‌های پروژه (پس‌زمینه و متن)         */
/* ========================================== */
.text-white {
  color: #fff;
}
.text-white\/50 {
  color: rgba(255, 255, 255, 0.5);
}
.text-white\/70 {
  color: rgba(255, 255, 255, 0.7);
}
.text-gray-700 {
  color: #374151;
}
.text-amber-300 {
  color: #fcd34d;
}
.text-amber-400 {
  color: #f59e0b;
}
.text-amber-200 {
  color: #fde68a;
}
.text-emerald-200 {
  color: #a7f3d0;
}
.text-emerald-300 {
  color: #6ee7b7;
}
.text-sky-200 {
  color: #bae6fd;
}
.text-sky-300 {
  color: #7dd3fc;
}
.text-rose-200 {
  color: #fecdd3;
}
.text-rose-300 {
  color: #fda4af;
}
.text-purple-200 {
  color: #e9d5ff;
}
.text-purple-300 {
  color: #d8b4fe;
}
.text-blue-200 {
  color: #bfdbfe;
}
.text-blue-300 {
  color: #93c5fd;
}
.text-indigo-200 {
  color: #c7d2fe;
}
.text-yellow-300 {
  color: #fde047;
}
.text-pink-300 {
  color: #f9a8d4;
}
.text-cyan-300 {
  color: #67e8f9;
}
.text-orange-300 {
  color: #fdba74;
}

.bg-amber-500 {
  background-color: #f59e0b;
}
.bg-amber-500\/20 {
  background-color: rgba(245, 158, 11, 0.2);
}
.bg-amber-500\/30 {
  background-color: rgba(245, 158, 11, 0.3);
}
.bg-amber-500\/40 {
  background-color: rgba(245, 158, 11, 0.4);
}
.bg-emerald-500 {
  background-color: #10b981;
}
.bg-emerald-500\/20 {
  background-color: rgba(16, 185, 129, 0.2);
}
.bg-rose-500 {
  background-color: #f43f5e;
}
.bg-rose-500\/20 {
  background-color: rgba(244, 63, 94, 0.2);
}
.bg-sky-500\/20 {
  background-color: rgba(14, 165, 233, 0.2);
}
.bg-purple-500\/20 {
  background-color: rgba(168, 85, 247, 0.2);
}
.bg-indigo-500\/20 {
  background-color: rgba(99, 102, 241, 0.2);
}
.bg-white\/10 {
  background-color: rgba(255, 255, 255, 0.1);
}
.bg-white\/20 {
  background-color: rgba(255, 255, 255, 0.2);
}
.bg-white\/50 {
  background-color: rgba(255, 255, 255, 0.5);
}
.bg-gray-500 {
  background-color: #6b7280;
}
.bg-gray-600 {
  background-color: #4b5563;
}
.bg-red-400\/80 {
  background-color: rgba(248, 113, 113, 0.8);
}
.bg-red-500 {
  background-color: #ef4444;
}
.bg-red-500\/20 {
  background-color: rgba(239, 68, 68, 0.2);
}
.bg-red-600 {
  background-color: #dc2626;
}
.bg-blue-500 {
  background-color: #3b82f6;
}
.bg-blue-500\/20 {
  background-color: rgba(59, 130, 246, 0.2);
}
.bg-green-500\/20 {
  background-color: rgba(34, 197, 94, 0.2);
}
.bg-orange-500 {
  background-color: #f97316;
}

.hover\:bg-amber-500\/40:hover {
  background-color: rgba(245, 158, 11, 0.4);
}
.hover\:bg-amber-600:hover {
  background-color: #d97706;
}
.hover\:bg-emerald-500\/40:hover {
  background-color: rgba(16, 185, 129, 0.4);
}
.hover\:bg-emerald-600:hover {
  background-color: #059669;
}
.hover\:bg-rose-500\/40:hover {
  background-color: rgba(244, 63, 94, 0.4);
}
.hover\:bg-rose-600:hover {
  background-color: #e11d48;
}
.hover\:bg-red-500:hover {
  background-color: #ef4444;
}
.hover\:bg-gray-600:hover {
  background-color: #4b5563;
}
.hover\:bg-gray-700:hover {
  background-color: #374151;
}
.hover\:bg-white\/20:hover {
  background-color: rgba(255, 255, 255, 0.2);
}
.hover\:bg-white\/10:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* ========================================== */
/* ۵. استایل‌های اختصاصی برنامه              */
/* ========================================== */
.panel {
  background: rgba(30, 41, 59, 0.8);
  backdrop-filter: blur(10px);
}
.panel-2 {
  background: rgba(51, 65, 85, 0.8);
  backdrop-filter: blur(8px);
}
.soft {
  background: rgba(71, 85, 105, 0.6);
}

.sidebar::-webkit-scrollbar {
  width: 6px;
}
.sidebar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}
.sidebar::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
input[type="number"] {
  -moz-appearance: textfield;
}


/* ========================================== */
/* ۷. کارت‌های آماری                          */
/* ========================================== */
.stat-card {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(12px);
  border-radius: 20px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.3s ease;
  opacity: 0;
}
.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
  border-color: rgba(255, 255, 255, 0.15);
}
/* استگر انیمیشن */
.stat-card:nth-child(1) {
  animation: fadeInUp 0.5s ease 0.1s forwards;
}
.stat-card:nth-child(2) {
  animation: fadeInUp 0.5s ease 0.2s forwards;
}
.stat-card:nth-child(3) {
  animation: fadeInUp 0.5s ease 0.3s forwards;
}
.stat-card:nth-child(4) {
  animation: fadeInUp 0.5s ease 0.4s forwards;
}

/* ========================================== */
/* ۸. مودال‌ها (انیمیشن دار)                */
/* ========================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: all 0.35s ease;
}
.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.modal-box {
  background: linear-gradient(135deg, #1e3a8a, #0f172a);
  border-radius: 24px;
  padding: 28px;
  max-width: 420px;
  width: 90%;
  border: 2px solid rgba(245, 158, 11, 0.6);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6);
  transform: scale(0.9);
  transition: transform 0.35s ease;
}
.modal-overlay.active .modal-box {
  transform: scale(1);
}
.modal-title {
  font-size: 1.4rem;
  font-weight: bold;
  color: #f59e0b;
  margin-bottom: 16px;
}
.modal-message {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.05rem;
  margin-bottom: 24px;
}
.modal-buttons {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}
.modal-btn {
  padding: 10px 24px;
  border-radius: 12px;
  font-weight: bold;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
}
.modal-btn:hover {
  transform: translateY(-1px);
}
.modal-btn-confirm {
  background: #ef4444;
  color: white;
}
.modal-btn-cancel {
  background: #475569;
  color: white;
}

/* ========================================== */
/* ۹. نوتیفیکیشن                              */
/* ========================================== */
.notification {
  animation: fadeInUp 0.5s ease;
  position: fixed;
  bottom: 20px;
  left: 20px;
  background: rgba(239, 68, 68, 0.95);
  backdrop-filter: blur(12px);
  border: 2px solid #ef4444;
  border-radius: 16px;
  padding: 14px;
  color: white;
  z-index: 150;
  max-width: 320px;
  font-size: 0.85rem;
}

/* ========================================== */
/* ۱۰. لایو سرچ                               */
/* ========================================== */
.suggestion-item {
  padding: 10px 16px;
  cursor: pointer;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
  transition: all 0.2s ease;
}
.suggestion-item:hover {
  background: rgba(245, 158, 11, 0.3) !important;
  padding-right: 20px;
}

/* ========================================== */
/* ۱۰.۱ جدول ردیف‌های فاکتور (گرید ریسپانسیو) */
/* ========================================== */
.invoice-table-wrap {
  width: 100%;
}

.invoice-table-header {
  display: grid;
  grid-template-columns: 28px 1fr 70px 100px 100px 36px;
  gap: 6px;
  align-items: center;
  padding: 6px 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  color: #fcd34d;
  font-weight: 800;
  font-size: 0.85rem;
}
.invoice-table-header > div {
  text-align: center;
}
.invoice-table-header .ih-name {
  text-align: right;
}

.invoice-rows {
  display: flex;
  flex-direction: column;
}

.invoice-row {
  display: grid;
  grid-template-columns: 28px 1fr 70px 100px 100px 36px;
  gap: 6px;
  align-items: center;
  padding: 8px 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.invoice-row .cell-num {
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
}

.invoice-row .cell-total {
  text-align: center;
  color: white;
  font-weight: 700;
  font-size: 0.9rem;
}

.invoice-row .cell-del {
  text-align: center;
}

.invoice-row .mobile-field-label {
  display: none;
}

.invoice-row input.item-name-input,
.invoice-row input.qty-input,
.invoice-row input.price-input {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 10px;
  padding: 8px;
  color: #1f2937;
  font-size: 0.9rem;
  width: 100%;
  outline: none;
}
.invoice-row input.item-name-input::placeholder,
.invoice-row input.price-input::placeholder {
  color: #6b7280;
}
.invoice-row input.item-name-input:focus,
.invoice-row input.qty-input:focus,
.invoice-row input.price-input:focus {
  border-color: #f59e0b;
}
.invoice-row input.qty-input,
.invoice-row input.price-input {
  text-align: center;
}

.invoice-row .delete-row-btn {
  background: rgba(239, 68, 68, 0.2);
  color: #fca5a5;
  border: none;
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s ease;
}
.invoice-row .delete-row-btn:hover {
  background: rgba(239, 68, 68, 0.4);
}

.invoice-table-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 4px;
  border-top: 2px solid rgba(245, 158, 11, 0.5);
  margin-top: 4px;
}
.invoice-footer-label {
  font-weight: 700;
  color: #fcd34d;
  font-size: 0.9rem;
}
.invoice-footer-total {
  font-weight: 900;
  color: #fcd34d;
  font-size: 1.1rem;
}

/* ========================================== */
/* ۱۱. ریسپانسیو موبایل                       */
/* ========================================== */
@media (max-width: 768px) {
  .grid-cols-3 {
    gap: 0.5rem !important;
  }
  .grid-cols-3 > div {
    padding: 0.5rem !important;
  }
  .grid-cols-3 .text-lg,
  .grid-cols-3 .text-2xl {
    font-size: 0.9rem !important;
  }
  .grid-cols-3 .text-sm {
    font-size: 0.6rem !important;
  }
  #submitBtn,
  #cancelEditBtn {
    font-size: 0.9rem !important;
    padding: 0.75rem 1rem !important;
  }
  .md\:pr-96 {
    padding-right: 0 !important;
  }
  .stat-card {
    padding: 14px;
  }

  /* --- ردیف‌های فاکتور: از جدول به کارت --- */
  .invoice-table-header {
    display: none !important;
  }

  .invoice-row {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "name name"
      "qty price"
      "total del";
    gap: 8px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 14px;
    padding: 12px;
    margin-bottom: 10px;
    position: relative;
  }

  .invoice-row .cell-num {
    display: none;
  }

  .invoice-row .cell-name {
    grid-area: name;
  }
  .invoice-row .cell-qty {
    grid-area: qty;
  }
  .invoice-row .cell-price {
    grid-area: price;
  }
  .invoice-row .cell-total {
    grid-area: total;
    text-align: right;
    display: flex;
    align-items: center;
    gap: 6px;
    justify-content: flex-start;
  }
  .invoice-row .cell-del {
    grid-area: del;
    display: flex;
    align-items: center;
    justify-content: flex-end;
  }

  .invoice-row .mobile-field-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 3px;
  }

  .invoice-row input.item-name-input {
    font-size: 1rem;
    padding: 10px;
  }

  .invoice-row .delete-row-btn {
    padding: 10px 14px;
    font-size: 1rem;
  }

  .invoice-footer-label,
  .invoice-footer-total {
    font-size: 1rem;
  }

  /* --- تقویم شمسی روی موبایل --- */
  .jalali-cal-box {
    width: 94% !important;
    max-width: 320px !important;
    padding: 18px !important;
  }
  .jalali-cal-title {
    font-size: 1rem;
  }
  .jalali-nav-btn {
    width: 38px;
    height: 38px;
    font-size: 1.3rem;
  }
  .jalali-weekdays {
    font-size: 0.75rem;
  }
  .jalali-day-cell {
    font-size: 0.85rem;
    min-height: 34px;
  }
  .jalali-days-grid {
    gap: 3px;
  }
  .jalali-cal-footer .new-day-btn {
    font-size: 0.85rem;
    padding: 10px 8px !important;
  }
}

/* ========================================== */
/* استایل اینپوت روز جدید                     */
/* ========================================== */
.new-day-input-wrapper {
  margin-top: 12px !important;
  overflow: hidden !important;
  max-height: 0 !important;
  transition: max-height 0.3s ease !important;
}

.new-day-input-wrapper.active {
  max-height: 120px !important;
}

.new-day-input {
  width: 100% !important;
  padding: 12px !important;
  border-radius: 12px !important;
  border: 2px solid #f59e0b !important;
  background: rgba(255, 255, 255, 0.9) !important;
  color: #0f172a !important;
  font-size: 1rem !important;
  font-weight: bold !important;
  outline: none !important;
}

.new-day-buttons {
  display: flex !important;
  gap: 8px !important;
  margin-top: 8px !important;
}

.new-day-btn {
  flex: 1 !important;
  padding: 10px 12px !important;
  border-radius: 10px !important;
  font-weight: bold !important;
  font-size: 0.9rem !important;
  border: none !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  text-align: center !important;
}

.new-day-btn-save {
  background: #10b981 !important;
  color: white !important;
}

.new-day-btn-save:hover {
  background: #059669 !important;
}

.new-day-btn-cancel {
  background: #6b7280 !important;
  color: white !important;
}

.new-day-btn-cancel:hover {
  background: #4b5563 !important;
}

/* ========================================== */
/* دکمه انتخاب تاریخ (بجای اینپوت متنی)      */
/* ========================================== */
.new-day-date-btn {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  cursor: pointer !important;
  text-align: right !important;
  color: #0f172a !important;
  opacity: 1 !important;
}

.new-day-date-btn.has-value {
  color: #0f172a !important;
  border-color: #10b981 !important;
  font-weight: 800 !important;
}

/* ========================================== */
/* تقویم شمسی (Jalali Calendar)               */
/* ========================================== */
.jalali-cal-box {
  max-width: 340px !important;
  width: 92% !important;
}

.jalali-cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.jalali-cal-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 1.1rem;
  font-weight: 800;
  color: #fbbf24;
}

.jalali-nav-btn {
  background: #f59e0b;
  color: white;
  border: none;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  font-size: 1.2rem;
  font-weight: 900;
  cursor: pointer;
  transition: all 0.2s ease;
  line-height: 1;
}

.jalali-nav-btn:hover {
  background: #d97706;
}

.jalali-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: 0.8rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 6px;
}

.jalali-days-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.jalali-day-cell {
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  transition: all 0.15s ease;
  background: rgba(255, 255, 255, 0.08);
}

.jalali-day-cell:hover {
  background: rgba(245, 158, 11, 0.4);
}

.jalali-day-cell.jalali-empty {
  cursor: default;
  background: transparent;
}

.jalali-day-cell.jalali-today {
  border: 2px solid #f59e0b;
}

.jalali-day-cell.jalali-selected {
  background: #f59e0b !important;
  color: white !important;
}

.jalali-cal-footer {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

/* انیمیشن ، نوتیفیکیشن اعلان موجودی */
@keyframes slideIn {
  from {
    transform: translateX(100px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.overflow-x-auto {
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE */
}
.overflow-x-auto::-webkit-scrollbar {
  display: none; /* Chrome, Safari */
}

/* ========================================== */
/* منوی پایین موبایل - Glassmorphism         */
/* ========================================== */
#mobile-nav {
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  transition: all 0.3s ease;
}

/* آیتم‌های عادی */
.mobile-link {
  padding: 12px 20px;
  border-radius: 20px;
  transition: all 0.3s ease;
  text-decoration: none;
}

/* آیتم فعال */
.mobile-link.mobile-active {
  background: rgba(245, 158, 11, 0.25);
  color: #f59e0b !important;
}

.mobile-link.mobile-active span {
  color: black !important;
}

/* بزرگ شدن نرم آیکون‌های منوی پایین در هاور */
.mobile-link {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-link:hover {
  transform: scale(1.15);
}

.mobile-link:hover .nav-icon,
.mobile-link:hover i {
  transform: scale(1.1);
}

/* افکت هاور برای آیکون‌های بوت‌استرپ */
.mobile-link i {
  transition: transform 0.3s ease;
}

/* افکت لمس برای موبایل - بزرگ شدن لحظه‌ای */
.mobile-link:active {
  transform: scale(0.9) !important;
  transition: transform 0.1s ease !important;
}

.mobile-link:active .nav-icon,
.mobile-link:active i {
  transform: scale(0.9) !important;
}

/* برگشت به حالت عادی - نرم */
.mobile-link {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.mobile-link .nav-icon,
.mobile-link i {
  transition: transform 0.3s ease !important;
}

/* Ripple effect */
.mobile-link {
  position: relative;
  overflow: hidden;
}

.mobile-link::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(245, 158, 11, 0.3);
  border-radius: 20px;
  transform: scale(0);
  transition: transform 0.4s ease;
}

.mobile-link:active::after {
  transform: scale(1);
  transition: transform 0s;
}

/* ========================================== */
/* انیمیشن‌های نرم برای اینپوت‌های فرم اصلی    */
/* ========================================== */

/* استایل پایه برای همه اینپوت‌های فرم */
#reportForm input[type="text"],
#reportForm input[type="number"],
#reportForm select {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  caret-color: #f59e0b; /* رنگ خط چشمک‌زن طلایی */
}

/* حالت هاور - وقتی موس میره روش */
#reportForm input[type="text"]:hover,
#reportForm input[type="number"]:hover,
#reportForm select:hover {
  border-color: rgba(245, 158, 11, 0.6);
  background: rgba(255, 255, 255, 0.65);
  transform: translateY(-1px);
}

/* حالت فوکوس - وقتی کلیک میشه و فعاله */
#reportForm input[type="text"]:focus,
#reportForm input[type="number"]:focus,
#reportForm select:focus {
  border-color: #f59e0b;
  box-shadow:
    0 0 0 4px rgba(245, 158, 11, 0.2),
    0 4px 12px rgba(0, 0, 0, 0.1);
  transform: scale(1.04); /* بزرگ‌تر از قبل (1.01 بود) */
  background: rgba(255, 255, 255, 0.8);
  outline: none;
}

/* انیمیشن placeholder */
#reportForm input::placeholder {
  transition: all 0.3s ease;
}

#reportForm input:focus::placeholder {
  opacity: 0.5;
  transform: translateX(-5px);
}