/* Base Resets & Global */
    * {
      box-sizing: border-box;
    }
    body {
      font-family: Arial, sans-serif;
      margin: 0;
      padding: 0;
      background: #f9fafb;
      color: #333;
    }
    a {
      text-decoration: none;
      color: inherit;
    }

    /* Typography */
    h1 {
      font-size: 35px;
      margin: 0; /* Remove default margin */
    }

    /* Container for Quote Generator */
    .container-quote {
      max-width: 1250px;
      margin: 1rem auto;
      padding: 1rem; /* Increased padding for better spacing */
      background: #ffffff;
      border-radius: 12px;
      box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
      display: flex;
      flex-direction: column; /* Change to column for easier stacking */
      gap: 1.5rem;
    }

    /* Header Section */
    .quote-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      flex-wrap: wrap; /* Allow wrapping on smaller screens */
      gap: 1rem;
    }

    .quote-header h1 {
      flex: 1 1 60%; /* Allow the heading to take up available space */
      font-size: 1.5rem; /* Adjust font size for better responsiveness */
    }

  /* Make Custom Quotes Button */
.make-custom-btn {
   background-color: #4a47e0; /* Adjusted for better contrast */
  color: #ffffff; /* White text for sufficient contrast */
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 5px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background-color 0.3s ease; /* Only background transitions */
  text-align: center;
  flex: 0 0 auto; /* Prevent the button from stretching */
}

