
    * {
      box-sizing: border-box;
    }

html {
  font-family: Arial, sans-serif;
  background-color: #f9f9f9;
  color: #333;
}

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}






    .container {
      width: 100%;
      max-width: 600px;
      padding: 20px;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
      background-color: white;
      border-radius: 8px;
      margin: 20px auto;
    }

    h1 {
      font-size: 24px;
      margin-bottom: 10px;
      text-align: center;
    }

    p {
      text-align: center;
      margin-bottom: 20px;
    }

    textarea,
    select,
    button {
      width: 100%;
      padding: 12px;
      margin-bottom: 15px;
      border: 1px solid #ccc;
      border-radius: 6px;
      font-size: 14px;
      box-sizing: border-box;
    }

    textarea {
      resize: vertical;
      min-height: 100px;
    }

    #output {
      background-color: #f1f1f1;
      padding: 15px;
      border-left: 4px solid #6b46c1;
      white-space: pre-wrap;
      word-wrap: break-word;
      border-radius: 6px;
      margin-bottom: 15px;
    }

    button {
      background-color: #6b46c1;
      color: white;
      cursor: pointer;
      transition: background-color 0.3s ease;
    }

    button:hover {
      background-color: #5a3aa8;
    }

    button.disabled {
      background-color: #ccc;
      cursor: not-allowed;
    }
.footer {
  margin-top: 40px;
  padding: 30px 20px;
  text-align: center;
  background-color: #f1f1f1;
  color: #666;
  font-size: 14px;
  border-top: 1px solid #ddd;
  transition: all 0.3s ease;
}

body.dark-mode .footer {
  background-color: #2c2c2c;
  color: #f0f0f0;
  border-top-color: #444;
}

.footer h3 {
  margin-bottom: 10px;
  font-size: 18px;
  color: #333;
}

.footer p {
  margin: 5px 0;
}

    .history {
      margin-top: 20px;
    }

    .history h2 {
      font-size: 18px;
      margin-bottom: 10px;
    }

    .prompt-item {
      background-color: #fafafa;
      padding: 10px;
      border-left: 3px solid #6b46c1;
      margin-bottom: 8px;
      border-radius: 4px;
      font-size: 14px;
    }

    .clear-history-btn {
  background-color: #e74c3c;
  color: white;
  border: none;
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 13px;
  margin-bottom: 10px;
  transition: background-color 0.3s ease;
}

.clear-history-btn.disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

.action-button {
  min-height: 44px;
  width: 100%;
  box-sizing: border-box;
}

/* Toggle Switch */
.toggle-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
}

.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .4s;
  border-radius: 34px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 2px;
  bottom: 2px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: #6b46c1;
}

input:focus + .slider {
  box-shadow: 0 0 1px #6b46c1;
}

input:checked + .slider:before {
  transform: translateX(26px);
}

/* Light/Dark Theme Styles */
body.light-mode {
  background-color: #f9f9f9;
  color: #333;
}

body.dark-mode {
  background-color: #1e1e1e;
  color: #f0f0f0;
}

body.dark-mode .container {
  background-color: #2c2c2c;
  color: #f0f0f0;
}

body.dark-mode #output,
body.dark-mode .prompt-item,
body.dark-mode .clear-history-btn,
body.dark-mode button,
body.dark-mode textarea,
body.dark-mode select {
  background-color: #3a3a3a !important;
  color: #fff !important;
  border-color: #555 !important;
}

