@font-face {
  font-family: 'VAZIR';
  src: url('fonts/VAZIR.woff2') format('woff2'),
       url('fonts/VAZIR.ttf') format('truetype');
}

body {
  font-family: 'VAZIR', sans-serif;
  background-image: url('background.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  margin: 0;
  padding: 0;
  direction: rtl;
  color: #333;
}

.container {
  max-width: 800px;
  margin: 40px auto;
  padding: 1rem;
  text-align: center;
}

.section-title {
  background: rgba(255, 255, 255, 0.1);
  padding: 1rem;
  margin-bottom: 1rem;
  border-radius: 15px;
  font-weight: bold;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

#mainForm {
  background: rgba(255, 255, 255, 0.1);
  padding: 2rem;
  border-radius: 20px;
  backdrop-filter: blur(6px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

textarea {
  font-family: 'VAZIR', sans-serif;
  font-size: 16px;
  padding: 12px;
  border-radius: 12px;
  width: 100%;
  resize: vertical;
  min-height: 120px;
  border: 2px solid black;
  background-color: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(4px);
  box-sizing: border-box;
  text-align: center;
}

button {
  background-color: #6014a3;
  color: white;
  border: 2px solid black;
  padding: 12px 24px;
  border-radius: 50px;
  font-size: 18px;
  cursor: pointer;
  margin-top: 0;
  width: 100%;
  max-width: 420px;
  font-family: 'VAZIR', sans-serif;
}

button:hover {
  background-color: white;
  color: #6014a3;
  border: 2px solid #6014a3;
}

.file-upload-section {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 15px;
  align-items: center;
}

.file-upload-container {
  display: flex;
  justify-content: center;
  gap: 10px;
  width: 100%;
  max-width: 420px;
}

.custom-file-upload {
  display: inline-block;
  background-color: #6014a3;
  color: white;
  border: 2px solid black;
  padding: 8px 10px;
  border-radius: 50px;
  font-size: 14px;
  cursor: pointer;
  text-align: center;
  width: 100%;
  max-width: 205px;
  transition: all 0.3s ease;
}

.custom-file-upload:hover {
  background-color: white;
  color: #6014a3;
  border: 2px solid #6014a3;
}

.custom-file-upload span {
  display: inline-block;
}

.data-list {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.data-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  padding: 10px 20px;
  gap: 10px;
  border-radius: 16px;
  border: 1px solid #bbb;
  background-color: rgba(255, 255, 255, 0.25);
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  transition: background 0.3s ease;
  box-sizing: border-box;
}

.data-item:hover {
  background: rgba(255, 255, 255, 0.4);
}

.data-item.success {
  background-color: #d1fdd1;
  border: 2px solid #28a745;
}

.data-item.error {
  background-color: #ffd6d6;
  border: 2px solid #dc3545;
}

.data-item-number {
  min-width: 30px;
  text-align: center;
  font-weight: bold;
  background-color: #eee;
  padding: 6px 10px;
  border-radius: 8px;
}

.data-item-number.success {
  background-color: #28a745;
  color: white;
}

.data-item-id {
  width: 90px;
  max-width: 90px;
  padding: 6px 8px;
  border-radius: 8px;
  font-size: 10px;
  background-color: #000;
  color: #fff;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 33px;
  line-height: 1;
  box-sizing: border-box;
  text-align: center;
  direction: ltr;
}

.data-item-second,
.data-item-third,
.data-item-fourth {
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 14px;
  background-color: rgba(255, 255, 255, 0.15);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 150px;
  cursor: pointer;
}

.data-item-second {
  text-align: right;
  font-weight: bold;
  color: #6014a3;
}

.data-item-third,
.data-item-fourth {
  direction: ltr;
  text-align: left;
}

.copied {
  background-color: #bdf5bd;
  border: 1.5px solid #4caf50;
  box-shadow: 0 0 6px #a4e5a4 inset;
  font-weight: bold;
}

.data-separator {
  width: 1px;
  height: 24px;
  background-color: #aaa;
  margin: 0 6px;
}

.error-circle {
  margin-right: auto;
  border: 2px solid #dc3545;
  border-radius: 50%;
  color: #dc3545;
  padding: 4px 6px;
  font-size: 11px;
  cursor: pointer;
  text-align: center;
  transition: all 0.3s ease;
  width: 40px;
  height: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
}

.error-circle:hover {
  background-color: #6014a3;
  color: white;
  border-color: #6014a3;
}

.copy-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(240, 255, 240, 0.8);
  backdrop-filter: blur(8px);
  color: #155724;
  font-weight: bold;
  padding: 12px 24px;
  border-radius: 16px;
  font-family: 'VAZIR', sans-serif;
  font-size: 16px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  z-index: 9999;
}

.copy-popup.show {
  opacity: 1;
}

.filter-buttons {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: nowrap;
  align-items: center;
  max-width: 800px;
}

.filter-buttons button {
  flex: 1;
  padding: 8px 0;
  font-size: 14px;
  border: 2px solid #6014a3;
  background-color: white;
  color: #6014a3;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s;
  font-family: 'VAZIR', sans-serif;
  min-width: 80px;
  max-width: 120px;
}

.filter-buttons button:hover {
  background-color: #6014a3;
  color: white;
}

.filter-buttons button.active {
  background-color: #6014a3;
  color: white;
  border: 2px solid #6014a3;
  font-weight: bold;
}

.filter-count {
  font-size: 14px;
  font-weight: bold;
  color: #444;
}

.site-header {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.header-content {
  text-align: center;
}

.header-title {
  font-size: 1.4rem;
  color: #333;
  margin: 0;
}

.site-footer {
  padding: 10px 0;
  text-align: center;
  background-color: rgba(255, 255, 255, 0.05);
  margin-top: -35px;
}

.footer-designer {
  max-width: 120px;
  height: auto;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.footer-designer:hover {
  opacity: 1;
}