.tool-variables {
  margin-bottom: 1rem;

  .header {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    gap: 0.5rem;

    h3 {
      margin: 0;
      font-size: 0.875rem;
      color: #aaa;
      font-weight: 500;
    }

    .add-icon {
      color: #685fff;
      cursor: pointer;
      padding: 4px;
      border-radius: 4px;
      margin-left: auto;

      &:hover {
        background-color: rgba(104, 95, 255, 0.1);
      }
    }
  }

  .variables-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;

    .variable-item {
      .variable-inputs {
        display: flex;
        flex-direction: column;
        gap: 8px;

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

      .variable-input {
        flex: 1;
        background-color: rgba(30, 30, 30, 0.6);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 6px;
        color: #fff;
        padding: 8px 12px;
        font-size: 0.875rem;

        &:focus {
          border-color: #685fff;
          outline: none;
        }

        &::placeholder {
          color: rgba(255, 255, 255, 0.3);
        }
      }

      .name-input {
        flex: 1;
      }

      .desc-input {
        flex: 1;
      }

      .required-checkbox {
        display: flex;
        align-items: center;
        gap: 6px;
        white-space: nowrap;
        cursor: pointer;
        user-select: none;

        input[type="checkbox"] {
          cursor: pointer;
          height: 16px;
          width: 16px;
          accent-color: #685fff;
        }

        .checkbox-label {
          font-size: 0.75rem;
          color: #aaa;
        }
      }

      .delete-variable-btn {
        background: none;
        border: none;
        color: rgba(255, 255, 255, 0.5);
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 4px;
        border-radius: 4px;
        transition: all 0.2s ease;

        &:hover {
          color: #ff4444;
          background-color: rgba(255, 68, 68, 0.1);
        }
      }
    }
  }
}
