body {
  margin: 0;
  font-family: 'Vazirmatn', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background-color: #3e3e3e;
  color: #dddddd;
  direction: rtl;
}

.container {
  display: flex;
  min-height: 100vh;
}

.main-content {
  flex-grow: 1;
  padding: 30px;
  display: flex;
  flex-direction: column;
}

.page-title {
  font-size: 2.5rem;
  color: #dddddd;
  margin-bottom: 5px;
  border-bottom: 2px solid #dddddd;
  padding-bottom: 10px;
}

.subtitle {
  font-size: 1rem;
  color: #dddddd;
  margin-bottom: 30px;
}

.editor-section {
  background-color: #5f5f5f;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.label {
  display: block;
  font-size: 1.1rem;
  font-weight: bold;
  margin-bottom: 10px;
}

.input-area {
  width: 95%;
  height: 120px;
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 15px;
  font-size: 1.25rem;
  font-family: monospace;
  direction: ltr;
  resize: vertical;
  transition: all 0.3s ease;
  background-color:#8a8a8a ;
  color: #dddddd;
}

.input-area:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
}

.output-area {
  margin-top: 20px;
  padding: 20px;
  background: #8a8a8a;
  border-radius: 6px;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  text-align: center;
  overflow-x: auto;
}

.copy-button {
  background-color: #28a745;
  color: #fff;
  border: none;
  padding: 12px 25px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: bold;
  margin-top: 15px;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.copy-button:hover {
  background-color: #218838;
  transform: translateY(-2px);
}

.sidebar {
  width: 320px;
  background-color: #5f5f5f;
  padding: 20px;
  box-shadow: -4px 0 15px rgba(0, 0, 0, 0.05);
  overflow-y: auto;
  border-left: 1px solid #e0e0e0;
}

.sidebar-title {
  font-size: 1.2rem;
  color: #dddddd;
  border-bottom: 1px solid #dddddd;
  padding-bottom: 10px;
  margin-bottom: 20px;
}

.buttons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
  gap: 8px;
}

.sidebar button {
  background-color: #f8f9fa;
  color: #333;
  border: 1px solid #ced4da;
  border-radius: 4px;
  padding: 10px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.1s ease;
}

.sidebar button:hover {
  background-color: #e2e6ea;
  border-color: #b8c4c2;
  transform: scale(1.05);
}

/* Responsive design */
@media (max-width: 992px) {
  .container {
      flex-direction: column;
  }
  .sidebar {
    width: 100%;
    border-left: none;
    border-top: 1px solid #e0e0e0;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.05);
    padding: 20px;
    border-radius: 20px 20px 0px 0px;
  }
  .main-content {
      padding: 20px;
  }
  .page-title {
      font-size: 2rem;
  }
}

@media (max-width: 425px) {
  .main-content {
    padding: 0px;
    margin-bottom: 20px;
}
  .editor-section {
    background-color: #5f5f5f;
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
  }
  .output-area{
    margin-top: 20px;
    padding: 20px;
    background: #8a8a8a;
    border-radius: 6px;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    text-align: center;
    overflow-x: scroll;
    width: 93%;
  }
}