#setting-targets-1 {
  --primary-blue: #002d62;
  --primary-orange: #d85604;
  --bg-color: #f2f9fc;
  --text-grey: #555;
  --border-grey: #ccc;
  --error-red: #d32f2f;

  .layout-wrapper {
    display: flex;
    flex-direction: row;
    width: 100%;
    height: 100vh;
    overflow: hidden;
  }

  * {
    box-sizing: border-box;
  }

  .sidebar {
    width: 25%;
    min-width: 280px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    background-color: white;
    border-right: 1px solid #eee;
    flex-shrink: 0;
  }

  .back-btn {
    background-color: var(--primary-blue);
    color: white;
    border: none;
    padding: 8px 20px;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
    flex-shrink: 0;
    width: fit-content;
  }

  .puzzle-container {
    position: relative;
    width: 100%;
    max-width: 200px;
    height: 180px;
    align-self: center;
    opacity: 0.9;
    margin-top: auto;
    margin-bottom: auto;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .puzzle-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
  }

  .title-container {
    padding: 0px 0px 15px 0px;

    h1 {
      color: --primary-blue;
      font-size: 25px;
      margin: 0;
      font-weight: 500;
      line-height: 1.2;
      text-transform: capitalize;
      width: 100%;
    }

    .subtitle {
      color: --primary-blue;
      font-size: 16px;
      margin-top: 2px;
      text-transform: none;
      width: 80%;
    }
  }

  .main-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px 60px;
    overflow: hidden;
    min-width: 0;
    background-color: #f5fafd;
  }

  h1 {
    color: var(--primary-blue);
    font-size: 25px;
    margin-bottom: 5px;
    margin-top: 0;
    font-weight: 500;
    line-height: 1.2;
    text-transform: capitalize;
  }

  h2 {
    font-size: 16px;
    color: black;
    font-weight: 500;
    margin-bottom: 25px;
  }

  .target-section {
    margin-bottom: 15px;
  }

  .section-label {
    color: var(--primary-blue);
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 5px;
    display: block;
  }

  .input-row {
    display: flex;
    align-items: center;
    gap: 15px;
  }

  .input-container {
    flex: 1;
    background-color: white;
    border: 1px solid var(--border-grey);
    border-radius: 8px;
    padding: 12px;
    display: flex;
    justify-content: space-between;
    height: 100px;
    min-height: 80px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: border-color 0.3s ease;
    position: relative;
  }

  .input-container.error {
    border: 1px solid var(--error-red);
    box-shadow: 0 0 5px rgba(211, 47, 47, 0.2);
  }

  .textarea-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    padding-right: 10px;
  }

  textarea {
    border: none;
    resize: none;
    outline: none;
    font-family: inherit;
    font-size: 15px;
    color: #333;
    width: 100%;
    flex-grow: 1;
    background: transparent;
    height: 100%;
    box-sizing: border-box;
  }

  textarea::placeholder {
    color: #aaa;
  }

  .char-counter {
    align-self: flex-end;
    font-size: 11px;
    color: var(--text-grey);
    font-weight: bold;
    visibility: hidden;
    transition: color 0.2s;
    line-height: 1.5;
    margin-top: 0;
  }

  .char-counter.visible {
    visibility: visible;
  }

  .char-counter.limit-reached {
    color: var(--error-red);
  }

  .example-box {
    width: 35%;
    border: 2px solid var(--primary-orange);
    border-radius: 8px;
    padding: 8px;
    background-color: #fff5ee;
    font-size: 12px;
    color: black;
    display: none;
    align-items: flex-start;
    gap: 5px;
    position: relative;
    animation: fadeIn 0.3s ease-in-out;
    flex-shrink: 0;
    overflow-y: auto;
  }

  .example-icon {
    color: var(--primary-orange);
    font-size: 18px;
    margin-top: 2px;
    width: 20px;
    height: 20px;
  }

  @keyframes fadeIn {
    from {
      opacity: 0;
      transform: translateX(10px);
    }

    to {
      opacity: 1;
      transform: translateX(0);
    }
  }

  .example-icon {
    font-size: 14px;
    color: var(--primary-orange);
    margin-top: 2px;
  }

  .close-btn {
    position: absolute;
    top: 2px;
    right: 5px;
    color: var(--primary-orange);
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    line-height: 1;
  }

  .close-btn:hover {
    color: #a04000;
  }

  .tips-btn {
    display: inline-block;
    cursor: pointer;
    line-height: 0;
    transition: transform 0.2s ease;
    user-select: none;
  }

  .tips-btn img {
    width: 45px;
    height: 45px;
    display: block;
    object-fit: contain;
  }

  .tips-btn:hover {
    filter: brightness(1.1);
  }

  .tips-btn:active {
    transform: scale(0.92);
  }

  .footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 40px;
    padding-bottom: 0;
  }

  .continue-btn {
    background-color: var(--primary-orange);
    color: white;
    border: none;
    padding: 12px 50px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  }

  .continue-btn:hover {
    background-color: #bf4500;
  }

  .error-banner {
    display: none;
    background-color: #ffe6e6;
    color: var(--error-color);
    border: 1px solid var(--error-color);
    padding: 8px 30px;
    border-radius: 5px;
    font-weight: bold;
    margin-bottom: 10px;
    text-align: center;
    animation: fadeIn 0.3s ease-in-out;
  }

  @media (max-width: 900px) {
    .layout-wrapper {
      flex-direction: column;
      height: auto;
      overflow-y: auto;
    }

    .sidebar {
      width: 100%;
      height: auto;
      min-width: 0;
      padding: 20px;
      flex-direction: row;
      justify-content: space-between;
      align-items: center;
      border-right: none;
      border-bottom: 1px solid #eee;
    }

    .puzzle-container {
      margin: 0;
      height: 60px;
      width: 60px;
    }

    .main-content {
      overflow-y: visible;
      padding: 20px;
      display: block;
    }

    .input-row {
      flex-wrap: wrap;
    }

    .tips-btn {
      margin-left: auto;
    }
  }

  .question-label {
    color: var(--primary-blue);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    display: block;
    line-height: 1.3;
  }
}