/* Disable text hover effect */
.make-custom-btn:hover {
  color: #fff !important; /* Keep the text color the same on hover */
  text-decoration: none !important; /* Ensure no underline or style change */
}


    .container-work{
           max-width: 1250px;
            margin: 1rem auto;
            padding: 1rem;
            background: #ffffff;
            border-radius: 8px;
            box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    }
    /* Input Section & Result Section */
    .input-section,
    .result-section {
      display: flex;
      flex-direction: column;
      gap: 0.9rem;
    }

    @media (min-width: 768px) {
      .input-section,
      .result-section {
        flex: 1; /* Allow sections to take equal width on larger screens */
      }
    }

    /* Form & Inputs */
    .input-group {
      position: relative; /* For positioning the dice icon */
    }

    .input-group label {
      font-weight: 600;
      margin-bottom: 0.3rem;
      display: block;
    }

    .input-group textarea,
    .input-group input,
    .input-group select {
      width: 100%;
      padding: 0.5rem 2.5rem 0.5rem 0.5rem;
      border: 1px solid #ddd;
      border-radius: 6px;
      transition: border-color 0.3s;
      font-size: 0.9rem;
    }

    .input-group textarea:focus,
    .input-group input:focus,
    .input-group select:focus {
      border-color: #6c63ff;
      outline: none;
    }

    /* Dice Icon Button */
    .dice-button {
      position: absolute;
      top: 35px;
      right: 10px;
      background: none;
      border: none;
      cursor: pointer;
      padding: 0;
      margin: 0;
    }

    .dice-icon {
      color: #000000;
      font-size: 1.2rem;
      transition: color 0.3s;
    }

    .dice-button:hover .dice-icon {
      color: red;
    }

    /* Toggles & Buttons */
    .toggle-switch {
      display: flex;
      align-items: center;
      gap: 0.5rem;
    }

    .toggle-switch input {
      width: 35px;
      height: 18px;
      -webkit-appearance: none;
      background: #c6c6c6;
      border-radius: 18px;
      cursor: pointer;
      position: relative;
      outline: none;
      transition: background 0.3s;
    }

    .toggle-switch input:checked {
      background: #6c63ff;
    }

    .toggle-switch input::before {
      content: "";
      position: absolute;
      width: 16px;
      height: 16px;
      border-radius: 50%;
      top: 1px;
      left: 1px;
      background: #fff;
      transition: transform 0.3s;
    }

    .toggle-switch input:checked::before {
      transform: translateX(17px);
    }

    .btn-primary {
      background: linear-gradient(135deg, #6c63ff, #f67280);
      border: none;
      color: #fff;
      padding: 0.5rem 1rem;
      border-radius: 6px;
      transition: background 0.3s;
      font-size: 0.9rem;
      cursor: pointer;
    }

    .btn-primary:hover {
      background: linear-gradient(135deg, #f67280, #6c63ff);
    }

    .btn-secondary {
      background: #6c63ff;
      color: #fff;
      padding: 0.5rem 1rem;
      border: none;
      border-radius: 6px;
      transition: background 0.3s;
      font-size: 0.9rem;
      cursor: pointer;
    }

    .btn-secondary:hover {
      background: #5a54d1;
    }

    /* Loading Spinner */
    .custom-spinner {
      border: 4px solid rgba(0, 0, 0, 0.1);
      border-left-color: #000000;
      border-radius: 50%;
      width: 30px;
      height: 30px;
      animation: spin 1s linear infinite;
      margin: 1rem auto;
    }

    @keyframes spin {
      0% {
        transform: rotate(0deg);
      }
      100% {
        transform: rotate(360deg);
      }
    }

    /* Quote Cards */
    .quote-card {
      background: #f0f4f8;
      padding: 1rem;
      border-radius: 8px;
      box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
      position: relative;
      display: flex;
      flex-direction: column;
      gap: 0.5rem;
      transition: transform 0.2s;
    }

    .quote-card:hover {
      transform: translateY(-5px);
    }

    .quote-text {
      font-size: 1rem;
      word-wrap: break-word;
      font-family: Arial, sans-serif;
      cursor: text;
      min-height: 3rem;
    }

    .quote-actions {
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

    .quote-actions button {
      background: none;
      border: none;
      cursor: pointer;
      color: #000000;
      font-size: 1rem;
      transition: color 0.3s;
      display: flex;
      align-items: center;
    }

    .quote-actions button:hover {
      color: #6c63ff;
    }

    /* Saved Quotes */
    .saved-quotes-section {
      width: 100%;
      margin-top: 2rem;
      padding: 1.5rem;
      background: #ffffff;
      border-radius: 12px;
      box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
      max-width: 1250px;
      margin-left: auto;
      margin-right: auto;
    }

    .saved-quotes-container {
      display: flex;
      flex-direction: column;
      gap: 1rem;
    }

    .saved-quote-card {
      background: #f0f4f8;
      padding: 1rem;
      border-radius: 8px;
      box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
      position: relative;
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 0.5rem;
    }

    .delete-saved-quote,
    .download-saved-quote {
      background: none;
      border: none;
      cursor: pointer;
      font-size: 1rem;
    }

    .delete-saved-quote {
      color: #ff4d4d;
    }

    .delete-saved-quote:hover {
      color: #ff1a1a;
    }

    .download-saved-quote {
      color: #000000;
    }

    .download-saved-quote:hover {
      color: #333333;
    }

    /* Generate & Reset Buttons */
    .generate-reset-container {
      display: flex;
      gap: 0.5rem;
      flex-wrap: wrap;
    }

    .generate {
      background: linear-gradient(90deg, #553c9a, #ee4b2b);
      padding: 0.5rem 1rem;
      font-size: 0.875rem;
      border-radius: 5px;
      color: white;
      border: none;
      transition: background 0.3s ease;
      cursor: pointer;
      display: flex;
      align-items: center;
      gap: 0.5rem;
      font-family: Arial, sans-serif;
      flex: 1;
      min-width:fit-content; /* Ensure minimum width */
    }

    .generate:hover {
      opacity: 0.9;
    }

    .btn-reset {
      background: #e2e8f0;
      color: #1a202c;
      border-radius: 5px;
      padding: 0.5rem 1rem;
      border: none;
      font-size: 0.875rem;
      cursor: pointer;
      transition: background 0.3s ease;
      font-family: Arial, sans-serif;
      flex: 1;
      min-width: 100px; /* Ensure minimum width */
    }

    .btn-reset:hover {
      background: #cbd5e0;
    }

    /* Additional Options Section */
    #additionalOptions {
      display: none; /* Hidden by default */
    }

    #additionalOptions.visible {
      display: block; /* Show when visible */
    }

    /* Responsive Adjustments */
    @media (max-width: 768px) {
      .quote-header {
        flex-direction: column;
        align-items: flex-start;
      }

      .make-custom-btn {
        align-self: flex-end;
      }
    }

    @media (max-width: 600px) {
      .quote-header h1 {
        font-size: 1.75rem;
      }

      .make-custom-btn {
        width: 100%;
        text-align: center;
      }

      .generate-reset-container {
        flex-direction: column;
        gap: 0.5rem;
      }

      .generate, .btn-reset {
        width: 100%;
      }
    }

    /* Feedback Container */
    .feedback {
      margin-top: 10px;
      max-width: 1200px;
      width: 100%;
      background-color: white;
      padding: 20px;
      border-radius: 10px;
    }

    /* Step Component */
    .step {
      margin-bottom: 30px;
      padding: 20px;
      background-color: #f9f9f9;
      border-radius: 5px;
      max-width: 100%;
      box-sizing: border-box;
      overflow: hidden;
    }

    .step-title {
      font-size: 24px;
      margin-top: 15px;
    }

    .step-description {
      font-size: 16px;
      color: #666;
    }

    /* Media Queries for Step Component */
    @media screen and (max-width: 768px) {
      .step {
        padding: 15px;
        margin-bottom: 20px;
        max-width: 100%;
        overflow-x: hidden;
      }

      .step-title {
        font-size: 20px;
      }

      .step-description {
        font-size: 14px;
      }
    }