.drj-portal-wrapper {
  max-width: 100%;
  margin: 20px auto;
  font-family: Vazirmatn, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-align: right;
  direction: rtl;
  background: #fefefe;
  border: 2px dashed #cbd5e1;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.drj-step {
  display: none;
}

.drj-step.active {
  display: block;
}

.drj-title {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 8px;
  color: #1e293b;
  line-height: 1.4;
  text-align: center;
}

.drj-subtitle {
  font-size: 13px;
  color: #64748b;
  margin: 0 0 16px;
  line-height: 1.4;
  text-align: center;
}

.drj-file-input-hidden {
  display: none;
}

.drj-buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 16px;
}

.drj-btn {
  padding: 10px 20px !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 8px !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  font-family: inherit !important;
  background: white !important;
  color: #475569 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  text-decoration: none !important;
  box-shadow: none !important;
}

.drj-btn:hover {
  background-color: #f8fafc !important;
  border-color: #cbd5e1 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08) !important;
}

.drj-btn-primary {
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%) !important;
  color: white !important;
  border: none !important;
  padding: 12px 24px !important;
  font-size: 15px !important;
}

.drj-btn-primary:hover {
  background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 8px rgba(99, 102, 241, 0.3) !important;
}

.drj-btn-primary:disabled {
  background: #cbd5e1 !important;
  cursor: not-allowed !important;
  transform: none !important;
  box-shadow: none !important;
}

.drj-full-width {
  width: 100%;
}

.drj-hidden {
  display: none !important;
}

#drj-file-preview-container {
  margin: 16px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.drj-preview-item {
  position: relative;
  display: inline-block;
}

.drj-preview-item img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid #e2e8f0;
}

.drj-remove-btn {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 22px;
  height: 22px;
  background-color: #ef4444;
  color: white;
  border: 2px solid white;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  line-height: 18px;
  font-weight: bold;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.drj-remove-btn:hover {
  background-color: #dc2626;
  transform: scale(1.15);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.drj-step h2,
.drj-step-title {
  font-size: 16px;
  margin-bottom: 10px;
  color: #1e293b;
  text-align: center;
  font-weight: 600;
}

.drj-step p {
  margin-bottom: 16px;
  color: #64748b;
  line-height: 1.5;
  font-size: 13px;
  text-align: center;
}

.drj-step form {
  margin-top: 12px;
}

.drj-input {
  width: 100% !important;
  padding: 12px 16px !important;
  margin-bottom: 12px !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 8px !important;
  font-size: 15px !important;
  transition: all 0.2s !important;
  box-sizing: border-box !important;
  text-align: right !important;
  direction: rtl !important;
  background: white !important;
  box-shadow: none !important;
}

.drj-input:focus {
  outline: none !important;
  border-color: #6366f1 !important;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1) !important;
}

.drj-input::placeholder {
  color: #94a3b8;
}

#drj-message-area {
  padding: 0;
  text-align: center;
  margin-top: 12px;
}

#drj-loading,
#drj-error-message {
  padding: 10px;
  border-radius: 8px;
  margin-top: 12px;
  font-size: 13px;
}

#drj-loading {
  color: #475569;
  background-color: #f1f5f9;
  border: 1px solid #e2e8f0;
}

#drj-error-message {
  color: #991b1b;
  background-color: #fee2e2;
  border: 1px solid #fecaca;
}

/* Success Step */
.drj-success-icon {
  width: 60px;
  height: 60px;
  background: #10b981;
  border-radius: 50%;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.drj-success-title {
  color: #10b981;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
}

.drj-success-text {
  color: #64748b;
  font-size: 13px;
  line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 640px) {
  .drj-portal-wrapper {
    margin: 15px auto;
    padding: 16px;
    border-width: 1px;
  }

  .drj-title {
    font-size: 14px;
  }

  .drj-subtitle {
    font-size: 12px;
  }

  .drj-btn {
    padding: 9px 16px;
    font-size: 13px;
  }

  .drj-btn-primary {
    padding: 11px 20px;
    font-size: 14px;
  }

  .drj-preview-item img {
    width: 70px;
    height: 70px;
  }

  .drj-input {
    font-size: 14px;
    padding: 11px 14px;
  }
}

/* Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.drj-step.active {
  animation: fadeIn 0.3s ease-out;
}

/* کوچک کردن padding برای مراحل بعدی */
.drj-step {
  padding: 0;
}
