

code {
  font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
    monospace;
}

@font-face {
  font-family: 'Vazirmatn';
  src: url('/fonts/Vazirmatn.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}



@font-face {
  font-family: 'BTir';
  src:   url('/fonts/BTir.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}



@font-face {
  font-family: 'BYekan';
  src:  url('/fonts/BYekan.ttf') format('truetype') ;
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}



@font-face {
  font-family: 'BZar';
  src:   url('/fonts/BZar.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

.App {
  text-align: center;
}

.App-logo {
  height: 40vmin;
  pointer-events: none;
}

body {
  font-family: 'Vazirmatn', sans-serif;
}
label {
  font-family: 'Vazirmatn', sans-serif;
}
p {
  font-family: 'Vazirmatn', sans-serif;
}
span {
  font-family: 'Vazirmatn', sans-serif;
}
th {
  font-family: 'Vazirmatn', sans-serif;
}
td {
  font-family: 'Vazirmatn', sans-serif;
}
a {
  font-family: 'Vazirmatn', sans-serif;
}
.fontApp
 {
  font-family: 'Vazirmatn', sans-serif;
}
.alert{
   font-family: 'Vazirmatn', sans-serif;
}
@media (prefers-reduced-motion: no-preference) {
  .App-logo {
    animation: App-logo-spin infinite 20s linear;
  }
}

.App-header {
  background-color: #282c34;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: calc(10px + 2vmin);
  color: white;
}

.App-link {
  color: #61dafb;
}

@keyframes App-logo-spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.counterLabel {
  font-size: medium;
  margin: 10px;
}

.shoppingCard {
  margin: 10px;
}

.shopIcon {
  font-size: xx-large;
}

.marginApp {
  margin-left: 5px;
  margin-right: 5px;
}

.userInfo {
  direction: ltr;
}

.modal-body {
  direction: rtl;
}

.formInfo {
  width: 75%;
  background-color: rgb(198 233 186);
  padding: 25px;
  margin-left: auto;
  margin-right: auto;
}

.rowSum {
  background-color: mediumseagreen;
}

.borderPaging {
  border-top: groove;
}

.page-link-App {
  cursor: pointer
}

.iconRefresh {
  position: absolute;
  left: 10px;
}

.colorMenu {
  background-color: lightgrey;
}

.nav-link {
  color: black !important;
  font-size: larger !important;
  font-weight: bold !important;
}

.leftBtn {
  left: 22px;
  position: absolute;
}

.animate-card {
  animation: fadeInUp 0.7s ease-in-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.custom-switch {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
}

.custom-switch input {
  position: relative;
  width: 50px;
  height: 24px;
  background: #ccc;
  outline: none;
  border-radius: 50px;
  transition: 0.4s;
  cursor: pointer;
  -webkit-appearance: none;
}

.custom-switch input:checked {
  background: #4caf50;
}

.custom-switch input::before {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  top: 2px;
  left: 2px;
  background: white;
  transition: 0.4s;
}

.custom-switch input:checked::before {
  transform: translateX(26px);
}

.custom-switch label {
  font-size: 1rem;
  cursor: pointer;
}

.card-header {
  background-color: #ffdf83 !important;
  margin-top: 1px !important;
  font-family: 'Vazirmatn', sans-serif;
}

.font-size {
  font-size: 10px;
font-family: 'Vazirmatn', sans-serif;
}

/* لینک‌های منو افکت دار */
.custom-link {
  color: black !important;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
}

.custom-link::after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: black;
  transition: width 0.3s ease;
}

.custom-link:hover {
  color: white !important;
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 6px;
}

.custom-link:hover::after {
  width: 100%;
}

header h4 {
  letter-spacing: 1px;
}

header p {
  color: #333;
  font-size: 14px;
}

@media (max-width: 576px) {
  header h4 {
    font-size: 16px;
  }

  header p {
    font-size: 12px;
  }
}

@media (max-width: 576px) {
  table.table thead {
    display: none;
    /* هدر حذف میشه در موبایل */
  }

  table.table tr {
    display: block;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 8px;
  }

  table.table td,
  table.table th {
    display: block;
    text-align: right;
    width: 100%;
    padding: 6px 10px;
    border: none;
  }

  table.table td::before {
    content: attr(data-label);
    /* متن هدر میاد */
    font-weight: bold;
    margin-left: 5px;
    color: #444;
    display: inline-block;
    min-width: 70px;
  }
}

.title-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  font-size: 20px;
  font-weight: bold;
  color: #333;
  text-align: right;
  direction: rtl;
  font-family: 'Vazirmatn', sans-serif;
}

.keyword-tag {
  display: inline-block;
  color: #8f8f86;
  font-family:'Vazirmatn';
  font-size: 0.85rem;
  padding: 2px 8px;
  border-radius: 12px;
  margin: 2px;
}

.float-btn {
  position: fixed;
  right: 20px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  color: #fff;
  text-align: center;
  line-height: 60px;
  font-size: 30px;
  z-index: 9999;
  text-decoration: none;
}

.whatsapp {
  bottom: 20px;
  background: #25D366;
}

.telegram {
  bottom: 90px;
  background: #0088cc;
}

.tooltip-app {
  position: relative;
}

.tooltip-app::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 110%;
  left: 50%;
  transform: translateX(-50%);
  background-color: #2e7d32;
  color: #fff;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: 0.2s ease;
  pointer-events: none;
  z-index: 999;
}

.tooltip-app::before {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);

  border-width: 6px;
  border-style: solid;
  border-color: #2e7d32 transparent transparent transparent;

  opacity: 0;
  visibility: hidden;
  transition: 0.2s ease;
}

.tooltip-app:hover::after,
.tooltip-app:hover::before {
  opacity: 1;
  visibility: visible;
}

/* تولتیپ کوچک و مینیمال */
.float-btn::after {
  content: attr(data-tooltip);
  position: absolute;
  right: 65px;
  top: 50%;
  transform: translateY(-50%);
  background-color: #2e7d32;
  color: #fff;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: 0.25s ease;
}

/* فلش تولتیپ */
.float-btn::before {
  content: "";
  position: absolute;
  right: 58px;
  top: 50%;
  transform: translateY(-50%);
  border: 5px solid transparent;
  /* کوچیک‌تر */
  border-left-color: #222;
  opacity: 0;
  transition: 0.25s ease;
}

.float-btn:hover::after,
.float-btn:hover::before {
  opacity: 1;
}

.product-card {
  border: 2px solid transparent;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
  border-color: #ffc107;
  box-shadow: 0 0 15px rgba(255, 193, 7, 0.5);
}

.product-title {
  font-family: 'Vazirmatn', sans-serif;
  display: '-webkit-box';
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 48px;
}
.dropdown-menu {
  min-width: 180px;
  text-align: right;
  font-family: Vazirmatn;
}
.invoice {
  font-family: Vazirmatn;
  background: #fff;
  padding: 30px;
  border-radius: 12px;
}

.invoice-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
}

.invoice table th {
  background: #f8f9fa;
  text-align: center;
}

.invoice table td {
  text-align: center;
  vertical-align: middle;
}

@page {
  size: A4;
  margin: 5mm;
}

@media print {

  body * {
    visibility: hidden !important;
  }

  #invoice-print,
  #invoice-print * {
    visibility: visible !important;
  }

  #invoice-print {
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    left: 0 !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .modal,
  .modal-dialog,
  .modal-content,
  .modal-body {
    position: static !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
    background: white !important;
  }

  .modal-header,
  .modal-footer {
    display: none !important;
  }
}